New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uport-lite

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uport-lite - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

dist/uport-lite.min.js

@@ -60,4 +60,4 @@ /*

h.slice(2),!0);return c+=k("0000000000000000000000000000000000000000000000000000000000000000",l.slice(2),!0)}function q(f,h){var k="https://ropsten.infura.io/"+D;return f?e({uri:k,accept:"application/json",data:{method:"eth_call",params:[{to:"0xb9C1598e24650437a3055F7f66AC1820c419a679",data:"0x446d5aa4000000000000000000000000"+f.slice(2)},"latest"],id:1,jsonrpc:"2.0"}},function(e,f){if(e)return h(e);if(f.error)return h(f.error);e=f.result.slice(130).slice(0,68);return h(null,p.encode(c.decode(e)))}):
h(null)}function x(f,k,m,n){k=h(k);var r=h(m);if(k.network!==r.network)throw Error("Issuer and subject must be on the same network");if(!B[k.network])throw Error("Network id "+k.network+" is not configured");m=B[k.network].rpcUrl;var u=B[k.network].registry;f=l("0x447885f0",f,k.address,r.address);return e({uri:m+"/"+D,accept:"application/json",data:{method:"eth_call",params:[{to:u,data:f},"latest"],id:1,jsonrpc:"2.0"}},function(e,f){return e?n(e):f.error?n(f.error):0==f.result?n(e):n(null,p.encode(c.decode("1220"+
f.result.slice(2))))})}function A(c,f){return c&&"0x"!==c?e({uri:""+H+c},f):f()}var w=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},D=w.infuraKey||"uport-lite-library",H=w.ipfsGw||"https://ipfs.infura.io/ipfs/",B=w.networks?Object.assign({},v,w.networks):v;return function(c,e,f){var h=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"uPortProfileIPFS1220";if(!c)return e(null);var k=f||c;return c.match(/0x[0-9a-fA-F]{40}/)?q(c,function(c,f){if(c)return e(c);A(f,e)}):x(h,c,k,function(c,
f){if(c)return e(c);A(f,e)})}}}])});
h(null)}function x(f,k,m,n){k=h(k);var r=h(m);if(k.network!==r.network)n(Error("Issuer and subject must be on the same network"));else{if(B[k.network]){m=B[k.network].rpcUrl;var u=B[k.network].registry;f=l("0x447885f0",f,k.address,r.address);return e({uri:m+"/"+D,accept:"application/json",data:{method:"eth_call",params:[{to:u,data:f},"latest"],id:1,jsonrpc:"2.0"}},function(e,f){return e?n(e):f.error?n(f.error):0==f.result?n(e):n(null,p.encode(c.decode("1220"+f.result.slice(2))))})}n(Error("Network id "+
k.network+" is not configured"))}}function A(c,f){return c&&"0x"!==c?e({uri:""+H+c},f):f()}var w=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},D=w.infuraKey||"uport-lite-library",H=w.ipfsGw||"https://ipfs.infura.io/ipfs/",B=w.networks?Object.assign({},v,w.networks):v;return function(c,e,f){var h=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"uPortProfileIPFS1220";if(!c)return e(null);var k=f||c;return c.match(/0x[0-9a-fA-F]{40}/)?q(c,function(c,f){if(c)return e(c);A(f,e)}):x(h,
c,k,function(c,f){if(c)return e(c);A(f,e)})}}}])});

@@ -149,6 +149,8 @@ 'use strict';

if (issuer.network !== subject.network) {
throw new Error('Issuer and subject must be on the same network');
callback(new Error('Issuer and subject must be on the same network'));
return;
}
if (!networks[issuer.network]) {
throw new Error('Network id ' + issuer.network + ' is not configured');
callback(new Error('Network id ' + issuer.network + ' is not configured'));
return;
}

@@ -155,0 +157,0 @@ var rpcUrl = networks[issuer.network].rpcUrl;

{
"name": "uport-lite",
"version": "1.0.1",
"version": "1.0.2",
"description": "Lightweight library for looking up public profiles on uport-registry",

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

@@ -148,6 +148,8 @@ var BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'

if (issuer.network !== subject.network) {
throw new Error('Issuer and subject must be on the same network')
callback(new Error('Issuer and subject must be on the same network'))
return
}
if (!networks[issuer.network]) {
throw new Error(`Network id ${issuer.network} is not configured`)
callback(new Error(`Network id ${issuer.network} is not configured`))
return
}

@@ -154,0 +156,0 @@ const rpcUrl = networks[issuer.network].rpcUrl

Sorry, the diff of this file is too big to display

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