@dxos/compute 0.8.3 → 0.8.4-main.f9ba587
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/dist/lib/browser/{chunk-UGMCTYCW.mjs → chunk-2PBHA7EI.mjs} +14 -14
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +7 -7
- package/dist/lib/node-esm/{chunk-WIABMPQE.mjs → chunk-GTPQNWA3.mjs} +14 -14
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +7 -7
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/vendor/hyperformula.mjs +10 -755
- package/package.json +22 -28
- package/dist/lib/node/chunk-KCYHSFFU.cjs +0 -3120
- package/dist/lib/node/chunk-KCYHSFFU.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -77
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/testing/index.cjs +0 -188
- package/dist/lib/node/testing/index.cjs.map +0 -7
- /package/dist/lib/browser/{chunk-UGMCTYCW.mjs.map → chunk-2PBHA7EI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-WIABMPQE.mjs.map → chunk-GTPQNWA3.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/types/hyperformula.ts
|
|
2
2
|
import { DetailedCellError, ExportedCellChange } from "#hyperformula";
|
|
3
3
|
|
|
4
|
-
//
|
|
4
|
+
// src/types/types.ts
|
|
5
5
|
import { invariant } from "@dxos/invariant";
|
|
6
|
-
var __dxlog_file = "/
|
|
6
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/src/types/types.ts";
|
|
7
7
|
var RANGE_NOTATION = /^[A-Z]+[0-9]+(:[A-Z]+[0-9]+)?$/;
|
|
8
8
|
var isFormula = (value) => typeof value === "string" && value.charAt(0) === "=";
|
|
9
9
|
var cellEquals = (a, b) => {
|
|
@@ -74,7 +74,7 @@ var inRange = (range, cell) => {
|
|
|
74
74
|
return col >= cMin && col <= cMax && row >= rMin && row <= rMax;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
//
|
|
77
|
+
// src/compute-node.ts
|
|
78
78
|
import { Event } from "@dxos/async";
|
|
79
79
|
import { Resource } from "@dxos/context";
|
|
80
80
|
import { DetailedCellError as DetailedCellError2 } from "#hyperformula";
|
|
@@ -116,12 +116,12 @@ var ComputeNode = class extends Resource {
|
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
//
|
|
119
|
+
// src/functions/async-function.ts
|
|
120
120
|
import defaultsDeep from "lodash.defaultsdeep";
|
|
121
121
|
import { debounce } from "@dxos/async";
|
|
122
122
|
import { log } from "@dxos/log";
|
|
123
123
|
import { CellError, ErrorType, EmptyValue, FunctionPlugin } from "#hyperformula";
|
|
124
|
-
var __dxlog_file2 = "/
|
|
124
|
+
var __dxlog_file2 = "/__w/dxos/dxos/packages/core/compute/src/functions/async-function.ts";
|
|
125
125
|
var defaultFunctionContextOptions = {
|
|
126
126
|
defaultTtl: 5e3,
|
|
127
127
|
debounceDelay: 200,
|
|
@@ -259,7 +259,7 @@ var AsyncFunctionPlugin = class extends FunctionPlugin {
|
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
261
|
|
|
262
|
-
//
|
|
262
|
+
// src/functions/edge-function.ts
|
|
263
263
|
import { effect } from "@preact/signals-core";
|
|
264
264
|
import { SchemaAST } from "effect";
|
|
265
265
|
import { Filter, getMeta } from "@dxos/client/echo";
|
|
@@ -268,7 +268,7 @@ import { FunctionType, getUserFunctionUrlInMetadata } from "@dxos/functions";
|
|
|
268
268
|
import { log as log2 } from "@dxos/log";
|
|
269
269
|
import { isNonNullable } from "@dxos/util";
|
|
270
270
|
import { CellError as CellError2, ErrorType as ErrorType2, FunctionArgumentType } from "#hyperformula";
|
|
271
|
-
var __dxlog_file3 = "/
|
|
271
|
+
var __dxlog_file3 = "/__w/dxos/dxos/packages/core/compute/src/functions/edge-function.ts";
|
|
272
272
|
var EDGE_FUNCTION_NAME = "DX";
|
|
273
273
|
var FUNCTION_TTL = 1e4;
|
|
274
274
|
var EdgeFunctionPlugin = class extends AsyncFunctionPlugin {
|
|
@@ -396,7 +396,7 @@ var EdgeFunctionPluginTranslations = {
|
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
-
//
|
|
399
|
+
// src/functions/function-defs.ts
|
|
400
400
|
var defaultFunctions = [
|
|
401
401
|
// Array
|
|
402
402
|
{
|
|
@@ -2770,7 +2770,7 @@ var defaultFunctions = [
|
|
|
2770
2770
|
}
|
|
2771
2771
|
];
|
|
2772
2772
|
|
|
2773
|
-
//
|
|
2773
|
+
// src/compute-graph.ts
|
|
2774
2774
|
import { Event as Event2 } from "@dxos/async";
|
|
2775
2775
|
import { Filter as Filter2, fullyQualifiedId } from "@dxos/client/echo";
|
|
2776
2776
|
import { FQ_ID_LENGTH } from "@dxos/client/echo";
|
|
@@ -2782,7 +2782,7 @@ import { PublicKey } from "@dxos/keys";
|
|
|
2782
2782
|
import { log as log3 } from "@dxos/log";
|
|
2783
2783
|
import { isNonNullable as isNonNullable2 } from "@dxos/util";
|
|
2784
2784
|
import { ExportedCellChange as ExportedCellChange2 } from "#hyperformula";
|
|
2785
|
-
var __dxlog_file4 = "/
|
|
2785
|
+
var __dxlog_file4 = "/__w/dxos/dxos/packages/core/compute/src/compute-graph.ts";
|
|
2786
2786
|
var UNKNOWN_BINDING = "__UNKNOWN__";
|
|
2787
2787
|
var createSheetName = ({ type, id }) => `${type}@${id}`;
|
|
2788
2788
|
var parseSheetName = (name) => {
|
|
@@ -2980,13 +2980,13 @@ var ComputeGraph = class extends Resource2 {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
};
|
|
2982
2982
|
|
|
2983
|
-
//
|
|
2983
|
+
// src/compute-graph-registry.ts
|
|
2984
2984
|
import defaultsDeep2 from "lodash.defaultsdeep";
|
|
2985
2985
|
import { Resource as Resource3 } from "@dxos/context";
|
|
2986
2986
|
import { invariant as invariant3 } from "@dxos/invariant";
|
|
2987
2987
|
import { log as log4 } from "@dxos/log";
|
|
2988
2988
|
import { HyperFormula } from "#hyperformula";
|
|
2989
|
-
var __dxlog_file5 = "/
|
|
2989
|
+
var __dxlog_file5 = "/__w/dxos/dxos/packages/core/compute/src/compute-graph-registry.ts";
|
|
2990
2990
|
var defaultOptions = {
|
|
2991
2991
|
licenseKey: "gpl-v3"
|
|
2992
2992
|
};
|
|
@@ -3075,4 +3075,4 @@ export {
|
|
|
3075
3075
|
defaultPlugins,
|
|
3076
3076
|
ComputeGraphRegistry
|
|
3077
3077
|
};
|
|
3078
|
-
//# sourceMappingURL=chunk-
|
|
3078
|
+
//# sourceMappingURL=chunk-2PBHA7EI.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/core/compute/src/types/hyperformula.ts":{"bytes":1769,"imports":[{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/types/types.ts":{"bytes":9133,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/types/index.ts":{"bytes":560,"imports":[{"path":"packages/core/compute/src/types/hyperformula.ts","kind":"import-statement","original":"./hyperformula"},{"path":"packages/core/compute/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/core/compute/src/compute-node.ts":{"bytes":5792,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/core/compute/src/functions/async-function.ts":{"bytes":18935,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/functions/edge-function.ts":{"bytes":15512,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/functions/async-function.ts","kind":"import-statement","original":"./async-function"}],"format":"esm"},"packages/core/compute/src/functions/function-defs.ts":{"bytes":201451,"imports":[],"format":"esm"},"packages/core/compute/src/functions/index.ts":{"bytes":695,"imports":[{"path":"packages/core/compute/src/functions/async-function.ts","kind":"import-statement","original":"./async-function"},{"path":"packages/core/compute/src/functions/edge-function.ts","kind":"import-statement","original":"./edge-function"},{"path":"packages/core/compute/src/functions/function-defs.ts","kind":"import-statement","original":"./function-defs"}],"format":"esm"},"packages/core/compute/src/compute-graph.ts":{"bytes":28513,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"packages/core/compute/src/compute-graph-registry.ts":{"bytes":9289,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"packages/core/compute/src/index.ts":{"bytes":2812,"imports":[{"path":"packages/core/compute/src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"packages/core/compute/src/compute-graph-registry.ts","kind":"import-statement","original":"./compute-graph-registry"},{"path":"packages/core/compute/src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"packages/core/compute/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/core/compute/src/testing/test-builder.ts":{"bytes":5353,"imports":[{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/core/compute/src/compute-graph-registry.ts","kind":"import-statement","original":"../compute-graph-registry"}],"format":"esm"},"packages/core/compute/src/util.ts":{"bytes":881,"imports":[],"format":"esm"},"packages/core/compute/src/testing/test-plugin.ts":{"bytes":8929,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"../functions"},{"path":"packages/core/compute/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/core/compute/src/testing/util.ts":{"bytes":1087,"imports":[{"path":"hyperformula","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/testing/index.ts":{"bytes":660,"imports":[{"path":"packages/core/compute/src/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"},{"path":"packages/core/compute/src/testing/test-plugin.ts","kind":"import-statement","original":"./test-plugin"},{"path":"packages/core/compute/src/testing/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/core/compute/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/core/compute/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/core/compute/dist/lib/browser/chunk-UGMCTYCW.mjs","kind":"import-statement"}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"entryPoint":"packages/core/compute/src/index.ts","inputs":{"packages/core/compute/src/index.ts":{"bytesInOutput":0}},"bytes":1101},"packages/core/compute/dist/lib/browser/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7835},"packages/core/compute/dist/lib/browser/testing/index.mjs":{"imports":[{"path":"packages/core/compute/dist/lib/browser/chunk-UGMCTYCW.mjs","kind":"import-statement"},{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"hyperformula","kind":"import-statement","external":true}],"exports":["TestBuilder","TestPlugin","TestPluginTranslations","getRegisteredFunctionNames","testFunctionPlugins"],"entryPoint":"packages/core/compute/src/testing/index.ts","inputs":{"packages/core/compute/src/testing/test-builder.ts":{"bytesInOutput":1286},"packages/core/compute/src/testing/index.ts":{"bytesInOutput":0},"packages/core/compute/src/testing/test-plugin.ts":{"bytesInOutput":1961},"packages/core/compute/src/util.ts":{"bytesInOutput":87},"packages/core/compute/src/testing/util.ts":{"bytesInOutput":184}},"bytes":4003},"packages/core/compute/dist/lib/browser/chunk-UGMCTYCW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":137045},"packages/core/compute/dist/lib/browser/chunk-UGMCTYCW.mjs":{"imports":[{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"inputs":{"packages/core/compute/src/types/hyperformula.ts":{"bytesInOutput":71},"packages/core/compute/src/types/types.ts":{"bytesInOutput":2067},"packages/core/compute/src/types/index.ts":{"bytesInOutput":0},"packages/core/compute/src/compute-node.ts":{"bytesInOutput":1004},"packages/core/compute/src/functions/async-function.ts":{"bytesInOutput":4077},"packages/core/compute/src/functions/edge-function.ts":{"bytesInOutput":3883},"packages/core/compute/src/functions/function-defs.ts":{"bytesInOutput":68677},"packages/core/compute/src/functions/index.ts":{"bytesInOutput":0},"packages/core/compute/src/compute-graph.ts":{"bytesInOutput":6550},"packages/core/compute/src/compute-graph-registry.ts":{"bytesInOutput":1896}},"bytes":89206}}}
|
|
1
|
+
{"inputs":{"src/types/hyperformula.ts":{"bytes":1756,"imports":[{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":9120,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":547,"imports":[{"path":"src/types/hyperformula.ts","kind":"import-statement","original":"./hyperformula"},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/compute-node.ts":{"bytes":5779,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/functions/async-function.ts":{"bytes":18922,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"src/functions/edge-function.ts":{"bytes":15499,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/functions/async-function.ts","kind":"import-statement","original":"./async-function"}],"format":"esm"},"src/functions/function-defs.ts":{"bytes":201438,"imports":[],"format":"esm"},"src/functions/index.ts":{"bytes":682,"imports":[{"path":"src/functions/async-function.ts","kind":"import-statement","original":"./async-function"},{"path":"src/functions/edge-function.ts","kind":"import-statement","original":"./edge-function"},{"path":"src/functions/function-defs.ts","kind":"import-statement","original":"./function-defs"}],"format":"esm"},"src/compute-graph.ts":{"bytes":28500,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/compute-graph-registry.ts":{"bytes":9276,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/index.ts":{"bytes":2799,"imports":[{"path":"src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"src/compute-graph-registry.ts","kind":"import-statement","original":"./compute-graph-registry"},{"path":"src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/testing/test-builder.ts":{"bytes":5340,"imports":[{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/compute-graph-registry.ts","kind":"import-statement","original":"../compute-graph-registry"}],"format":"esm"},"src/util.ts":{"bytes":868,"imports":[],"format":"esm"},"src/testing/test-plugin.ts":{"bytes":8916,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/functions/index.ts","kind":"import-statement","original":"../functions"},{"path":"src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/testing/util.ts":{"bytes":1074,"imports":[{"path":"hyperformula","kind":"import-statement","external":true}],"format":"esm"},"src/testing/index.ts":{"bytes":647,"imports":[{"path":"src/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"},{"path":"src/testing/test-plugin.ts","kind":"import-statement","original":"./test-plugin"},{"path":"src/testing/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2PBHA7EI.mjs","kind":"import-statement"}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":1101},"dist/lib/browser/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7835},"dist/lib/browser/testing/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2PBHA7EI.mjs","kind":"import-statement"},{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"hyperformula","kind":"import-statement","external":true}],"exports":["TestBuilder","TestPlugin","TestPluginTranslations","getRegisteredFunctionNames","testFunctionPlugins"],"entryPoint":"src/testing/index.ts","inputs":{"src/testing/test-builder.ts":{"bytesInOutput":1273},"src/testing/index.ts":{"bytesInOutput":0},"src/testing/test-plugin.ts":{"bytesInOutput":1961},"src/util.ts":{"bytesInOutput":87},"src/testing/util.ts":{"bytesInOutput":184}},"bytes":3880},"dist/lib/browser/chunk-2PBHA7EI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":137045},"dist/lib/browser/chunk-2PBHA7EI.mjs":{"imports":[{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"inputs":{"src/types/hyperformula.ts":{"bytesInOutput":71},"src/types/types.ts":{"bytesInOutput":2054},"src/types/index.ts":{"bytesInOutput":0},"src/compute-node.ts":{"bytesInOutput":1004},"src/functions/async-function.ts":{"bytesInOutput":4064},"src/functions/edge-function.ts":{"bytesInOutput":3870},"src/functions/function-defs.ts":{"bytesInOutput":68677},"src/functions/index.ts":{"bytesInOutput":0},"src/compute-graph.ts":{"bytesInOutput":6537},"src/compute-graph-registry.ts":{"bytesInOutput":1883}},"bytes":88965}}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AsyncFunctionPlugin,
|
|
3
3
|
ComputeGraphRegistry
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-2PBHA7EI.mjs";
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// src/testing/test-builder.ts
|
|
7
7
|
import { Client } from "@dxos/client";
|
|
8
8
|
import { Resource } from "@dxos/context";
|
|
9
9
|
import { invariant } from "@dxos/invariant";
|
|
10
|
-
var __dxlog_file = "/
|
|
10
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/src/testing/test-builder.ts";
|
|
11
11
|
var TestBuilder = class extends Resource {
|
|
12
12
|
constructor(_options = {}) {
|
|
13
13
|
super(), this._options = _options;
|
|
@@ -58,16 +58,16 @@ var TestBuilder = class extends Resource {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
//
|
|
61
|
+
// src/testing/test-plugin.ts
|
|
62
62
|
import { getDeep } from "@dxos/util";
|
|
63
63
|
import { FunctionArgumentType } from "#hyperformula";
|
|
64
64
|
|
|
65
|
-
//
|
|
65
|
+
// src/util.ts
|
|
66
66
|
var parseNumberString = (str) => {
|
|
67
67
|
return parseFloat(str.replace(/[^\d.]/g, ""));
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
//
|
|
70
|
+
// src/testing/test-plugin.ts
|
|
71
71
|
var TestPlugin = class extends AsyncFunctionPlugin {
|
|
72
72
|
/**
|
|
73
73
|
* Simple local function returns input value.
|
|
@@ -156,7 +156,7 @@ var testFunctionPlugins = [
|
|
|
156
156
|
}
|
|
157
157
|
];
|
|
158
158
|
|
|
159
|
-
//
|
|
159
|
+
// src/testing/util.ts
|
|
160
160
|
import { HyperFormula } from "hyperformula";
|
|
161
161
|
var getRegisteredFunctionNames = () => {
|
|
162
162
|
return HyperFormula.buildEmpty({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
//
|
|
3
|
+
// src/types/hyperformula.ts
|
|
4
4
|
import { DetailedCellError, ExportedCellChange } from "#hyperformula";
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// src/types/types.ts
|
|
7
7
|
import { invariant } from "@dxos/invariant";
|
|
8
|
-
var __dxlog_file = "/
|
|
8
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/src/types/types.ts";
|
|
9
9
|
var RANGE_NOTATION = /^[A-Z]+[0-9]+(:[A-Z]+[0-9]+)?$/;
|
|
10
10
|
var isFormula = (value) => typeof value === "string" && value.charAt(0) === "=";
|
|
11
11
|
var cellEquals = (a, b) => {
|
|
@@ -76,7 +76,7 @@ var inRange = (range, cell) => {
|
|
|
76
76
|
return col >= cMin && col <= cMax && row >= rMin && row <= rMax;
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
//
|
|
79
|
+
// src/compute-node.ts
|
|
80
80
|
import { Event } from "@dxos/async";
|
|
81
81
|
import { Resource } from "@dxos/context";
|
|
82
82
|
import { DetailedCellError as DetailedCellError2 } from "#hyperformula";
|
|
@@ -118,12 +118,12 @@ var ComputeNode = class extends Resource {
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
//
|
|
121
|
+
// src/functions/async-function.ts
|
|
122
122
|
import defaultsDeep from "lodash.defaultsdeep";
|
|
123
123
|
import { debounce } from "@dxos/async";
|
|
124
124
|
import { log } from "@dxos/log";
|
|
125
125
|
import { CellError, ErrorType, EmptyValue, FunctionPlugin } from "#hyperformula";
|
|
126
|
-
var __dxlog_file2 = "/
|
|
126
|
+
var __dxlog_file2 = "/__w/dxos/dxos/packages/core/compute/src/functions/async-function.ts";
|
|
127
127
|
var defaultFunctionContextOptions = {
|
|
128
128
|
defaultTtl: 5e3,
|
|
129
129
|
debounceDelay: 200,
|
|
@@ -261,7 +261,7 @@ var AsyncFunctionPlugin = class extends FunctionPlugin {
|
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
//
|
|
264
|
+
// src/functions/edge-function.ts
|
|
265
265
|
import { effect } from "@preact/signals-core";
|
|
266
266
|
import { SchemaAST } from "effect";
|
|
267
267
|
import { Filter, getMeta } from "@dxos/client/echo";
|
|
@@ -270,7 +270,7 @@ import { FunctionType, getUserFunctionUrlInMetadata } from "@dxos/functions";
|
|
|
270
270
|
import { log as log2 } from "@dxos/log";
|
|
271
271
|
import { isNonNullable } from "@dxos/util";
|
|
272
272
|
import { CellError as CellError2, ErrorType as ErrorType2, FunctionArgumentType } from "#hyperformula";
|
|
273
|
-
var __dxlog_file3 = "/
|
|
273
|
+
var __dxlog_file3 = "/__w/dxos/dxos/packages/core/compute/src/functions/edge-function.ts";
|
|
274
274
|
var EDGE_FUNCTION_NAME = "DX";
|
|
275
275
|
var FUNCTION_TTL = 1e4;
|
|
276
276
|
var EdgeFunctionPlugin = class extends AsyncFunctionPlugin {
|
|
@@ -398,7 +398,7 @@ var EdgeFunctionPluginTranslations = {
|
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
-
//
|
|
401
|
+
// src/functions/function-defs.ts
|
|
402
402
|
var defaultFunctions = [
|
|
403
403
|
// Array
|
|
404
404
|
{
|
|
@@ -2772,7 +2772,7 @@ var defaultFunctions = [
|
|
|
2772
2772
|
}
|
|
2773
2773
|
];
|
|
2774
2774
|
|
|
2775
|
-
//
|
|
2775
|
+
// src/compute-graph.ts
|
|
2776
2776
|
import { Event as Event2 } from "@dxos/async";
|
|
2777
2777
|
import { Filter as Filter2, fullyQualifiedId } from "@dxos/client/echo";
|
|
2778
2778
|
import { FQ_ID_LENGTH } from "@dxos/client/echo";
|
|
@@ -2784,7 +2784,7 @@ import { PublicKey } from "@dxos/keys";
|
|
|
2784
2784
|
import { log as log3 } from "@dxos/log";
|
|
2785
2785
|
import { isNonNullable as isNonNullable2 } from "@dxos/util";
|
|
2786
2786
|
import { ExportedCellChange as ExportedCellChange2 } from "#hyperformula";
|
|
2787
|
-
var __dxlog_file4 = "/
|
|
2787
|
+
var __dxlog_file4 = "/__w/dxos/dxos/packages/core/compute/src/compute-graph.ts";
|
|
2788
2788
|
var UNKNOWN_BINDING = "__UNKNOWN__";
|
|
2789
2789
|
var createSheetName = ({ type, id }) => `${type}@${id}`;
|
|
2790
2790
|
var parseSheetName = (name) => {
|
|
@@ -2982,13 +2982,13 @@ var ComputeGraph = class extends Resource2 {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
};
|
|
2984
2984
|
|
|
2985
|
-
//
|
|
2985
|
+
// src/compute-graph-registry.ts
|
|
2986
2986
|
import defaultsDeep2 from "lodash.defaultsdeep";
|
|
2987
2987
|
import { Resource as Resource3 } from "@dxos/context";
|
|
2988
2988
|
import { invariant as invariant3 } from "@dxos/invariant";
|
|
2989
2989
|
import { log as log4 } from "@dxos/log";
|
|
2990
2990
|
import { HyperFormula } from "#hyperformula";
|
|
2991
|
-
var __dxlog_file5 = "/
|
|
2991
|
+
var __dxlog_file5 = "/__w/dxos/dxos/packages/core/compute/src/compute-graph-registry.ts";
|
|
2992
2992
|
var defaultOptions = {
|
|
2993
2993
|
licenseKey: "gpl-v3"
|
|
2994
2994
|
};
|
|
@@ -3077,4 +3077,4 @@ export {
|
|
|
3077
3077
|
defaultPlugins,
|
|
3078
3078
|
ComputeGraphRegistry
|
|
3079
3079
|
};
|
|
3080
|
-
//# sourceMappingURL=chunk-
|
|
3080
|
+
//# sourceMappingURL=chunk-GTPQNWA3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/core/compute/src/types/hyperformula.ts":{"bytes":1769,"imports":[{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/types/types.ts":{"bytes":9133,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/types/index.ts":{"bytes":560,"imports":[{"path":"packages/core/compute/src/types/hyperformula.ts","kind":"import-statement","original":"./hyperformula"},{"path":"packages/core/compute/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/core/compute/src/compute-node.ts":{"bytes":5792,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/core/compute/src/functions/async-function.ts":{"bytes":18935,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/functions/edge-function.ts":{"bytes":15512,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/functions/async-function.ts","kind":"import-statement","original":"./async-function"}],"format":"esm"},"packages/core/compute/src/functions/function-defs.ts":{"bytes":201451,"imports":[],"format":"esm"},"packages/core/compute/src/functions/index.ts":{"bytes":695,"imports":[{"path":"packages/core/compute/src/functions/async-function.ts","kind":"import-statement","original":"./async-function"},{"path":"packages/core/compute/src/functions/edge-function.ts","kind":"import-statement","original":"./edge-function"},{"path":"packages/core/compute/src/functions/function-defs.ts","kind":"import-statement","original":"./function-defs"}],"format":"esm"},"packages/core/compute/src/compute-graph.ts":{"bytes":28513,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"packages/core/compute/src/compute-graph-registry.ts":{"bytes":9289,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"packages/core/compute/src/index.ts":{"bytes":2812,"imports":[{"path":"packages/core/compute/src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"packages/core/compute/src/compute-graph-registry.ts","kind":"import-statement","original":"./compute-graph-registry"},{"path":"packages/core/compute/src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"packages/core/compute/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/core/compute/src/testing/test-builder.ts":{"bytes":5353,"imports":[{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/core/compute/src/compute-graph-registry.ts","kind":"import-statement","original":"../compute-graph-registry"}],"format":"esm"},"packages/core/compute/src/util.ts":{"bytes":881,"imports":[],"format":"esm"},"packages/core/compute/src/testing/test-plugin.ts":{"bytes":8929,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"packages/core/compute/src/functions/index.ts","kind":"import-statement","original":"../functions"},{"path":"packages/core/compute/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/core/compute/src/testing/util.ts":{"bytes":1087,"imports":[{"path":"hyperformula","kind":"import-statement","external":true}],"format":"esm"},"packages/core/compute/src/testing/index.ts":{"bytes":660,"imports":[{"path":"packages/core/compute/src/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"},{"path":"packages/core/compute/src/testing/test-plugin.ts","kind":"import-statement","original":"./test-plugin"},{"path":"packages/core/compute/src/testing/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/core/compute/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/core/compute/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/core/compute/dist/lib/node-esm/chunk-WIABMPQE.mjs","kind":"import-statement"}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"entryPoint":"packages/core/compute/src/index.ts","inputs":{"packages/core/compute/src/index.ts":{"bytesInOutput":0}},"bytes":1193},"packages/core/compute/dist/lib/node-esm/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7836},"packages/core/compute/dist/lib/node-esm/testing/index.mjs":{"imports":[{"path":"packages/core/compute/dist/lib/node-esm/chunk-WIABMPQE.mjs","kind":"import-statement"},{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"hyperformula","kind":"import-statement","external":true}],"exports":["TestBuilder","TestPlugin","TestPluginTranslations","getRegisteredFunctionNames","testFunctionPlugins"],"entryPoint":"packages/core/compute/src/testing/index.ts","inputs":{"packages/core/compute/src/testing/test-builder.ts":{"bytesInOutput":1286},"packages/core/compute/src/testing/index.ts":{"bytesInOutput":0},"packages/core/compute/src/testing/test-plugin.ts":{"bytesInOutput":1961},"packages/core/compute/src/util.ts":{"bytesInOutput":87},"packages/core/compute/src/testing/util.ts":{"bytesInOutput":184}},"bytes":4095},"packages/core/compute/dist/lib/node-esm/chunk-WIABMPQE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":137047},"packages/core/compute/dist/lib/node-esm/chunk-WIABMPQE.mjs":{"imports":[{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"inputs":{"packages/core/compute/src/types/hyperformula.ts":{"bytesInOutput":71},"packages/core/compute/src/types/types.ts":{"bytesInOutput":2067},"packages/core/compute/src/types/index.ts":{"bytesInOutput":0},"packages/core/compute/src/compute-node.ts":{"bytesInOutput":1004},"packages/core/compute/src/functions/async-function.ts":{"bytesInOutput":4077},"packages/core/compute/src/functions/edge-function.ts":{"bytesInOutput":3883},"packages/core/compute/src/functions/function-defs.ts":{"bytesInOutput":68677},"packages/core/compute/src/functions/index.ts":{"bytesInOutput":0},"packages/core/compute/src/compute-graph.ts":{"bytesInOutput":6550},"packages/core/compute/src/compute-graph-registry.ts":{"bytesInOutput":1896}},"bytes":89299}}}
|
|
1
|
+
{"inputs":{"src/types/hyperformula.ts":{"bytes":1756,"imports":[{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"src/types/types.ts":{"bytes":9120,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":547,"imports":[{"path":"src/types/hyperformula.ts","kind":"import-statement","original":"./hyperformula"},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/compute-node.ts":{"bytes":5779,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/functions/async-function.ts":{"bytes":18922,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"format":"esm"},"src/functions/edge-function.ts":{"bytes":15499,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/functions/async-function.ts","kind":"import-statement","original":"./async-function"}],"format":"esm"},"src/functions/function-defs.ts":{"bytes":201438,"imports":[],"format":"esm"},"src/functions/index.ts":{"bytes":682,"imports":[{"path":"src/functions/async-function.ts","kind":"import-statement","original":"./async-function"},{"path":"src/functions/edge-function.ts","kind":"import-statement","original":"./edge-function"},{"path":"src/functions/function-defs.ts","kind":"import-statement","original":"./function-defs"}],"format":"esm"},"src/compute-graph.ts":{"bytes":28500,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/compute-graph-registry.ts":{"bytes":9276,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/index.ts":{"bytes":2799,"imports":[{"path":"src/compute-graph.ts","kind":"import-statement","original":"./compute-graph"},{"path":"src/compute-graph-registry.ts","kind":"import-statement","original":"./compute-graph-registry"},{"path":"src/compute-node.ts","kind":"import-statement","original":"./compute-node"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/testing/test-builder.ts":{"bytes":5340,"imports":[{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/compute-graph-registry.ts","kind":"import-statement","original":"../compute-graph-registry"}],"format":"esm"},"src/util.ts":{"bytes":868,"imports":[],"format":"esm"},"src/testing/test-plugin.ts":{"bytes":8916,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"src/functions/index.ts","kind":"import-statement","original":"../functions"},{"path":"src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"src/testing/util.ts":{"bytes":1074,"imports":[{"path":"hyperformula","kind":"import-statement","external":true}],"format":"esm"},"src/testing/index.ts":{"bytes":647,"imports":[{"path":"src/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"},{"path":"src/testing/test-plugin.ts","kind":"import-statement","original":"./test-plugin"},{"path":"src/testing/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-GTPQNWA3.mjs","kind":"import-statement"}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":1193},"dist/lib/node-esm/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7836},"dist/lib/node-esm/testing/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-GTPQNWA3.mjs","kind":"import-statement"},{"path":"@dxos/client","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"hyperformula","kind":"import-statement","external":true}],"exports":["TestBuilder","TestPlugin","TestPluginTranslations","getRegisteredFunctionNames","testFunctionPlugins"],"entryPoint":"src/testing/index.ts","inputs":{"src/testing/test-builder.ts":{"bytesInOutput":1273},"src/testing/index.ts":{"bytesInOutput":0},"src/testing/test-plugin.ts":{"bytesInOutput":1961},"src/util.ts":{"bytesInOutput":87},"src/testing/util.ts":{"bytesInOutput":184}},"bytes":3972},"dist/lib/node-esm/chunk-GTPQNWA3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":137047},"dist/lib/node-esm/chunk-GTPQNWA3.mjs":{"imports":[{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true},{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#hyperformula","kind":"import-statement","external":true}],"exports":["AsyncFunctionPlugin","ComputeGraph","ComputeGraphRegistry","ComputeNode","DetailedCellError","EDGE_FUNCTION_NAME","EdgeFunctionPlugin","EdgeFunctionPluginTranslations","ExportedCellChange","FunctionContext","RANGE_NOTATION","addressFromA1Notation","addressToA1Notation","cellEquals","columnLetter","createSheetName","defaultFunctionContextOptions","defaultFunctions","defaultOptions","defaultPlugins","inRange","isFormula","parseSheetName","rangeFromA1Notation","rangeToA1Notation"],"inputs":{"src/types/hyperformula.ts":{"bytesInOutput":71},"src/types/types.ts":{"bytesInOutput":2054},"src/types/index.ts":{"bytesInOutput":0},"src/compute-node.ts":{"bytesInOutput":1004},"src/functions/async-function.ts":{"bytesInOutput":4064},"src/functions/edge-function.ts":{"bytesInOutput":3870},"src/functions/function-defs.ts":{"bytesInOutput":68677},"src/functions/index.ts":{"bytesInOutput":0},"src/compute-graph.ts":{"bytesInOutput":6537},"src/compute-graph-registry.ts":{"bytesInOutput":1883}},"bytes":89058}}}
|
|
@@ -2,13 +2,13 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
AsyncFunctionPlugin,
|
|
4
4
|
ComputeGraphRegistry
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-GTPQNWA3.mjs";
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// src/testing/test-builder.ts
|
|
8
8
|
import { Client } from "@dxos/client";
|
|
9
9
|
import { Resource } from "@dxos/context";
|
|
10
10
|
import { invariant } from "@dxos/invariant";
|
|
11
|
-
var __dxlog_file = "/
|
|
11
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/src/testing/test-builder.ts";
|
|
12
12
|
var TestBuilder = class extends Resource {
|
|
13
13
|
constructor(_options = {}) {
|
|
14
14
|
super(), this._options = _options;
|
|
@@ -59,16 +59,16 @@ var TestBuilder = class extends Resource {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
//
|
|
62
|
+
// src/testing/test-plugin.ts
|
|
63
63
|
import { getDeep } from "@dxos/util";
|
|
64
64
|
import { FunctionArgumentType } from "#hyperformula";
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// src/util.ts
|
|
67
67
|
var parseNumberString = (str) => {
|
|
68
68
|
return parseFloat(str.replace(/[^\d.]/g, ""));
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
//
|
|
71
|
+
// src/testing/test-plugin.ts
|
|
72
72
|
var TestPlugin = class extends AsyncFunctionPlugin {
|
|
73
73
|
/**
|
|
74
74
|
* Simple local function returns input value.
|
|
@@ -157,7 +157,7 @@ var testFunctionPlugins = [
|
|
|
157
157
|
}
|
|
158
158
|
];
|
|
159
159
|
|
|
160
|
-
//
|
|
160
|
+
// src/testing/util.ts
|
|
161
161
|
import { HyperFormula } from "hyperformula";
|
|
162
162
|
var getRegisteredFunctionNames = () => {
|
|
163
163
|
return HyperFormula.buildEmpty({
|