@kaskad/config 0.0.1 → 0.0.2

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,5 +1,11 @@
1
+ const Delimiters = {
2
+ NodePath: '.',
3
+ Ref: '&',
4
+ Variable: '$',
5
+ };
6
+
1
7
  const levels = { trace: 0, warn: 1, error: 2 };
2
- export const log = {
8
+ const log = {
3
9
  level: 'warn',
4
10
  trace(...args) {
5
11
  if (levels[this.level] <= levels.trace) {
@@ -15,4 +21,10 @@ export const log = {
15
21
  console.error('[Kaskad]', ...args);
16
22
  },
17
23
  };
18
- //# sourceMappingURL=log.js.map
24
+
25
+ /**
26
+ * Generated bundle index. Do not edit.
27
+ */
28
+
29
+ export { Delimiters, log };
30
+ //# sourceMappingURL=kaskad-config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kaskad-config.mjs","sources":["../../../../libs/config/src/lib/delimiters.ts","../../../../libs/config/src/lib/log.ts","../../../../libs/config/src/kaskad-config.ts"],"sourcesContent":["export const Delimiters = {\n NodePath: '.',\n Ref: '&',\n Variable: '$',\n};\n","export type LogLevel = 'trace' | 'warn' | 'error';\n\nconst levels: Record<LogLevel, number> = { trace: 0, warn: 1, error: 2 };\n\nexport const log = {\n level: 'warn' as LogLevel,\n\n trace(...args: unknown[]) {\n if (levels[this.level] <= levels.trace) {\n console.log('[Kaskad]', ...args);\n }\n },\n\n warn(...args: unknown[]) {\n if (levels[this.level] <= levels.warn) {\n console.warn('[Kaskad]', ...args);\n }\n },\n\n error(...args: unknown[]) {\n console.error('[Kaskad]', ...args);\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,UAAU,GAAG;AACxB,IAAA,QAAQ,EAAE,GAAG;AACb,IAAA,GAAG,EAAE,GAAG;AACR,IAAA,QAAQ,EAAE,GAAG;;;ACDf,MAAM,MAAM,GAA6B,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;AAEjE,MAAM,GAAG,GAAG;AACjB,IAAA,KAAK,EAAE,MAAkB;IAEzB,KAAK,CAAC,GAAG,IAAe,EAAA;QACtB,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE;YACtC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC;;KAEnC;IAED,IAAI,CAAC,GAAG,IAAe,EAAA;QACrB,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE;YACrC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC;;KAEpC;IAED,KAAK,CAAC,GAAG,IAAe,EAAA;QACtB,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC;KACnC;;;ACrBH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaskad/config",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "21.1.3",
6
6
  "vite": "7.3.1",
@@ -8,18 +8,18 @@
8
8
  "@nx/vite": "22.4.5"
9
9
  },
10
10
  "sideEffects": false,
11
- "module": "esm2022/kaskad-config.js",
12
- "typings": "kaskad-config.d.ts",
11
+ "module": "fesm2022/kaskad-config.mjs",
12
+ "typings": "types/kaskad-config.d.ts",
13
13
  "exports": {
14
14
  "./package.json": {
15
15
  "default": "./package.json"
16
16
  },
17
17
  ".": {
18
- "types": "./kaskad-config.d.ts",
19
- "default": "./esm2022/kaskad-config.js"
18
+ "types": "./types/kaskad-config.d.ts",
19
+ "default": "./fesm2022/kaskad-config.mjs"
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
23
  "tslib": "^2.3.0"
24
24
  }
25
- }
25
+ }
@@ -0,0 +1,16 @@
1
+ declare const Delimiters: {
2
+ NodePath: string;
3
+ Ref: string;
4
+ Variable: string;
5
+ };
6
+
7
+ type LogLevel = 'trace' | 'warn' | 'error';
8
+ declare const log: {
9
+ level: LogLevel;
10
+ trace(...args: unknown[]): void;
11
+ warn(...args: unknown[]): void;
12
+ error(...args: unknown[]): void;
13
+ };
14
+
15
+ export { Delimiters, log };
16
+ export type { LogLevel };
package/esm2022/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './lib/delimiters';
2
- export { log } from './lib/log';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/config/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC","sourcesContent":["export * from './lib/delimiters';\nexport { log } from './lib/log';\nexport type { LogLevel } from './lib/log';\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=kaskad-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kaskad-config.js","sourceRoot":"","sources":["../../../../libs/config/src/kaskad-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,6 +0,0 @@
1
- export const Delimiters = {
2
- NodePath: '.',
3
- Ref: '&',
4
- Variable: '$',
5
- };
6
- //# sourceMappingURL=delimiters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delimiters.js","sourceRoot":"","sources":["../../../../../libs/config/src/lib/delimiters.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,GAAG;IACb,GAAG,EAAE,GAAG;IACR,QAAQ,EAAE,GAAG;CACd,CAAC","sourcesContent":["export const Delimiters = {\n NodePath: '.',\n Ref: '&',\n Variable: '$',\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../../libs/config/src/lib/log.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAA6B,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAEzE,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,KAAK,EAAE,MAAkB;IAEzB,KAAK,CAAC,GAAG,IAAe;QACtB,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACvC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,IAAI,CAAC,GAAG,IAAe;QACrB,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YACtC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED,KAAK,CAAC,GAAG,IAAe;QACtB,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC;IACrC,CAAC;CACF,CAAC","sourcesContent":["export type LogLevel = 'trace' | 'warn' | 'error';\n\nconst levels: Record<LogLevel, number> = { trace: 0, warn: 1, error: 2 };\n\nexport const log = {\n level: 'warn' as LogLevel,\n\n trace(...args: unknown[]) {\n if (levels[this.level] <= levels.trace) {\n console.log('[Kaskad]', ...args);\n }\n },\n\n warn(...args: unknown[]) {\n if (levels[this.level] <= levels.warn) {\n console.warn('[Kaskad]', ...args);\n }\n },\n\n error(...args: unknown[]) {\n console.error('[Kaskad]', ...args);\n },\n};\n"]}
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './lib/delimiters';
2
- export { log } from './lib/log';
3
- export type { LogLevel } from './lib/log';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@kaskad/config" />
5
- export * from './index';
@@ -1,5 +0,0 @@
1
- export declare const Delimiters: {
2
- NodePath: string;
3
- Ref: string;
4
- Variable: string;
5
- };
package/lib/log.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export type LogLevel = 'trace' | 'warn' | 'error';
2
- export declare const log: {
3
- level: LogLevel;
4
- trace(...args: unknown[]): void;
5
- warn(...args: unknown[]): void;
6
- error(...args: unknown[]): void;
7
- };