@ama-sdk/client-fetch 12.5.0-prerelease.8 → 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-fetch",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0-next.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,20 +38,21 @@
|
|
|
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
|
"ts-node": "~10.9.2",
|
|
44
44
|
"tslib": "^2.6.2",
|
|
45
45
|
"uuid": "^11.0.5"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@ama-sdk/core": "^
|
|
48
|
+
"@ama-sdk/core": "^13.0.0-next.0",
|
|
49
49
|
"@angular-devkit/schematics": "^19.0.0",
|
|
50
50
|
"@angular/cli": "^19.0.0",
|
|
51
51
|
"@angular/common": "^19.0.0",
|
|
52
|
-
"@o3r/schematics": "^
|
|
52
|
+
"@o3r/schematics": "^13.0.0-next.0",
|
|
53
53
|
"@schematics/angular": "^19.0.0",
|
|
54
54
|
"isomorphic-fetch": "^3.0.0",
|
|
55
|
+
"type-fest": "^4.30.1",
|
|
55
56
|
"typescript": "^5.5.4"
|
|
56
57
|
},
|
|
57
58
|
"peerDependenciesMeta": {
|
|
@@ -73,12 +74,15 @@
|
|
|
73
74
|
"isomorphic-fetch": {
|
|
74
75
|
"optional": true
|
|
75
76
|
},
|
|
77
|
+
"type-fest": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
76
80
|
"typescript": {
|
|
77
81
|
"optional": true
|
|
78
82
|
}
|
|
79
83
|
},
|
|
80
84
|
"devDependencies": {
|
|
81
|
-
"@ama-sdk/core": "^
|
|
85
|
+
"@ama-sdk/core": "^13.0.0-next.0",
|
|
82
86
|
"@angular-devkit/core": "~19.2.0",
|
|
83
87
|
"@angular-devkit/schematics": "~19.2.0",
|
|
84
88
|
"@angular/common": "~19.2.0",
|
|
@@ -86,9 +90,9 @@
|
|
|
86
90
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
87
91
|
"@nx/eslint-plugin": "~20.8.0",
|
|
88
92
|
"@nx/jest": "~20.8.0",
|
|
89
|
-
"@o3r/build-helpers": "^
|
|
90
|
-
"@o3r/eslint-plugin": "^
|
|
91
|
-
"@o3r/test-helpers": "^
|
|
93
|
+
"@o3r/build-helpers": "^13.0.0-next.0",
|
|
94
|
+
"@o3r/eslint-plugin": "^13.0.0-next.0",
|
|
95
|
+
"@o3r/test-helpers": "^13.0.0-next.0",
|
|
92
96
|
"@schematics/angular": "~19.2.0",
|
|
93
97
|
"@stylistic/eslint-plugin": "~3.1.0",
|
|
94
98
|
"@stylistic/eslint-plugin-ts": "~3.1.0",
|
|
@@ -105,7 +109,7 @@
|
|
|
105
109
|
"eslint-import-resolver-typescript": "~3.10.0",
|
|
106
110
|
"eslint-plugin-import": "~2.31.0",
|
|
107
111
|
"eslint-plugin-import-newlines": "~1.4.0",
|
|
108
|
-
"eslint-plugin-jest": "~28.
|
|
112
|
+
"eslint-plugin-jest": "~28.14.0",
|
|
109
113
|
"eslint-plugin-jsdoc": "~50.8.0",
|
|
110
114
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
111
115
|
"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;AA2DlB;;;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 Fetch 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,C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iBAAI,GAAE,CAAC,CAAC,CAAC,IAAA,2BAAc,GAAE;YAC9C,uDAAuD;YACvD,IAAA,8BAAiB,EAAC;gBAChB,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,YAAY,EAAE;oBACZ,GAAG,YAAY;oBACf,GAAG,wBAAwB;iBAC5B;gBACD,UAAU,EAAE,QAAQ,CAAC,WAAW;aACjC,CAAC;YAEF,IAAA,0BAAa,EAAC,wCAA2B,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,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,uBAAuB;CACpC,CAAC;AAEW,QAAA,2BAA2B,GAAG;IACzC,eAAe,EAAE;QACf,WAAW;QACX,oBAAoB;QACpB,oBAAoB;QACpB,aAAa;QACb,2BAA2B;QAC3B,+BAA+B;QAC/B,gBAAgB;QAChB,eAAe;QACf,YAAY;QACZ,iBAAiB;QACjB,kBAAkB;QAClB,oBAAoB;QACpB,8BAA8B;QAC9B,MAAM;QACN,0BAA0B;QAC1B,yBAAyB;QACzB,oBAAoB;QACpB,YAAY;QACZ,eAAe;QACf,0BAA0B;QAC1B,iCAAiC;QACjC,mCAAmC;QACnC,cAAc;QACd,kBAAkB;QAClB,yBAAyB;QACzB,2BAA2B;QAC3B,cAAc;KACf,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":""}
|