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 2.0.6 to 2.0.7

1

dist/client.d.ts

@@ -19,2 +19,3 @@ import { Context, NumLocation, UserVariable } from './context';

setTimeoutMillis(t: number): void;
disableSchemaValidation(): void;
}

@@ -21,0 +22,0 @@ export interface CallbackHandler {

8

dist/client.js

@@ -104,2 +104,3 @@ "use strict";

function NumClientImpl(resolvers) {
this.schemaValidationIsDisabled = false;
this.dnsServices =

@@ -111,2 +112,5 @@ resolvers && resolvers.length > 0 ? dnsservices_1.createDnsServices(DNS_REQUEST_TIMEOUT_MS, resolvers) : dnsservices_1.createDnsServices(DNS_REQUEST_TIMEOUT_MS, DEFAULT_RESOLVERS);

}
NumClientImpl.prototype.disableSchemaValidation = function () {
this.schemaValidationIsDisabled = true;
};
NumClientImpl.prototype.setResourceLoader = function (loader) {

@@ -330,3 +334,3 @@ this.resourceLoader = loader;

compactVersion = jsonResult['@v'] ? "" + jsonResult['@v'] : '1';
if (!moduleConfig.compactSchema) return [3, 3];
if (!(moduleConfig.compactSchema && !this.schemaValidationIsDisabled)) return [3, 3];
return [4, this.validateSchema(moduleNumber.n, compactSchemaPathComponent, compactVersion, jsonResult)];

@@ -365,3 +369,3 @@ case 2:

}
if (!moduleConfig.expandedSchema) return [3, 10];
if (!(moduleConfig.expandedSchema && !this.schemaValidationIsDisabled)) return [3, 10];
if (!jsonResult['@version']) {

@@ -368,0 +372,0 @@ throw new exceptions_1.NumProtocolException(exceptions_1.NumProtocolErrorCode.missingExpandedSchemaVersion, JSON.stringify(jsonResult));

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

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