Update command

This commit is contained in:
Adria Navarro 2024-02-13 16:57:33 +01:00
parent be69edffd7
commit fa2fbb4253
4 changed files with 42 additions and 20 deletions

View File

@ -13,8 +13,8 @@
"build": "node ./scripts/build.js", "build": "node ./scripts/build.js",
"postbuild": "copyfiles -f ../client/dist/budibase-client.js ../client/manifest.json client && copyfiles -f ../../yarn.lock ./dist/", "postbuild": "copyfiles -f ../client/dist/budibase-client.js ../client/manifest.json client && copyfiles -f ../../yarn.lock ./dist/",
"check:types": "tsc -p tsconfig.json --noEmit --paths null", "check:types": "tsc -p tsconfig.json --noEmit --paths null",
"build:isolated-vm-lib:string-templates": "esbuild --minify --bundle src/jsRunner/bundles/index-helpers.ts --outfile=src/jsRunner/bundles/index-helpers.ivm.bundle.js --platform=node --format=esm --external:handlebars", "build:isolated-vm-lib:string-templates": "esbuild --minify --bundle src/jsRunner/bundles/index-helpers.ts --outfile=src/jsRunner/bundles/index-helpers.ivm.bundle.js --platform=node --format=iife --external:handlebars --global-name=helpers",
"build:isolated-vm-lib:bson": "esbuild --minify --bundle src/jsRunner/bundles/bsonPackage.ts --outfile=src/jsRunner/bundles/bson.ivm.bundle.js --platform=node --format=esm", "build:isolated-vm-lib:bson": "esbuild --minify --bundle src/jsRunner/bundles/bsonPackage.ts --outfile=src/jsRunner/bundles/bson.ivm.bundle.js --platform=node --format=iife --global-name=bson",
"build:isolated-vm-libs": "yarn build:isolated-vm-lib:string-templates && yarn build:isolated-vm-lib:bson", "build:isolated-vm-libs": "yarn build:isolated-vm-lib:string-templates && yarn build:isolated-vm-lib:bson",
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
"debug": "yarn build && node --expose-gc --inspect=9222 dist/index.js", "debug": "yarn build && node --expose-gc --inspect=9222 dist/index.js",

View File

@ -1,5 +1,9 @@
const bson=(() => { "use strict";
var bson = (() => {
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b] get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) { }) : x)(function(x) {
@ -10,6 +14,19 @@ const bson=(() => {
var __commonJS = (cb, mod) => function __require2() { var __commonJS = (cb, mod) => function __require2() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
}; };
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// ../../node_modules/bson/lib/bson.cjs // ../../node_modules/bson/lib/bson.cjs
var require_bson = __commonJS({ var require_bson = __commonJS({
@ -3705,7 +3722,7 @@ const bson=(() => {
finalBuffer.set(buffer.subarray(0, serializationIndex), startIndex); finalBuffer.set(buffer.subarray(0, serializationIndex), startIndex);
return startIndex + serializationIndex - 1; return startIndex + serializationIndex - 1;
} }
function deserialize(buffer2, options = {}) { function deserialize2(buffer2, options = {}) {
return internalDeserialize(ByteUtils.toLocalBufferType(buffer2), options); return internalDeserialize(ByteUtils.toLocalBufferType(buffer2), options);
} }
function calculateObjectSize(object, options = {}) { function calculateObjectSize(object, options = {}) {
@ -3726,7 +3743,7 @@ const bson=(() => {
} }
return index; return index;
} }
var bson2 = /* @__PURE__ */ Object.freeze({ var bson = /* @__PURE__ */ Object.freeze({
__proto__: null, __proto__: null,
BSONError, BSONError,
BSONRegExp, BSONRegExp,
@ -3749,13 +3766,13 @@ const bson=(() => {
Timestamp, Timestamp,
UUID, UUID,
calculateObjectSize, calculateObjectSize,
deserialize, deserialize: deserialize2,
deserializeStream, deserializeStream,
serialize, serialize,
serializeWithBufferAndIndex, serializeWithBufferAndIndex,
setInternalBufferSize setInternalBufferSize
}); });
exports.BSON = bson2; exports.BSON = bson;
exports.BSONError = BSONError; exports.BSONError = BSONError;
exports.BSONRegExp = BSONRegExp; exports.BSONRegExp = BSONRegExp;
exports.BSONRuntimeError = BSONRuntimeError; exports.BSONRuntimeError = BSONRuntimeError;
@ -3777,7 +3794,7 @@ const bson=(() => {
exports.Timestamp = Timestamp; exports.Timestamp = Timestamp;
exports.UUID = UUID; exports.UUID = UUID;
exports.calculateObjectSize = calculateObjectSize; exports.calculateObjectSize = calculateObjectSize;
exports.deserialize = deserialize; exports.deserialize = deserialize2;
exports.deserializeStream = deserializeStream; exports.deserializeStream = deserializeStream;
exports.serialize = serialize; exports.serialize = serialize;
exports.serializeWithBufferAndIndex = serializeWithBufferAndIndex; exports.serializeWithBufferAndIndex = serializeWithBufferAndIndex;
@ -3786,9 +3803,12 @@ const bson=(() => {
}); });
// src/jsRunner/bundles/bsonPackage.ts // src/jsRunner/bundles/bsonPackage.ts
var bson = { var bsonPackage_exports = {};
deserialize: require_bson().deserialize, __export(bsonPackage_exports, {
toJson: require_bson().EJSON.deserialize deserialize: () => deserialize,
}; toJson: () => toJson
return bson });
var deserialize = require_bson().deserialize;
var toJson = require_bson().EJSON.deserialize;
return __toCommonJS(bsonPackage_exports);
})(); })();

View File

@ -1,4 +1,2 @@
export const bson = { export const deserialize = require("bson").deserialize
deserialize: require("bson").deserialize, export const toJson = require("bson").EJSON.deserialize
toJson: require("bson").EJSON.deserialize,
}

View File

@ -1,4 +1,5 @@
const helpers= (() => { "use strict";
var helpers = (() => {
var __create = Object.create; var __create = Object.create;
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@ -3538,6 +3539,10 @@ const helpers= (() => {
}); });
// src/jsRunner/bundles/index-helpers.ts // src/jsRunner/bundles/index-helpers.ts
var index_helpers_exports = {};
__export(index_helpers_exports, {
helpers: () => helpers
});
var { var {
getJsHelperList getJsHelperList
} = require_list(); } = require_list();
@ -3548,8 +3553,7 @@ const helpers= (() => {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
stripProtocol: helpersStripProtocol stripProtocol: helpersStripProtocol
}; };
return __toCommonJS(index_helpers_exports);
return helpers
})(); })();
/*! Bundled license information: /*! Bundled license information: