@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
2
|
-
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-BG2HP0xG.mjs';
|
|
2
|
+
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BRa8sgXw.mjs';
|
|
3
3
|
import 'typia';
|
|
4
4
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
5
5
|
import 'node:stream';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
2
|
-
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-BG2HP0xG.js';
|
|
2
|
+
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-CMLITD0_.js';
|
|
3
3
|
import 'typia';
|
|
4
4
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
5
5
|
import 'node:stream';
|
|
@@ -417,39 +417,24 @@ __export(browserCompatible_exports, {
|
|
|
417
417
|
});
|
|
418
418
|
module.exports = __toCommonJS(browserCompatible_exports);
|
|
419
419
|
|
|
420
|
-
// src/dmv2/
|
|
421
|
-
function
|
|
422
|
-
return line.includes("node_modules") || // Skip npm installed packages (prod)
|
|
423
|
-
line.includes("internal/modules") || // Skip Node.js internals
|
|
424
|
-
line.includes("ts-node") || // Skip TypeScript execution
|
|
425
|
-
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
426
|
-
line.includes("\\ts-moose-lib\\");
|
|
427
|
-
}
|
|
428
|
-
function parseStackLine(line) {
|
|
429
|
-
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
430
|
-
if (match && match[1]) {
|
|
431
|
-
return {
|
|
432
|
-
file: match[1],
|
|
433
|
-
line: match[2]
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
return void 0;
|
|
437
|
-
}
|
|
438
|
-
function getSourceFileInfo(stack) {
|
|
420
|
+
// src/dmv2/typedBase.ts
|
|
421
|
+
function getInstantiationFileInfo(stack) {
|
|
439
422
|
if (!stack) return {};
|
|
440
423
|
const lines = stack.split("\n");
|
|
441
424
|
for (const line of lines) {
|
|
442
|
-
if (
|
|
443
|
-
|
|
444
|
-
|
|
425
|
+
if (line.includes("node_modules") || line.includes("internal/modules") || line.includes("ts-node"))
|
|
426
|
+
continue;
|
|
427
|
+
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
428
|
+
if (match && match[1]) {
|
|
429
|
+
return {
|
|
430
|
+
file: match[1],
|
|
431
|
+
line: match[2]
|
|
432
|
+
// Only the line number
|
|
433
|
+
};
|
|
434
|
+
}
|
|
445
435
|
}
|
|
446
436
|
return {};
|
|
447
437
|
}
|
|
448
|
-
function getSourceFileFromStack(stack) {
|
|
449
|
-
return getSourceFileInfo(stack).file;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
// src/dmv2/typedBase.ts
|
|
453
438
|
var TypedBase = class {
|
|
454
439
|
/** The JSON schema representation of type T. Injected by the compiler plugin. */
|
|
455
440
|
schema;
|
|
@@ -493,7 +478,7 @@ var TypedBase = class {
|
|
|
493
478
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
494
479
|
const stack = new Error().stack;
|
|
495
480
|
if (stack) {
|
|
496
|
-
const info =
|
|
481
|
+
const info = getInstantiationFileInfo(stack);
|
|
497
482
|
this.metadata.source = { file: info.file, line: info.line };
|
|
498
483
|
} else {
|
|
499
484
|
this.metadata.source = void 0;
|
|
@@ -1720,10 +1705,8 @@ var Stream = class extends TypedBase {
|
|
|
1720
1705
|
* @param config Optional configuration for this specific transformation step, like a version.
|
|
1721
1706
|
*/
|
|
1722
1707
|
addTransform(destination, transformation, config) {
|
|
1723
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1724
1708
|
const transformConfig = {
|
|
1725
|
-
...config ?? {}
|
|
1726
|
-
sourceFile
|
|
1709
|
+
...config ?? {}
|
|
1727
1710
|
};
|
|
1728
1711
|
if (transformConfig.deadLetterQueue === void 0) {
|
|
1729
1712
|
transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -1750,10 +1733,8 @@ var Stream = class extends TypedBase {
|
|
|
1750
1733
|
* @param config Optional configuration for this specific consumer, like a version.
|
|
1751
1734
|
*/
|
|
1752
1735
|
addConsumer(consumer, config) {
|
|
1753
|
-
const sourceFile = getSourceFileFromStack(new Error().stack);
|
|
1754
1736
|
const consumerConfig = {
|
|
1755
|
-
...config ?? {}
|
|
1756
|
-
sourceFile
|
|
1737
|
+
...config ?? {}
|
|
1757
1738
|
};
|
|
1758
1739
|
if (consumerConfig.deadLetterQueue === void 0) {
|
|
1759
1740
|
consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
|
|
@@ -2340,8 +2321,6 @@ var SqlResource = class {
|
|
|
2340
2321
|
pullsDataFrom;
|
|
2341
2322
|
/** List of OlapTables or Views that this resource writes data to. */
|
|
2342
2323
|
pushesDataTo;
|
|
2343
|
-
/** @internal Source file path where this resource was defined */
|
|
2344
|
-
sourceFile;
|
|
2345
2324
|
/**
|
|
2346
2325
|
* Creates a new SqlResource instance.
|
|
2347
2326
|
* @param name The name of the resource.
|
|
@@ -2366,8 +2345,6 @@ var SqlResource = class {
|
|
|
2366
2345
|
);
|
|
2367
2346
|
this.pullsDataFrom = options?.pullsDataFrom ?? [];
|
|
2368
2347
|
this.pushesDataTo = options?.pushesDataTo ?? [];
|
|
2369
|
-
const stack = new Error().stack;
|
|
2370
|
-
this.sourceFile = getSourceFileFromStack(stack);
|
|
2371
2348
|
}
|
|
2372
2349
|
};
|
|
2373
2350
|
|