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 1.0.28 to 1.0.29

21

dist/scratch.js

@@ -9,14 +9,25 @@ "use strict";

var client_1 = require("./client");
var dnsclient_1 = require("./dnsclient");
var lookupgenerators_1 = require("./lookupgenerators");
lookupgenerators_1.setenvDomainLookups('test');
var numUri = _1.parseNumUri('www.blah.com');
var client = client_1.createClient();
client.setenv('test');
lookupgenerators_1.setenvDomainLookups('prod');
var DEFAULT_RESOLVERS = [
new dnsclient_1.DoHResolver('BAD1', 'https://jhsgfdjhsgdkweg32767236eddghagsf.com/dns-query'),
new dnsclient_1.DoHResolver('BAD2', 'https://jhsgfdjhsgdkweg32767236eddghagsf.com/dns-query'),
new dnsclient_1.DoHResolver('BAD3', 'https://jhsgfdjhsgdkweg32767236eddghagsf.com/dns-query'),
];
var numUri = _1.parseNumUri('aviva.co.uk:1');
var client = client_1.createClient(DEFAULT_RESOLVERS);
client.setenv('prod');
loglevel_1.default.setLevel('debug');
var ctx = client.createContext(numUri);
client.retrieveNumRecord(ctx).then(function (result) {
client
.retrieveNumRecord(ctx)
.then(function (result) {
loglevel_1.default.info(result);
}, function (err) {
loglevel_1.default.error(err);
})
.catch(function (e) {
loglevel_1.default.error(e);
});
//# sourceMappingURL=scratch.js.map
{
"name": "num-client",
"version": "1.0.28",
"version": "1.0.29",
"description": "A NUM Protocol Client in TypeScript",

@@ -18,3 +18,3 @@ "main": "dist/index.js",

"loglevel-plugin-prefix": "^0.8.4",
"modl-interpreter": "0.0.17",
"modl-interpreter": "0.0.18",
"object-unpacker": "0.0.18",

@@ -21,0 +21,0 @@ "process": "^0.11.10",

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