ethr-did-resolver
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -48,2 +48,4 @@ 'use strict'; | ||
var _buffer = require('buffer'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -121,6 +123,6 @@ | ||
case 'publicKeyBase64': | ||
pk.publicKeyBase64 = Buffer.from(event.value.slice(2), 'hex').toString('base64'); | ||
pk.publicKeyBase64 = _buffer.Buffer.from(event.value.slice(2), 'hex').toString('base64'); | ||
break; | ||
case 'publicKeyBase58': | ||
pk.publicKeyBase58 = Buffer.from(event.value.slice(2), 'hex').toString('base58'); | ||
pk.publicKeyBase58 = _buffer.Buffer.from(event.value.slice(2), 'hex').toString('base58'); | ||
break; | ||
@@ -133,3 +135,3 @@ default: | ||
case 'service': | ||
services[key] = { type: type, serviceEndpoint: Buffer.from(event.value.slice(2), 'hex').toString() }; | ||
services[key] = { type: type, serviceEndpoint: _buffer.Buffer.from(event.value.slice(2), 'hex').toString() }; | ||
break; | ||
@@ -136,0 +138,0 @@ } |
{ | ||
"name": "ethr-did-resolver", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Resolve DID documents around ethereum addresses", | ||
@@ -49,2 +49,3 @@ "main": "lib/register.js", | ||
"babel-runtime": "^6.26.0", | ||
"buffer": "^5.1.0", | ||
"did-resolver": "^0.0.4", | ||
@@ -51,0 +52,0 @@ "ethjs-abi": "^0.2.1", |
@@ -7,3 +7,3 @@ import { registerMethod } from 'did-resolver' | ||
import DidRegistryContract from '../contracts/ethr-did-registry.json' | ||
import { Buffer } from 'buffer' | ||
export const REGISTRY = '0xc1b66dea11f8f321b7981e1666fdaf3637fe0f61' | ||
@@ -10,0 +10,0 @@ |
Sorry, the diff of this file is too big to display
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
347001
1377
9
+ Addedbuffer@^5.1.0
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedieee754@1.2.1(transitive)