@o3r/schematics 10.0.0-prerelease.17 → 10.0.0-prerelease.18

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "10.0.0-prerelease.17",
3
+ "version": "10.0.0-prerelease.18",
4
4
  "description": "Schematics module of the Otter framework",
5
5
  "main": "./src/public_api.js",
6
6
  "typings": "./src/public_api.d.ts",
@@ -25,7 +25,7 @@
25
25
  "@angular-devkit/core": "~17.0.0",
26
26
  "@angular-devkit/schematics": "~17.0.0",
27
27
  "@angular/cli": "~17.0.0",
28
- "@o3r/telemetry": "^10.0.0-prerelease.17",
28
+ "@o3r/telemetry": "^10.0.0-prerelease.18",
29
29
  "@schematics/angular": "~17.0.0",
30
30
  "eslint": "^8.42.0",
31
31
  "rxjs": "^7.8.1",
@@ -71,9 +71,9 @@
71
71
  "@nx/eslint-plugin": "~17.2.0",
72
72
  "@nx/jest": "~17.2.0",
73
73
  "@nx/js": "~17.2.0",
74
- "@o3r/build-helpers": "^10.0.0-prerelease.17",
75
- "@o3r/eslint-plugin": "^10.0.0-prerelease.17",
76
- "@o3r/telemetry": "^10.0.0-prerelease.17",
74
+ "@o3r/build-helpers": "^10.0.0-prerelease.18",
75
+ "@o3r/eslint-plugin": "^10.0.0-prerelease.18",
76
+ "@o3r/telemetry": "^10.0.0-prerelease.18",
77
77
  "@schematics/angular": "~17.0.3",
78
78
  "@types/jest": "~29.5.2",
79
79
  "@types/node": "^20.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIvD;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAOnD,CAAC"}
1
+ {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIvD;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAUnD,CAAC"}
@@ -7,13 +7,16 @@ const noopSchematicWrapper = (fn) => fn;
7
7
  * if @o3r/telemetry is installed
8
8
  * @param schematicFn
9
9
  */
10
- const createSchematicWithMetricsIfInstalled = (schematicFn) => (opts) => async () => {
10
+ const createSchematicWithMetricsIfInstalled = (schematicFn) => (opts) => async (_, context) => {
11
11
  let wrapper = noopSchematicWrapper;
12
12
  try {
13
13
  const { createSchematicWithMetrics } = await Promise.resolve().then(() => require('@o3r/telemetry'));
14
14
  wrapper = createSchematicWithMetrics;
15
15
  }
16
- catch { }
16
+ catch (e) {
17
+ // Do not throw if `@o3r/telemetry is not installed
18
+ context.logger.debug('`@o3r/telemetry` is not available\n' + e.toString());
19
+ }
17
20
  return wrapper(schematicFn)(opts);
18
21
  };
19
22
  exports.createSchematicWithMetricsIfInstalled = createSchematicWithMetricsIfInstalled;
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":";;;AAEA,MAAM,oBAAoB,GAAqB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAE1D;;;;GAIG;AACI,MAAM,qCAAqC,GAAqB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE;IAC3G,IAAI,OAAO,GAAqB,oBAAoB,CAAC;IACrD,IAAI;QACF,MAAM,EAAE,0BAA0B,EAAE,GAAG,2CAAa,gBAAgB,EAAC,CAAC;QACtE,OAAO,GAAG,0BAA0B,CAAC;KACtC;IAAC,MAAM,GAAE;IACV,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC,CAAC;AAPW,QAAA,qCAAqC,yCAOhD"}
1
+ {"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":";;;AAEA,MAAM,oBAAoB,GAAqB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAE1D;;;;GAIG;AACI,MAAM,qCAAqC,GAAqB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE;IACrH,IAAI,OAAO,GAAqB,oBAAoB,CAAC;IACrD,IAAI;QACF,MAAM,EAAE,0BAA0B,EAAE,GAAG,2CAAa,gBAAgB,EAAC,CAAC;QACtE,OAAO,GAAG,0BAA0B,CAAC;KACtC;IAAC,OAAO,CAAM,EAAE;QACf,mDAAmD;QACnD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;KAC5E;IACD,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC,CAAC;AAVW,QAAA,qCAAqC,yCAUhD"}