@514labs/moose-lib 0.6.239-ci-14-g85f6cfc1 → 0.6.239
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/{browserCompatible-bG7qUssc.d.mts → browserCompatible-BRa8sgXw.d.mts} +1 -1
- package/dist/{browserCompatible-mRmtV1to.d.ts → browserCompatible-CMLITD0_.d.ts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +15 -38
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +15 -38
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +1 -1
- package/dist/dmv2/index.d.ts +1 -1
- package/dist/dmv2/index.js +15 -38
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +15 -38
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-DtHRzX8Z.d.mts → index-BG2HP0xG.d.mts} +0 -12
- package/dist/{index-DtHRzX8Z.d.ts → index-BG2HP0xG.d.ts} +0 -12
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +15 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -38
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +2 -5
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +2 -5
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -357,39 +357,24 @@ var init_runtime = __esm({
|
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
|
|
360
|
-
// src/dmv2/
|
|
361
|
-
function
|
|
362
|
-
return line.includes("node_modules") || // Skip npm installed packages (prod)
|
|
363
|
-
line.includes("internal/modules") || // Skip Node.js internals
|
|
364
|
-
line.includes("ts-node") || // Skip TypeScript execution
|
|
365
|
-
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
366
|
-
line.includes("\\ts-moose-lib\\");
|
|
367
|
-
}
|
|
368
|
-
function parseStackLine(line) {
|
|
369
|
-
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
370
|
-
if (match && match[1]) {
|
|
371
|
-
return {
|
|
372
|
-
file: match[1],
|
|
373
|
-
line: match[2]
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
return void 0;
|
|
377
|
-
}
|
|
378
|
-
function getSourceFileInfo(stack) {
|
|
360
|
+
// src/dmv2/typedBase.ts
|
|
361
|
+
function getInstantiationFileInfo(stack) {
|
|
379
362
|
if (!stack) return {};
|
|
380
363
|
const lines = stack.split("\n");
|
|
381
364
|
for (const line of lines) {
|
|
382
|
-
if (
|
|
383
|
-
|
|
384
|
-
|
|
365
|
+
if (line.includes("node_modules") || line.includes("internal/modules") || line.includes("ts-node"))
|
|
366
|
+
continue;
|
|
367
|
+
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
368
|
+
if (match && match[1]) {
|
|
369
|
+
return {
|
|
370
|
+
file: match[1],
|
|
371
|
+
line: match[2]
|
|
372
|
+
// Only the line number
|
|
373
|
+
};
|
|
374
|
+
}
|
|
385
375
|
}
|
|
386
376
|
return {};
|
|
387
377
|
}
|
|
388
|
-
function getSourceFileFromStack(stack) {
|
|
389
|
-
return getSourceFileInfo(stack).file;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
// src/dmv2/typedBase.ts
|
|
393
378
|
var TypedBase = class {
|
|
394
379
|
/** The JSON schema representation of type T. Injected by the compiler plugin. */
|
|
395
380
|
schema;
|
|
@@ -433,7 +418,7 @@ var TypedBase = class {
|
|
|
433
418
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
434
419
|
const stack = new Error().stack;
|
|
435
420
|
if (stack) {
|
|
436
|
-
const info =
|
|
421
|
+
const info = getInstantiationFileInfo(stack);
|
|
437
422
|
this.metadata.source = { file: info.file, line: info.line };
|
|
438
423
|
} else {
|
|
439
424
|
this.metadata.source = void 0;
|
|
@@ -1683,10 +1668,8 @@ var Stream = class extends TypedBase {
|
|
|
1683
1668
|
* @param config Optional configuration for this specific transformation step, like a version.
|
|
1684
1669
|
*/
|
|
1685
1670
|
addTransform(destination, transformation, config) {
|
|
1686
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1687
1671
|
const transformConfig = {
|
|
1688
|
-
...config ?? {}
|
|
1689
|
-
sourceFile
|
|
1672
|
+
...config ?? {}
|
|
1690
1673
|
};
|
|
1691
1674
|
if (transformConfig.deadLetterQueue === void 0) {
|
|
1692
1675
|
transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -1713,10 +1696,8 @@ var Stream = class extends TypedBase {
|
|
|
1713
1696
|
* @param config Optional configuration for this specific consumer, like a version.
|
|
1714
1697
|
*/
|
|
1715
1698
|
addConsumer(consumer, config) {
|
|
1716
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1717
1699
|
const consumerConfig = {
|
|
1718
|
-
...config ?? {}
|
|
1719
|
-
sourceFile
|
|
1700
|
+
...config ?? {}
|
|
1720
1701
|
};
|
|
1721
1702
|
if (consumerConfig.deadLetterQueue === void 0) {
|
|
1722
1703
|
consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -2303,8 +2284,6 @@ var SqlResource = class {
|
|
|
2303
2284
|
pullsDataFrom;
|
|
2304
2285
|
/** List of OlapTables or Views that this resource writes data to. */
|
|
2305
2286
|
pushesDataTo;
|
|
2306
|
-
/** @internal Source file path where this resource was defined */
|
|
2307
|
-
sourceFile;
|
|
2308
2287
|
/**
|
|
2309
2288
|
* Creates a new SqlResource instance.
|
|
2310
2289
|
* @param name The name of the resource.
|
|
@@ -2329,8 +2308,6 @@ var SqlResource = class {
|
|
|
2329
2308
|
);
|
|
2330
2309
|
this.pullsDataFrom = options?.pullsDataFrom ?? [];
|
|
2331
2310
|
this.pushesDataTo = options?.pushesDataTo ?? [];
|
|
2332
|
-
const stack = new Error().stack;
|
|
2333
|
-
this.sourceFile = getSourceFileFromStack(stack);
|
|
2334
2311
|
}
|
|
2335
2312
|
};
|
|
2336
2313
|
|