@azrico/webobject 1.4.194 → 1.4.196

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.
@@ -119,17 +119,17 @@ export declare class WebObject extends SimpleObject {
119
119
  * get a single web object
120
120
  * default order of parameters : search,readonly,fetchID
121
121
  */
122
- static get_single(...p: any[]): Promise<WebObject | undefined>;
122
+ static get_single(...p: any[]): Promise<WebObject | any | undefined>;
123
123
  /**
124
124
  * Get a list of web objects
125
125
  * default order of parameters : search,readonly,fetchID
126
126
  */
127
- static get_list(...p: any[]): Promise<WebObject[]>;
127
+ static get_list(...p: any[]): Promise<Array<WebObject | any>>;
128
128
  /**
129
129
  * Get a list of web objects and convert them to basic objects
130
130
  * can be passed to client components
131
131
  * default order of parameters : search,readonly,fetchID
132
132
  */
133
- static get_basicList(...p: any[]): Promise<Partial<WebObject>[]>;
133
+ static get_basicList(...p: any[]): Promise<any[]>;
134
134
  }
135
135
  export default WebObject;
@@ -1264,6 +1264,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1264
1264
  key: "get_single",
1265
1265
  value: (function () {
1266
1266
  var _get_single = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
1267
+ var _p$shift;
1267
1268
  var _len10,
1268
1269
  p,
1269
1270
  _key10,
@@ -1281,7 +1282,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1281
1282
  p[_key10] = _args23[_key10];
1282
1283
  }
1283
1284
  search = p.shift();
1284
- readonly = p.shift();
1285
+ readonly = (_p$shift = p.shift()) !== null && _p$shift !== void 0 ? _p$shift : false;
1285
1286
  fetchID = p.shift();
1286
1287
  if (!(0, _object.object_isEmpty)(search)) {
1287
1288
  _context23.next = 6;
@@ -1343,6 +1344,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1343
1344
  key: "get_list",
1344
1345
  value: (function () {
1345
1346
  var _get_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
1347
+ var _p$shift2;
1346
1348
  var _len11,
1347
1349
  p,
1348
1350
  _key11,
@@ -1360,7 +1362,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
1360
1362
  p[_key11] = _args24[_key11];
1361
1363
  }
1362
1364
  search = p.shift();
1363
- readonly = p.shift();
1365
+ readonly = (_p$shift2 = p.shift()) !== null && _p$shift2 !== void 0 ? _p$shift2 : false;
1364
1366
  fetchID = p.shift();
1365
1367
  if (!search) search = {};
1366
1368
  _context24.next = 7;
@@ -1256,7 +1256,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
1256
1256
  if (!Array.isArray(objs)) checkObjs = [objs];else checkObjs = objs;
1257
1257
  for (var index = 0; index < checkObjs.length; index++) {
1258
1258
  var obj = checkObjs[index];
1259
- obj.__is_readonly = readonlyval;
1259
+ obj.__is_readonly = Boolean(readonlyval);
1260
1260
  if (obj instanceof SimpleObject) {
1261
1261
  if (obj.canModify) {
1262
1262
  if (!obj.getOriginal()) obj.setOriginal();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.194",
3
+ "version": "1.4.196",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",