ng2-rest-swagger-generator 18.0.6 → 18.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/README.md CHANGED
@@ -1,46 +1,46 @@
1
- ## ng2-rest-swagger-generator ##
2
-
3
- Generate services for Angular2+ from your swagger.json files.
4
-
5
- ## Instalation
6
-
7
- npm install ng2-rest-swagger-generator -g
8
-
9
- ## Usage
10
-
11
- ng2-rest-swagger-generateor \
12
- --json ~/api_swagger.json \ # local swagger json file or
13
- --json http://api.com/swagger.json \ # external link to swagger json
14
- --base my_api_from_swagger_json
15
-
16
- It will generate **my_api_from_swagger_json** folder with angular2_ module.
17
-
18
- Your can alsow ommit **--base** param, default out folder is "**api**".
19
-
20
- ## Import
21
-
22
- To import generated module in **app.module** of you angular app do this:
23
- ```ts
24
- import { Ng2RestGenModule } from './api';
25
- ...
26
- imports: [ Ng2RestGenModule ],
27
- ...
28
- ```
29
- ## Api url modyfication
30
-
31
- It you wanna **change your base paths** just use property **enpointUrl** in Ng2RestGenModule module :
32
-
33
- ```ts
34
- if(enviroment.production) {
35
- Ng2RestGenModule.enpointUrls.myresource.myhost = 'https://myproductionhost.com'
36
- }
37
- ```
38
-
39
- ## Parameters description
40
-
41
- | param | description |
42
- | --- | --- |
43
- | --json | online links or local paths for swagger.json files |
44
- | --base | output module folder |
45
- | -s | if https protocole enable (one for all json-s) |
46
-
1
+ ## ng2-rest-swagger-generator ##
2
+
3
+ Generate services for Angular2+ from your swagger.json files.
4
+
5
+ ## Instalation
6
+
7
+ npm install ng2-rest-swagger-generator -g
8
+
9
+ ## Usage
10
+
11
+ ng2-rest-swagger-generateor \
12
+ --json ~/api_swagger.json \ # local swagger json file or
13
+ --json http://api.com/swagger.json \ # external link to swagger json
14
+ --base my_api_from_swagger_json
15
+
16
+ It will generate **my_api_from_swagger_json** folder with angular2_ module.
17
+
18
+ Your can alsow ommit **--base** param, default out folder is "**api**".
19
+
20
+ ## Import
21
+
22
+ To import generated module in **app.module** of you angular app do this:
23
+ ```ts
24
+ import { Ng2RestGenModule } from './api';
25
+ ...
26
+ imports: [ Ng2RestGenModule ],
27
+ ...
28
+ ```
29
+ ## Api url modyfication
30
+
31
+ It you wanna **change your base paths** just use property **enpointUrl** in Ng2RestGenModule module :
32
+
33
+ ```ts
34
+ if(enviroment.production) {
35
+ Ng2RestGenModule.enpointUrls.myresource.myhost = 'https://myproductionhost.com'
36
+ }
37
+ ```
38
+
39
+ ## Parameters description
40
+
41
+ | param | description |
42
+ | --- | --- |
43
+ | --json | online links or local paths for swagger.json files |
44
+ | --base | output module folder |
45
+ | -s | if https protocole enable (one for all json-s) |
46
+
@@ -1,6 +1,6 @@
1
1
  THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
2
2
 
3
- Assets from this folder are being shipped with this npm package (ng2-rest-swagger-generator@18.0.6)
3
+ Assets from this folder are being shipped with this npm package (ng2-rest-swagger-generator@18.0.7)
4
4
  created from this project.
5
5
 
6
6
  THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
@@ -1,10 +1,10 @@
1
- #!/usr/bin/env node
2
- var path = require('path')
3
- var fs = require('fs')
4
- var path = {
5
- dist: path.join(__dirname, '../dist/start.js'),
6
- bundle: path.join(__dirname, '../start.js')
7
- }
8
- var p = fs.existsSync(path.dist) ? path.dist : path.bundle;
9
- var start = require(p).start;
10
- start();
1
+ #!/usr/bin/env node
2
+ var path = require('path')
3
+ var fs = require('fs')
4
+ var path = {
5
+ dist: path.join(__dirname, '../dist/start.js'),
6
+ bundle: path.join(__dirname, '../start.js')
7
+ }
8
+ var p = fs.existsSync(path.dist) ? path.dist : path.bundle;
9
+ var start = require(p).start;
10
+ start();
package/browser/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/client/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/package.json CHANGED
@@ -51,7 +51,7 @@
51
51
  "workerPlugins": {}
