@514labs/moose-lib 0.6.242 → 0.6.243-ci-1-g45cc1511
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-BRa8sgXw.d.mts → browserCompatible-bG7qUssc.d.mts} +1 -1
- package/dist/{browserCompatible-CMLITD0_.d.ts → browserCompatible-mRmtV1to.d.ts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +38 -15
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +38 -15
- 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 -15
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +38 -15
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-BG2HP0xG.d.mts → index-DtHRzX8Z.d.mts} +12 -0
- package/dist/{index-BG2HP0xG.d.ts → index-DtHRzX8Z.d.ts} +12 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +38 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -15
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +5 -2
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +5 -2
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/dmv2/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, ag as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ak as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, al as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, aj as TaskConfig, ai as TaskContext, ah as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, ag as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ak as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, al as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, aj as TaskConfig, ai as TaskContext, ah as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-DtHRzX8Z.mjs';
|
|
2
2
|
import 'typia';
|
|
3
3
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
4
4
|
import 'node:stream';
|
package/dist/dmv2/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, ag as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ak as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, al as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, aj as TaskConfig, ai as TaskContext, ah as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, ag as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ak as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, al as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, aj as TaskConfig, ai as TaskContext, ah as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-DtHRzX8Z.js';
|
|
2
2
|
import 'typia';
|
|
3
3
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
4
4
|
import 'node:stream';
|
package/dist/dmv2/index.js
CHANGED
|
@@ -408,24 +408,39 @@ __export(dmv2_exports, {
|
|
|
408
408
|
});
|
|
409
409
|
module.exports = __toCommonJS(dmv2_exports);
|
|
410
410
|
|
|
411
|
-
// src/dmv2/
|
|
412
|
-
function
|
|
411
|
+
// src/dmv2/utils/stackTrace.ts
|
|
412
|
+
function shouldSkipStackLine(line) {
|
|
413
|
+
return line.includes("node_modules") || // Skip npm installed packages (prod)
|
|
414
|
+
line.includes("internal/modules") || // Skip Node.js internals
|
|
415
|
+
line.includes("ts-node") || // Skip TypeScript execution
|
|
416
|
+
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
417
|
+
line.includes("\\ts-moose-lib\\");
|
|
418
|
+
}
|
|
419
|
+
function parseStackLine(line) {
|
|
420
|
+
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
421
|
+
if (match && match[1]) {
|
|
422
|
+
return {
|
|
423
|
+
file: match[1],
|
|
424
|
+
line: match[2]
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
return void 0;
|
|
428
|
+
}
|
|
429
|
+
function getSourceFileInfo(stack) {
|
|
413
430
|
if (!stack) return {};
|
|
414
431
|
const lines = stack.split("\n");
|
|
415
432
|
for (const line of lines) {
|
|
416
|
-
if (
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
if (match && match[1]) {
|
|
420
|
-
return {
|
|
421
|
-
file: match[1],
|
|
422
|
-
line: match[2]
|
|
423
|
-
// Only the line number
|
|
424
|
-
};
|
|
425
|
-
}
|
|
433
|
+
if (shouldSkipStackLine(line)) continue;
|
|
434
|
+
const info = parseStackLine(line);
|
|
435
|
+
if (info) return info;
|
|
426
436
|
}
|
|
427
437
|
return {};
|
|
428
438
|
}
|
|
439
|
+
function getSourceFileFromStack(stack) {
|
|
440
|
+
return getSourceFileInfo(stack).file;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// src/dmv2/typedBase.ts
|
|
429
444
|
var TypedBase = class {
|
|
430
445
|
/** The JSON schema representation of type T. Injected by the compiler plugin. */
|
|
431
446
|
schema;
|
|
@@ -469,7 +484,7 @@ var TypedBase = class {
|
|
|
469
484
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
470
485
|
const stack = new Error().stack;
|
|
471
486
|
if (stack) {
|
|
472
|
-
const info =
|
|
487
|
+
const info = getSourceFileInfo(stack);
|
|
473
488
|
this.metadata.source = { file: info.file, line: info.line };
|
|
474
489
|
} else {
|
|
475
490
|
this.metadata.source = void 0;
|
|
@@ -1601,8 +1616,10 @@ var Stream = class extends TypedBase {
|
|
|
1601
1616
|
* @param config Optional configuration for this specific transformation step, like a version.
|
|
1602
1617
|
*/
|
|
1603
1618
|
addTransform(destination, transformation, config) {
|
|
1619
|
+
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1604
1620
|
const transformConfig = {
|
|
1605
|
-
...config ?? {}
|
|
1621
|
+
...config ?? {},
|
|
1622
|
+
sourceFile
|
|
1606
1623
|
};
|
|
1607
1624
|
if (transformConfig.deadLetterQueue === void 0) {
|
|
1608
1625
|
transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -1629,8 +1646,10 @@ var Stream = class extends TypedBase {
|
|
|
1629
1646
|
* @param config Optional configuration for this specific consumer, like a version.
|
|
1630
1647
|
*/
|
|
1631
1648
|
addConsumer(consumer, config) {
|
|
1649
|
+
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1632
1650
|
const consumerConfig = {
|
|
1633
|
-
...config ?? {}
|
|
1651
|
+
...config ?? {},
|
|
1652
|
+
sourceFile
|
|
1634
1653
|
};
|
|
1635
1654
|
if (consumerConfig.deadLetterQueue === void 0) {
|
|
1636
1655
|
consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -2217,6 +2236,8 @@ var SqlResource = class {
|
|
|
2217
2236
|
pullsDataFrom;
|
|
2218
2237
|
/** List of OlapTables or Views that this resource writes data to. */
|
|
2219
2238
|
pushesDataTo;
|
|
2239
|
+
/** @internal Source file path where this resource was defined */
|
|
2240
|
+
sourceFile;
|
|
2220
2241
|
/**
|
|
2221
2242
|
* Creates a new SqlResource instance.
|
|
2222
2243
|
* @param name The name of the resource.
|
|
@@ -2241,6 +2262,8 @@ var SqlResource = class {
|
|
|
2241
2262
|
);
|
|
2242
2263
|
this.pullsDataFrom = options?.pullsDataFrom ?? [];
|
|
2243
2264
|
this.pushesDataTo = options?.pushesDataTo ?? [];
|
|
2265
|
+
const stack = new Error().stack;
|
|
2266
|
+
this.sourceFile = getSourceFileFromStack(stack);
|
|
2244
2267
|
}
|
|
2245
2268
|
};
|
|
2246
2269
|
|