@ama-sdk/client-angular 12.2.4 → 12.2.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/client-angular",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -43,13 +43,14 @@
|
|
|
43
43
|
"uuid": "^11.0.5"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@ama-sdk/core": "^12.2.
|
|
46
|
+
"@ama-sdk/core": "^12.2.7",
|
|
47
47
|
"@angular-devkit/schematics": "^19.0.0",
|
|
48
48
|
"@angular/cli": "^19.0.0",
|
|
49
49
|
"@angular/common": "^19.0.0",
|
|
50
|
-
"@o3r/schematics": "^12.2.
|
|
50
|
+
"@o3r/schematics": "^12.2.7",
|
|
51
51
|
"@schematics/angular": "^19.0.0",
|
|
52
52
|
"rxjs": "^7.8.1",
|
|
53
|
+
"type-fest": "^4.30.1",
|
|
53
54
|
"typescript": "^5.5.4"
|
|
54
55
|
},
|
|
55
56
|
"peerDependenciesMeta": {
|
|
@@ -68,12 +69,15 @@
|
|
|
68
69
|
"@schematics/angular": {
|
|
69
70
|
"optional": true
|
|
70
71
|
},
|
|
72
|
+
"type-fest": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
71
75
|
"typescript": {
|
|
72
76
|
"optional": true
|
|
73
77
|
}
|
|
74
78
|
},
|
|
75
79
|
"devDependencies": {
|
|
76
|
-
"@ama-sdk/core": "^12.2.
|
|
80
|
+
"@ama-sdk/core": "^12.2.7",
|
|
77
81
|
"@angular-devkit/core": "~19.2.0",
|
|
78
82
|
"@angular-devkit/schematics": "~19.2.0",
|
|
79
83
|
"@angular/common": "~19.2.0",
|
|
@@ -81,10 +85,10 @@
|
|
|
81
85
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
82
86
|
"@nx/eslint-plugin": "~20.6.0",
|
|
83
87
|
"@nx/jest": "~20.6.0",
|
|
84
|
-
"@o3r/build-helpers": "^12.2.
|
|
85
|
-
"@o3r/eslint-plugin": "^12.2.
|
|
86
|
-
"@o3r/schematics": "^12.2.
|
|
87
|
-
"@o3r/test-helpers": "^12.2.
|
|
88
|
+
"@o3r/build-helpers": "^12.2.7",
|
|
89
|
+
"@o3r/eslint-plugin": "^12.2.7",
|
|
90
|
+
"@o3r/schematics": "^12.2.7",
|
|
91
|
+
"@o3r/test-helpers": "^12.2.7",
|
|
88
92
|
"@schematics/angular": "~19.2.0",
|
|
89
93
|
"@stylistic/eslint-plugin": "~3.1.0",
|
|
90
94
|
"@stylistic/eslint-plugin-ts": "~3.1.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAOpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAOpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAoFlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,KAAG,IAKtD,CAAC"}
|
|
@@ -3,8 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
4
|
const path = require("node:path");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
7
6
|
const import_map_1 = require("./migration/import-map");
|
|
7
|
+
/**
|
|
8
|
+
* List of external dependencies to be added to the project as peer dependencies
|
|
9
|
+
*/
|
|
10
|
+
const dependenciesToInstall = [
|
|
11
|
+
'rxjs'
|
|
12
|
+
];
|
|
13
|
+
/**
|
|
14
|
+
* List of external dependencies to be added to the project as dev dependencies
|
|
15
|
+
*/
|
|
8
16
|
const devDependenciesToInstall = [];
|
|
9
17
|
const reportMissingSchematicsDep = (logger) => (reason) => {
|
|
10
18
|
logger.error(`[ERROR]: Adding @ama-sdk/client-angular has failed.
|
|
@@ -19,7 +27,7 @@ Otherwise, use the error message as guidance.`);
|
|
|
19
27
|
function ngAddFn(options) {
|
|
20
28
|
return async (tree, context) => {
|
|
21
29
|
// use dynamic import to properly raise an exception if it is not an Otter project.
|
|
22
|
-
const { getPackageInstallConfig, applyEsLintFix, setupDependencies, getO3rPeerDeps, getProjectNewDependenciesTypes, getWorkspaceConfig,
|
|
30
|
+
const { getPackageInstallConfig, applyEsLintFix, setupDependencies, getO3rPeerDeps, getProjectNewDependenciesTypes, getWorkspaceConfig, getExternalDependenciesInfo, updateImports } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
23
31
|
const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
|
|
24
32
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
25
33
|
const depsInfo = getO3rPeerDeps(packageJsonPath);
|
|
@@ -33,22 +41,25 @@ function ngAddFn(options) {
|
|
|
33
41
|
};
|
|
34
42
|
return acc;
|
|
35
43
|
}, getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
44
|
+
const projectDirectory = workspaceProject?.root || '.';
|
|
45
|
+
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
46
|
+
const externalDependenciesInfo = getExternalDependenciesInfo({
|
|
47
|
+
devDependenciesToInstall,
|
|
48
|
+
dependenciesToInstall,
|
|
49
|
+
projectType: workspaceProject?.projectType,
|
|
50
|
+
o3rPackageJsonPath: packageJsonPath,
|
|
51
|
+
projectPackageJson
|
|
52
|
+
}, context.logger);
|
|
45
53
|
return (0, schematics_1.chain)([
|
|
46
54
|
// optional custom action dedicated to this module
|
|
47
55
|
options.skipLinter ? (0, schematics_1.noop)() : applyEsLintFix(),
|
|
48
56
|
// add the missing Otter modules in the current project
|
|
49
57
|
setupDependencies({
|
|
50
58
|
projectName: options.projectName,
|
|
51
|
-
dependencies
|
|
59
|
+
dependencies: {
|
|
60
|
+
...dependencies,
|
|
61
|
+
...externalDependenciesInfo
|
|
62
|
+
},
|
|
52
63
|
ngAddToRun: depsInfo.o3rPeerDeps
|
|
53
64
|
}),
|
|
54
65
|
updateImports(import_map_1.mapMigrationFromCoreImports)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAIoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAIoC;AAIpC,uDAEgC;AAKhC;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,MAAM;CACP,CAAC;AAEF;;GAEG;AACH,MAAM,wBAAwB,GAAa,EAC1C,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,MAA2C,EAAE,EAAE,CAAC,CAAC,MAAW,EAAE,EAAE;IAClG,MAAM,CAAC,KAAK,CAAC;;8CAE+B,CAAC,CAAC;IAC9C,MAAM,MAAM,CAAC;AACf,CAAC,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,OAAO,KAAK,EAAE,IAAI,EAAE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