@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.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-BG2HP0xG.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-BG2HP0xG.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,39 +408,24 @@ __export(dmv2_exports, {
|
|
|
408
408
|
});
|
|
409
409
|
module.exports = __toCommonJS(dmv2_exports);
|
|
410
410
|
|
|
411
|
-
// src/dmv2/
|
|
412
|
-
function
|
|
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) {
|
|
411
|
+
// src/dmv2/typedBase.ts
|
|
412
|
+
function getInstantiationFileInfo(stack) {
|
|
430
413
|
if (!stack) return {};
|
|
431
414
|
const lines = stack.split("\n");
|
|
432
415
|
for (const line of lines) {
|
|
433
|
-
if (
|
|
434
|
-
|
|
435
|
-
|
|
416
|
+
if (line.includes("node_modules") || line.includes("internal/modules") || line.includes("ts-node"))
|
|
417
|
+
continue;
|
|
418
|
+
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
419
|
+
if (match && match[1]) {
|
|
420
|
+
return {
|
|
421
|
+
file: match[1],
|
|
422
|
+
line: match[2]
|
|
423
|
+
// Only the line number
|
|
424
|
+
};
|
|
425
|
+
}
|
|
436
426
|
}
|
|
437
427
|
return {};
|
|
438
428
|
}
|
|
439
|
-
function getSourceFileFromStack(stack) {
|
|
440
|
-
return getSourceFileInfo(stack).file;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
// src/dmv2/typedBase.ts
|
|
444
429
|
var TypedBase = class {
|
|
445
430
|
/** The JSON schema representation of type T. Injected by the compiler plugin. */
|
|
446
431
|
schema;
|
|
@@ -484,7 +469,7 @@ var TypedBase = class {
|
|
|
484
469
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
485
470
|
const stack = new Error().stack;
|
|
486
471
|
if (stack) {
|
|
487
|
-
const info =
|
|
472
|
+
const info = getInstantiationFileInfo(stack);
|
|
488
473
|
this.metadata.source = { file: info.file, line: info.line };
|
|
489
474
|
} else {
|
|
490
475
|
this.metadata.source = void 0;
|
|
@@ -1616,10 +1601,8 @@ var Stream = class extends TypedBase {
|
|
|
1616
1601
|
* @param config Optional configuration for this specific transformation step, like a version.
|
|
1617
1602
|
*/
|
|
1618
1603
|
addTransform(destination, transformation, config) {
|
|
1619
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1620
1604
|
const transformConfig = {
|
|
1621
|
-
...config ?? {}
|
|
1622
|
-
sourceFile
|
|
1605
|
+
...config ?? {}
|
|
1623
1606
|
};
|
|
1624
1607
|
if (transformConfig.deadLetterQueue === void 0) {
|
|
1625
1608
|
transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -1646,10 +1629,8 @@ var Stream = class extends TypedBase {
|
|
|
1646
1629
|
* @param config Optional configuration for this specific consumer, like a version.
|
|
1647
1630
|
*/
|
|
1648
1631
|
addConsumer(consumer, config) {
|
|
1649
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1650
1632
|
const consumerConfig = {
|
|
1651
|
-
...config ?? {}
|
|
1652
|
-
sourceFile
|
|
1633
|
+
...config ?? {}
|
|
1653
1634
|
};
|
|
1654
1635
|
if (consumerConfig.deadLetterQueue === void 0) {
|
|
1655
1636
|
consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -2236,8 +2217,6 @@ var SqlResource = class {
|
|
|
2236
2217
|
pullsDataFrom;
|
|
2237
2218
|
/** List of OlapTables or Views that this resource writes data to. */
|
|
2238
2219
|
pushesDataTo;
|
|
2239
|
-
/** @internal Source file path where this resource was defined */
|
|
2240
|
-
sourceFile;
|
|
2241
2220
|
/**
|
|
2242
2221
|
* Creates a new SqlResource instance.
|
|
2243
2222
|
* @param name The name of the resource.
|
|
@@ -2262,8 +2241,6 @@ var SqlResource = class {
|
|
|
2262
2241
|
);
|
|
2263
2242
|
this.pullsDataFrom = options?.pullsDataFrom ?? [];
|
|
2264
2243
|
this.pushesDataTo = options?.pushesDataTo ?? [];
|
|
2265
|
-
const stack = new Error().stack;
|
|
2266
|
-
this.sourceFile = getSourceFileFromStack(stack);
|
|
2267
2244
|
}
|
|
2268
2245
|
};
|
|
2269
2246
|
|