@next-core/brick-utils 2.37.10 → 2.37.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.bundle.js +3 -2
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.37.11](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.37.10...@next-core/brick-utils@2.37.11) (2022-04-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/brick-utils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.37.10](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.37.9...@next-core/brick-utils@2.37.10) (2022-04-22)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @next-core/brick-utils
|
package/dist/index.bundle.js
CHANGED
|
@@ -1425,9 +1425,10 @@
|
|
|
1425
1425
|
throw new TypeError("Cannot access reserved objects such as `Function`.");
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
var allowedConstructors = new WeakSet([Array,
|
|
1428
|
+
var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet]);
|
|
1429
1429
|
function isAllowedConstructor(constructor) {
|
|
1430
|
-
|
|
1430
|
+
// `Date` maybe mocked when running tests for storyboard functions.
|
|
1431
|
+
return allowedConstructors.has(constructor) || constructor === Date;
|
|
1431
1432
|
}
|
|
1432
1433
|
|
|
1433
1434
|
/** For next-core internal usage only. */
|