@blocto/dappauth
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "@blocto/dappauth", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "A util to prove actionable control ('ownership') over a public Ethereum address using eth_sign", | ||
@@ -12,4 +12,11 @@ "keywords": [ | ||
"repository": "github:blocto/dappauth.js", | ||
"main": "index.js", | ||
"main": "./dist/dappauth.js", | ||
"module": "./dist/dappauth.module.js", | ||
"browser": "./dist/dappauth.umd.js", | ||
"exports": { | ||
"require": "./dist/dappauth.js", | ||
"import": "./dist/dappauth.module.js" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"test": "npm run eslint && nyc mocha test/*", | ||
@@ -29,2 +36,4 @@ "prettier:watch": "onchange '**/*.js' -- prettier --write {{changed}}", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^25.0.4", | ||
"@rollup/plugin-node-resolve": "^15.2.1", | ||
"babel-eslint": "^8.0.1", | ||
@@ -39,4 +48,9 @@ "coveralls": "^3.0.0", | ||
"onchange": "^7.1.0", | ||
"prettier": "^1.14.3" | ||
"prettier": "^1.14.3", | ||
"rollup": "^3.29.1", | ||
"rollup-plugin-copy": "^3.5.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-polyfills": "^0.2.1", | ||
"rollup-plugin-terser": "^7.0.2" | ||
} | ||
} |
@@ -1,4 +0,3 @@ | ||
[![Build Status](https://travis-ci.com/dapperlabs/dappauth.js.svg?branch=master)](https://travis-ci.com/dapperlabs/dappauth.js) | ||
[![Coverage Status](https://coveralls.io/repos/github/dapperlabs/dappauth.js/badge.svg?branch=master)](https://coveralls.io/github/dapperlabs/dappauth.js?branch=master) | ||
# dappauth.js | ||
dappauth.js is a tool that can verify EOA signature and smart contract signature (ERC1271). | ||
@@ -8,3 +7,3 @@ ## Usage | ||
const Web3 = require('web3'); | ||
const DappAuth = require('@dapperlabs/dappauth'); | ||
const DappAuth = require('@blocto/dappauth'); | ||
@@ -27,9 +26,7 @@ const dappAuth = new DappAuth(new Web3.providers.HttpProvider('http://localhost:8545')); | ||
console.log(isAuthorizedSigner); // true | ||
} | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
} | ||
``` | ||
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
30823
18
806
17
31
1