ng2-rest 19.0.39 → 19.0.40
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 +8 -7
- package/browser/fesm2022/ng2-rest.mjs +1 -1
- package/browser/fesm2022/ng2-rest.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/request-cache.js +23 -9
- package/lib/request-cache.js.map +1 -1
- package/lib/rest.class.js +1 -1
- package/lib/rest.class.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +6 -4
- package/websql/fesm2022/ng2-rest.mjs +1 -1
- package/websql/fesm2022/ng2-rest.mjs.map +1 -1
- package/websql/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,13 +101,14 @@ Example **UrlParams[]** :
|
|
|
101
101
|
|
|
102
102
|
| Name | Parameters | Description |
|
|
103
103
|
| :---: | --- | ---: |
|
|
104
|
-
|
|
|
105
|
-
| **get** | `UrlParams[] ` | get
|
|
106
|
-
| **post** | `model, UrlParams[] ` |
|
|
107
|
-
| **
|
|
108
|
-
| **
|
|
109
|
-
| **
|
|
110
|
-
| **
|
|
104
|
+
| **array** | changes response type to array |
|
|
105
|
+
| **get** | `model, UrlParams[] ` | get data |
|
|
106
|
+
| **post** | `model, UrlParams[] ` | create data |
|
|
107
|
+
| **patch** | `model, UrlParams[] ` | change data <br>(effect of changing data may be diffrent with each request) |
|
|
108
|
+
| **put** | `model, UrlParams[]` | change data <br>(can be done multiple times with same effect) |
|
|
109
|
+
| **head** | `model, UrlParams[]` | check data |
|
|
110
|
+
| **delete** | `model, UrlParams[] ` | remove data |
|
|
111
|
+
| **jsonp** | `model, UrlParams[] ` | get jsonp data |
|
|
111
112
|
|
|
112
113
|
|
|
113
114
|
|
|
@@ -1413,7 +1413,7 @@ class Rest {
|
|
|
1413
1413
|
this._headers = RestHeaders.from(CONTENT_TYPE.APPLICATION_JSON);
|
|
1414
1414
|
}
|
|
1415
1415
|
// console.log("_headers", this.headers)
|
|
1416
|
-
const result = this.request[method.toLowerCase()](modelUrl, body, this.headers, this.meta, isArray, this.mockHttp);
|
|
1416
|
+
const result = this.request[method.toLowerCase()](modelUrl, body, this.headers, this.meta, isArray, this.mockHttp, axiosOptions);
|
|
1417
1417
|
this.mockHttp = void 0;
|
|
1418
1418
|
return result;
|
|
1419
1419
|
}
|