@514labs/moose-lib 0.6.239-ci-15-g75bf9613 → 0.6.239-ci-1-gf12f5383
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/dmv2/index.mjs
CHANGED
|
@@ -351,39 +351,24 @@ var init_runtime = __esm({
|
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
|
|
354
|
-
// src/dmv2/
|
|
355
|
-
function
|
|
356
|
-
return line.includes("node_modules") || // Skip npm installed packages (prod)
|
|
357
|
-
line.includes("internal/modules") || // Skip Node.js internals
|
|
358
|
-
line.includes("ts-node") || // Skip TypeScript execution
|
|
359
|
-
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
360
|
-
line.includes("\\ts-moose-lib\\");
|
|
361
|
-
}
|
|
362
|
-
function parseStackLine(line) {
|
|
363
|
-
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
364
|
-
if (match && match[1]) {
|
|
365
|
-
return {
|
|
366
|
-
file: match[1],
|
|
367
|
-
line: match[2]
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
return void 0;
|
|
371
|
-
}
|
|
372
|
-
function getSourceFileInfo(stack) {
|
|
354
|
+
// src/dmv2/typedBase.ts
|
|
355
|
+
function getInstantiationFileInfo(stack) {
|
|
373
356
|
if (!stack) return {};
|
|
374
357
|
const lines = stack.split("\n");
|
|
375
358
|
for (const line of lines) {
|
|
376
|
-
if (
|
|
377
|
-
|
|
378
|
-
|
|
359
|
+
if (line.includes("node_modules") || line.includes("internal/modules") || line.includes("ts-node"))
|
|
360
|
+
continue;
|
|
361
|
+
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
362
|
+
if (match && match[1]) {
|
|
363
|
+
return {
|
|
364
|
+
file: match[1],
|
|
365
|
+
line: match[2]
|
|
366
|
+
// Only the line number
|
|
367
|
+
};
|
|
368
|
+
}
|
|
379
369
|
}
|
|
380
370
|
return {};
|
|
381
371
|
}
|
|
382
|
-
function getSourceFileFromStack(stack) {
|
|
383
|
-
return getSourceFileInfo(stack).file;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// src/dmv2/typedBase.ts
|
|
387
372
|
var TypedBase = class {
|
|
388
373
|
/** The JSON schema representation of type T. Injected by the compiler plugin. */
|
|
389
374
|
schema;
|
|
@@ -427,7 +412,7 @@ var TypedBase = class {
|
|
|
427
412
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
428
413
|
const stack = new Error().stack;
|
|
429
414
|
if (stack) {
|
|
430
|
-
const info =
|
|
415
|
+
const info = getInstantiationFileInfo(stack);
|
|
431
416
|
this.metadata.source = { file: info.file, line: info.line };
|
|
432
417
|
} else {
|
|
433
418
|
this.metadata.source = void 0;
|
|
@@ -1562,10 +1547,8 @@ var Stream = class extends TypedBase {
|
|
|
1562
1547
|
* @param config Optional configuration for this specific transformation step, like a version.
|
|
1563
1548
|
*/
|
|
1564
1549
|
addTransform(destination, transformation, config) {
|
|
1565
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1566
1550
|
const transformConfig = {
|
|
1567
|
-
...config ?? {}
|
|
1568
|
-
sourceFile
|
|
1551
|
+
...config ?? {}
|
|
1569
1552
|
};
|
|
1570
1553
|
if (transformConfig.deadLetterQueue === void 0) {
|
|
1571
1554
|
transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -1592,10 +1575,8 @@ var Stream = class extends TypedBase {
|
|
|
1592
1575
|
* @param config Optional configuration for this specific consumer, like a version.
|
|
1593
1576
|
*/
|
|
1594
1577
|
addConsumer(consumer, config) {
|
|
1595
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1596
1578
|
const consumerConfig = {
|
|
1597
|
-
...config ?? {}
|
|
1598
|
-
sourceFile
|
|
1579
|
+
...config ?? {}
|
|
1599
1580
|
};
|
|
1600
1581
|
if (consumerConfig.deadLetterQueue === void 0) {
|
|
1601
1582
|
consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -2182,8 +2163,6 @@ var SqlResource = class {
|
|
|
2182
2163
|
pullsDataFrom;
|
|
2183
2164
|
/** List of OlapTables or Views that this resource writes data to. */
|
|
2184
2165
|
pushesDataTo;
|
|
2185
|
-
/** @internal Source file path where this resource was defined */
|
|
2186
|
-
sourceFile;
|
|
2187
2166
|
/**
|
|
2188
2167
|
* Creates a new SqlResource instance.
|
|
2189
2168
|
* @param name The name of the resource.
|
|
@@ -2208,8 +2187,6 @@ var SqlResource = class {
|
|
|
2208
2187
|
);
|
|
2209
2188
|
this.pullsDataFrom = options?.pullsDataFrom ?? [];
|
|
2210
2189
|
this.pushesDataTo = options?.pushesDataTo ?? [];
|
|
2211
|
-
const stack = new Error().stack;
|
|
2212
|
-
this.sourceFile = getSourceFileFromStack(stack);
|
|
2213
2190
|
}
|
|
2214
2191
|
};
|
|
2215
2192
|
|