@ama-sdk/schematics 9.3.0-alpha.8 → 9.4.0-alpha.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/schematics",
3
- "version": "9.3.0-alpha.8",
3
+ "version": "9.4.0-alpha.0",
4
4
  "description": "Swagger specification SDK Generator by schematics",
5
5
  "typings": "./src/public_api.d.ts",
6
6
  "scripts": {
@@ -31,15 +31,12 @@
31
31
  "@angular/compiler": {
32
32
  "optional": true
33
33
  },
34
- "@o3r/schematics": {
35
- "optional": true
36
- },
37
34
  "@openapitools/openapi-generator-cli": {
38
35
  "optional": true
39
36
  }
40
37
  },
41
38
  "peerDependencies": {
42
- "@ama-sdk/core": "^9.3.0-alpha.8",
39
+ "@ama-sdk/core": "^9.4.0-alpha.0",
43
40
  "@angular-devkit/core": "^16.0.5",
44
41
  "@angular-devkit/schematics": "^16.0.5",
45
42
  "@angular-devkit/schematics-cli": "^16.0.5",
@@ -49,23 +46,24 @@
49
46
  "dependencies": {
50
47
  "@angular-devkit/core": "~16.2.0",
51
48
  "@angular-devkit/schematics": "~16.2.0",
52
- "@o3r/dev-tools": "^9.3.0-alpha.8",
49
+ "@o3r/dev-tools": "^9.4.0-alpha.0",
53
50
  "js-yaml": "^4.1.0",
54
- "minimatch": "^9.0.0",
51
+ "minimatch": "~9.0.3",
55
52
  "rxjs": "^7.8.1",
56
53
  "semver": "^7.5.2",
57
54
  "sway": "^2.0.6",
58
55
  "tslib": "^2.5.3"
59
56
  },
60
57
  "devDependencies": {
61
- "@ama-sdk/core": "^9.3.0-alpha.8",
58
+ "@ama-sdk/core": "^9.4.0-alpha.0",
62
59
  "@angular-devkit/schematics-cli": "~16.2.0",
63
- "@angular-eslint/eslint-plugin": "~16.1.0",
60
+ "@angular-eslint/eslint-plugin": "~16.2.0",
64
61
  "@angular/cli": "~16.2.0",
65
- "@nx/jest": "~16.7.0",
66
- "@o3r/build-helpers": "^9.3.0-alpha.8",
67
- "@o3r/eslint-plugin": "^9.3.0-alpha.8",
68
- "@o3r/schematics": "^9.3.0-alpha.8",
62
+ "@nx/eslint-plugin": "~16.8.0",
63
+ "@nx/jest": "~16.8.0",
64
+ "@o3r/build-helpers": "^9.4.0-alpha.0",
65
+ "@o3r/eslint-plugin": "^9.4.0-alpha.0",
66
+ "@o3r/schematics": "^9.4.0-alpha.0",
69
67
  "@openapitools/openapi-generator-cli": "~2.7.0",
70
68
  "@schematics/angular": "~16.2.0",
71
69
  "@types/jest": "~29.5.2",
@@ -74,22 +72,23 @@
74
72
  "@types/node": "^18.0.0",
75
73
  "@types/pid-from-port": "^1.1.0",
76
74
  "@types/semver": "^7.3.13",
77
- "@typescript-eslint/eslint-plugin": "^5.59.9",
78
- "@typescript-eslint/parser": "^5.59.9",
75
+ "@typescript-eslint/eslint-plugin": "^5.60.1",
76
+ "@typescript-eslint/parser": "^5.60.1",
79
77
  "copyfiles": "^2.4.1",
80
78
  "cpy-cli": "^4.2.0",
81
79
  "eslint": "^8.42.0",
82
80
  "eslint-import-resolver-node": "^0.3.4",
83
- "eslint-plugin-jest": "~27.2.3",
84
- "eslint-plugin-jsdoc": "~46.5.0",
81
+ "eslint-plugin-jest": "~27.4.0",
82
+ "eslint-plugin-jsdoc": "~46.8.0",
85
83
  "eslint-plugin-prefer-arrow": "~1.2.3",
86
84
  "eslint-plugin-unicorn": "^47.0.0",
87
85
  "isomorphic-fetch": "~3.0.0",
88
- "jest": "~29.6.2",
86
+ "jest": "~29.7.0",
89
87
  "jest-junit": "~16.0.0",
88
+ "jsonc-eslint-parser": "~2.3.0",
90
89
  "mem-fs": "^2.2.1",
91
90
  "npm-run-all": "^4.1.5",
92
- "nx": "~16.7.0",
91
+ "nx": "~16.8.0",
93
92
  "onchange": "^7.0.2",
94
93
  "pid-from-port": "^1.1.3",
95
94
  "semver": "^7.5.2",
@@ -99,9 +98,7 @@
99
98
  },
100
99
  "openApiSupportedVersion": "~6.6.0",
101
100
  "engines": {
102
- "node": ">=16.0.0",
103
- "npm": ">=4",
104
- "yarn": "<4.0.0"
101
+ "node": ">=18.0.0"
105
102
  },
106
103
  "contributors": [
107
104
  {
@@ -1 +1 @@
1
- {"version":3,"file":"code-generator.d.ts","sourceRoot":"","sources":["../../../schematics/code-generator/code-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0E,YAAY,EAAQ,MAAM,4BAA4B,CAAC;AAKxI;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,aAAa,CAAC,CAAC,SAAS,kBAAkB;IACrD;;OAEG;IACH,SAAS,CAAC,aAAa,SAAM;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAa5B;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;IAcjC;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,CAAC;IAIhC;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,CAAC,eAAe,GAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,YAAY,CAAC,CAAC,CAAC;IAMpG;;;;;;OAMG;IACI,wBAAwB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,cAAc,GAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAO;CAU9G"}
1
+ {"version":3,"file":"code-generator.d.ts","sourceRoot":"","sources":["../../../schematics/code-generator/code-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0E,YAAY,EAAQ,MAAM,4BAA4B,CAAC;AAGxI;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,aAAa,CAAC,CAAC,SAAS,kBAAkB;IACrD;;OAEG;IACH,SAAS,CAAC,aAAa,SAAM;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAa5B;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;IAcjC;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,CAAC;IAIhC;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,CAAC,eAAe,GAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,YAAY,CAAC,CAAC,CAAC;IAMpG;;;;;;OAMG;IACI,wBAAwB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,cAAc,GAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAO;CAU9G"}
@@ -2,7 +2,6 @@ import { Rule } from '@angular-devkit/schematics';
2
2
  import { NgGenerateTypescriptSDKCoreSchematicsSchema } from './schema';
3
3
  /**
4
4
  * Generate a typescript SDK source code base on swagger specification
5
- *
6
5
  * @param options
7
6
  */
8
7
  export declare function ngGenerateTypescriptSDK(options: NgGenerateTypescriptSDKCoreSchematicsSchema): Rule;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AASpC,OAAO,EAAE,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAgBvE;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,2CAA2C,GAAG,IAAI,CAgHlG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AASpC,OAAO,EAAE,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAgBvE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,2CAA2C,GAAG,IAAI,CA8GlG"}
@@ -19,7 +19,6 @@ const getPathObjectTemplate = (pathObj) => {
19
19
  };
20
20
  /**
21
21
  * Generate a typescript SDK source code base on swagger specification
22
- *
23
22
  * @param options
24
23
  */
25
24
  function ngGenerateTypescriptSDK(options) {
@@ -46,7 +45,6 @@ function ngGenerateTypescriptSDK(options) {
46
45
  };
47
46
  /**
48
47
  * rule to clear previous SDK generation
49
- *
50
48
  * @param tree
51
49
  * @param _context
52
50
  */
@@ -78,7 +76,6 @@ function ngGenerateTypescriptSDK(options) {
78
76
  };
79
77
  /**
80
78
  * Update local swagger spec file
81
- *
82
79
  * @param tree
83
80
  * @param _context
84
81
  */
@@ -23,6 +23,16 @@ module.exports = {
23
23
  'import/resolver': 'node'
24
24
  },
25
25
  'overrides': [
26
+ {
27
+ 'files': [
28
+ '*.{t,j}s'
29
+ ],
30
+ 'plugins': [
31
+ 'jest'
32
+ ],
33
+ 'parser': require.resolve('@typescript-eslint/parser'),
34
+ 'extends': ['@o3r/eslint-config-otter'].map(require.resolve)
35
+ },
26
36
  {
27
37
  'files': ['*.helper.ts'],
28
38
  'rules': {
@@ -35,12 +45,6 @@ module.exports = {
35
45
  '@typescript-eslint/restrict-template-expressions': 'off'
36
46
  }
37
47
  }
38
- ],
39
- 'plugins': [
40
- 'jest'
41
- ],
42
- 'extends': [
43
- '@o3r/eslint-config-otter'
44
- ].map(require.resolve)
48
+ ]
45
49
  };
46
50