Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

did-resolver

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

did-resolver - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

1

lib/__tests__/resolver-test.js

@@ -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) {

2

lib/resolver.js

@@ -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}'`))

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