@requestnetwork/epk-decryption
Advanced tools
Comparing version 0.3.24 to 0.3.25-next.709
@@ -1,20 +0,9 @@ | ||
/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
*/ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <http://feross.org> | ||
* @license MIT | ||
*/ | ||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
@@ -24,8 +13,8 @@ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
/** | ||
* [js-sha3]{@link https://github.com/emn178/js-sha3} | ||
* | ||
* @version 0.5.7 | ||
* @author Chen, Yi-Cyuan [emn178@gmail.com] | ||
* @copyright Chen, Yi-Cyuan 2015-2016 | ||
* @license MIT | ||
*/ | ||
* [js-sha3]{@link https://github.com/emn178/js-sha3} | ||
* | ||
* @version 0.8.0 | ||
* @author Chen, Yi-Cyuan [emn178@gmail.com] | ||
* @copyright Chen, Yi-Cyuan 2015-2018 | ||
* @license MIT | ||
*/ |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const types_1 = require("@requestnetwork/types"); | ||
@@ -38,3 +30,3 @@ const utils_1 = require("@requestnetwork/utils"); | ||
decrypt(encryptedData, identity) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
if (encryptedData.type !== types_1.EncryptionTypes.METHOD.ECIES) { | ||
@@ -51,3 +43,3 @@ throw Error(`The data must be encrypted with ${types_1.EncryptionTypes.METHOD.ECIES}`); | ||
} | ||
return utils_1.default.encryption.decrypt(encryptedData, decryptionParameters); | ||
return (0, utils_1.decrypt)(encryptedData, decryptionParameters); | ||
}); | ||
@@ -63,4 +55,4 @@ } | ||
isIdentityRegistered(identity) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return Array.from(this.decryptionParametersDictionary.keys()).some(address => identity.value.toLowerCase() === address.toLowerCase()); | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return Array.from(this.decryptionParametersDictionary.keys()).some((address) => identity.value.toLowerCase() === address.toLowerCase()); | ||
}); | ||
@@ -81,3 +73,3 @@ } | ||
// toLowerCase to avoid mismatch because of case | ||
const address = utils_1.default.crypto.EcUtils.getAddressFromPrivateKey(decryptionParameters.key).toLowerCase(); | ||
const address = (0, utils_1.getAddressFromPrivateKey)(decryptionParameters.key).toLowerCase(); | ||
this.decryptionParametersDictionary.set(address, decryptionParameters); | ||
@@ -119,3 +111,3 @@ return { | ||
getAllRegisteredIdentities() { | ||
return Array.from(this.decryptionParametersDictionary.keys(), address => ({ | ||
return Array.from(this.decryptionParametersDictionary.keys(), (address) => ({ | ||
type: types_1.IdentityTypes.TYPE.ETHEREUM_ADDRESS, | ||
@@ -122,0 +114,0 @@ value: address, |
@@ -1,2 +0,2 @@ | ||
export { default as EthereumPrivateKeyDecryptionProvider, } from './ethereum-private-key-decryption-provider'; | ||
export { default as EthereumPrivateKeyDecryptionProvider } from './ethereum-private-key-decryption-provider'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@requestnetwork/epk-decryption", | ||
"version": "0.3.24", | ||
"version": "0.3.25-next.709+44946236", | ||
"publishConfig": { | ||
@@ -22,3 +22,3 @@ "access": "public" | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -36,7 +36,7 @@ "main": "dist/index.js", | ||
"build": "run-s build:commonjs build:umd", | ||
"build:commonjs": "tsc -b", | ||
"build:commonjs": "tsc -b tsconfig.build.json", | ||
"build:umd": "webpack", | ||
"clean": "shx rm -rf dist tsconfig.tsbuildinfo", | ||
"lint": "tslint --project . && eslint \"src/**/*.ts\"", | ||
"lint-staged": "lint-staged", | ||
"clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo", | ||
"lint": "eslint . --fix", | ||
"lint:check": "eslint .", | ||
"test": "jest", | ||
@@ -46,32 +46,27 @@ "test:watch": "yarn test --watch" | ||
"dependencies": { | ||
"@requestnetwork/multi-format": "0.15.0", | ||
"@requestnetwork/types": "0.29.0", | ||
"@requestnetwork/utils": "0.28.0" | ||
"@requestnetwork/multi-format": "0.15.1-next.709+44946236", | ||
"@requestnetwork/types": "0.29.1-next.709+44946236", | ||
"@requestnetwork/utils": "0.28.1-next.709+44946236", | ||
"tslib": "2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.13", | ||
"@typescript-eslint/parser": "4.1.1", | ||
"@types/jest": "29.5.6", | ||
"amd-loader": "0.0.8", | ||
"awesome-typescript-loader": "5.2.1", | ||
"crypto-browserify": "3.12.0", | ||
"duplicate-package-checker-webpack-plugin": "3.0.0", | ||
"eslint": "7.9.0", | ||
"eslint-plugin-spellcheck": "0.0.17", | ||
"eslint-plugin-typescript": "0.14.0", | ||
"jest": "26.4.2", | ||
"lint-staged": "10.3.0", | ||
"jest": "29.5.0", | ||
"jest-junit": "16.0.0", | ||
"npm-run-all": "4.1.5", | ||
"nyc": "15.1.0", | ||
"prettier": "2.1.1", | ||
"shx": "0.3.2", | ||
"source-map-support": "0.5.19", | ||
"stream-browserify": "3.0.0", | ||
"terser-webpack-plugin": "4.2.3", | ||
"ts-jest": "26.3.0", | ||
"ts-node": "9.0.0", | ||
"tslint": "6.1.3", | ||
"typescript": "4.0.2", | ||
"webpack": "4.44.2", | ||
"webpack-bundle-analyzer": "3.8.0", | ||
"ts-jest": "29.1.0", | ||
"ts-loader": "8.4.0", | ||
"ts-node": "10.9.1", | ||
"typescript": "5.1.3", | ||
"webpack": "5.88.2", | ||
"webpack-bundle-analyzer": "4.2.0", | ||
"webpack-cli": "3.3.12" | ||
}, | ||
"gitHead": "1cc3a0743726f6c314f9651b26bfcb29a49cf98e" | ||
"gitHead": "449462366df9f74a825fef46339012111816f0c3" | ||
} |
@@ -10,3 +10,3 @@ # @requestnetwork/epk-decryption | ||
It uses the Request Network Protocol concept of `Identity` described in the [request logic specification](/packages/request-logic/specs/request-logic-specification-v2.0.0.md). | ||
It uses the Request Network Protocol concept of `Identity` described in the [request logic specification](/packages/request-logic/specs/request-logic-specification.md). | ||
@@ -13,0 +13,0 @@ ## Installation |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
17
4515634
4
15
3615
2
+ Addedtslib@2.5.0
+ Addedtslib@2.5.0(transitive)
- Removed@ethersproject/abi@5.7.0(transitive)
- Removed@ethersproject/abstract-provider@5.7.0(transitive)
- Removed@ethersproject/abstract-signer@5.7.0(transitive)
- Removed@ethersproject/address@5.7.0(transitive)
- Removed@ethersproject/base64@5.7.0(transitive)
- Removed@ethersproject/basex@5.7.0(transitive)
- Removed@ethersproject/bignumber@5.7.0(transitive)
- Removed@ethersproject/bytes@5.7.0(transitive)
- Removed@ethersproject/constants@5.7.0(transitive)
- Removed@ethersproject/contracts@5.7.0(transitive)
- Removed@ethersproject/hash@5.7.0(transitive)
- Removed@ethersproject/hdnode@5.7.0(transitive)
- Removed@ethersproject/json-wallets@5.7.0(transitive)
- Removed@ethersproject/keccak256@5.7.0(transitive)
- Removed@ethersproject/logger@5.7.0(transitive)
- Removed@ethersproject/networks@5.7.1(transitive)
- Removed@ethersproject/pbkdf2@5.7.0(transitive)
- Removed@ethersproject/properties@5.7.0(transitive)
- Removed@ethersproject/providers@5.7.2(transitive)
- Removed@ethersproject/random@5.7.0(transitive)
- Removed@ethersproject/rlp@5.7.0(transitive)
- Removed@ethersproject/sha2@5.7.0(transitive)
- Removed@ethersproject/signing-key@5.7.0(transitive)
- Removed@ethersproject/solidity@5.7.0(transitive)
- Removed@ethersproject/strings@5.7.0(transitive)
- Removed@ethersproject/transactions@5.7.0(transitive)
- Removed@ethersproject/units@5.7.0(transitive)
- Removed@ethersproject/wallet@5.7.0(transitive)
- Removed@ethersproject/web@5.7.1(transitive)
- Removed@ethersproject/wordlists@5.7.0(transitive)
- Removed@requestnetwork/multi-format@0.15.0(transitive)
- Removed@requestnetwork/types@0.29.0(transitive)
- Removed@requestnetwork/utils@0.28.0(transitive)
- Removed@types/bn.js@4.11.6(transitive)
- Removed@types/node@22.10.9(transitive)
- Removed@types/pbkdf2@3.1.2(transitive)
- Removed@types/secp256k1@4.0.6(transitive)
- Removedacorn@7.1.1(transitive)
- Removedaes-js@3.0.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbase-x@3.0.10(transitive)
- Removedbech32@1.1.4(transitive)
- Removedbindings@1.5.0(transitive)
- Removedbip66@1.1.5(transitive)
- Removedblakejs@1.2.1(transitive)
- Removedbn.js@4.12.15.1.35.2.1(transitive)
- Removedbrorand@1.1.0(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbs58@4.0.1(transitive)
- Removedbs58check@2.1.2(transitive)
- Removedbuffer-to-arraybuffer@0.0.5(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedcipher-base@1.0.6(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddom-walk@0.1.2(transitive)
- Removeddrbg.js@1.0.1(transitive)
- Removedeccrypto@1.1.5(transitive)
- Removedelliptic@6.5.36.5.4(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedeth-crypto@1.8.0(transitive)
- Removedeth-lib@0.2.8(transitive)
- Removedethereum-cryptography@0.1.3(transitive)
- Removedethereumjs-common@1.5.2(transitive)
- Removedethereumjs-tx@2.1.2(transitive)
- Removedethereumjs-util@6.2.17.0.5(transitive)
- Removedethers@5.0.13(transitive)
- Removedethjs-util@0.1.6(transitive)
- Removedevents@3.2.0(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedglobal@4.4.0(transitive)
- Removedhash-base@3.1.0(transitive)
- Removedhash.js@1.1.7(transitive)
- Removedhmac-drbg@1.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-function@1.0.2(transitive)
- Removedis-hex-prefixed@1.0.0(transitive)
- Removedjs-sha3@0.8.0(transitive)
- Removedkeccak@3.0.4(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removedmin-document@2.19.0(transitive)
- Removedminimalistic-assert@1.0.1(transitive)
- Removedminimalistic-crypto-utils@1.0.1(transitive)
- Removednan@2.14.0(transitive)
- Removednode-addon-api@2.0.2(transitive)
- Removednode-gyp-build@4.8.4(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedparse-headers@2.0.5(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedprocess@0.11.10(transitive)
- Removedquery-string@5.1.1(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedrlp@2.2.7(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedscrypt-js@3.0.1(transitive)
- Removedsecp256k1@3.7.14.0.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedsimple-get@2.8.2(transitive)
- Removedstrict-uri-encode@1.1.0(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-hex-prefix@1.0.0(transitive)
- Removedtimed-out@4.0.1(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedurl-set-query@1.0.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedws@7.4.6(transitive)
- Removedxhr@2.6.0(transitive)
- Removedxhr-request@1.1.0(transitive)
- Removedxhr-request-promise@0.1.3(transitive)
- Removedxtend@4.0.2(transitive)
Updated@requestnetwork/multi-format@0.15.1-next.709+44946236