52
52
  },
53
53
  "name": "ng2-rest-swagger-generator",
54
- "version": "18.0.6",
54
+ "version": "18.0.7",
55
55
  "description": "Generate Angualr 2 Service from swagger json",
56
56
  "directories": {
57
57
  "doc": "docs"
@@ -79,13 +79,13 @@
79
79
  "homepage": "https://github.com/darekf77/ng2-rest-swagger-generator#readme",
80
80
  "dependencies": {
81
81
  "chalk": "2.3.2",
82
- "tnp-helpers": "~18.0.9",
82
+ "tnp-helpers": "~18.0.10",
83
83
  "tslint": "6.1.3",
84
84
  "typescript-formatter": "~7.2.2"
85
85
  },
86
86
  "devDependencies": {},
87
87
  "license": "MIT",
88
88
  "private": false,
89
- "lastBuildTagHash": "3626777a170c106ba905956cdf039de017f034b7",
90
- "main": "karma.conf.js"
89
+ "lastBuildTagHash": "ea8f93388b7a6c36ebe9350491acd7d1aa196122",
90
+ "main": "dist/app.electron.js"
91
91
  }
package/taon.jsonc CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "resources": ["README.md", "screen.png"],
3
-
4
- "overrided": {
5
- "ignoreDepsPattern": [],
6
- "includeAsDev": [],
7
- "includeOnly": ["tnp-helpers", "chalk", "tslint", "typescript-formatter"],
8
- "dependencies": {},
9
- "linkedFolders": [],
10
- "npmFixes": []
11
- },
12
-
13
- "smartContainerBuildTarget": "",
14
- "linkedRepos": [],
15
-
16
- "libReleaseOptions": {
17
- "nodts": false,
18
- "obscure": false,
19
- "ugly": false,
20
- "includeNodeModules": false,
21
- "cliBuildNoDts": false,
22
- "cliBuildObscure": false,
23
- "cliBuildIncludeNodeModules": false,
24
- "cliBuildUglify": false
25
- },
26
-
27
- "smartContainerTarget": "",
28
- "type": "isomorphic-lib",
29
- "version": "v18",
30
- "isCommandLineToolOnly": false,
31
- "license": "MIT",
32
- "private": false,
33
-
34
- "scripts": {
35
- "test": "mocha --require ts-node/register src/**/*.spec.ts",
36
- "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
37
- },
38
-
39
- "description": "Generate Angualr 2 Service from swagger json",
40
- "author": "Dariusz Filipiak",
41
- "homepage": "https://github.com/darekf77/ng2-rest-swagger-generator#readme",
42
- "main": "karma.conf.js",
43
- "keywords": ["ng2-rest", "docs", "documentation"],
44
- "workerPlugins": {}
1
+ {
2
+ "resources": ["README.md", "screen.png"],
3
+
4
+ "overrided": {
5
+ "ignoreDepsPattern": [],
6
+ "includeAsDev": [],
7
+ "includeOnly": ["tnp-helpers", "chalk", "tslint", "typescript-formatter"],
8
+ "dependencies": {},
9
+ "linkedFolders": [],
10
+ "npmFixes": []
11
+ },
12
+
13
+ "smartContainerBuildTarget": "",
14
+ "linkedRepos": [],
15
+
16
+ "libReleaseOptions": {
17
+ "nodts": false,
18
+ "obscure": false,
19
+ "ugly": false,
20
+ "includeNodeModules": false,
21
+ "cliBuildNoDts": false,
22
+ "cliBuildObscure": false,
23
+ "cliBuildIncludeNodeModules": false,
24
+ "cliBuildUglify": false
25
+ },
26
+
27
+ "smartContainerTarget": "",
28
+ "type": "isomorphic-lib",
29
+ "version": "v18",
30
+ "isCommandLineToolOnly": false,
31
+ "license": "MIT",
32
+ "private": false,
33
+
34
+ "scripts": {
35
+ "test": "mocha --require ts-node/register src/**/*.spec.ts",
36
+ "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
37
+ },
38
+
39
+ "description": "Generate Angualr 2 Service from swagger json",
40
+ "author": "Dariusz Filipiak",
41
+ "homepage": "https://github.com/darekf77/ng2-rest-swagger-generator#readme",
42
+ "main": "karma.conf.js",
43
+ "keywords": ["ng2-rest", "docs", "documentation"],
44
+ "workerPlugins": {}
45
45
  }
