@onehat/data 1.21.7 → 1.21.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/data",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.9",
|
|
4
4
|
"description": "JS data modeling package with adapters for many storage mediums.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"uuid": "^9.0.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"fast-xml-parser": "^4.
|
|
56
|
+
"fast-xml-parser": "^4.4.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/core": "^7.22.1",
|
package/src/Property/Json.js
CHANGED
|
@@ -253,14 +253,14 @@ class OneBuildRepository extends AjaxRepository {
|
|
|
253
253
|
total = response[this.totalProperty],
|
|
254
254
|
message = response[this.messageProperty];
|
|
255
255
|
|
|
256
|
-
if (!success) {
|
|
257
|
-
this.emit('error', message, root);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
256
|
if (message === 'You do not have authorization to access this area.') {
|
|
261
257
|
this.emit('logout');
|
|
262
258
|
}
|
|
263
259
|
|
|
260
|
+
if (!success) {
|
|
261
|
+
this.throwError(message, root);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
264
|
return {
|
|
265
265
|
root,
|
|
266
266
|
success,
|
|
Binary file
|