@next-core/brick-utils 2.45.10 → 2.45.12
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/dist/index.bundle.js +2755 -6455
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +2755 -6455
- package/dist/index.esm.js.map +1 -1
- package/dist/types/getDllAndDepsOfStoryboard.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/scanBricksInStoryboard.d.ts +1 -4
- package/dist/types/scanStoryboard.d.ts +2 -4
- package/package.json +7 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export * from "./cook";
|
|
|
19
19
|
export * from "./resolveContextConcurrently";
|
|
20
20
|
export * from "./scanCustomApisInStoryboard";
|
|
21
21
|
export * from "./smartDisplayForEvaluableString";
|
|
22
|
-
export { scanStoryboard, scanStoryboardAst, collectBricksByCustomTemplates, } from "./scanStoryboard";
|
|
22
|
+
export { type ScanBricksOptions, scanStoryboard, scanStoryboardAst, collectBricksByCustomTemplates, } from "./scanStoryboard";
|
|
23
23
|
export * from "./JsonStorage";
|
|
24
24
|
export * from "./builder";
|
|
25
25
|
export * from "./deepFreeze";
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Storyboard, BrickConf } from "@next-core/brick-types";
|
|
2
|
-
|
|
3
|
-
keepDuplicates?: boolean;
|
|
4
|
-
ignoreBricksInUnusedCustomTemplates?: boolean;
|
|
5
|
-
}
|
|
2
|
+
import { ScanBricksOptions } from "./scanStoryboard";
|
|
6
3
|
/**
|
|
7
4
|
* Scan bricks in storyboard.
|
|
8
5
|
*
|
|
@@ -10,10 +10,7 @@ export interface ScanBricksOptions {
|
|
|
10
10
|
* @param storyboard - Storyboard.
|
|
11
11
|
* @param options - If options is a boolean, it means `isUniq` or `de-duplicate`.
|
|
12
12
|
*/
|
|
13
|
-
export declare function scanStoryboard(storyboard: Storyboard, options?: boolean | ScanBricksOptions):
|
|
14
|
-
bricks: string[];
|
|
15
|
-
customApis: string[];
|
|
16
|
-
};
|
|
13
|
+
export declare function scanStoryboard(storyboard: Storyboard, options?: boolean | ScanBricksOptions): ReturnType<typeof scanStoryboardAst>;
|
|
17
14
|
/**
|
|
18
15
|
* Scan bricks and custom apis in storyboard.
|
|
19
16
|
*
|
|
@@ -23,6 +20,7 @@ export declare function scanStoryboard(storyboard: Storyboard, options?: boolean
|
|
|
23
20
|
export declare function scanStoryboardAst(ast: StoryboardNodeRoot, options?: boolean | ScanBricksOptions): {
|
|
24
21
|
bricks: string[];
|
|
25
22
|
customApis: string[];
|
|
23
|
+
usedTemplates: string[];
|
|
26
24
|
};
|
|
27
25
|
export declare function collectBricksInBrickConf(brickConf: BrickConf): string[];
|
|
28
26
|
export declare function collectBricksByCustomTemplates(customTemplates: CustomTemplate[]): Map<string, string[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-utils",
|
|
3
|
-
"version": "2.45.
|
|
3
|
+
"version": "2.45.12",
|
|
4
4
|
"description": "Pure utility functions for kernel",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-utils",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@next-core/brick-types": "^2.82.
|
|
33
|
-
"@next-core/cook": "^1.6.
|
|
34
|
-
"@next-core/storyboard": "^0.3.
|
|
32
|
+
"@next-core/brick-types": "^2.82.1",
|
|
33
|
+
"@next-core/cook": "^1.6.79",
|
|
34
|
+
"@next-core/storyboard": "^0.3.1",
|
|
35
35
|
"file-saver": "^2.0.5",
|
|
36
36
|
"path-to-regexp": "^6.2.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@next-core/pipes": "^1.0.
|
|
40
|
-
"@next-core/rollup-config-factory": "^2.6.
|
|
39
|
+
"@next-core/pipes": "^1.0.15",
|
|
40
|
+
"@next-core/rollup-config-factory": "^2.6.5",
|
|
41
41
|
"js-yaml": "^3.14.1",
|
|
42
42
|
"lodash": "^4.17.21",
|
|
43
43
|
"moment": "^2.29.4"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"lodash": "*",
|
|
49
49
|
"moment": "*"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "c1040bc38d16aa9fd662bd27ccbcd464b073aa63"
|
|
52
52
|
}
|