SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > uri-js > dist > esnext > schemes


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/node_modules/npm/node_modules/uri-js/dist/esnext/schemes

NameTypeSizeLast ModifiedActions
http.d.ts File 108 bytes March 10 2021 14:36:39.
http.js File 959 bytes March 10 2021 14:36:39.
http.js.map File 841 bytes March 10 2021 14:36:39.
https.d.ts File 108 bytes March 10 2021 14:36:39.
https.js File 212 bytes March 10 2021 14:36:39.
https.js.map File 312 bytes March 10 2021 14:36:39.
mailto.d.ts File 359 bytes March 10 2021 14:36:39.
mailto.js File 7746 bytes March 10 2021 14:36:39.
mailto.js.map File 7209 bytes March 10 2021 14:36:39.
urn-uuid.d.ts File 279 bytes March 10 2021 14:36:39.
urn-uuid.js File 868 bytes March 10 2021 14:36:39.
urn-uuid.js.map File 832 bytes March 10 2021 14:36:39.
urn.d.ts File 324 bytes March 10 2021 14:36:39.
urn.js File 2050 bytes March 10 2021 14:36:39.
urn.js.map File 1939 bytes March 10 2021 14:36:39.
ws.d.ts File 228 bytes March 10 2021 14:36:39.
ws.js File 1659 bytes March 10 2021 14:36:39.
ws.js.map File 1610 bytes March 10 2021 14:36:39.
wss.d.ts File 108 bytes March 10 2021 14:36:39.
wss.js File 198 bytes March 10 2021 14:36:39.
wss.js.map File 307 bytes March 10 2021 14:36:39.

Reading File: //lib/node_modules/npm/node_modules/uri-js/dist/esnext/schemes/urn.js

import { SCHEMES } from "../uri";
const NID$ = "(?:[0-9A-Za-z][0-9A-Za-z\\-]{1,31})";
const PCT_ENCODED$ = "(?:\\%[0-9A-Fa-f]{2})";
const TRANS$$ = "[0-9A-Za-z\\(\\)\\+\\,\\-\\.\\:\\=\\@\\;\\$\\_\\!\\*\\'\\/\\?\\#]";
const NSS$ = "(?:(?:" + PCT_ENCODED$ + "|" + TRANS$$ + ")+)";
const URN_SCHEME = new RegExp("^urn\\:(" + NID$ + ")$");
const URN_PATH = new RegExp("^(" + NID$ + ")\\:(" + NSS$ + ")$");
const URN_PARSE = /^([^\:]+)\:(.*)/;
const URN_EXCLUDED = /[\x00-\x20\\\"\&\<\>\[\]\^\`\{\|\}\~\x7F-\xFF]/g;
//RFC 2141
const handler = {
    scheme: "urn",
    parse: function (components, options) {
        const matches = components.path && components.path.match(URN_PARSE);
        let urnComponents = components;
        if (matches) {
            const scheme = options.scheme || urnComponents.scheme || "urn";
            const nid = matches[1].toLowerCase();
            const nss = matches[2];
            const urnScheme = `${scheme}:${options.nid || nid}`;
            const schemeHandler = SCHEMES[urnScheme];
            urnComponents.nid = nid;
            urnComponents.nss = nss;
            urnComponents.path = undefined;
            if (schemeHandler) {
                urnComponents = schemeHandler.parse(urnComponents, options);
            }
        }
        else {
            urnComponents.error = urnComponents.error || "URN can not be parsed.";
        }
        return urnComponents;
    },
    serialize: function (urnComponents, options) {
        const scheme = options.scheme || urnComponents.scheme || "urn";
        const nid = urnComponents.nid;
        const urnScheme = `${scheme}:${options.nid || nid}`;
        const schemeHandler = SCHEMES[urnScheme];
        if (schemeHandler) {
            urnComponents = schemeHandler.serialize(urnComponents, options);
        }
        const uriComponents = urnComponents;
        const nss = urnComponents.nss;
        uriComponents.path = `${nid || options.nid}:${nss}`;
        return uriComponents;
    },
};
export default handler;
//# sourceMappingURL=urn.js.map

SILENT KILLER Tool