@next-core/brick-utils 2.37.10 → 2.37.13
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 +27 -0
- package/dist/index.bundle.js +4 -3
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.13](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.37.12...@next-core/brick-utils@2.37.13) (2022-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* ignore screenshot in builder nodes ([1e59600](https://github.com/easyops-cn/next-core/commit/1e59600e13bb95ffdf8d3440b60d77b39efa075b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.37.12](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.37.11...@next-core/brick-utils@2.37.12) (2022-05-06)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @next-core/brick-utils
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [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)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @next-core/brick-utils
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [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
34
|
|
|
8
35
|
**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. */
|
|
@@ -22659,7 +22660,7 @@
|
|
|
22659
22660
|
|
|
22660
22661
|
var yamlFieldsInBrick = ["permissionsPreCheck", "transformFrom"]; // Fields started with `_` will be removed by default.
|
|
22661
22662
|
|
|
22662
|
-
var baseFieldsToRemove = ["appId", "children", "creator", "ctime", "id", "graphInfo", "modifier", "mountPoint", "mtime", "org", "parent", "sort", "name", "providersBak", "providers_bak", "previewSettings", "deleteAuthorizers", "readAuthorizers", "updateAuthorizers"];
|
|
22663
|
+
var baseFieldsToRemove = ["appId", "children", "creator", "ctime", "id", "graphInfo", "modifier", "mountPoint", "mtime", "org", "parent", "sort", "name", "providersBak", "providers_bak", "previewSettings", "screenshot", "deleteAuthorizers", "readAuthorizers", "updateAuthorizers"];
|
|
22663
22664
|
var fieldsToRemoveInRoute = baseFieldsToRemove.concat("instanceId");
|
|
22664
22665
|
var fieldsToRemoveInBrick = baseFieldsToRemove.concat("type", "alias"); // Those fields can be disposed if value is null.
|
|
22665
22666
|
|