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 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 instanceof DipMeta)) throw {message: 'Error: Provided meta is not an instance of DipMeta in Dip.insertKeys()'}
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
@@ -67,7 +67,7 @@ class DipMeta {
67
67
  Object.freeze(this);
68
68
  }
69
69
  }
70
-
70
+ export const isDipMeta = meta => meta instanceof DipMeta
71
71
 
72
72
  export const globalMeta = args => {
73
73
  return new DipMeta({ ...args, company: "GLOBAL", outlet: "GLOBAL" })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.204",
4
+ "version": "1.0.205",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {