@azrico/webobject 1.4.185 → 1.4.187
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/dist/src/WebObjects/WebObject.js +16 -18
- package/package.json +2 -2
|
@@ -1243,32 +1243,30 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1243
1243
|
params = {};
|
|
1244
1244
|
params.context = readonly ? "view" : "edit";
|
|
1245
1245
|
_context22.t0 = _typeof(search);
|
|
1246
|
-
_context22.next = _context22.t0 === "string" ? 11 : _context22.t0 === "number" ? 11 : _context22.t0 === "object" ?
|
|
1246
|
+
_context22.next = _context22.t0 === "string" ? 11 : _context22.t0 === "number" ? 11 : _context22.t0 === "object" ? 17 : 17;
|
|
1247
1247
|
break;
|
|
1248
1248
|
case 11:
|
|
1249
1249
|
search = String(search);
|
|
1250
|
-
_context22.
|
|
1251
|
-
_context22.t2 = this;
|
|
1252
|
-
_context22.next = 16;
|
|
1250
|
+
_context22.next = 14;
|
|
1253
1251
|
return _global.gfunc.run_action("get", this.__web_path + "/" + search, params, {
|
|
1254
1252
|
fetchID: fetchID
|
|
1255
1253
|
});
|
|
1256
|
-
case
|
|
1257
|
-
|
|
1258
|
-
res =
|
|
1259
|
-
return _context22.abrupt("break",
|
|
1260
|
-
case
|
|
1261
|
-
_context22.
|
|
1262
|
-
_context22.next =
|
|
1254
|
+
case 14:
|
|
1255
|
+
res = _context22.sent;
|
|
1256
|
+
if (res) res = this.ensure(this, res);
|
|
1257
|
+
return _context22.abrupt("break", 23);
|
|
1258
|
+
case 17:
|
|
1259
|
+
_context22.t1 = _object.array_first;
|
|
1260
|
+
_context22.next = 20;
|
|
1263
1261
|
return this.get_list(search, readonly, fetchID);
|
|
1264
|
-
case
|
|
1265
|
-
_context22.
|
|
1266
|
-
res = (0, _context22.
|
|
1267
|
-
return _context22.abrupt("break",
|
|
1268
|
-
case
|
|
1269
|
-
WebObject.setReadonly(res, readonly);
|
|
1262
|
+
case 20:
|
|
1263
|
+
_context22.t2 = _context22.sent;
|
|
1264
|
+
res = (0, _context22.t1)(_context22.t2);
|
|
1265
|
+
return _context22.abrupt("break", 23);
|
|
1266
|
+
case 23:
|
|
1267
|
+
if (res) WebObject.setReadonly(res, readonly);
|
|
1270
1268
|
return _context22.abrupt("return", res);
|
|
1271
|
-
case
|
|
1269
|
+
case 25:
|
|
1272
1270
|
case "end":
|
|
1273
1271
|
return _context22.stop();
|
|
1274
1272
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azrico/webobject",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.187",
|
|
4
4
|
"description": "Stateful object",
|
|
5
5
|
"author": "Azrideus",
|
|
6
6
|
"license": "MIT",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@azrico/uid": "*"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@azrico/convert": "^1.0.
|
|
72
|
+
"@azrico/convert": "^1.0.9",
|
|
73
73
|
"@azrico/event": "^1.2.44",
|
|
74
74
|
"@azrico/global": "^1.3.79",
|
|
75
75
|
"@azrico/math": "^1.0.5",
|