mirror of
https://github.com/FlipsideCrypto/near-bos-vm.git
synced 2026-02-06 11:18:24 +00:00
Replace lodash dep with lodash.clonedeep
This commit is contained in:
parent
fe3078c20f
commit
c92248dd82
@ -65,6 +65,7 @@ const index = Social.index(
|
||||
}
|
||||
);
|
||||
```
|
||||
|
||||
- Replace `lodash` dependency with `lodash.clonedeep` to reduce bundle size.
|
||||
|
||||
## 2.3.2
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -48,7 +48,7 @@
|
||||
"idb": "^7.1.1",
|
||||
"iframe-resizer-react": "^1.1.0",
|
||||
"local-storage": "^2.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"mdast-util-find-and-replace": "^2.0.0",
|
||||
"nanoid": "^4.0.1",
|
||||
"prettier": "^2.7.1",
|
||||
|
||||
@ -28,7 +28,7 @@ import BN from "bn.js";
|
||||
import * as nacl from "tweetnacl";
|
||||
import SecureIframe from "../components/SecureIframe";
|
||||
import { nanoid, customAlphabet } from "nanoid";
|
||||
import _ from "lodash";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { Parser } from "acorn";
|
||||
import jsx from "acorn-jsx";
|
||||
import { ethers } from "ethers";
|
||||
@ -2155,7 +2155,7 @@ export default class VM {
|
||||
nacl: frozenNacl,
|
||||
get elliptic() {
|
||||
delete this.elliptic;
|
||||
this.elliptic = _.cloneDeep(elliptic);
|
||||
this.elliptic = cloneDeep(elliptic);
|
||||
return this.elliptic;
|
||||
},
|
||||
ethers: frozenEthers,
|
||||
|
||||
@ -5529,6 +5529,11 @@ locate-path@^5.0.0:
|
||||
dependencies:
|
||||
p-locate "^4.1.0"
|
||||
|
||||
lodash.clonedeep@^4.5.0:
|
||||
version "4.5.0"
|
||||
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
|
||||
integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==
|
||||
|
||||
lodash.debounce@^4.0.8:
|
||||
version "4.0.8"
|
||||
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user