num-client
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -141,3 +141,4 @@ "use strict"; | ||
else { | ||
throw new Error('Domain was resolved but no records were found'); | ||
loglevel_1.default.warn('Domain was resolved but no records were found'); | ||
return [2, []]; | ||
} | ||
@@ -144,0 +145,0 @@ } |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var loglevel_1 = __importDefault(require("loglevel")); | ||
var _1 = require("."); | ||
var client_1 = require("./client"); | ||
var lookupgenerators_1 = require("./lookupgenerators"); | ||
lookupgenerators_1.setenvDomainLookups('test'); | ||
var numUri = _1.parseNumUri('num://aviva.co.uk:1/homeinsurance'); | ||
var lug = lookupgenerators_1.createDomainLookupGenerator(numUri); | ||
console.log(lug.getHostedLocation(_1.MODULE_1)); | ||
var numUri = _1.parseNumUri('num://aviva.co.uk:1'); | ||
var client = client_1.createClient(); | ||
loglevel_1.default.setLevel('debug'); | ||
var ctx = client.createContext(numUri); | ||
client.retrieveNumRecord(ctx).then(function (result) { | ||
loglevel_1.default.info(result); | ||
}, function (err) { | ||
loglevel_1.default.error(err); | ||
}); | ||
//# sourceMappingURL=scratch.js.map |
{ | ||
"name": "num-client", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"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
507725
2844