ng2-rest 13.0.10 → 13.0.13
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/browser/esm2020/lib/models.mjs +8 -1
- package/browser/fesm2015/ng2-rest.mjs +7 -0
- package/browser/fesm2015/ng2-rest.mjs.map +1 -1
- package/browser/fesm2020/ng2-rest.mjs +7 -0
- package/browser/fesm2020/ng2-rest.mjs.map +1 -1
- package/browser/lib/models.d.ts +1 -0
- package/client/esm2020/lib/models.mjs +8 -1
- package/client/fesm2015/ng2-rest.mjs +7 -0
- package/client/fesm2015/ng2-rest.mjs.map +1 -1
- package/client/fesm2020/ng2-rest.mjs +7 -0
- package/client/fesm2020/ng2-rest.mjs.map +1 -1
- package/client/lib/models.d.ts +1 -0
- package/lib/models.d.ts +1 -0
- package/lib/models.js +11 -0
- package/lib/models.js.map +1 -1
- package/package.json +5 -224
- package/package.json_tnp.json5 +1 -1
- package/tmp-environment.json +37 -37
|
@@ -988,6 +988,13 @@ var Models;
|
|
|
988
988
|
get booleanValue() {
|
|
989
989
|
return ['ok', 'true'].includes(this.body.trim());
|
|
990
990
|
}
|
|
991
|
+
get rawJson() {
|
|
992
|
+
let res = this.toJSON(this.body, this.isArray);
|
|
993
|
+
if (this.circular && Array.isArray(this.circular)) {
|
|
994
|
+
res = JSON10.parse(JSON.stringify(res), this.circular);
|
|
995
|
+
}
|
|
996
|
+
return res;
|
|
997
|
+
}
|
|
991
998
|
get json() {
|
|
992
999
|
if (this.entity && typeof this.entity === 'object') {
|
|
993
1000
|
const json = this.toJSON(this.body, this.isArray);
|