@budibase/backend-core 2.29.2 → 2.29.3

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.
@@ -1,8 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isInternalColumnName = exports.CONSTANT_EXTERNAL_ROW_COLS = exports.CONSTANT_INTERNAL_ROW_COLS = void 0;
4
- var shared_core_1 = require("@budibase/shared-core");
5
- Object.defineProperty(exports, "CONSTANT_INTERNAL_ROW_COLS", { enumerable: true, get: function () { return shared_core_1.CONSTANT_INTERNAL_ROW_COLS; } });
6
- Object.defineProperty(exports, "CONSTANT_EXTERNAL_ROW_COLS", { enumerable: true, get: function () { return shared_core_1.CONSTANT_EXTERNAL_ROW_COLS; } });
7
- Object.defineProperty(exports, "isInternalColumnName", { enumerable: true, get: function () { return shared_core_1.isInternalColumnName; } });
4
+ exports.CONSTANT_INTERNAL_ROW_COLS = [
5
+ "_id",
6
+ "_rev",
7
+ "type",
8
+ "createdAt",
9
+ "updatedAt",
10
+ "tableId",
11
+ ];
12
+ exports.CONSTANT_EXTERNAL_ROW_COLS = ["_id", "_rev", "tableId"];
13
+ function isInternalColumnName(name) {
14
+ return exports.CONSTANT_INTERNAL_ROW_COLS.includes(name);
15
+ }
16
+ exports.isInternalColumnName = isInternalColumnName;
8
17
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/db/constants.ts"],"names":[],"mappings":";;;AAAA,qDAI8B;AAH5B,yHAAA,0BAA0B,OAAA;AAC1B,yHAAA,0BAA0B,OAAA;AAC1B,mHAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/db/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,KAAK;IACL,MAAM;IACN,MAAM;IACN,WAAW;IACX,WAAW;IACX,SAAS;CACD,CAAA;AAEG,QAAA,0BAA0B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAU,CAAA;AAE7E,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,OAAQ,kCAAgD,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/backend-core",
3
- "version": "2.29.2",
3
+ "version": "2.29.3",
4
4
  "description": "Budibase backend core libraries used in server and worker",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "dependencies": {
24
24
  "@budibase/nano": "10.1.5",
25
25
  "@budibase/pouchdb-replication-stream": "1.2.10",
26
- "@budibase/shared-core": "2.29.2",
27
- "@budibase/types": "2.29.2",
26
+ "@budibase/shared-core": "2.29.3",
27
+ "@budibase/types": "2.29.3",
28
28
  "@govtechsg/passport-openidconnect": "^1.0.2",
29
29
  "aws-cloudfront-sign": "3.0.2",
30
30
  "aws-sdk": "2.1030.0",
@@ -96,5 +96,5 @@
96
96
  }
97
97
  }
98
98
  },
99
- "gitHead": "d77bd029bbaad8e29e3bebb7073db33fb8193691"
99
+ "gitHead": "c2cc9ed214200effd8e97b69a01a3ab0fe811cc3"
100
100
  }
@@ -1,5 +1,14 @@
1
- export {
2
- CONSTANT_INTERNAL_ROW_COLS,
3
- CONSTANT_EXTERNAL_ROW_COLS,
4
- isInternalColumnName,
5
- } from "@budibase/shared-core"
1
+ export const CONSTANT_INTERNAL_ROW_COLS = [
2
+ "_id",
3
+ "_rev",
4
+ "type",
5
+ "createdAt",
6
+ "updatedAt",
7
+ "tableId",
8
+ ] as const
9
+
10
+ export const CONSTANT_EXTERNAL_ROW_COLS = ["_id", "_rev", "tableId"] as const
11
+
12
+ export function isInternalColumnName(name: string): boolean {
13
+ return (CONSTANT_INTERNAL_ROW_COLS as readonly string[]).includes(name)
14
+ }