corebasic 1.0.107 → 1.0.108

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.
Files changed (2) hide show
  1. package/libs/elabase.js +3 -3
  2. package/package.json +1 -1
package/libs/elabase.js CHANGED
@@ -85,7 +85,7 @@ export function transactionCommit(arg) {
85
85
 
86
86
  export const insert = async (meta, collection, value, _id) => {
87
87
  // Multi Company Support
88
- if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.query()"}
88
+ if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.insert()"}
89
89
  collection = `${meta.company}.${collection}`
90
90
  if (meta.company !== "GLOBAL") {
91
91
  if (typeof value === "object" && !Array.isArray(value))
@@ -156,7 +156,7 @@ function collectionArray(col) {
156
156
 
157
157
  export const update = async (meta, collection, query, update, options) => {
158
158
  // Multi Company Support
159
- if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.query()"}
159
+ if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.update()"}
160
160
  collection = `${meta.company}.${collection}`
161
161
  if (meta.company !== "GLOBAL") {
162
162
  query.company = meta.company
@@ -186,7 +186,7 @@ export const update = async (meta, collection, query, update, options) => {
186
186
 
187
187
  export const remove = async (meta, collection, query) => {
188
188
  // Multi Company Support
189
- if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.query()"}
189
+ if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.remove()"}
190
190
  collection = `${meta.company}.${collection}`
191
191
  if (meta.company !== "GLOBAL")
192
192
  query.company = meta.company
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.107",
4
+ "version": "1.0.108",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {