@o3r/components 11.2.0-prerelease.50 → 11.2.0-prerelease.51
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/builders/component-extractor/index.d.ts.map +1 -1
- package/builders/component-extractor/index.js +3 -2
- package/package.json +11 -11
- package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -1
- package/schematics/ng-add/helpers/devtools-registration.js +2 -1
- package/schematics/ng-add/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/component-extractor/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAI3D,cAAc,UAAU,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gBAAgB,MAAM,KAAmB,MAGvE,CAAC;;AA4BF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/component-extractor/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAI3D,cAAc,UAAU,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gBAAgB,MAAM,KAAmB,MAGvE,CAAC;;AA4BF,wBAkJI"}
|
|
@@ -74,9 +74,10 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
|
|
|
74
74
|
context.reportProgress(3, STEP_NUMBER, 'Extracting component metadata');
|
|
75
75
|
const componentMetadata = await componentExtractor.extract(parserOutput, options);
|
|
76
76
|
// Validate configuration part of components metadata
|
|
77
|
-
|
|
77
|
+
const configurationMetadataSchemaPath = require.resolve('@o3r/configuration/schemas/configuration.metadata.schema.json');
|
|
78
|
+
(0, extractors_1.validateJson)(componentMetadata.configurations, JSON.parse(fs.readFileSync(configurationMetadataSchemaPath, { encoding: 'utf8' })), 'The output of configuration metadata is not valid regarding the json schema, please check the details below : \n', options.strictMode);
|
|
78
79
|
// Validate components part of components metadata
|
|
79
|
-
(0, extractors_1.validateJson)(componentMetadata.components,
|
|
80
|
+
(0, extractors_1.validateJson)(componentMetadata.components, JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../schemas/component.metadata.schema.json'), { encoding: 'utf8' })), 'The output of components metadata is not valid regarding the json schema, please check the details below : \n', options.strictMode);
|
|
80
81
|
// Ensure that each tuple (library,name) is unique
|
|
81
82
|
checkUniquenessLibraryAndName(componentMetadata.configurations);
|
|
82
83
|
context.reportProgress(4, STEP_NUMBER, `Writing components in ${options.configOutputFile}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/components",
|
|
3
|
-
"version": "11.2.0-prerelease.
|
|
3
|
+
"version": "11.2.0-prerelease.51",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@ngrx/effects": "~18.0.0",
|
|
45
45
|
"@ngrx/entity": "~18.0.0",
|
|
46
46
|
"@ngrx/store": "~18.0.0",
|
|
47
|
-
"@o3r/analytics": "^11.2.0-prerelease.
|
|
48
|
-
"@o3r/configuration": "^11.2.0-prerelease.
|
|
49
|
-
"@o3r/core": "^11.2.0-prerelease.
|
|
50
|
-
"@o3r/dynamic-content": "^11.2.0-prerelease.
|
|
51
|
-
"@o3r/extractors": "^11.2.0-prerelease.
|
|
52
|
-
"@o3r/localization": "^11.2.0-prerelease.
|
|
53
|
-
"@o3r/logger": "^11.2.0-prerelease.
|
|
54
|
-
"@o3r/rules-engine": "^11.2.0-prerelease.
|
|
55
|
-
"@o3r/schematics": "^11.2.0-prerelease.
|
|
56
|
-
"@o3r/testing": "^11.2.0-prerelease.
|
|
47
|
+
"@o3r/analytics": "^11.2.0-prerelease.51",
|
|
48
|
+
"@o3r/configuration": "^11.2.0-prerelease.51",
|
|
49
|
+
"@o3r/core": "^11.2.0-prerelease.51",
|
|
50
|
+
"@o3r/dynamic-content": "^11.2.0-prerelease.51",
|
|
51
|
+
"@o3r/extractors": "^11.2.0-prerelease.51",
|
|
52
|
+
"@o3r/localization": "^11.2.0-prerelease.51",
|
|
53
|
+
"@o3r/logger": "^11.2.0-prerelease.51",
|
|
54
|
+
"@o3r/rules-engine": "^11.2.0-prerelease.51",
|
|
55
|
+
"@o3r/schematics": "^11.2.0-prerelease.51",
|
|
56
|
+
"@o3r/testing": "^11.2.0-prerelease.51",
|
|
57
57
|
"@schematics/angular": "~18.2.0",
|
|
58
58
|
"@yarnpkg/cli": "^4.0.0",
|
|
59
59
|
"@yarnpkg/core": "^4.1.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-registration.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/devtools-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"devtools-registration.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/devtools-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAOvD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,YAAmB,qBAAqB,KAAG,OAAO,CAAC,IAAI,CAQnF,CAAC"}
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.registerDevtools = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path = tslib_1.__importStar(require("node:path"));
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
6
7
|
const DEVTOOL_MODULE_NAME = 'ComponentsDevtoolsModule';
|
|
7
8
|
const DEVTOOL_SERVICE_NAME = 'ComponentsDevtoolsMessageService';
|
|
8
|
-
const PACKAGE_NAME =
|
|
9
|
+
const PACKAGE_NAME = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', '..', 'package.json'), { encoding: 'utf8' })).name;
|
|
9
10
|
/**
|
|
10
11
|
* Register Devtools to the application
|
|
11
12
|
* @param tree
|
|
@@ -25,7 +25,7 @@ function ngAddFn(options) {
|
|
|
25
25
|
const { NodeDependencyType } = await Promise.resolve().then(() => tslib_1.__importStar(require('@schematics/angular/utility/dependencies')));
|
|
26
26
|
options = { ...getDefaultOptionsForSchematic(getWorkspaceConfig(tree), '@o3r/components', 'ng-add', options), ...options };
|
|
27
27
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
28
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: '
|
|
28
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
|
29
29
|
const depsInfo = getO3rPeerDeps(packageJsonPath);
|
|
30
30
|
if (options.enableMetadataExtract) {
|
|
31
31
|
depsInfo.o3rPeerDeps = [...depsInfo.o3rPeerDeps, '@o3r/extractors'];
|