Update command
This commit is contained in:
parent
be69edffd7
commit
fa2fbb4253
|
@ -13,8 +13,8 @@
|
|||
"build": "node ./scripts/build.js",
|
||||
"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",
|
||||
"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: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: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=iife --global-name=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",
|
||||
"debug": "yarn build && node --expose-gc --inspect=9222 dist/index.js",
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
const bson=(() => {
|
||||
"use strict";
|
||||
var bson = (() => {
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||
}) : x)(function(x) {
|
||||
|
@ -10,6 +14,19 @@ const bson=(() => {
|
|||
var __commonJS = (cb, mod) => function __require2() {
|
||||
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
|
||||
var require_bson = __commonJS({
|
||||
|
@ -3705,7 +3722,7 @@ const bson=(() => {
|
|||
finalBuffer.set(buffer.subarray(0, serializationIndex), startIndex);
|
||||
return startIndex + serializationIndex - 1;
|
||||
}
|
||||
function deserialize(buffer2, options = {}) {
|
||||
function deserialize2(buffer2, options = {}) {
|
||||
return internalDeserialize(ByteUtils.toLocalBufferType(buffer2), options);
|
||||
}
|
||||
function calculateObjectSize(object, options = {}) {
|
||||
|
@ -3726,7 +3743,7 @@ const bson=(() => {
|
|||
}
|
||||
return index;
|
||||
}
|
||||
var bson2 = /* @__PURE__ */ Object.freeze({
|
||||
var bson = /* @__PURE__ */ Object.freeze({
|
||||
__proto__: null,
|
||||
BSONError,
|
||||
BSONRegExp,
|
||||
|
@ -3749,13 +3766,13 @@ const bson=(() => {
|
|||
Timestamp,
|
||||
UUID,
|
||||
calculateObjectSize,
|
||||
deserialize,
|
||||
deserialize: deserialize2,
|
||||
deserializeStream,
|
||||
serialize,
|
||||
serializeWithBufferAndIndex,
|
||||
setInternalBufferSize
|
||||
});
|
||||
exports.BSON = bson2;
|
||||
exports.BSON = bson;
|
||||
exports.BSONError = BSONError;
|
||||
exports.BSONRegExp = BSONRegExp;
|
||||
exports.BSONRuntimeError = BSONRuntimeError;
|
||||
|
@ -3777,7 +3794,7 @@ const bson=(() => {
|
|||
exports.Timestamp = Timestamp;
|
||||
exports.UUID = UUID;
|
||||
exports.calculateObjectSize = calculateObjectSize;
|
||||
exports.deserialize = deserialize;
|
||||
exports.deserialize = deserialize2;
|
||||
exports.deserializeStream = deserializeStream;
|
||||
exports.serialize = serialize;
|
||||
exports.serializeWithBufferAndIndex = serializeWithBufferAndIndex;
|
||||
|
@ -3786,9 +3803,12 @@ const bson=(() => {
|
|||
});
|
||||
|
||||
// src/jsRunner/bundles/bsonPackage.ts
|
||||
var bson = {
|
||||
deserialize: require_bson().deserialize,
|
||||
toJson: require_bson().EJSON.deserialize
|
||||
};
|
||||
return bson
|
||||
var bsonPackage_exports = {};
|
||||
__export(bsonPackage_exports, {
|
||||
deserialize: () => deserialize,
|
||||
toJson: () => toJson
|
||||
});
|
||||
var deserialize = require_bson().deserialize;
|
||||
var toJson = require_bson().EJSON.deserialize;
|
||||
return __toCommonJS(bsonPackage_exports);
|
||||
})();
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
export const bson = {
|
||||
deserialize: require("bson").deserialize,
|
||||
toJson: require("bson").EJSON.deserialize,
|
||||
}
|
||||
export const deserialize = require("bson").deserialize
|
||||
export const toJson = require("bson").EJSON.deserialize
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
const helpers= (() => {
|
||||
"use strict";
|
||||
var helpers = (() => {
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
|
@ -3538,6 +3539,10 @@ const helpers= (() => {
|
|||
});
|
||||
|
||||
// src/jsRunner/bundles/index-helpers.ts
|
||||
var index_helpers_exports = {};
|
||||
__export(index_helpers_exports, {
|
||||
helpers: () => helpers
|
||||
});
|
||||
var {
|
||||
getJsHelperList
|
||||
} = require_list();
|
||||
|
@ -3548,8 +3553,7 @@ const helpers= (() => {
|
|||
// eslint-disable-next-line no-undef
|
||||
stripProtocol: helpersStripProtocol
|
||||
};
|
||||
|
||||
return helpers
|
||||
return __toCommonJS(index_helpers_exports);
|
||||
})();
|
||||
/*! Bundled license information:
|
||||
|
||||
|
|
Loading…
Reference in New Issue