@514labs/moose-lib 0.6.261 → 0.6.262-ci-2-g350aed07
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-B_aEflr_.d.ts → browserCompatible-Bqhjy4pn.d.ts} +1 -1
- package/dist/{browserCompatible-DnYA4Zgi.d.mts → browserCompatible-DTtKuO-Y.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +38 -2
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +38 -2
- 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 +38 -2
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +38 -2
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-rECDLgTX.d.mts → index-CQB6bk1i.d.mts} +38 -1
- package/dist/{index-rECDLgTX.d.ts → index-CQB6bk1i.d.ts} +38 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +39 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -2
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +17 -0
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +17 -0
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -393,8 +393,35 @@ function getSourceFileInfo(stack) {
|
|
|
393
393
|
}
|
|
394
394
|
return {};
|
|
395
395
|
}
|
|
396
|
+
function getSourceLocationFromStack(stack) {
|
|
397
|
+
if (!stack) return void 0;
|
|
398
|
+
const lines = stack.split("\n");
|
|
399
|
+
for (const line of lines.slice(1)) {
|
|
400
|
+
if (shouldSkipStackLine(line)) {
|
|
401
|
+
continue;
|
|
402
|
+
}
|
|
403
|
+
const v8Match = line.match(/at\s+(?:.*?\s+\()?(.+):(\d+):(\d+)\)?/);
|
|
404
|
+
if (v8Match) {
|
|
405
|
+
return {
|
|
406
|
+
file: v8Match[1],
|
|
407
|
+
line: parseInt(v8Match[2], 10),
|
|
408
|
+
column: parseInt(v8Match[3], 10)
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
const smMatch = line.match(/(?:.*@)?(.+):(\d+):(\d+)/);
|
|
412
|
+
if (smMatch) {
|
|
413
|
+
return {
|
|
414
|
+
file: smMatch[1],
|
|
415
|
+
line: parseInt(smMatch[2], 10),
|
|
416
|
+
column: parseInt(smMatch[3], 10)
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return void 0;
|
|
421
|
+
}
|
|
396
422
|
function getSourceFileFromStack(stack) {
|
|
397
|
-
|
|
423
|
+
const location = getSourceLocationFromStack(stack);
|
|
424
|
+
return location?.file;
|
|
398
425
|
}
|
|
399
426
|
|
|
400
427
|
// src/dmv2/typedBase.ts
|
|
@@ -621,6 +648,7 @@ var ClickHouseEngines = /* @__PURE__ */ ((ClickHouseEngines2) => {
|
|
|
621
648
|
ClickHouseEngines2["Buffer"] = "Buffer";
|
|
622
649
|
ClickHouseEngines2["Distributed"] = "Distributed";
|
|
623
650
|
ClickHouseEngines2["IcebergS3"] = "IcebergS3";
|
|
651
|
+
ClickHouseEngines2["Kafka"] = "Kafka";
|
|
624
652
|
ClickHouseEngines2["ReplicatedMergeTree"] = "ReplicatedMergeTree";
|
|
625
653
|
ClickHouseEngines2["ReplicatedReplacingMergeTree"] = "ReplicatedReplacingMergeTree";
|
|
626
654
|
ClickHouseEngines2["ReplicatedAggregatingMergeTree"] = "ReplicatedAggregatingMergeTree";
|
|
@@ -2319,6 +2347,10 @@ var SqlResource = class {
|
|
|
2319
2347
|
pushesDataTo;
|
|
2320
2348
|
/** @internal Source file path where this resource was defined */
|
|
2321
2349
|
sourceFile;
|
|
2350
|
+
/** @internal Source line number where this resource was defined */
|
|
2351
|
+
sourceLine;
|
|
2352
|
+
/** @internal Source column number where this resource was defined */
|
|
2353
|
+
sourceColumn;
|
|
2322
2354
|
/**
|
|
2323
2355
|
* Creates a new SqlResource instance.
|
|
2324
2356
|
* @param name The name of the resource.
|
|
@@ -2344,7 +2376,12 @@ var SqlResource = class {
|
|
|
2344
2376
|
this.pullsDataFrom = options?.pullsDataFrom ?? [];
|
|
2345
2377
|
this.pushesDataTo = options?.pushesDataTo ?? [];
|
|
2346
2378
|
const stack = new Error().stack;
|
|
2347
|
-
|
|
2379
|
+
const location = getSourceLocationFromStack(stack);
|
|
2380
|
+
if (location) {
|
|
2381
|
+
this.sourceFile = location.file;
|
|
2382
|
+
this.sourceLine = location.line;
|
|
2383
|
+
this.sourceColumn = location.column;
|
|
2384
|
+
}
|
|
2348
2385
|
}
|
|
2349
2386
|
};
|
|
2350
2387
|
|