did-resolver
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -91,2 +91,3 @@ 'use strict'; | ||
}))); | ||
it('fails on parse error', (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() { | ||
@@ -93,0 +94,0 @@ return _regenerator2.default.wrap(function _callee3$(_context3) { |
@@ -40,3 +40,3 @@ 'use strict'; | ||
if (resolver) { | ||
return resolver(did, parsed).then(resolve); | ||
return resolver(did, parsed).then(resolve, reject); | ||
} | ||
@@ -43,0 +43,0 @@ reject(new Error('Unsupported DID method: \'' + parsed.method + '\'')); |
{ | ||
"name": "did-resolver", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Resolve DID documents", | ||
@@ -5,0 +5,0 @@ "main": "lib/resolver.js", |
@@ -32,2 +32,3 @@ import resolve, {parse, registerMethod} from '../resolver' | ||
}) | ||
it('fails on parse error', async () => { | ||
@@ -34,0 +35,0 @@ await expect(resolve('did:borg:')).rejects.toEqual(new Error('Invalid DID did:borg:')) |
@@ -25,3 +25,3 @@ | ||
if (resolver) { | ||
return resolver(did, parsed).then(resolve) | ||
return resolver(did, parsed).then(resolve, reject) | ||
} | ||
@@ -28,0 +28,0 @@ reject(new Error(`Unsupported DID method: '${parsed.method}'`)) |
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
14386