Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@requestnetwork/epk-decryption

Package Overview
Dependencies
Maintainers
0
Versions
678
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@requestnetwork/epk-decryption - npm Package Compare versions

Comparing version 0.3.24 to 0.3.25-next.709

29

dist/epk-decryption.min.js.LICENSE.txt

@@ -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

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