@smapiot/pilet-template-angular 1.0.7-beta.6240 → 1.0.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/lib/index.js CHANGED
@@ -1413,7 +1413,8 @@ var tsVersions = {
1413
1413
  13: "~4.4",
1414
1414
  14: "~4.7",
1415
1415
  15: "~4.8",
1416
- 16: "~4.9"
1416
+ 16: "~4.9",
1417
+ 17: "~5.2"
1417
1418
  };
1418
1419
  var rxjsVersions = {
1419
1420
  2: "^5.0",
@@ -1429,7 +1430,8 @@ var rxjsVersions = {
1429
1430
  13: "^7.4",
1430
1431
  14: "^7.4",
1431
1432
  15: "^7.4",
1432
- 16: "^7.4"
1433
+ 16: "^7.4",
1434
+ 17: "^7.4"
1433
1435
  };
1434
1436
  var zoneVersions = {
1435
1437
  2: "~0.9",
@@ -1445,7 +1447,8 @@ var zoneVersions = {
1445
1447
  13: "0.11.4",
1446
1448
  14: "0.12.0",
1447
1449
  15: "0.13.0",
1448
- 16: "0.13.0"
1450
+ 16: "0.13.0",
1451
+ 17: "0.14.0"
1449
1452
  };
1450
1453
 
1451
1454
  // src/helpers.ts
@@ -1461,14 +1464,14 @@ function detectNgVersion(piralInstance) {
1461
1464
  const dependencies = ((_a = piralInstance == null ? void 0 : piralInstance.details) == null ? void 0 : _a.dependencies) || {};
1462
1465
  const devDependencies = ((_b = piralInstance == null ? void 0 : piralInstance.details) == null ? void 0 : _b.devDependencies) || {};
1463
1466
  const allDependencies = __spreadValues(__spreadValues({}, devDependencies), dependencies);
1464
- const version = allDependencies["@angular/core"] || "16.0.0";
1467
+ const version = allDependencies["@angular/core"] || "17.0.0";
1465
1468
  if (typeof version === "string") {
1466
1469
  const result = /\d+/.exec(version);
1467
1470
  if (result) {
1468
1471
  return +result[0];
1469
1472
  }
1470
1473
  }
1471
- return 16;
1474
+ return 17;
1472
1475
  }
1473
1476
  function isKnownVersion(majorNgVersion) {
1474
1477
  return typeof zoneVersions[majorNgVersion] !== "undefined";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/pilet-template-angular",
3
- "version": "1.0.7-beta.6240",
3
+ "version": "1.0.7",
4
4
  "description": "Official scaffolding template for pilets: 'angular'.",
5
5
  "keywords": [
6
6
  "piral-cli",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "ngVersion": {
26
26
  "description": "Defines the (major) version of Angular to use in case of a standalone pilet.",
27
- "default": 16,
27
+ "default": 17,
28
28
  "type": "number"
29
29
  }
30
30
  },
@@ -54,7 +54,7 @@
54
54
  "test": "echo \"Error: run tests from root\" && exit 1"
55
55
  },
56
56
  "devDependencies": {
57
- "@smapiot/template-utils": "1.0.7-beta.6240"
57
+ "@smapiot/template-utils": "^1.0.7"
58
58
  },
59
- "gitHead": "e4893a1a31c56d2445c283319d726a2bedf8264d"
59
+ "gitHead": "58f3abb1cbeb1587d24ba55d3b3ec39e9ea0007d"
60
60
  }
package/src/helpers.ts CHANGED
@@ -11,7 +11,7 @@ export function detectNgVersion(piralInstance: { details: any }) {
11
11
  const dependencies = piralInstance?.details?.dependencies || {};
12
12
  const devDependencies = piralInstance?.details?.devDependencies || {};
13
13
  const allDependencies = { ...devDependencies, ...dependencies };
14
- const version = allDependencies['@angular/core'] || '16.0.0';
14
+ const version = allDependencies['@angular/core'] || '17.0.0';
15
15
 
16
16
  if (typeof version === 'string') {
17
17
  const result = /\d+/.exec(version);
@@ -22,7 +22,7 @@ export function detectNgVersion(piralInstance: { details: any }) {
22
22
  }
23
23
  }
24
24
 
25
- return 16;
25
+ return 17;
26
26
  }
27
27
 
28
28
  export function isKnownVersion(majorNgVersion: number) {
package/src/versions.ts CHANGED
@@ -14,6 +14,7 @@ export const tsVersions = {
14
14
  14: '~4.7',
15
15
  15: '~4.8',
16
16
  16: '~4.9',
17
+ 17: '~5.2',
17
18
  };
18
19
 
19
20
  // Mapping of Angular to RxJs versions
@@ -32,6 +33,7 @@ export const rxjsVersions = {
32
33
  14: '^7.4',
33
34
  15: '^7.4',
34
35
  16: '^7.4',
36
+ 17: '^7.4',
35
37
  };
36
38
 
37
39
  // Mapping of Angular to Zone.js versions
@@ -50,4 +52,5 @@ export const zoneVersions = {
50
52
  14: '0.12.0',
51
53
  15: '0.13.0',
52
54
  16: '0.13.0',
55
+ 17: '0.14.0',
53
56
  };