ng2-rest 18.0.6 → 18.0.9
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 +135 -135
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/client/README.md +24 -24
- package/package.json +5 -5
- package/src.d.ts +1 -1
- package/{firedev.jsonc → taon.jsonc} +52 -52
- package/tmp-environment.json +31 -36
- package/websql/README.md +24 -24
package/README.md
CHANGED
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
|
|
2
|
-
## ng2-rest ##
|
|
3
|
-
|
|
4
|
-
Robust isomorphic REST framework for browser (Angular, React etc.) and backend (NodeJS) JavaScript/TypeScript apps.
|
|
5
|
-
|
|
6
|
-
Features:
|
|
7
|
-
- Compatible with Angular (2+) (newest 13,14 also...) , React, Vue , NodeJS (works everywhere)
|
|
8
|
-
- Compatible with RxJS operators (exhaustMap, switchMap, request cancelation etc.)
|
|
9
|
-
- Based on [axios](https://axios-http.com/) => excellent alternative to Angular's [HttpClient](https://angular.io/api/common/http/HttpClient)
|
|
10
|
-
- JSONP api request handling
|
|
11
|
-
- Transfer class instance from server to client and back
|
|
12
|
-
- Elegant way of dealing with REST api ( *similar to ExpressJS routes definitions* )
|
|
13
|
-
|
|
14
|
-
(more documentation soon... )
|
|
15
|
-
|
|
16
|
-
To install this package run:
|
|
17
|
-
|
|
18
|
-
npm install ng2-rest --save
|
|
19
|
-
|
|
20
|
-
Import Resource class:
|
|
21
|
-
```ts
|
|
22
|
-
import { Resource } from 'ng2-rest/browser';
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Resource
|
|
26
|
-
========
|
|
27
|
-
|
|
28
|
-
Fit you existing API (not only REST) into new fluent objects with **Resource**
|
|
29
|
-
class observables. Use power of **async** in new angular templates;
|
|
30
|
-
|
|
31
|
-
**template.html**
|
|
32
|
-
```html
|
|
33
|
-
Users:
|
|
34
|
-
<ul *ngIf="model.allUsers() | async; else loader; let users" >
|
|
35
|
-
|
|
36
|
-
<li *ngFor="let user of users">
|
|
37
|
-
{{user.id}} {{user.fullName()}}
|
|
38
|
-
<br>
|
|
39
|
-
<input type="name" [(NgModel)]="user.name" >
|
|
40
|
-
<button (click)="model.update(user)" > Update </button>
|
|
41
|
-
</li>
|
|
42
|
-
|
|
43
|
-
</ul>
|
|
44
|
-
|
|
45
|
-
<ng-template #loader> loading users... </ng-template>
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
**component.ts**
|
|
49
|
-
```ts
|
|
50
|
-
class User {
|
|
51
|
-
name: string;
|
|
52
|
-
surname: string;
|
|
53
|
-
id: number;
|
|
54
|
-
|
|
55
|
-
fullName() {
|
|
56
|
-
return `Surname: ${this.surname}, Name: ${this.name}`;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Express.js style url endpoint model
|
|
61
|
-
// you can ommit "<User>" part is you don't wanna see response interface
|
|
62
|
-
// also you can ommit third argument ",User" is you don't wanna
|
|
63
|
-
// map response object to User class objects
|
|
64
|
-
const rest = Resource.create<User>("http://yourbackend.com/api","users/:id",{'':User} )
|
|
65
|
-
|
|
66
|
-
class UserComponent {
|
|
67
|
-
|
|
68
|
-
// Prepare your beautiful interface
|
|
69
|
-
model = {
|
|
70
|
-
allUsers: () => rest.model()
|
|
71
|
-
.array
|
|
72
|
-
.get()
|
|
73
|
-
.observable // Observable resposne (useful for Angular 2+ html templates)
|
|
74
|
-
.pipe( map({ body } => body.json) ) // get all users, body.json => User[]
|
|
75
|
-
|
|
76
|
-
userBy: (id) => rest.model({id})
|
|
77
|
-
.get() // Promise response by default
|
|
78
|
-
.then({ body } => console.log(body.json)) // get user by id, body.json => User
|
|
79
|
-
|
|
80
|
-
update: async (user:User) =>{
|
|
81
|
-
try {
|
|
82
|
-
await rest.model({id:user.id}).put(user) // Promise response by default
|
|
83
|
-
|
|
84
|
-
alert('Update sucess')
|
|
85
|
-
} catch(e) {
|
|
86
|
-
alert(e)
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
constructor() { }
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Specification
|
|
97
|
-
============
|
|
98
|
-
Example **UrlParams[]** :
|
|
99
|
-
`[ { sort: true },{ filter: 'id,5' }, { filter: 'name,test' } ]`
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
| Name | Parameters | Description |
|
|
103
|
-
| :---: | --- | ---: |
|
|
104
|
-
| **.array.** | get,post,put,head,delete,jsonp | for everything, but with arrays |
|
|
105
|
-
| **get** | `UrlParams[] ` | get model by parameters |
|
|
106
|
-
| **post** | `model, UrlParams[] ` | post object model |
|
|
107
|
-
| **put** | `model, UrlParams[]` | put object model |
|
|
108
|
-
| **head** | `model, UrlParams[]` | get head for model |
|
|
109
|
-
| **delete** | `UrlParams[]` | remove object by params |
|
|
110
|
-
| **jsonp** | `UrlParams[]` | get jsonp data |
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
# Production mode
|
|
115
|
-
===
|
|
116
|
-
Nice things to do in production mode:
|
|
117
|
-
|
|
118
|
-
**1. Disable warnings.**
|
|
119
|
-
|
|
120
|
-
If you don't wanna see warning, disable it like this:
|
|
121
|
-
```ts
|
|
122
|
-
if (environment.production) {
|
|
123
|
-
Resource.enableWarnings = false;
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
# Angular 2+ ngZone
|
|
128
|
-
If you are using Angular 2+ you need to do this in your root **app.component**:
|
|
129
|
-
```ts
|
|
130
|
-
constructor(zone:NgZone) {
|
|
131
|
-
Resource.initAngularNgZone(zone)
|
|
132
|
-
}
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
|
|
1
|
+
|
|
2
|
+
## ng2-rest ##
|
|
3
|
+
|
|
4
|
+
Robust isomorphic REST framework for browser (Angular, React etc.) and backend (NodeJS) JavaScript/TypeScript apps.
|
|
5
|
+
|
|
6
|
+
Features:
|
|
7
|
+
- Compatible with Angular (2+) (newest 13,14 also...) , React, Vue , NodeJS (works everywhere)
|
|
8
|
+
- Compatible with RxJS operators (exhaustMap, switchMap, request cancelation etc.)
|
|
9
|
+
- Based on [axios](https://axios-http.com/) => excellent alternative to Angular's [HttpClient](https://angular.io/api/common/http/HttpClient)
|
|
10
|
+
- JSONP api request handling
|
|
11
|
+
- Transfer class instance from server to client and back
|
|
12
|
+
- Elegant way of dealing with REST api ( *similar to ExpressJS routes definitions* )
|
|
13
|
+
|
|
14
|
+
(more documentation soon... )
|
|
15
|
+
|
|
16
|
+
To install this package run:
|
|
17
|
+
|
|
18
|
+
npm install ng2-rest --save
|
|
19
|
+
|
|
20
|
+
Import Resource class:
|
|
21
|
+
```ts
|
|
22
|
+
import { Resource } from 'ng2-rest/browser';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Resource
|
|
26
|
+
========
|
|
27
|
+
|
|
28
|
+
Fit you existing API (not only REST) into new fluent objects with **Resource**
|
|
29
|
+
class observables. Use power of **async** in new angular templates;
|
|
30
|
+
|
|
31
|
+
**template.html**
|
|
32
|
+
```html
|
|
33
|
+
Users:
|
|
34
|
+
<ul *ngIf="model.allUsers() | async; else loader; let users" >
|
|
35
|
+
|
|
36
|
+
<li *ngFor="let user of users">
|
|
37
|
+
{{user.id}} {{user.fullName()}}
|
|
38
|
+
<br>
|
|
39
|
+
<input type="name" [(NgModel)]="user.name" >
|
|
40
|
+
<button (click)="model.update(user)" > Update </button>
|
|
41
|
+
</li>
|
|
42
|
+
|
|
43
|
+
</ul>
|
|
44
|
+
|
|
45
|
+
<ng-template #loader> loading users... </ng-template>
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
**component.ts**
|
|
49
|
+
```ts
|
|
50
|
+
class User {
|
|
51
|
+
name: string;
|
|
52
|
+
surname: string;
|
|
53
|
+
id: number;
|
|
54
|
+
|
|
55
|
+
fullName() {
|
|
56
|
+
return `Surname: ${this.surname}, Name: ${this.name}`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Express.js style url endpoint model
|
|
61
|
+
// you can ommit "<User>" part is you don't wanna see response interface
|
|
62
|
+
// also you can ommit third argument ",User" is you don't wanna
|
|
63
|
+
// map response object to User class objects
|
|
64
|
+
const rest = Resource.create<User>("http://yourbackend.com/api","users/:id",{'':User} )
|
|
65
|
+
|
|
66
|
+
class UserComponent {
|
|
67
|
+
|
|
68
|
+
// Prepare your beautiful interface
|
|
69
|
+
model = {
|
|
70
|
+
allUsers: () => rest.model()
|
|
71
|
+
.array
|
|
72
|
+
.get()
|
|
73
|
+
.observable // Observable resposne (useful for Angular 2+ html templates)
|
|
74
|
+
.pipe( map({ body } => body.json) ) // get all users, body.json => User[]
|
|
75
|
+
|
|
76
|
+
userBy: (id) => rest.model({id})
|
|
77
|
+
.get() // Promise response by default
|
|
78
|
+
.then({ body } => console.log(body.json)) // get user by id, body.json => User
|
|
79
|
+
|
|
80
|
+
update: async (user:User) =>{
|
|
81
|
+
try {
|
|
82
|
+
await rest.model({id:user.id}).put(user) // Promise response by default
|
|
83
|
+
|
|
84
|
+
alert('Update sucess')
|
|
85
|
+
} catch(e) {
|
|
86
|
+
alert(e)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
constructor() { }
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Specification
|
|
97
|
+
============
|
|
98
|
+
Example **UrlParams[]** :
|
|
99
|
+
`[ { sort: true },{ filter: 'id,5' }, { filter: 'name,test' } ]`
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
| Name | Parameters | Description |
|
|
103
|
+
| :---: | --- | ---: |
|
|
104
|
+
| **.array.** | get,post,put,head,delete,jsonp | for everything, but with arrays |
|
|
105
|
+
| **get** | `UrlParams[] ` | get model by parameters |
|
|
106
|
+
| **post** | `model, UrlParams[] ` | post object model |
|
|
107
|
+
| **put** | `model, UrlParams[]` | put object model |
|
|
108
|
+
| **head** | `model, UrlParams[]` | get head for model |
|
|
109
|
+
| **delete** | `UrlParams[]` | remove object by params |
|
|
110
|
+
| **jsonp** | `UrlParams[]` | get jsonp data |
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# Production mode
|
|
115
|
+
===
|
|
116
|
+
Nice things to do in production mode:
|
|
117
|
+
|
|
118
|
+
**1. Disable warnings.**
|
|
119
|
+
|
|
120
|
+
If you don't wanna see warning, disable it like this:
|
|
121
|
+
```ts
|
|
122
|
+
if (environment.production) {
|
|
123
|
+
Resource.enableWarnings = false;
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
# Angular 2+ ngZone
|
|
128
|
+
If you are using Angular 2+ you need to do this in your root **app.component**:
|
|
129
|
+
```ts
|
|
130
|
+
constructor(zone:NgZone) {
|
|
131
|
+
Resource.initAngularNgZone(zone)
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
|
|
@@ -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@18.0.
|
|
3
|
+
Assets from this folder are being shipped with this npm package (ng2-rest@18.0.9)
|
|
4
4
|
created from this project.
|
|
5
5
|
|
|
6
6
|
THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
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
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"type": "isomorphic-lib",
|
|
37
37
|
"version": "v18",
|
|
38
38
|
"additionalNpmNames": [
|
|
39
|
-
"
|
|
39
|
+
"taon-rest"
|
|
40
40
|
],
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"private": false,
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"workerPlugins": {}
|
|
54
54
|
},
|
|
55
55
|
"name": "ng2-rest",
|
|
56
|
-
"version": "18.0.
|
|
56
|
+
"version": "18.0.9",
|
|
57
57
|
"bugs": {
|
|
58
58
|
"url": "https://github.com/darekf77/ng2-rest/issues"
|
|
59
59
|
},
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"@types/lodash": "4.14.92",
|
|
77
77
|
"axios": "1.7.3",
|
|
78
78
|
"diff": "4.0.2",
|
|
79
|
-
"json10": "~18.0.
|
|
79
|
+
"json10": "~18.0.9",
|
|
80
80
|
"json5": "2.2.3",
|
|
81
81
|
"lodash": "4.17.21",
|
|
82
|
-
"ng2-logger": "~18.0.
|
|
82
|
+
"ng2-logger": "~18.0.11"
|
|
83
83
|
},
|
|
84
84
|
"license": "MIT",
|
|
85
85
|
"private": false,
|
|
86
|
-
"lastBuildTagHash": "
|
|
86
|
+
"lastBuildTagHash": "595ee986a088238dc0dbd305b4f695f1f774256d",
|
|
87
87
|
"devDependencies": {},
|
|
88
88
|
"main": "dist/app.electron.js"
|
|
89
89
|
}
|
package/src.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS GENERATED
|
|
2
2
|
export * from './lib';
|
|
3
3
|
// THIS FILE IS GENERATED
|
|
4
|
-
// please use command:
|
|
4
|
+
// please use command: taon build:watch to see here links for your globally builded lib code files
|
|
5
5
|
// THIS FILE IS GENERATED
|
|
6
6
|
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"resources": ["README.md"],
|
|
3
|
-
|
|
4
|
-
"overrided": {
|
|
5
|
-
"dependencies": {},
|
|
6
|
-
"includeAsDev": [],
|
|
7
|
-
|
|
8
|
-
"includeOnly": [
|
|
9
|
-
"@types/diff",
|
|
10
|
-
"diff",
|
|
11
|
-
"axios",
|
|
12
|
-
"lodash",
|
|
13
|
-
"@types/lodash",
|
|
14
|
-
"ng2-logger",
|
|
15
|
-
"json5",
|
|
16
|
-
"json10"
|
|
17
|
-
],
|
|
18
|
-
|
|
19
|
-
"ignoreDepsPattern": [],
|
|
20
|
-
"linkedFolders": [],
|
|
21
|
-
"npmFixes": []
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
"smartContainerBuildTarget": "",
|
|
25
|
-
"linkedRepos": [],
|
|
26
|
-
|
|
27
|
-
"libReleaseOptions": {
|
|
28
|
-
"nodts": false,
|
|
29
|
-
"obscure": false,
|
|
30
|
-
"ugly": false,
|
|
31
|
-
"includeNodeModules": false,
|
|
32
|
-
"cliBuildNoDts": false,
|
|
33
|
-
"cliBuildObscure": false,
|
|
34
|
-
"cliBuildIncludeNodeModules": false,
|
|
35
|
-
"cliBuildUglify": false
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
"smartContainerTarget": "",
|
|
39
|
-
"type": "isomorphic-lib",
|
|
40
|
-
"version": "v18",
|
|
41
|
-
"additionalNpmNames": ["
|
|
42
|
-
"license": "MIT",
|
|
43
|
-
"private": false,
|
|
44
|
-
|
|
45
|
-
"author": {
|
|
46
|
-
"name": "Dariusz Filipiak"
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
"homepage": "https://github.com/darekf77/ng2-rest#readme",
|
|
50
|
-
"keywords": ["isomorphic", "logger", "log", "typescript"],
|
|
51
|
-
"workerPlugins": {}
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"resources": ["README.md"],
|
|
3
|
+
|
|
4
|
+
"overrided": {
|
|
5
|
+
"dependencies": {},
|
|
6
|
+
"includeAsDev": [],
|
|
7
|
+
|
|
8
|
+
"includeOnly": [
|
|
9
|
+
"@types/diff",
|
|
10
|
+
"diff",
|
|
11
|
+
"axios",
|
|
12
|
+
"lodash",
|
|
13
|
+
"@types/lodash",
|
|
14
|
+
"ng2-logger",
|
|
15
|
+
"json5",
|
|
16
|
+
"json10"
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
"ignoreDepsPattern": [],
|
|
20
|
+
"linkedFolders": [],
|
|
21
|
+
"npmFixes": []
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
"smartContainerBuildTarget": "",
|
|
25
|
+
"linkedRepos": [],
|
|
26
|
+
|
|
27
|
+
"libReleaseOptions": {
|
|
28
|
+
"nodts": false,
|
|
29
|
+
"obscure": false,
|
|
30
|
+
"ugly": false,
|
|
31
|
+
"includeNodeModules": false,
|
|
32
|
+
"cliBuildNoDts": false,
|
|
33
|
+
"cliBuildObscure": false,
|
|
34
|
+
"cliBuildIncludeNodeModules": false,
|
|
35
|
+
"cliBuildUglify": false
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
"smartContainerTarget": "",
|
|
39
|
+
"type": "isomorphic-lib",
|
|
40
|
+
"version": "v18",
|
|
41
|
+
"additionalNpmNames": ["taon-rest"],
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"private": false,
|
|
44
|
+
|
|
45
|
+
"author": {
|
|
46
|
+
"name": "Dariusz Filipiak"
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
"homepage": "https://github.com/darekf77/ng2-rest#readme",
|
|
50
|
+
"keywords": ["isomorphic", "logger", "log", "typescript"],
|
|
51
|
+
"workerPlugins": {}
|
|
52
|
+
}
|
package/tmp-environment.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"type": "isomorphic-lib",
|
|
41
41
|
"version": "v18",
|
|
42
42
|
"additionalNpmNames": [
|
|
43
|
-
"
|
|
43
|
+
"taon-rest"
|
|
44
44
|
],
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"private": false,
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"workerPlugins": {}
|
|
58
58
|
},
|
|
59
59
|
"name": "ng2-rest",
|
|
60
|
-
"version": "18.0.
|
|
60
|
+
"version": "18.0.9",
|
|
61
61
|
"bugs": {
|
|
62
62
|
"url": "https://github.com/darekf77/ng2-rest/issues"
|
|
63
63
|
},
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"@types/lodash": "4.14.92",
|
|
81
81
|
"axios": "1.7.3",
|
|
82
82
|
"diff": "4.0.2",
|
|
83
|
-
"json10": "~18.0.
|
|
83
|
+
"json10": "~18.0.9",
|
|
84
84
|
"json5": "2.2.3",
|
|
85
85
|
"lodash": "4.17.21",
|
|
86
|
-
"ng2-logger": "~18.0.
|
|
86
|
+
"ng2-logger": "~18.0.11"
|
|
87
87
|
},
|
|
88
88
|
"license": "MIT",
|
|
89
89
|
"private": false,
|
|
90
|
-
"lastBuildTagHash": "
|
|
90
|
+
"lastBuildTagHash": "595ee986a088238dc0dbd305b4f695f1f774256d",
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@angular-builders/custom-webpack": "~18.0.0",
|
|
93
93
|
"@angular-devkit/build-angular": "~18.1.4",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@types/json5": "0.0.29",
|
|
155
155
|
"@types/lockfile": "1.0.4",
|
|
156
156
|
"@types/mocha": "10.0.7",
|
|
157
|
-
"@types/node": "18.
|
|
157
|
+
"@types/node": "16.18.21",
|
|
158
158
|
"@types/node-notifier": "8.0.5",
|
|
159
159
|
"@types/oauth2orize": "1.11.5",
|
|
160
160
|
"@types/password-hash": "1.2.24",
|
|
@@ -173,7 +173,6 @@
|
|
|
173
173
|
"angular-material-css-vars": "7.0.0",
|
|
174
174
|
"angular-resize-event": "3.2.0",
|
|
175
175
|
"animate.css": "4.1.1",
|
|
176
|
-
"any-project-cli": "~18.0.6",
|
|
177
176
|
"app-root-path": "3.1.0",
|
|
178
177
|
"background-worker-process": "~16.100.10",
|
|
179
178
|
"base32": "0.0.7",
|
|
@@ -226,14 +225,6 @@
|
|
|
226
225
|
"file-loader": "1.1.11",
|
|
227
226
|
"file-saver": "2.0.5",
|
|
228
227
|
"file-type": "19.1.1",
|
|
229
|
-
"firedev": "^18",
|
|
230
|
-
"firedev-crud": "~18.0.3",
|
|
231
|
-
"firedev-crud-deamon": "~18.0.6",
|
|
232
|
-
"firedev-ports": "~18.0.3",
|
|
233
|
-
"firedev-storage": "~18.0.3",
|
|
234
|
-
"firedev-type-sql": "~18.0.4",
|
|
235
|
-
"firedev-typeorm": "~18.0.3",
|
|
236
|
-
"firedev-ui": "~18.0.4",
|
|
237
228
|
"fkill": "6.1.0",
|
|
238
229
|
"font-awesome": "4.7.0",
|
|
239
230
|
"form-data": "4.0.0",
|
|
@@ -251,13 +242,13 @@
|
|
|
251
242
|
"image-focus": "1.2.1",
|
|
252
243
|
"immer": "10.0.2",
|
|
253
244
|
"immutable": "4.3.7",
|
|
254
|
-
"incremental-compiler": "~18.0.
|
|
245
|
+
"incremental-compiler": "~18.0.9",
|
|
255
246
|
"inquirer": "7.3.3",
|
|
256
247
|
"inquirer-autocomplete-prompt": "1.4.0",
|
|
257
248
|
"inquirer-autocomplete-standalone": "0.8.1",
|
|
258
249
|
"inquirer-select-pro": "1.0.0-alpha.7",
|
|
259
250
|
"is-elevated": "3.0.0",
|
|
260
|
-
"isomorphic-region-loader": "~18.0.
|
|
251
|
+
"isomorphic-region-loader": "~18.0.9",
|
|
261
252
|
"istanbul-instrumenter-loader": "3.0.1",
|
|
262
253
|
"jest": "29.7.0",
|
|
263
254
|
"jest-date-mock": "1.0.10",
|
|
@@ -268,16 +259,16 @@
|
|
|
268
259
|
"joi": "17.13.3",
|
|
269
260
|
"jscodeshift": "0.6.3",
|
|
270
261
|
"json-stringify-safe": "5.0.1",
|
|
271
|
-
"json10-writer": "~18.0.
|
|
262
|
+
"json10-writer": "~18.0.9",
|
|
272
263
|
"json5-writer": "0.2.0",
|
|
273
264
|
"jszip": "3.10.1",
|
|
274
265
|
"karma-cli": "1.0.1",
|
|
275
266
|
"lnk": "1.0.1",
|
|
276
267
|
"localforage": "1.10.0",
|
|
277
268
|
"lockfile": "1.0.4",
|
|
278
|
-
"lodash-walk-object": "~18.0.
|
|
269
|
+
"lodash-walk-object": "~18.0.9",
|
|
279
270
|
"lowdb": "7.0.1",
|
|
280
|
-
"magic-renamer": "~18.0.
|
|
271
|
+
"magic-renamer": "~18.0.9",
|
|
281
272
|
"material-design-icons": "3.0.1",
|
|
282
273
|
"method-override": "2.3.10",
|
|
283
274
|
"minimist": "1.2.8",
|
|
@@ -288,9 +279,10 @@
|
|
|
288
279
|
"ng-in-viewport": "16.1.0",
|
|
289
280
|
"ng-lock": "18.0.1",
|
|
290
281
|
"ng-packagr": "18.1.0",
|
|
291
|
-
"ng-talkback": "~18.0.
|
|
282
|
+
"ng-talkback": "~18.0.8",
|
|
292
283
|
"ng2-pdfjs-viewer": "18.0.0",
|
|
293
|
-
"ng2-rest": "~18.0.
|
|
284
|
+
"ng2-rest": "~18.0.6",
|
|
285
|
+
"ng2-rest-swagger-generator": "18.0.5",
|
|
294
286
|
"ngx-ace-wrapper": "17.0.0",
|
|
295
287
|
"ngx-editor": "17.5.4",
|
|
296
288
|
"ngx-highlightjs": "12.0.0",
|
|
@@ -303,7 +295,7 @@
|
|
|
303
295
|
"ngx-scrolltop": "18.0.0",
|
|
304
296
|
"ngx-store": "3.1.1",
|
|
305
297
|
"ngx-typed-js": "2.1.1",
|
|
306
|
-
"node-cli-tester": "~18.0.
|
|
298
|
+
"node-cli-tester": "~18.0.5",
|
|
307
299
|
"node-localstorage": "2.1.6",
|
|
308
300
|
"node-notifier": "10.0.1",
|
|
309
301
|
"node-polyfill-webpack-plugin": "2.0.1",
|
|
@@ -333,7 +325,7 @@
|
|
|
333
325
|
"q": "1.5.1",
|
|
334
326
|
"rallax.js": "2.0.4",
|
|
335
327
|
"randomcolor": "0.5.3",
|
|
336
|
-
"record-replay-req-res-scenario": "~18.0.
|
|
328
|
+
"record-replay-req-res-scenario": "~18.0.5",
|
|
337
329
|
"reflect-metadata": "0.2.2",
|
|
338
330
|
"rimraf": "2.6.2",
|
|
339
331
|
"rxjs": "~7.8.1",
|
|
@@ -345,21 +337,23 @@
|
|
|
345
337
|
"socket.io-client": "4.7.5",
|
|
346
338
|
"sort-package-json": "1.11.0",
|
|
347
339
|
"sql.js": "1.8.0",
|
|
348
|
-
"static-columns": "~18.0.
|
|
340
|
+
"static-columns": "~18.0.7",
|
|
349
341
|
"string-similarity": "4.0.4",
|
|
350
342
|
"sudo-block": "3.0.0",
|
|
351
343
|
"supertest": "7.0.0",
|
|
352
344
|
"sweetalert2": "11.7.32",
|
|
353
345
|
"systeminformation": "3.45.7",
|
|
346
|
+
"taon": "^18",
|
|
347
|
+
"taon-storage": "18.0.5",
|
|
348
|
+
"taon-type-sql": "18.0.6",
|
|
349
|
+
"taon-typeorm": "18.0.5",
|
|
354
350
|
"task.js": "0.1.5",
|
|
355
351
|
"threads": "1.7.0",
|
|
356
352
|
"tnp": "~18.0.6",
|
|
357
|
-
"tnp-
|
|
358
|
-
"tnp-config": "~18.0.8",
|
|
353
|
+
"tnp-config": "~18.0.11",
|
|
359
354
|
"tnp-core": "~18.0.30",
|
|
360
|
-
"tnp-
|
|
361
|
-
"tnp-
|
|
362
|
-
"tnp-models": "~18.0.7",
|
|
355
|
+
"tnp-helpers": "~18.0.9",
|
|
356
|
+
"tnp-models": "~18.0.10",
|
|
363
357
|
"ts-debug": "1.3.0",
|
|
364
358
|
"ts-json-schema-generator": "2.3.0-next.5",
|
|
365
359
|
"ts-loader": "2.3.1",
|
|
@@ -367,16 +361,17 @@
|
|
|
367
361
|
"tslib": "~2.6.3",
|
|
368
362
|
"tslint": "6.1.3",
|
|
369
363
|
"turndown": "7.2.0",
|
|
364
|
+
"type-fest": "4.25.0",
|
|
370
365
|
"typedoc": "0.26.5",
|
|
371
366
|
"typedoc-plugin-markdown": "4.2.3",
|
|
372
367
|
"typescript": "~5.5.4",
|
|
373
|
-
"typescript-class-helpers": "~18.0.
|
|
368
|
+
"typescript-class-helpers": "~18.0.10",
|
|
374
369
|
"typescript-formatter": "~7.2.2",
|
|
375
370
|
"underscore": "1.13.7",
|
|
376
371
|
"uuid": "10.0.0",
|
|
377
372
|
"validator": "13.5.2",
|
|
378
373
|
"video.js": "8.3.0",
|
|
379
|
-
"vpn-split": "~18.0.
|
|
374
|
+
"vpn-split": "~18.0.5",
|
|
380
375
|
"vscode": "1.1.37",
|
|
381
376
|
"wait-on": "7.0.1",
|
|
382
377
|
"watch": "1.0.2",
|
|
@@ -389,14 +384,14 @@
|
|
|
389
384
|
"main": "dist/app.electron.js"
|
|
390
385
|
},
|
|
391
386
|
"build": {
|
|
392
|
-
"number":
|
|
393
|
-
"date": "2024-08-
|
|
394
|
-
"hash": "
|
|
387
|
+
"number": 943,
|
|
388
|
+
"date": "2024-08-28T12:51:47.000Z",
|
|
389
|
+
"hash": "a0cb084f8c272b60c17b9ceb6bcbbb150c6e36e8"
|
|
395
390
|
},
|
|
396
391
|
"currentProjectName": "ng2-rest",
|
|
397
392
|
"currentProjectGenericName": "ng2-rest",
|
|
398
393
|
"currentProjectType": "isomorphic-lib",
|
|
399
|
-
"currentFrameworkVersion": "18.0.
|
|
394
|
+
"currentFrameworkVersion": "18.0.8",
|
|
400
395
|
"isStandaloneProject": true,
|
|
401
396
|
"isSmartContainer": false,
|
|
402
397
|
"pathesTsconfig": "\"paths\": {\"ng2-rest\":[\"./src/lib\"],\"ng2-rest/*\":[\"./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.
|