num-client
Advanced tools
Comparing version 1.0.28 to 1.0.29
@@ -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
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
522223
2927
+ Addedmodl-interpreter@0.0.18(transitive)
- Removedmodl-interpreter@0.0.17(transitive)
Updatedmodl-interpreter@0.0.18