Merge branch 'dev' of github.com:NearSocial/VM into no-stale

This commit is contained in:
Evgeny Kuzyakov 2023-09-08 09:17:08 -07:00
commit c34378da37
5 changed files with 10 additions and 4 deletions

View File

@ -26,6 +26,7 @@ const index = Social.index(
}
);
```
- Replace `lodash` dependency with `lodash.clonedeep` to reduce bundle size.
## 2.3.2

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

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

View File

@ -26,7 +26,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";
@ -2061,7 +2061,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,

View File

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