@yuneta/gobj-js 7.26.11 → 7.26.12
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/gobj-js.cjs.js +12 -6
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +75 -73
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +12 -6
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +164 -162
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +12 -6
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +89 -87
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +12 -6
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +89 -87
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.iife.js
CHANGED
|
@@ -5247,15 +5247,18 @@ var gobjJs = (function(exports) {
|
|
|
5247
5247
|
log_error("jdb_update: topic not found: " + topic_name);
|
|
5248
5248
|
return null;
|
|
5249
5249
|
}
|
|
5250
|
-
if (empty_string(kw["id"])) {
|
|
5251
|
-
log_error(
|
|
5252
|
-
trace_msg(kw);
|
|
5250
|
+
if (!is_object(kw) || empty_string(kw["id"])) {
|
|
5251
|
+
log_error(`jdb_update: record without id: ${JSON.stringify(kw)}`);
|
|
5253
5252
|
return null;
|
|
5254
5253
|
}
|
|
5255
5254
|
if (!is_string(path)) {
|
|
5256
5255
|
log_error(`jdb_update: path must be a string: ${String(path)}`);
|
|
5257
5256
|
return null;
|
|
5258
5257
|
}
|
|
5258
|
+
if (path !== "" && path.split("`").includes("")) {
|
|
5259
|
+
log_error(`jdb_update: empty segment in path: '${path}'`);
|
|
5260
|
+
return null;
|
|
5261
|
+
}
|
|
5259
5262
|
let ids = path.split("`");
|
|
5260
5263
|
let id;
|
|
5261
5264
|
let v = topic;
|
|
@@ -5297,15 +5300,18 @@ var gobjJs = (function(exports) {
|
|
|
5297
5300
|
log_error("jdb_delete: topic not found: " + topic_name);
|
|
5298
5301
|
return null;
|
|
5299
5302
|
}
|
|
5300
|
-
if (empty_string(kw["id"])) {
|
|
5301
|
-
log_error(
|
|
5302
|
-
trace_msg(kw);
|
|
5303
|
+
if (!is_object(kw) || empty_string(kw["id"])) {
|
|
5304
|
+
log_error(`jdb_delete: record without id: ${JSON.stringify(kw)}`);
|
|
5303
5305
|
return null;
|
|
5304
5306
|
}
|
|
5305
5307
|
if (!is_string(path)) {
|
|
5306
5308
|
log_error(`jdb_delete: path must be a string: ${String(path)}`);
|
|
5307
5309
|
return null;
|
|
5308
5310
|
}
|
|
5311
|
+
if (path !== "" && path.split("`").includes("")) {
|
|
5312
|
+
log_error(`jdb_delete: empty segment in path: '${path}'`);
|
|
5313
|
+
return null;
|
|
5314
|
+
}
|
|
5309
5315
|
let ids = path.split("`");
|
|
5310
5316
|
let id;
|
|
5311
5317
|
let v = topic;
|