corebasic 1.0.204 → 1.0.205
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/libs/dip.js +2 -1
- package/libs/elabase.js +1 -1
- package/package.json +1 -1
package/libs/dip.js
CHANGED
|
@@ -18,6 +18,7 @@ export const companyMeta = Elabase.companyMeta
|
|
|
18
18
|
export const outletMeta = Elabase.outletMeta
|
|
19
19
|
export const customMeta = Elabase.customMeta
|
|
20
20
|
export const schema = Elabase.schema
|
|
21
|
+
export const isDipMeta = Elabase.isDipMeta
|
|
21
22
|
|
|
22
23
|
export const shard_stats = Elabase.shard_stats
|
|
23
24
|
export let config = Elabase.config
|
|
@@ -88,7 +89,7 @@ export const idip = async (message, callback, cleanup) => {
|
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
export const insertKeys = (message, meta) => {
|
|
91
|
-
if (!(meta
|
|
92
|
+
if (!isDipMeta(meta)) throw {message: 'Error: Provided meta is not an instance of DipMeta in Dip.insertKeys()'}
|
|
92
93
|
return {
|
|
93
94
|
"created": message.date, "updated": message.date,
|
|
94
95
|
"createdBy": message.meta.staff,
|
package/libs/elabase.js
CHANGED