New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metamask-institutional/custody-keyring

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask-institutional/custody-keyring - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

7

CHANGELOG.md

@@ -14,2 +14,9 @@ # Change Log

## [0.0.20](https://github.com/consensys-vertical-apps/metamask-institutional/compare/custody-keyring-v0.0.19...custody-keyring-v0.0.20) (2023-05-13)
### Bug Fixes
* **lodash:** removes the full lodash package to install only the method needed ([#263](https://github.com/consensys-vertical-apps/metamask-institutional/issues/263)) ([f5c7f4f](https://github.com/consensys-vertical-apps/metamask-institutional/commit/f5c7f4fd23017e8be7e353349dacc72370e33317))
## [0.0.19](https://github.com/consensys-vertical-apps/metamask-institutional/compare/custody-keyring-v0.0.18...custody-keyring-v0.0.19) (2023-04-20)

@@ -16,0 +23,0 @@

7

dist/migrations/001.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = require("@metamask-institutional/types");
const lodash_1 = require("lodash");
const lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
const version = 1;

@@ -14,3 +17,3 @@ const keyringTypesToChange = ["Custody - Curv", "Custody - Qredo", "Custody - Jupiter"];

if (keyringTypesToChange.includes(keyring.type)) {
versionedKeyring = (0, lodash_1.cloneDeep)(keyring);
versionedKeyring = (0, lodash_clonedeep_1.default)(keyring);
if (((_a = versionedKeyring.meta) === null || _a === void 0 ? void 0 : _a.version) !== version) {

@@ -17,0 +20,0 @@ versionedKeyring.meta = {

@@ -9,3 +9,3 @@ "use strict";

const fs_1 = __importDefault(require("fs"));
const lodash_1 = require("lodash");
const lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
const _1 = require(".");

@@ -19,3 +19,3 @@ const __1 = require("..");

migrate: state => {
const clonedData = (0, lodash_1.cloneDeep)(state);
const clonedData = (0, lodash_clonedeep_1.default)(state);
clonedData.meta = {

@@ -31,3 +31,3 @@ version: 1,

migrate: state => {
const clonedData = (0, lodash_1.cloneDeep)(state);
const clonedData = (0, lodash_clonedeep_1.default)(state);
clonedData.meta = {

@@ -43,3 +43,3 @@ version: 2,

migrate: state => {
const clonedData = (0, lodash_1.cloneDeep)(state);
const clonedData = (0, lodash_clonedeep_1.default)(state);
clonedData.meta = {

@@ -46,0 +46,0 @@ version: 3,

{
"name": "@metamask-institutional/custody-keyring",
"version": "0.0.19",
"version": "0.0.20",
"description": "The Custody Keyring Class is the initial point of contact with a custodian, it gets access to the sdk and all methods of interaction with a custodian, like custodian accounts, sign a tx, account details, tx details.",

@@ -30,3 +30,3 @@ "author": "Albert Olive <albertolivecorbella@gmail.com>",

},
"gitHead": "17315b93181a41cbf4bfd082f221bd23c3a92132",
"gitHead": "c903f1472c14094b74e7e118f11ef6855ace97fc",
"dependencies": {

@@ -40,3 +40,3 @@ "@ethereumjs/tx": "^4.1.1",

"crypto": "^1.0.1",
"lodash": "^4.17.21"
"lodash.clonedeep": "^4.5.0"
},

@@ -43,0 +43,0 @@ "devDependencies": {

{
"name": "@metamask-institutional/custody-keyring",
"version": "0.0.19",
"version": "0.0.20",
"description": "The Custody Keyring Class is the initial point of contact with a custodian, it gets access to the sdk and all methods of interaction with a custodian, like custodian accounts, sign a tx, account details, tx details.",

@@ -30,3 +30,3 @@ "author": "Albert Olive <albertolivecorbella@gmail.com>",

},
"gitHead": "17315b93181a41cbf4bfd082f221bd23c3a92132",
"gitHead": "c903f1472c14094b74e7e118f11ef6855ace97fc",
"dependencies": {

@@ -40,3 +40,3 @@ "@ethereumjs/tx": "^4.1.1",

"crypto": "^1.0.1",
"lodash": "^4.17.21"
"lodash.clonedeep": "^4.5.0"
},

@@ -43,0 +43,0 @@ "devDependencies": {

import { AuthTypes } from "@metamask-institutional/types";
import { cloneDeep } from "lodash";
import cloneDeep from "lodash.clonedeep";

@@ -4,0 +4,0 @@ import { CustodyKeyring } from "../CustodyKeyring";

import { AuthTypes } from "@metamask-institutional/types";
import { strict as assert } from "assert";
import fs from "fs";
import { cloneDeep } from "lodash";
import cloneDeep from "lodash.clonedeep";

@@ -6,0 +6,0 @@ import { migrations as liveMigrations } from ".";

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