Comparing version 1.16.9 to 1.16.10
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// TODO: allow developer customize what is `id` on fib-app's rest model | ||
function default_1(orm, plugin_opts) { | ||
function beforeDefine(name, properties, opts) { | ||
if ((opts.extension || opts.__for_extension) && !properties.id) { | ||
opts.__webx_use_uuid = true; | ||
if (typeof opts.__webx_use_uuid === 'boolean') | ||
return; | ||
if (opts.extension || opts.__for_extension) { | ||
// for those extension models, we should enforce add id property to it | ||
if (!properties.id) { | ||
opts.__webx_use_uuid = true; | ||
} | ||
} | ||
@@ -7,0 +13,0 @@ } |
@@ -9,5 +9,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
function beforeDefine(name, properties, opts) { | ||
var _a; | ||
if (opts.virtualView) | ||
return; | ||
use_uuid = use_uuid || opts.__webx_use_uuid; | ||
use_uuid = (_a = opts.__webx_use_uuid) !== null && _a !== void 0 ? _a : use_uuid; | ||
if (!use_uuid) | ||
@@ -14,0 +15,0 @@ return; |
{ | ||
"name": "fib-app", | ||
"version": "1.16.9", | ||
"version": "1.16.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
203229
4652