@o3r/analytics 12.2.5 → 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": "@o3r/analytics",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"otter-module"
|
|
12
12
|
],
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@ama-sdk/core": "^12.2.
|
|
14
|
+
"@ama-sdk/core": "^12.2.7",
|
|
15
15
|
"@angular-devkit/schematics": "^19.0.0",
|
|
16
16
|
"@angular/common": "^19.0.0",
|
|
17
17
|
"@angular/core": "^19.0.0",
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"@angular/platform-browser-dynamic": "^19.0.0",
|
|
20
20
|
"@angular/router": "^19.0.0",
|
|
21
21
|
"@ngrx/store": "^19.0.0",
|
|
22
|
-
"@o3r/core": "^12.2.
|
|
23
|
-
"@o3r/schematics": "^12.2.
|
|
22
|
+
"@o3r/core": "^12.2.7",
|
|
23
|
+
"@o3r/schematics": "^12.2.7",
|
|
24
24
|
"@schematics/angular": "^19.0.0",
|
|
25
25
|
"jasmine": "^5.0.0",
|
|
26
26
|
"rxjs": "^7.8.1",
|
|
27
27
|
"ts-node": "~10.9.2",
|
|
28
|
+
"type-fest": "^4.30.1",
|
|
28
29
|
"typescript": "^5.5.4",
|
|
29
30
|
"webpack": "^5.96.0"
|
|
30
31
|
},
|
|
@@ -41,6 +42,9 @@
|
|
|
41
42
|
"jasmine": {
|
|
42
43
|
"optional": true
|
|
43
44
|
},
|
|
45
|
+
"type-fest": {
|
|
46
|
+
"optional": true
|
|
47
|
+
},
|
|
44
48
|
"typescript": {
|
|
45
49
|
"optional": true
|
|
46
50
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AA6DlB,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,KAAG,IAKtD,CAAC"}
|
|
@@ -9,17 +9,46 @@ If the error is related to missing @o3r dependencies you need to install '@o3r/c
|
|
|
9
9
|
Otherwise, use the error message as guidance.`);
|
|
10
10
|
throw reason;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* List of external dependencies to be added to the project as peer dependencies
|
|
14
|
+
*/
|
|
15
|
+
const dependenciesToInstall = [
|
|
16
|
+
'@angular/common',
|
|
17
|
+
'@angular/core',
|
|
18
|
+
'@angular/router',
|
|
19
|
+
'@angular/platform-browser',
|
|
20
|
+
'@angular/platform-browser-dynamic',
|
|
21
|
+
'@ngrx/store',
|
|
22
|
+
'rxjs'
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* List of external dependencies to be added to the project as dev dependencies
|
|
26
|
+
*/
|
|
27
|
+
const devDependenciesToInstall = [];
|
|
12
28
|
/**
|
|
13
29
|
* Add Otter analytics to an Angular Project
|
|
14
30
|
* @param options
|
|
15
31
|
*/
|
|
16
32
|
function ngAddFn(options) {
|
|
17
33
|
/* ng add rules */
|
|
18
|
-
return async (tree) => {
|
|
19
|
-
const { getPackageInstallConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
34
|
+
return async (tree, context) => {
|
|
35
|
+
const { getExternalDependenciesInfo, getPackageInstallConfig, getWorkspaceConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
36
|
+
const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
|
|
37
|
+
const projectDirectory = workspaceProject?.root || '.';
|
|
38
|
+
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
39
|
+
const externalDependenciesInfo = getExternalDependenciesInfo({
|
|
40
|
+
devDependenciesToInstall,
|
|
41
|
+
dependenciesToInstall,
|
|
42
|
+
projectPackageJson,
|
|
43
|
+
o3rPackageJsonPath: packageJsonPath,
|
|
44
|
+
projectType: workspaceProject?.projectType
|
|
45
|
+
}, context.logger);
|
|
20
46
|
return setupDependencies({
|
|
21
47
|
projectName: options.projectName,
|
|
22
|
-
dependencies:
|
|
48
|
+
dependencies: {
|
|
49
|
+
...getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion),
|
|
50
|
+
...externalDependenciesInfo
|
|
51
|
+
}
|
|
23
52
|
});
|
|
24
53
|
};
|
|
25
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAWlC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E,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;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,iBAAiB;IACjB,eAAe;IACf,iBAAiB;IAC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