Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0-alpha-3 to 1.0.0-alpha-4

2

dist/uport-lite.js

@@ -349,2 +349,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

if (error) return callback(error);
if (response.error) return callback(response.error);
var hexHash = response.result.slice(130).slice(0, 68);

@@ -378,2 +379,3 @@ return callback(null, toBase58(hexHash));

if (error) return callback(error);
if (response.error) return callback(response.error);
if (response.result == 0) return callback(error);

@@ -380,0 +382,0 @@ return callback(null, registryEncodingToIPFS(response.result));

6

dist/uport-lite.min.js

@@ -10,4 +10,4 @@ var $jscomp={scope:{},owns:function(b,a){return Object.prototype.hasOwnProperty.call(b,a)}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,a,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[a]=c.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);

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

@@ -135,2 +135,3 @@ 'use strict';

if (error) return callback(error);
if (response.error) return callback(response.error);
var hexHash = response.result.slice(130).slice(0, 68);

@@ -164,2 +165,3 @@ return callback(null, toBase58(hexHash));

if (error) return callback(error);
if (response.error) return callback(response.error);
if (response.result == 0) return callback(error);

@@ -166,0 +168,0 @@ return callback(null, registryEncodingToIPFS(response.result));

{
"name": "uport-lite",
"version": "1.0.0-alpha-3",
"version": "1.0.0-alpha-4",
"description": "Lightweight library for looking up public profiles on uport-registry",

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

@@ -134,2 +134,3 @@ var BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'

if (error) return callback(error)
if (response.error) return callback(response.error)
const hexHash = response.result.slice(130).slice(0, 68)

@@ -166,2 +167,3 @@ return callback(null, toBase58(hexHash))

if (error) return callback(error)
if (response.error) return callback(response.error)
if (response.result == 0) return callback(error)

@@ -168,0 +170,0 @@ return callback(null, registryEncodingToIPFS(response.result))

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