@ama-sdk/client-beacon 13.0.0-prerelease.3 → 13.0.0-rc.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": "13.0.0-prerelease.3",
3
+ "version": "13.0.0-rc.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,17 +35,17 @@
35
35
  "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
36
36
  },
37
37
  "dependencies": {
38
- "@o3r/schematics": "^13.0.0-prerelease.3",
38
+ "@o3r/schematics": "^13.0.0-rc.0",
39
39
  "@swc/helpers": "~0.5.0",
40
40
  "tslib": "^2.6.2",
41
41
  "uuid": "^11.0.5"
42
42
  },
43
43
  "peerDependencies": {
44
- "@ama-sdk/core": "^13.0.0-prerelease.3",
44
+ "@ama-sdk/core": "^13.0.0-rc.0",
45
45
  "@angular-devkit/schematics": "^20.0.0",
46
46
  "@angular/cli": "^20.0.0",
47
47
  "@angular/common": "^20.0.0",
48
- "@o3r/schematics": "^13.0.0-prerelease.3",
48
+ "@o3r/schematics": "^13.0.0-rc.0",
49
49
  "@schematics/angular": "^20.0.0",
50
50
  "type-fest": "^4.30.1",
51
51
  "typescript": "^5.8.0"
@@ -74,7 +74,7 @@
74
74
  }
75
75
  },
76
76
  "devDependencies": {
77
- "@ama-sdk/core": "^13.0.0-prerelease.3",
77
+ "@ama-sdk/core": "^13.0.0-rc.0",
78
78
  "@angular-devkit/core": "~20.0.0",
79
79
  "@angular-devkit/schematics": "~20.0.0",
80
80
  "@angular/common": "~20.0.0",
@@ -82,13 +82,13 @@
82
82
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
83
83
  "@nx/eslint-plugin": "~21.3.11",
84
84
  "@nx/jest": "~21.3.11",
85
- "@o3r/build-helpers": "^13.0.0-prerelease.3",
86
- "@o3r/eslint-plugin": "^13.0.0-prerelease.3",
87
- "@o3r/test-helpers": "^13.0.0-prerelease.3",
85
+ "@o3r/build-helpers": "^13.0.0-rc.0",
86
+ "@o3r/eslint-plugin": "^13.0.0-rc.0",
87
+ "@o3r/test-helpers": "^13.0.0-rc.0",
88
88
  "@schematics/angular": "~20.0.0",
89
89
  "@stylistic/eslint-plugin": "~5.2.0",
90
90
  "@swc/cli": "~0.7.7",
91
- "@swc/core": "~1.12.0",
91
+ "@swc/core": "~1.13.0",
92
92
  "@types/jest": "~29.5.2",
93
93
  "@types/node": "^22.0.0",
94
94
  "@typescript-eslint/parser": "~8.41.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;AAyDlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,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;AAUpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAuBlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
@@ -7,48 +7,17 @@ const schematics_2 = require("@o3r/schematics");
7
7
  const import_map_1 = require("./migration/import-map");
8
8
  const devDependenciesToInstall = [];
9
9
  const dependenciesToInstall = [];
10
+ const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
10
11
  /**
11
12
  * Add SDk Beacon Client to an Otter Project
12
13
  * @param options
13
14
  */
14
15
  function ngAddFn(options) {
15
- return (tree, context) => {
16
- const workspaceProject = options.projectName ? (0, schematics_2.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
17
- const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
18
- const depsInfo = (0, schematics_2.getO3rPeerDeps)(packageJsonPath);
19
- const projectPackageJson = tree.readJson(path.posix.join(workspaceProject?.root || '.', 'package.json'));
20
- const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
21
- acc[dep] = {
22
- inManifest: [{
23
- range: `${options.exactO3rVersion ? '' : '~'}${depsInfo.packageVersion}`,
24
- types: (0, schematics_2.getProjectNewDependenciesTypes)(workspaceProject)
25
- }],
26
- ngAddOptions: { exactO3rVersion: options.exactO3rVersion }
27
- };
28
- return acc;
29
- }, (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
30
- const externalDependenciesInfo = (0, schematics_2.getExternalDependenciesInfo)({
31
- devDependenciesToInstall,
32
- dependenciesToInstall,
33
- o3rPackageJsonPath: packageJsonPath,
34
- projectPackageJson,
35
- projectType: workspaceProject?.projectType
36
- }, context.logger);
37
- return (0, schematics_1.chain)([
38
- // optional custom action dedicated to this module
39
- options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
40
- // add the missing Otter modules in the current project
41
- (0, schematics_2.setupDependencies)({
42
- projectName: options.projectName,
43
- dependencies: {
44
- ...dependencies,
45
- ...externalDependenciesInfo
46
- },
47
- ngAddToRun: depsInfo.o3rPeerDeps
48
- }),
49
- (0, schematics_2.updateImports)(import_map_1.mapMigrationFromCoreImports)
50
- ]);
51
- };
16
+ return (0, schematics_1.chain)([
17
+ options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
18
+ (0, schematics_2.ngAddDependenciesRule)(options, packageJsonPath, { dependenciesToInstall, devDependenciesToInstall }),
19
+ (0, schematics_2.updateImports)(import_map_1.mapMigrationFromCoreImports)
20
+ ]);
52
21
  }
53
22
  /**
54
23
  * Add SDk Beacon Client to an Otter Project
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAIoC;AACpC,gDAKyB;AACzB,uDAEgC;AAKhC,MAAM,wBAAwB,GAAa,EAE1C,CAAC;AACF,MAAM,qBAAqB,GAAa,EAEvC,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,OAAO,IAAA,kBAAK,EAAC;QACX,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,IAAA,2BAAc,GAAE;QAC9C,IAAA,kCAAqB,EAAC,OAAO,EAAE,eAAe,EAAE,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAC;QACpG,IAAA,0BAAa,EAAC,wCAA2B,CAAC;KAC3C,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,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"}
@@ -1,6 +1,4 @@
1
- import type { SchematicOptionObject } from '@o3r/schematics';
2
- export interface NgAddSchematicsSchema extends SchematicOptionObject {
3
- /** Project name */
4
- projectName?: string | undefined;
1
+ import type { NgAddOptions, SchematicOptionObject } from '@o3r/schematics';
2
+ export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
5
3
  }
6
4
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,qBAAqB;CAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}