num-client
Advanced tools
Comparing version 0.1.30 to 0.1.31
import { createClient, DefaultCallbackHandler, NumClient, NumProtocolErrorCode } from './client'; | ||
import { createDnsClient, DoHResolver } from './dnsclient'; | ||
import { normalisePath } from './lookupgenerators'; | ||
import { buildNumUri, Hostname, MODULE_0, MODULE_1, MODULE_10, MODULE_2, MODULE_3, MODULE_4, MODULE_5, MODULE_6, MODULE_7, MODULE_8, MODULE_9, NumUri, parseNumUri, PositiveInteger, UrlPath, UrlUserInfo } from './numuri'; | ||
@@ -20,2 +21,2 @@ import { ResourceLoader } from './resourceloader'; | ||
export { DoHResolver, createDnsClient }; | ||
export { resolvePath, ResourceLoader }; | ||
export { resolvePath, ResourceLoader, normalisePath }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolvePath = exports.createDnsClient = exports.DoHResolver = exports.DefaultCallbackHandler = exports.NumProtocolErrorCode = exports.createClient = exports.MODULE_10 = exports.MODULE_9 = exports.MODULE_8 = exports.MODULE_7 = exports.MODULE_6 = exports.MODULE_5 = exports.MODULE_4 = exports.MODULE_3 = exports.MODULE_2 = exports.MODULE_1 = exports.MODULE_0 = exports.buildNumUri = exports.UrlPath = exports.UrlUserInfo = exports.Hostname = exports.PositiveInteger = exports.NumUri = exports.parseNumUri = void 0; | ||
exports.normalisePath = exports.resolvePath = exports.createDnsClient = exports.DoHResolver = exports.DefaultCallbackHandler = exports.NumProtocolErrorCode = exports.createClient = exports.MODULE_10 = exports.MODULE_9 = exports.MODULE_8 = exports.MODULE_7 = exports.MODULE_6 = exports.MODULE_5 = exports.MODULE_4 = exports.MODULE_3 = exports.MODULE_2 = exports.MODULE_1 = exports.MODULE_0 = exports.buildNumUri = exports.UrlPath = exports.UrlUserInfo = exports.Hostname = exports.PositiveInteger = exports.NumUri = exports.parseNumUri = void 0; | ||
var client_1 = require("./client"); | ||
@@ -11,2 +11,4 @@ Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return client_1.createClient; } }); | ||
Object.defineProperty(exports, "DoHResolver", { enumerable: true, get: function () { return dnsclient_1.DoHResolver; } }); | ||
var lookupgenerators_1 = require("./lookupgenerators"); | ||
Object.defineProperty(exports, "normalisePath", { enumerable: true, get: function () { return lookupgenerators_1.normalisePath; } }); | ||
var numuri_1 = require("./numuri"); | ||
@@ -13,0 +15,0 @@ Object.defineProperty(exports, "buildNumUri", { enumerable: true, get: function () { return numuri_1.buildNumUri; } }); |
@@ -20,1 +20,2 @@ import { NumUri, PositiveInteger } from './numuri'; | ||
export declare const createUrlLookupGenerator: (numUri: NumUri) => LookupGenerator; | ||
export declare const normalisePath: (path: string) => string; |
@@ -19,3 +19,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createUrlLookupGenerator = exports.createEmailLookupGenerator = exports.createDomainLookupGenerator = exports.setenvDomainLookups = void 0; | ||
exports.normalisePath = exports.createUrlLookupGenerator = exports.createEmailLookupGenerator = exports.createDomainLookupGenerator = exports.setenvDomainLookups = void 0; | ||
var loglevel_1 = __importDefault(require("loglevel")); | ||
@@ -142,3 +142,3 @@ var punycode_1 = __importDefault(require("punycode")); | ||
}; | ||
var normalisePath = function (path) { | ||
exports.normalisePath = function (path) { | ||
var result = '/'; | ||
@@ -161,3 +161,3 @@ if (path.length > 0) { | ||
var _this = _super.call(this, numUri) || this; | ||
var branch = transformBranch(normalisePath(numUri.path.s)); | ||
var branch = transformBranch(exports.normalisePath(numUri.path.s)); | ||
_this._branch = branch !== '' ? punycode_1.default.toASCII(branch) : branch; | ||
@@ -180,3 +180,3 @@ if (_this._branch !== branch) { | ||
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(normaliseDomainName(numUri.host.s))); | ||
var branch = transformBranch(normalisePath(numUri.path.s)); | ||
var branch = transformBranch(exports.normalisePath(numUri.path.s)); | ||
_this._branch = branch !== '' ? punycode_1.default.toASCII(branch) : branch; | ||
@@ -246,3 +246,3 @@ if (branch !== _this._branch) { | ||
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(normaliseDomainName(numUri.host.s))); | ||
var branch = transformBranch(normalisePath(numUri.path.s)); | ||
var branch = transformBranch(exports.normalisePath(numUri.path.s)); | ||
_this._branch = branch !== '' ? punycode_1.default.toASCII(branch) : branch; | ||
@@ -249,0 +249,0 @@ if (branch !== _this._branch) { |
{ | ||
"name": "num-client", | ||
"version": "0.1.30", | ||
"version": "0.1.31", | ||
"description": "A NUM Protocol Client in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
470347
2554