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

did-resolver

Package Overview
Dependencies
Maintainers
6
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.7-alpha.0 to 0.0.7

2

lib/resolver.js

@@ -65,3 +65,3 @@ "use strict";

throw new Error('Missing DID');
var sections = did.match(/^did:([a-zA-Z0-9_]+):([[a-zA-Z0-9_.-:]+)(\/[^#]*)?(#.*)?$/);
var sections = did.match(/^did:([a-zA-Z0-9_]+):([:[a-zA-Z0-9_.-]+)(\/[^#]*)?(#.*)?$/);
if (sections) {

@@ -68,0 +68,0 @@ var parts = { did: sections[0], method: sections[1], id: sections[2] };

{
"name": "did-resolver",
"version": "0.0.7-alpha.0",
"version": "0.0.7",
"description": "Resolve DID documents",

@@ -5,0 +5,0 @@ "main": "lib/resolver.js",

@@ -90,3 +90,3 @@ // Copyright 2018 ConsenSys AG

if (did === '') throw new Error('Missing DID')
const sections = did.match(/^did:([a-zA-Z0-9_]+):([[a-zA-Z0-9_.-:]+)(\/[^#]*)?(#.*)?$/)
const sections = did.match(/^did:([a-zA-Z0-9_]+):([:[a-zA-Z0-9_.-]+)(\/[^#]*)?(#.*)?$/)
if (sections) {

@@ -93,0 +93,0 @@ const parts : ParsedDID = {did: sections[0], method: sections[1], id: sections[2]}

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