@azrico/webobject 1.4.186 → 1.4.188
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 -17
- package/package.json +1 -1
|
@@ -1243,32 +1243,31 @@ 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" ? 16 : 16;
|
|
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
|
});
|
|
1254
|
+
case 14:
|
|
1255
|
+
res = _context22.sent;
|
|
1256
|
+
return _context22.abrupt("break", 20);
|
|
1256
1257
|
case 16:
|
|
1257
|
-
_context22.
|
|
1258
|
-
res = _context22.t1.ensure.call(_context22.t1, _context22.t2, _context22.t3);
|
|
1259
|
-
return _context22.abrupt("break", 25);
|
|
1260
|
-
case 19:
|
|
1261
|
-
_context22.t4 = _object.object_first;
|
|
1262
|
-
_context22.next = 22;
|
|
1258
|
+
_context22.next = 18;
|
|
1263
1259
|
return this.get_list(search, readonly, fetchID);
|
|
1264
|
-
case
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1260
|
+
case 18:
|
|
1261
|
+
res = _context22.sent;
|
|
1262
|
+
return _context22.abrupt("break", 20);
|
|
1263
|
+
case 20:
|
|
1264
|
+
if (res) res = (0, _object.array_first)(res);
|
|
1265
|
+
if (!(0, _object.object_isEmpty)(res)) {
|
|
1266
|
+
res = this.ensure(this, res);
|
|
1267
|
+
WebObject.setReadonly(res, readonly);
|
|
1268
|
+
}
|
|
1270
1269
|
return _context22.abrupt("return", res);
|
|
1271
|
-
case
|
|
1270
|
+
case 23:
|
|
1272
1271
|
case "end":
|
|
1273
1272
|
return _context22.stop();
|
|
1274
1273
|
}
|