@514labs/moose-lib 0.6.242 → 0.6.243

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.
@@ -1,4 +1,4 @@
1
- import './index-BG2HP0xG.mjs';
1
+ import './index-DtHRzX8Z.mjs';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -1,4 +1,4 @@
1
- import './index-BG2HP0xG.js';
1
+ import './index-DtHRzX8Z.js';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -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-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';
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-DtHRzX8Z.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-bG7qUssc.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-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';
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-DtHRzX8Z.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-mRmtV1to.js';
3
3
  import 'typia';
4
4
  import 'typia/src/schemas/json/IJsonSchemaCollection';
5
5
  import 'node:stream';
@@ -417,24 +417,39 @@ __export(browserCompatible_exports, {
417
417
  });
418
418
  module.exports = __toCommonJS(browserCompatible_exports);
419
419
 
420
- // src/dmv2/typedBase.ts
421
- function getInstantiationFileInfo(stack) {
420
+ // src/dmv2/utils/stackTrace.ts
421
+ function shouldSkipStackLine(line) {
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) {
422
439
  if (!stack) return {};
423
440
  const lines = stack.split("\n");
424
441
  for (const line of lines) {
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
- }
442
+ if (shouldSkipStackLine(line)) continue;
443
+ const info = parseStackLine(line);
444
+ if (info) return info;
435
445
  }
436
446
  return {};
437
447
  }
448
+ function getSourceFileFromStack(stack) {
449
+ return getSourceFileInfo(stack).file;
450
+ }
451
+
452
+ // src/dmv2/typedBase.ts
438
453
  var TypedBase = class {
439
454
  /** The JSON schema representation of type T. Injected by the compiler plugin. */
440
455
  schema;
@@ -478,7 +493,7 @@ var TypedBase = class {
478
493
  this.metadata = config?.metadata ? { ...config.metadata } : {};
479
494
  const stack = new Error().stack;
480
495
  if (stack) {
481
- const info = getInstantiationFileInfo(stack);
496
+ const info = getSourceFileInfo(stack);
482
497
  this.metadata.source = { file: info.file, line: info.line };
483
498
  } else {
484
499
  this.metadata.source = void 0;
@@ -1705,8 +1720,10 @@ var Stream = class extends TypedBase {
1705
1720
  * @param config Optional configuration for this specific transformation step, like a version.
1706
1721
  */
1707
1722
  addTransform(destination, transformation, config) {
1723
+ const sourceFile = getSourceFileFromStack(new Error().stack);
1708
1724
  const transformConfig = {
1709
- ...config ?? {}
1725
+ ...config ?? {},
1726
+ sourceFile
1710
1727
  };
1711
1728
  if (transformConfig.deadLetterQueue === void 0) {
1712
1729
  transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
@@ -1733,8 +1750,10 @@ var Stream = class extends TypedBase {
1733
1750
  * @param config Optional configuration for this specific consumer, like a version.
1734
1751
  */
1735
1752
  addConsumer(consumer, config) {
1753
+ const sourceFile = getSourceFileFromStack(new Error().stack);
1736
1754
  const consumerConfig = {
1737
- ...config ?? {}
1755
+ ...config ?? {},
1756
+ sourceFile
1738
1757
  };
1739
1758
  if (consumerConfig.deadLetterQueue === void 0) {
1740
1759
  consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
@@ -2321,6 +2340,8 @@ var SqlResource = class {
2321
2340
  pullsDataFrom;
2322
2341
  /** List of OlapTables or Views that this resource writes data to. */
2323
2342
  pushesDataTo;
2343
+ /** @internal Source file path where this resource was defined */
2344
+ sourceFile;
2324
2345
  /**
2325
2346
  * Creates a new SqlResource instance.
2326
2347
  * @param name The name of the resource.
@@ -2345,6 +2366,8 @@ var SqlResource = class {
2345
2366
  );
2346
2367
  this.pullsDataFrom = options?.pullsDataFrom ?? [];
2347
2368
  this.pushesDataTo = options?.pushesDataTo ?? [];
2369
+ const stack = new Error().stack;
2370
+ this.sourceFile = getSourceFileFromStack(stack);
2348
2371
  }
2349
2372
  };
2350
2373