Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

num-client

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

num-client - npm Package Compare versions

Comparing version 0.1.32 to 0.1.33

4

dist/index.d.ts
import { createClient, DefaultCallbackHandler, NumClient, NumProtocolErrorCode } from './client';
import { createDnsClient, DoHResolver } from './dnsclient';
import { normalisePath } from './lookupgenerators';
import { normaliseDomainName, normalisePath, transformBranch } from './lookupgenerators';
import { createModuleDnsQueries, ModuleDnsQueries } from './modulednsqueries';

@@ -22,2 +22,2 @@ 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';

export { DoHResolver, createDnsClient };
export { resolvePath, ResourceLoader, normalisePath, createModuleDnsQueries, ModuleDnsQueries };
export { resolvePath, ResourceLoader, normalisePath, createModuleDnsQueries, ModuleDnsQueries, transformBranch, normaliseDomainName };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createModuleDnsQueries = 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;
exports.normaliseDomainName = exports.transformBranch = exports.createModuleDnsQueries = 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");

@@ -12,3 +12,5 @@ Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return client_1.createClient; } });

var lookupgenerators_1 = require("./lookupgenerators");
Object.defineProperty(exports, "normaliseDomainName", { enumerable: true, get: function () { return lookupgenerators_1.normaliseDomainName; } });
Object.defineProperty(exports, "normalisePath", { enumerable: true, get: function () { return lookupgenerators_1.normalisePath; } });
Object.defineProperty(exports, "transformBranch", { enumerable: true, get: function () { return lookupgenerators_1.transformBranch; } });
var modulednsqueries_1 = require("./modulednsqueries");

@@ -15,0 +17,0 @@ Object.defineProperty(exports, "createModuleDnsQueries", { enumerable: true, get: function () { return modulednsqueries_1.createModuleDnsQueries; } });

@@ -20,2 +20,4 @@ import { NumUri, PositiveInteger } from './numuri';

export declare const createUrlLookupGenerator: (numUri: NumUri) => LookupGenerator;
export declare const transformBranch: (s: string) => string;
export declare const normaliseDomainName: (domainName: string) => string;
export declare const normalisePath: (path: string) => string;

@@ -19,3 +19,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.normalisePath = exports.createUrlLookupGenerator = exports.createEmailLookupGenerator = exports.createDomainLookupGenerator = exports.setenvDomainLookups = void 0;
exports.normalisePath = exports.normaliseDomainName = exports.transformBranch = exports.createUrlLookupGenerator = exports.createEmailLookupGenerator = exports.createDomainLookupGenerator = exports.setenvDomainLookups = void 0;
var loglevel_1 = __importDefault(require("loglevel"));

@@ -97,3 +97,3 @@ var punycode_1 = __importDefault(require("punycode"));

}());
var transformBranch = function (s) {
exports.transformBranch = function (s) {
if (s === '/') {

@@ -109,3 +109,3 @@ return '';

};
var normaliseDomainName = function (domainName) {
exports.normaliseDomainName = function (domainName) {
if (!domainName) {

@@ -120,3 +120,3 @@ throw new exceptions_1.NumInvalidParameterException('Null domain name cannot be normalised');

var host = new url_1.URL(domainName).hostname;
return normaliseDomainName(host);
return exports.normaliseDomainName(host);
}

@@ -163,3 +163,3 @@ catch (e) {

var _this = _super.call(this, numUri) || this;
var branch = transformBranch(exports.normalisePath(numUri.path.s));
var branch = exports.transformBranch(exports.normalisePath(numUri.path.s));
_this._branch = branch !== '' ? punycode_1.default.toASCII(branch) : branch;

@@ -169,3 +169,3 @@ if (_this._branch !== branch) {

}
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(normaliseDomainName(numUri.host.s)));
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(exports.normaliseDomainName(numUri.host.s)));
return _this;

@@ -182,4 +182,4 @@ }

_this._numUri = _this._numUri.withUserinfo(new numuri_1.UrlUserInfo(newUserinfo));
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(normaliseDomainName(numUri.host.s)));
var branch = transformBranch(exports.normalisePath(numUri.path.s));
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(exports.normaliseDomainName(numUri.host.s)));
var branch = exports.transformBranch(exports.normalisePath(numUri.path.s));
_this._branch = branch !== '' ? punycode_1.default.toASCII(branch) : branch;

@@ -248,4 +248,4 @@ if (branch !== _this._branch) {

var _this = _super.call(this, numUri) || this;
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(normaliseDomainName(numUri.host.s)));
var branch = transformBranch(exports.normalisePath(numUri.path.s));
_this._numUri = _this._numUri.withHost(new numuri_1.Hostname(exports.normaliseDomainName(numUri.host.s)));
var branch = exports.transformBranch(exports.normalisePath(numUri.path.s));
_this._branch = branch !== '' ? punycode_1.default.toASCII(branch) : branch;

@@ -252,0 +252,0 @@ if (branch !== _this._branch) {

{
"name": "num-client",
"version": "0.1.32",
"version": "0.1.33",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc