@azrico/webobject 1.4.132 → 1.4.133
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.
|
@@ -72,6 +72,8 @@ export declare class WebObject extends SimpleObject {
|
|
|
72
72
|
deltaIsValid(d: any): true | string;
|
|
73
73
|
/**
|
|
74
74
|
* calls the `get_deltaObject` with `allProperties=true` `extraProperties=true`
|
|
75
|
+
*
|
|
76
|
+
* useful in server applications
|
|
75
77
|
* @returns
|
|
76
78
|
*/
|
|
77
79
|
get_fullDeltaObject(p?: deltaParams): Promise<any>;
|
|
@@ -154,7 +154,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
154
154
|
_context.next = 6;
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
|
-
throw Error("Cant use setValue when on readonly mode");
|
|
157
|
+
throw Error("Cant use setValue (".concat(String(key), ") when on readonly mode"));
|
|
158
158
|
case 6:
|
|
159
159
|
return _context.abrupt("return", false);
|
|
160
160
|
case 7:
|
|
@@ -440,7 +440,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
440
440
|
_context8.next = 6;
|
|
441
441
|
break;
|
|
442
442
|
}
|
|
443
|
-
throw Error("Cant use
|
|
443
|
+
throw Error("Cant use setSubValue (".concat(String(key), ") when on readonly mode"));
|
|
444
444
|
case 6:
|
|
445
445
|
return _context8.abrupt("return", false);
|
|
446
446
|
case 7:
|
|
@@ -544,7 +544,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
544
544
|
_context10.next = 8;
|
|
545
545
|
break;
|
|
546
546
|
}
|
|
547
|
-
throw Error("Cant use pushValues when on readonly mode");
|
|
547
|
+
throw Error("Cant use pushValues (".concat(String(key), ") when on readonly mode"));
|
|
548
548
|
case 8:
|
|
549
549
|
return _context10.abrupt("return", false);
|
|
550
550
|
case 9:
|
|
@@ -558,7 +558,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
558
558
|
_context10.next = 16;
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
|
-
throw Error("Cant use pushValues on non Array keys");
|
|
561
|
+
throw Error("Cant use pushValues (".concat(String(key), ") on non Array keys"));
|
|
562
562
|
case 16:
|
|
563
563
|
return _context10.abrupt("return", false);
|
|
564
564
|
case 17:
|
|
@@ -943,7 +943,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
943
943
|
_context14.next = 3;
|
|
944
944
|
break;
|
|
945
945
|
}
|
|
946
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
946
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(eventName, ") if your object has no manager"));
|
|
947
947
|
return _context14.abrupt("return");
|
|
948
948
|
case 3:
|
|
949
949
|
for (_len2 = _args14.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -970,7 +970,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
970
970
|
var onlyOn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
971
971
|
var runOnce = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
972
972
|
if (!this.manager) {
|
|
973
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
973
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(name, ") if your object has no manager"));
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
976
|
return this.manager.event_use(name, runEvent, onlyOn, runOnce);
|
|
@@ -979,7 +979,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
979
979
|
key: "event_remove",
|
|
980
980
|
value: function event_remove(name, uname) {
|
|
981
981
|
if (!this.manager) {
|
|
982
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
982
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(name, ") if your object has no manager"));
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
985
|
return this.manager.event_remove(name, uname);
|
|
@@ -1000,7 +1000,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
1000
1000
|
_context15.next = 5;
|
|
1001
1001
|
break;
|
|
1002
1002
|
}
|
|
1003
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
1003
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(name, ") if your object has no manager"));
|
|
1004
1004
|
return _context15.abrupt("return");
|
|
1005
1005
|
case 5:
|
|
1006
1006
|
_context15.next = 7;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azrico/webobject",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.133",
|
|
4
4
|
"description": "Stateful object",
|
|
5
5
|
"author": "Azrideus",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-standard": "^4.0.1",
|
|
47
47
|
"gh-pages": "^2.2.0",
|
|
48
48
|
"husky": "^8.0.1",
|
|
49
|
-
"jest": "^27.0.5",
|
|
49
|
+
"jest": "^27.0.5",
|
|
50
50
|
"prettier": "^2.0.4",
|
|
51
51
|
"prop-types": "^15.7.2",
|
|
52
52
|
"react": "^16.13.1",
|