@@ -55,7 +55,7 @@
55
55
  "workerPlugins": {}
56
56
  },
57
57
  "name": "ng2-rest-swagger-generator",
58
- "version": "18.0.6",
58
+ "version": "18.0.7",
59
59
  "description": "Generate Angualr 2 Service from swagger json",
60
60
  "directories": {
61
61
  "doc": "docs"
@@ -83,7 +83,7 @@
83
83
  "homepage": "https://github.com/darekf77/ng2-rest-swagger-generator#readme",
84
84
  "dependencies": {
85
85
  "chalk": "2.3.2",
86
- "tnp-helpers": "~18.0.9",
86
+ "tnp-helpers": "~18.0.10",
87
87
  "tslint": "6.1.3",
88
88
  "typescript-formatter": "~7.2.2"
89
89
  },
@@ -176,7 +176,6 @@
176
176
  "animate.css": "4.1.1",
177
177
  "app-root-path": "3.1.0",
178
178
  "axios": "1.7.3",
179
- "background-worker-process": "~16.100.10",
180
179
  "base32": "0.0.7",
181
180
  "bcryptjs": "2.4.3",
182
181
  "body-parser": "1.20.2",
@@ -244,13 +243,13 @@
244
243
  "image-focus": "1.2.1",
245
244
  "immer": "10.0.2",
246
245
  "immutable": "4.3.7",
247
- "incremental-compiler": "~18.0.9",
246
+ "incremental-compiler": "~18.0.10",
248
247
  "inquirer": "7.3.3",
249
248
  "inquirer-autocomplete-prompt": "1.4.0",
250
249
  "inquirer-autocomplete-standalone": "0.8.1",
251
250
  "inquirer-select-pro": "1.0.0-alpha.7",
252
251
  "is-elevated": "3.0.0",
253
- "isomorphic-region-loader": "~18.0.9",
252
+ "isomorphic-region-loader": "~18.0.10",
254
253
  "istanbul-instrumenter-loader": "3.0.1",
255
254
  "jest": "29.7.0",
256
255
  "jest-date-mock": "1.0.10",
@@ -261,8 +260,8 @@
261
260
  "joi": "17.13.3",
262
261
  "jscodeshift": "0.6.3",
263
262
  "json-stringify-safe": "5.0.1",
264
- "json10": "~18.0.9",
265
- "json10-writer": "~18.0.9",
263
+ "json10": "~18.0.10",
264
+ "json10-writer": "~18.0.10",
266
265
  "json5": "2.2.3",
267
266
  "json5-writer": "0.2.0",
268
267
  "jszip": "3.10.1",
@@ -271,9 +270,9 @@
271
270
  "localforage": "1.10.0",
272
271
  "lockfile": "1.0.4",
273
272
  "lodash": "4.17.21",
274
- "lodash-walk-object": "~18.0.9",
273
+ "lodash-walk-object": "~18.0.10",
275
274
  "lowdb": "7.0.1",
276
- "magic-renamer": "~18.0.9",
275
+ "magic-renamer": "~18.0.10",
277
276
  "material-design-icons": "3.0.1",
278
277
  "method-override": "2.3.10",
279
278
  "minimist": "1.2.8",
@@ -284,11 +283,11 @@
284
283
  "ng-in-viewport": "16.1.0",
285
284
  "ng-lock": "18.0.1",
286
285
  "ng-packagr": "18.1.0",
287
- "ng-talkback": "~18.0.8",
288
- "ng2-logger": "~18.0.11",
286
+ "ng-talkback": "~18.0.9",
287
+ "ng2-logger": "~18.0.12",
289
288
  "ng2-pdfjs-viewer": "18.0.0",
290
- "ng2-rest": "~18.0.9",
291
- "ng2-rest-swagger-generator": "18.0.5",
289
+ "ng2-rest": "~18.0.10",
290
+ "ng2-rest-swagger-generator": "18.0.6",
292
291
  "ngx-ace-wrapper": "17.0.0",
293
292
  "ngx-editor": "17.5.4",
294
293
  "ngx-highlightjs": "12.0.0",
@@ -301,7 +300,7 @@
301
300
  "ngx-scrolltop": "18.0.0",
302
301
  "ngx-store": "3.1.1",
303
302
  "ngx-typed-js": "2.1.1",
304
- "node-cli-tester": "~18.0.5",
303
+ "node-cli-tester": "~18.0.8",
305
304
  "node-localstorage": "2.1.6",
306
305
  "node-notifier": "10.0.1",
307
306
  "node-polyfill-webpack-plugin": "2.0.1",
@@ -331,7 +330,7 @@
331
330
  "q": "1.5.1",
332
331
  "rallax.js": "2.0.4",
333
332
  "randomcolor": "0.5.3",
334
- "record-replay-req-res-scenario": "~18.0.5",
333
+ "record-replay-req-res-scenario": "~18.0.8",
335
334
  "reflect-metadata": "0.2.2",
336
335
  "rimraf": "2.6.2",
337
336
  "rxjs": "~7.8.1",
@@ -343,22 +342,22 @@
343
342
  "socket.io-client": "4.7.5",
344
343
  "sort-package-json": "1.11.0",
345
344
  "sql.js": "1.8.0",
346
- "static-columns": "~18.0.7",
345
+ "static-columns": "~18.0.10",
347
346
  "string-similarity": "4.0.4",
348
347
  "sudo-block": "3.0.0",
349
348
  "supertest": "7.0.0",
350
349
  "sweetalert2": "11.7.32",
351
350
  "systeminformation": "3.45.7",
352
351
  "taon": "^18",
353
- "taon-storage": "18.0.5",
354
- "taon-type-sql": "18.0.6",
355
- "taon-typeorm": "18.0.5",
352
+ "taon-storage": "18.0.8",
353
+ "taon-type-sql": "18.0.9",
354
+ "taon-typeorm": "18.0.8",
356
355
  "task.js": "0.1.5",
357
356
  "threads": "1.7.0",
358
- "tnp": "~18.0.6",
359
- "tnp-config": "~18.0.11",
360
- "tnp-core": "~18.0.30",
361
- "tnp-models": "~18.0.10",
357
+ "tnp": "~18.0.9",
358
+ "tnp-config": "~18.0.12",
359
+ "tnp-core": "~18.0.33",
360
+ "tnp-models": "~18.0.11",
362
361
  "ts-debug": "1.3.0",
363
362
  "ts-json-schema-generator": "2.3.0-next.5",
364
363
  "ts-loader": "2.3.1",
@@ -369,12 +368,12 @@
369
368
  "typedoc": "0.26.5",
370
369
  "typedoc-plugin-markdown": "4.2.3",
371
370
  "typescript": "~5.5.4",
372
- "typescript-class-helpers": "~18.0.10",
371
+ "typescript-class-helpers": "~18.0.11",
373
372
  "underscore": "1.13.7",
374
373
  "uuid": "10.0.0",
375
374
  "validator": "13.5.2",
376
375
  "video.js": "8.3.0",
377
- "vpn-split": "~18.0.5",
376
+ "vpn-split": "~18.0.8",
378
377
  "vscode": "1.1.37",
379
378
  "wait-on": "7.0.1",
380
379
  "watch": "1.0.2",
@@ -386,18 +385,18 @@
386
385
  },
