ng2-rest 13.2.5 → 13.2.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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2020/lib/models.mjs +6 -11
- package/browser/fesm2015/ng2-rest.mjs +4 -10
- package/browser/fesm2015/ng2-rest.mjs.map +1 -1
- package/browser/fesm2020/ng2-rest.mjs +4 -10
- package/browser/fesm2020/ng2-rest.mjs.map +1 -1
- package/client/esm2020/lib/models.mjs +6 -11
- package/client/fesm2015/ng2-rest.mjs +4 -10
- package/client/fesm2015/ng2-rest.mjs.map +1 -1
- package/client/fesm2020/ng2-rest.mjs +4 -10
- package/client/fesm2020/ng2-rest.mjs.map +1 -1
- package/client/package.json +42 -41
- package/lib/models.js +5 -12
- package/lib/models.js.map +1 -1
- package/package.json +4 -4
- package/tmp-environment.json +47 -45
- package/websql/esm2020/lib/models.mjs +6 -11
- package/websql/fesm2015/ng2-rest.mjs +4 -10
- package/websql/fesm2015/ng2-rest.mjs.map +1 -1
- package/websql/fesm2020/ng2-rest.mjs +4 -10
- package/websql/fesm2020/ng2-rest.mjs.map +1 -1
|
@@ -968,12 +968,12 @@ var Models;
|
|
|
968
968
|
return this.responseText;
|
|
969
969
|
}
|
|
970
970
|
get booleanValue() {
|
|
971
|
-
if (!isBlob(this.responseText)) {
|
|
971
|
+
if (!Helpers$1.isBlob(this.responseText)) {
|
|
972
972
|
return ['ok', 'true'].includes(this.responseText.trim());
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
975
|
get rawJson() {
|
|
976
|
-
if (!isBlob(this.responseText)) {
|
|
976
|
+
if (!Helpers$1.isBlob(this.responseText)) {
|
|
977
977
|
let res = this.toJSON(this.responseText, this.isArray);
|
|
978
978
|
if (this.circular && Array.isArray(this.circular)) {
|
|
979
979
|
res = JSON10.parse(JSON.stringify(res), this.circular);
|
|
@@ -982,7 +982,7 @@ var Models;
|
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
get json() {
|
|
985
|
-
if (!isBlob(this.responseText)) {
|
|
985
|
+
if (!Helpers$1.isBlob(this.responseText)) {
|
|
986
986
|
if (this.entity && typeof this.entity === 'function') {
|
|
987
987
|
return this.entity(); // @LAST
|
|
988
988
|
}
|
|
@@ -998,7 +998,7 @@ var Models;
|
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
1000
|
get text() {
|
|
1001
|
-
if (!isBlob(this.responseText)) {
|
|
1001
|
+
if (!Helpers$1.isBlob(this.responseText)) {
|
|
1002
1002
|
return this.responseText.replace(/^\"/, '').replace(/\"$/, '');
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
@@ -1082,12 +1082,6 @@ var Models;
|
|
|
1082
1082
|
/* */
|
|
1083
1083
|
/* */
|
|
1084
1084
|
})(Models || (Models = {}));
|
|
1085
|
-
function isBlob(maybeBlob) {
|
|
1086
|
-
if (typeof Blob === 'undefined') { // OK because there is no Blob in node
|
|
1087
|
-
return false;
|
|
1088
|
-
}
|
|
1089
|
-
return maybeBlob instanceof Blob; // || toString.call(maybeBlob) === '[object Blob]';
|
|
1090
|
-
}
|
|
1091
1085
|
;
|
|
1092
1086
|
({}); // @--end-of-file-for-module=ng2-rest lib/models.ts
|
|
1093
1087
|
|