anchor-link
Advanced tools
Comparing version 3.0.0-beta15 to 3.0.0-beta16
{ | ||
"name": "anchor-link", | ||
"version": "3.0.0-beta15", | ||
"version": "3.0.0-beta16", | ||
"description": "Library for authenticating and signing transactions using the Anchor Link protocol", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"module": "lib/index.m.js", | ||
"esmodule": "lib/index.esm.js", | ||
"types": "lib/index.d.ts", | ||
"unpkg": "lib/bundle.js", | ||
"license": "BSD-3-Clause", | ||
"main": "lib/anchor-link.js", | ||
"module": "lib/anchor-link.mjs", | ||
"types": "lib/anchor-link.d.ts", | ||
"unpkg": "lib/anchor-link.bundle.js", | ||
"scripts": { | ||
@@ -28,3 +27,3 @@ "prepare": "make" | ||
}, | ||
"homepage": "https://github.com/greymass/anchor-link#readme", | ||
"homepage": "https://github.com/greymass/anchor-link", | ||
"files": [ | ||
@@ -34,9 +33,13 @@ "lib/*", | ||
], | ||
"browser": { | ||
"buffer": false, | ||
"crypto": false | ||
}, | ||
"dependencies": { | ||
"@greymass/eosio": "0.0.9", | ||
"@greymass/eosio": "^0.1.2", | ||
"asmcrypto.js": "^2.3.2", | ||
"eosio-signing-request": "2.0.0-beta11", | ||
"eosio-signing-request": "next", | ||
"fetch-ponyfill": "^7.0.0", | ||
"isomorphic-ws": "^4.0.1", | ||
"pako": "^1.0.10", | ||
"pako": "^2.0.2", | ||
"uuid": "^8.3.1", | ||
@@ -46,2 +49,9 @@ "ws": "^7.4.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.12.9", | ||
"@babel/preset-env": "^7.12.7", | ||
"@rollup/plugin-babel": "^5.2.2", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^11.0.0", | ||
"@rollup/plugin-typescript": "^8.0.0", | ||
"@types/mocha": "^8.0.0", | ||
@@ -52,13 +62,16 @@ "@types/node": "^14.14.7", | ||
"@types/ws": "^7.4.0", | ||
"@typescript-eslint/eslint-plugin": "^4.7.0", | ||
"@typescript-eslint/parser": "^4.7.0", | ||
"@typescript-eslint/eslint-plugin": "^4.9.0", | ||
"@typescript-eslint/parser": "^4.9.0", | ||
"core-js": "^3.8.0", | ||
"eslint": "^7.13.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-prettier": "^3.2.0", | ||
"gh-pages": "^3.1.0", | ||
"microbundle": "^0.12.4", | ||
"mocha": "^8.2.1", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.1.2", | ||
"ts-node": "^9.0.0", | ||
"prettier": "^2.2.1", | ||
"rollup": "^2.34.1", | ||
"rollup-plugin-dts": "^2.0.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"ts-node": "^9.1.0", | ||
"typedoc": "^0.19.2", | ||
@@ -65,0 +78,0 @@ "typescript": "^4.0.5" |
export * from './link' | ||
export * from './link-session' | ||
export {LinkOptions} from './link-options' | ||
export {LinkTransport} from './link-transport' | ||
export {LinkStorage} from './link-storage' | ||
export type {LinkOptions} from './link-options' | ||
export type {LinkTransport} from './link-transport' | ||
export type {LinkStorage} from './link-storage' | ||
export * from './errors' | ||
@@ -12,3 +12,4 @@ | ||
// convenience re-exports from esr | ||
export {PlaceholderAuth, PlaceholderName, PlaceholderPermission} from 'eosio-signing-request' | ||
// expose dependencies | ||
export * from 'eosio-signing-request' | ||
export * from '@greymass/eosio' |
@@ -258,6 +258,6 @@ import zlib from 'pako' | ||
const resolved = await ResolvedSigningRequest.fromPayload(payload, this.requestOptions) | ||
// TODO: use the signature type directly instead of the string now that its not a pain to do | ||
const fuelSig = resolved.request.getInfoKey<string>('fuel_sig', 'string') | ||
if (fuelSig) { | ||
signatures.unshift(Signature.from(fuelSig)) | ||
// prepend cosigner signature if present | ||
const cosignerSig = resolved.request.getInfoKey('cosig', Signature) | ||
if (cosignerSig) { | ||
signatures.unshift(cosignerSig) | ||
} | ||
@@ -264,0 +264,0 @@ const result: TransactResult = { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2691374
5889
2
0
28
21
2
90
7
+ Added@greymass/eosio@0.1.10(transitive)
+ Added@wharfkit/antelope@0.7.3(transitive)
+ Addedeosio-signing-request@3.0.0-beta1(transitive)
+ Addedpako@2.1.0(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@greymass/eosio@0.0.9(transitive)
- Removedeosio-signing-request@2.0.0-beta11(transitive)
- Removedpako@1.0.11(transitive)
Updated@greymass/eosio@^0.1.2
Updatedeosio-signing-request@next
Updatedpako@^2.0.2