387
386
  "license": "MIT",
388
387
  "private": false,
389
- "lastBuildTagHash": "3626777a170c106ba905956cdf039de017f034b7",
388
+ "lastBuildTagHash": "ea8f93388b7a6c36ebe9350491acd7d1aa196122",
390
389
  "main": "dist/app.electron.js"
391
390
  },
392
391
  "build": {
393
- "number": 242,
394
- "date": "2024-08-28T12:58:32.000Z",
395
- "hash": "ea8f93388b7a6c36ebe9350491acd7d1aa196122"
392
+ "number": 243,
393
+ "date": "2024-08-28T13:05:16.000Z",
394
+ "hash": "c53acb899ed177e6576f1d4019223eec6338bd07"
396
395
  },
397
396
  "currentProjectName": "ng2-rest-swagger-generator",
398
397
  "currentProjectGenericName": "ng2-rest-swagger-generator",
399
398
  "currentProjectType": "isomorphic-lib",
400
- "currentFrameworkVersion": "18.0.8",
399
+ "currentFrameworkVersion": "18.0.9",
401
400
  "isStandaloneProject": true,
402
401
  "isSmartContainer": false,
403
402
  "pathesTsconfig": "\"paths\": {\"ng2-rest-swagger-generator\":[\"./src/lib\"],\"ng2-rest-swagger-generator/*\":[\"./src/lib/*\"]},",
package/websql/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.