@ama-sdk/client-beacon 12.5.0-prerelease.9 → 13.0.0-next.0
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-beacon",
|
3
|
-
"version": "
|
3
|
+
"version": "13.0.0-next.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -38,18 +38,19 @@
|
|
38
38
|
"build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@o3r/schematics": "^
|
41
|
+
"@o3r/schematics": "^13.0.0-next.0",
|
42
42
|
"@swc/helpers": "~0.5.0",
|
43
43
|
"tslib": "^2.6.2",
|
44
44
|
"uuid": "^11.0.5"
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
|
-
"@ama-sdk/core": "^
|
47
|
+
"@ama-sdk/core": "^13.0.0-next.0",
|
48
48
|
"@angular-devkit/schematics": "^19.0.0",
|
49
49
|
"@angular/cli": "^19.0.0",
|
50
50
|
"@angular/common": "^19.0.0",
|
51
|
-
"@o3r/schematics": "^
|
51
|
+
"@o3r/schematics": "^13.0.0-next.0",
|
52
52
|
"@schematics/angular": "^19.0.0",
|
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": "^
|
80
|
+
"@ama-sdk/core": "^13.0.0-next.0",
|
77
81
|
"@angular-devkit/core": "~19.2.0",
|
78
82
|
"@angular-devkit/schematics": "~19.2.0",
|
79
83
|
"@angular/common": "~19.2.0",
|
@@ -81,9 +85,9 @@
|
|
81
85
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
82
86
|
"@nx/eslint-plugin": "~20.8.0",
|
83
87
|
"@nx/jest": "~20.8.0",
|
84
|
-
"@o3r/build-helpers": "^
|
85
|
-
"@o3r/eslint-plugin": "^
|
86
|
-
"@o3r/test-helpers": "^
|
88
|
+
"@o3r/build-helpers": "^13.0.0-next.0",
|
89
|
+
"@o3r/eslint-plugin": "^13.0.0-next.0",
|
90
|
+
"@o3r/test-helpers": "^13.0.0-next.0",
|
87
91
|
"@schematics/angular": "~19.2.0",
|
88
92
|
"@stylistic/eslint-plugin": "~3.1.0",
|
89
93
|
"@stylistic/eslint-plugin-ts": "~3.1.0",
|
@@ -100,7 +104,7 @@
|
|
100
104
|
"eslint-import-resolver-typescript": "~3.10.0",
|
101
105
|
"eslint-plugin-import": "~2.31.0",
|
102
106
|
"eslint-plugin-import-newlines": "~1.4.0",
|
103
|
-
"eslint-plugin-jest": "~28.
|
107
|
+
"eslint-plugin-jest": "~28.14.0",
|
104
108
|
"eslint-plugin-jsdoc": "~50.8.0",
|
105
109
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
106
110
|
"eslint-plugin-unicorn": "~56.0.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;AAkBpC,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;AAkBpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAyDlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
|
@@ -4,9 +4,9 @@ exports.ngAdd = void 0;
|
|
4
4
|
const path = require("node:path");
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
6
6
|
const schematics_2 = require("@o3r/schematics");
|
7
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
8
7
|
const import_map_1 = require("./migration/import-map");
|
9
8
|
const devDependenciesToInstall = [];
|
9
|
+
const dependenciesToInstall = [];
|
10
10
|
/**
|
11
11
|
* Add SDk Beacon Client to an Otter Project
|
12
12
|
* @param options
|
@@ -16,6 +16,7 @@ function ngAddFn(options) {
|
|
16
16
|
const workspaceProject = options.projectName ? (0, schematics_2.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
|
17
17
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
18
18
|
const depsInfo = (0, schematics_2.getO3rPeerDeps)(packageJsonPath);
|
19
|
+
const projectPackageJson = tree.readJson(path.posix.join(workspaceProject?.root || '.', 'package.json'));
|
19
20
|
const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
|
20
21
|
acc[dep] = {
|
21
22
|
inManifest: [{
|
@@ -26,22 +27,23 @@ function ngAddFn(options) {
|
|
26
27
|
};
|
27
28
|
return acc;
|
28
29
|
}, (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
};
|
37
|
-
});
|
30
|
+
const externalDependenciesInfo = (0, schematics_2.getExternalDependenciesInfo)({
|
31
|
+
devDependenciesToInstall,
|
32
|
+
dependenciesToInstall,
|
33
|
+
o3rPackageJsonPath: packageJsonPath,
|
34
|
+
projectPackageJson,
|
35
|
+
projectType: workspaceProject?.projectType
|
36
|
+
}, context.logger);
|
38
37
|
return (0, schematics_1.chain)([
|
39
38
|
// optional custom action dedicated to this module
|
40
39
|
options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
|
41
40
|
// add the missing Otter modules in the current project
|
42
41
|
(0, schematics_2.setupDependencies)({
|
43
42
|
projectName: options.projectName,
|
44
|
-
dependencies
|
43
|
+
dependencies: {
|
44
|
+
...dependencies,
|
45
|
+
...externalDependenciesInfo
|
46
|
+
},
|
45
47
|
ngAddToRun: depsInfo.o3rPeerDeps
|
46
48
|
}),
|
47
49
|
(0, schematics_2.updateImports)(import_map_1.mapMigrationFromCoreImports)
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAIoC;AACpC,gDAUyB;AAIzB,uDAEgC;AAKhC,MAAM,wBAAwB,GAAa,EAE1C,CAAC;AACF,MAAM,qBAAqB,GAAa,EAEvC,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAA,+BAAkB,EAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACnH,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QAC5E,MAAM,QAAQ,GAAG,IAAA,2BAAc,EAAC,eAAe,CAAC,CAAC;QACjD,MAAM,kBAAkB,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,IAAI,GAAG,EAAE,cAAc,CAAC,CAAgB,CAAC;QACxH,MAAM,YAAY,GAAG,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AA8B,EAAE,EAAE,CAAC,IAAA,iCAAoB,EAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AAAnF,QAAA,KAAK,SAA8E"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"import-map.js","sourceRoot":"","sources":["../../../../schematics/ng-add/migration/import-map.ts"],"names":[],"mappings":";;;AAAA,MAAM,cAAc,GAAG;IACrB,UAAU,EAAE,wBAAwB;CACrC,CAAC;AAEW,QAAA,2BAA2B,GAAG;IACzC,eAAe,EAAE;QACf,4BAA4B;QAC5B,gCAAgC;QAChC,iBAAiB;KAClB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,EAA2C,CAAC;CAC3G,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}
|