@cldmv/slothlet 3.9.2 → 3.11.0

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.
Files changed (181) hide show
  1. package/README.md +21 -21
  2. package/REFERENCE.md +19 -19
  3. package/dist/lib/builders/api_builder.mjs +1 -1
  4. package/dist/lib/builders/builder.mjs +1 -1
  5. package/dist/lib/builders/modes-processor.mjs +1 -1
  6. package/dist/lib/handlers/api-cache-manager.mjs +1 -1
  7. package/dist/lib/handlers/api-manager.mjs +1 -1
  8. package/dist/lib/handlers/hook-manager.mjs +1 -1
  9. package/dist/lib/handlers/permission-manager.mjs +1 -1
  10. package/dist/lib/handlers/unified-wrapper.mjs +1 -1
  11. package/dist/lib/helpers/config.mjs +1 -1
  12. package/dist/lib/helpers/generate-manifest.mjs +1 -1
  13. package/dist/lib/helpers/module-discovery.mjs +1 -1
  14. package/dist/lib/helpers/module-manifest-validator.mjs +1 -1
  15. package/dist/lib/helpers/platform.mjs +1 -1
  16. package/dist/lib/i18n/languages/en-us.json +92 -64
  17. package/dist/lib/i18n/translations.mjs +1 -1
  18. package/dist/lib/modes/eager.mjs +1 -1
  19. package/dist/lib/modes/lazy.mjs +1 -1
  20. package/dist/lib/processors/loader.mjs +1 -1
  21. package/dist/slothlet.mjs +1 -1
  22. package/package.json +64 -34
  23. package/types/stub/devcheck.d.mts +3 -0
  24. package/types/stub/index.d.mts +4 -0
  25. package/types/stub/lib/builders/api-assignment.d.mts +3 -0
  26. package/types/stub/lib/builders/api_builder.d.mts +3 -0
  27. package/types/stub/lib/builders/builder.d.mts +3 -0
  28. package/types/stub/lib/builders/modes-processor.d.mts +3 -0
  29. package/types/stub/lib/errors.d.mts +3 -0
  30. package/types/stub/lib/factories/component-base.d.mts +3 -0
  31. package/types/stub/lib/factories/context.d.mts +3 -0
  32. package/types/stub/lib/handlers/api-cache-manager.d.mts +3 -0
  33. package/types/stub/lib/handlers/api-manager.d.mts +3 -0
  34. package/types/stub/lib/handlers/context-async.d.mts +3 -0
  35. package/types/stub/lib/handlers/context-live.d.mts +3 -0
  36. package/types/stub/lib/handlers/hook-manager.d.mts +3 -0
  37. package/types/stub/lib/handlers/lifecycle-token.d.mts +3 -0
  38. package/types/stub/lib/handlers/lifecycle.d.mts +3 -0
  39. package/types/stub/lib/handlers/materialize-manager.d.mts +3 -0
  40. package/types/stub/lib/handlers/metadata.d.mts +3 -0
  41. package/types/stub/lib/handlers/module-manager.d.mts +3 -0
  42. package/types/stub/lib/handlers/ownership.d.mts +3 -0
  43. package/types/stub/lib/handlers/permission-manager.d.mts +3 -0
  44. package/types/stub/lib/handlers/unified-wrapper.d.mts +3 -0
  45. package/types/stub/lib/handlers/version-manager.d.mts +3 -0
  46. package/types/stub/lib/helpers/class-instance-wrapper.d.mts +3 -0
  47. package/types/stub/lib/helpers/config.d.mts +3 -0
  48. package/types/stub/lib/helpers/eventemitter-context.d.mts +3 -0
  49. package/types/stub/lib/helpers/generate-manifest.d.mts +3 -0
  50. package/types/stub/lib/helpers/hint-detector.d.mts +3 -0
  51. package/types/stub/lib/helpers/manifest-resolver.d.mts +3 -0
  52. package/types/stub/lib/helpers/modes-utils.d.mts +3 -0
  53. package/types/stub/lib/helpers/module-discovery.d.mts +3 -0
  54. package/types/stub/lib/helpers/module-manifest-validator.d.mts +3 -0
  55. package/types/stub/lib/helpers/module-sort.d.mts +3 -0
  56. package/types/stub/lib/helpers/pattern-matcher.d.mts +3 -0
  57. package/types/stub/lib/helpers/platform.d.mts +3 -0
  58. package/types/stub/lib/helpers/resolve-from-caller.d.mts +3 -0
  59. package/types/stub/lib/helpers/sanitize.d.mts +3 -0
  60. package/types/stub/lib/helpers/utilities.d.mts +3 -0
  61. package/types/stub/lib/i18n/translations.d.mts +3 -0
  62. package/types/stub/lib/modes/eager.d.mts +3 -0
  63. package/types/stub/lib/modes/lazy.d.mts +3 -0
  64. package/types/stub/lib/processors/flatten.d.mts +3 -0
  65. package/types/stub/lib/processors/loader.d.mts +3 -0
  66. package/types/stub/lib/processors/type-generator.d.mts +3 -0
  67. package/types/stub/lib/processors/typescript.d.mts +3 -0
  68. package/types/stub/lib/runtime/runtime-asynclocalstorage.d.mts +3 -0
  69. package/types/stub/lib/runtime/runtime-livebindings.d.mts +3 -0
  70. package/types/stub/lib/runtime/runtime.d.mts +3 -0
  71. package/types/stub/lib/typegen/typegen.d.mts +3 -0
  72. package/types/stub/slothlet.d.mts +4 -0
  73. package/dist/lib/i18n/languages/de-de.json +0 -444
  74. package/dist/lib/i18n/languages/en-gb.json +0 -444
  75. package/dist/lib/i18n/languages/es-es.json +0 -444
  76. package/dist/lib/i18n/languages/es-mx.json +0 -444
  77. package/dist/lib/i18n/languages/fr-fr.json +0 -444
  78. package/dist/lib/i18n/languages/hi-in.json +0 -444
  79. package/dist/lib/i18n/languages/ja-jp.json +0 -444
  80. package/dist/lib/i18n/languages/ko-kr.json +0 -444
  81. package/dist/lib/i18n/languages/pt-br.json +0 -444
  82. package/dist/lib/i18n/languages/ru-ru.json +0 -444
  83. package/dist/lib/i18n/languages/zh-cn.json +0 -444
  84. package/types/dist/lib/builders/api-assignment.d.mts +0 -8
  85. package/types/dist/lib/builders/api-assignment.d.mts.map +0 -1
  86. package/types/dist/lib/builders/api_builder.d.mts +0 -12
  87. package/types/dist/lib/builders/api_builder.d.mts.map +0 -1
  88. package/types/dist/lib/builders/builder.d.mts +0 -6
  89. package/types/dist/lib/builders/builder.d.mts.map +0 -1
  90. package/types/dist/lib/builders/modes-processor.d.mts +0 -8
  91. package/types/dist/lib/builders/modes-processor.d.mts.map +0 -1
  92. package/types/dist/lib/errors.d.mts +0 -28
  93. package/types/dist/lib/errors.d.mts.map +0 -1
  94. package/types/dist/lib/factories/component-base.d.mts +0 -12
  95. package/types/dist/lib/factories/component-base.d.mts.map +0 -1
  96. package/types/dist/lib/factories/context.d.mts +0 -8
  97. package/types/dist/lib/factories/context.d.mts.map +0 -1
  98. package/types/dist/lib/handlers/api-cache-manager.d.mts +0 -25
  99. package/types/dist/lib/handlers/api-cache-manager.d.mts.map +0 -1
  100. package/types/dist/lib/handlers/api-manager.d.mts +0 -47
  101. package/types/dist/lib/handlers/api-manager.d.mts.map +0 -1
  102. package/types/dist/lib/handlers/context-async.d.mts +0 -28
  103. package/types/dist/lib/handlers/context-async.d.mts.map +0 -1
  104. package/types/dist/lib/handlers/context-live.d.mts +0 -28
  105. package/types/dist/lib/handlers/context-live.d.mts.map +0 -1
  106. package/types/dist/lib/handlers/hook-manager.d.mts +0 -65
  107. package/types/dist/lib/handlers/hook-manager.d.mts.map +0 -1
  108. package/types/dist/lib/handlers/lifecycle-token.d.mts +0 -4
  109. package/types/dist/lib/handlers/lifecycle-token.d.mts.map +0 -1
  110. package/types/dist/lib/handlers/lifecycle.d.mts +0 -13
  111. package/types/dist/lib/handlers/lifecycle.d.mts.map +0 -1
  112. package/types/dist/lib/handlers/materialize-manager.d.mts +0 -13
  113. package/types/dist/lib/handlers/materialize-manager.d.mts.map +0 -1
  114. package/types/dist/lib/handlers/metadata.d.mts +0 -26
  115. package/types/dist/lib/handlers/metadata.d.mts.map +0 -1
  116. package/types/dist/lib/handlers/module-manager.d.mts +0 -29
  117. package/types/dist/lib/handlers/module-manager.d.mts.map +0 -1
  118. package/types/dist/lib/handlers/ownership.d.mts +0 -57
  119. package/types/dist/lib/handlers/ownership.d.mts.map +0 -1
  120. package/types/dist/lib/handlers/permission-manager.d.mts +0 -54
  121. package/types/dist/lib/handlers/permission-manager.d.mts.map +0 -1
  122. package/types/dist/lib/handlers/unified-wrapper.d.mts +0 -37
  123. package/types/dist/lib/handlers/unified-wrapper.d.mts.map +0 -1
  124. package/types/dist/lib/handlers/version-manager.d.mts +0 -37
  125. package/types/dist/lib/handlers/version-manager.d.mts.map +0 -1
  126. package/types/dist/lib/helpers/class-instance-wrapper.d.mts +0 -4
  127. package/types/dist/lib/helpers/class-instance-wrapper.d.mts.map +0 -1
  128. package/types/dist/lib/helpers/config.d.mts +0 -150
  129. package/types/dist/lib/helpers/config.d.mts.map +0 -1
  130. package/types/dist/lib/helpers/eventemitter-context.d.mts +0 -5
  131. package/types/dist/lib/helpers/eventemitter-context.d.mts.map +0 -1
  132. package/types/dist/lib/helpers/generate-manifest.d.mts +0 -11
  133. package/types/dist/lib/helpers/generate-manifest.d.mts.map +0 -1
  134. package/types/dist/lib/helpers/hint-detector.d.mts +0 -7
  135. package/types/dist/lib/helpers/hint-detector.d.mts.map +0 -1
  136. package/types/dist/lib/helpers/manifest-resolver.d.mts +0 -2
  137. package/types/dist/lib/helpers/manifest-resolver.d.mts.map +0 -1
  138. package/types/dist/lib/helpers/modes-utils.d.mts +0 -8
  139. package/types/dist/lib/helpers/modes-utils.d.mts.map +0 -1
  140. package/types/dist/lib/helpers/module-discovery.d.mts +0 -8
  141. package/types/dist/lib/helpers/module-discovery.d.mts.map +0 -1
  142. package/types/dist/lib/helpers/module-manifest-validator.d.mts +0 -14
  143. package/types/dist/lib/helpers/module-manifest-validator.d.mts.map +0 -1
  144. package/types/dist/lib/helpers/module-sort.d.mts +0 -2
  145. package/types/dist/lib/helpers/module-sort.d.mts.map +0 -1
  146. package/types/dist/lib/helpers/pattern-matcher.d.mts +0 -4
  147. package/types/dist/lib/helpers/pattern-matcher.d.mts.map +0 -1
  148. package/types/dist/lib/helpers/platform.d.mts +0 -12
  149. package/types/dist/lib/helpers/platform.d.mts.map +0 -1
  150. package/types/dist/lib/helpers/resolve-from-caller.d.mts +0 -9
  151. package/types/dist/lib/helpers/resolve-from-caller.d.mts.map +0 -1
  152. package/types/dist/lib/helpers/sanitize.d.mts +0 -10
  153. package/types/dist/lib/helpers/sanitize.d.mts.map +0 -1
  154. package/types/dist/lib/helpers/utilities.d.mts +0 -9
  155. package/types/dist/lib/helpers/utilities.d.mts.map +0 -1
  156. package/types/dist/lib/i18n/translations.d.mts +0 -7
  157. package/types/dist/lib/i18n/translations.d.mts.map +0 -1
  158. package/types/dist/lib/modes/eager.d.mts +0 -14
  159. package/types/dist/lib/modes/eager.d.mts.map +0 -1
  160. package/types/dist/lib/modes/lazy.d.mts +0 -16
  161. package/types/dist/lib/modes/lazy.d.mts.map +0 -1
  162. package/types/dist/lib/processors/flatten.d.mts +0 -63
  163. package/types/dist/lib/processors/flatten.d.mts.map +0 -1
  164. package/types/dist/lib/processors/loader.d.mts +0 -12
  165. package/types/dist/lib/processors/loader.d.mts.map +0 -1
  166. package/types/dist/lib/processors/type-generator.d.mts +0 -5
  167. package/types/dist/lib/processors/type-generator.d.mts.map +0 -1
  168. package/types/dist/lib/processors/typescript.d.mts +0 -18
  169. package/types/dist/lib/processors/typescript.d.mts.map +0 -1
  170. package/types/dist/lib/runtime/runtime-asynclocalstorage.d.mts +0 -4
  171. package/types/dist/lib/runtime/runtime-asynclocalstorage.d.mts.map +0 -1
  172. package/types/dist/lib/runtime/runtime-livebindings.d.mts +0 -3
  173. package/types/dist/lib/runtime/runtime-livebindings.d.mts.map +0 -1
  174. package/types/dist/lib/runtime/runtime.d.mts +0 -4
  175. package/types/dist/lib/runtime/runtime.d.mts.map +0 -1
  176. package/types/dist/lib/typegen/typegen.d.mts +0 -5
  177. package/types/dist/lib/typegen/typegen.d.mts.map +0 -1
  178. package/types/dist/slothlet.d.mts +0 -4
  179. package/types/dist/slothlet.d.mts.map +0 -1
  180. package/types/index.d.mts +0 -18
  181. package/types/index.d.mts.map +0 -1
@@ -1,150 +0,0 @@
1
- export class Config extends ComponentBase {
2
- static slothletProperty: string;
3
- normalizeCollision(collision: any): {
4
- initial: string;
5
- api: string;
6
- };
7
- normalizeRuntime(runtime: any): "async" | "live";
8
- normalizeMode(mode: any): "eager" | "lazy";
9
- normalizeMutations(mutations: any): {
10
- add: boolean;
11
- remove: boolean;
12
- reload: boolean;
13
- permissions: boolean;
14
- };
15
- normalizeDebug(debug: any): {
16
- builder: any;
17
- api: any;
18
- index: any;
19
- modes: any;
20
- wrapper: any;
21
- ownership: any;
22
- context: any;
23
- initialization: any;
24
- materialize: any;
25
- versioning: any;
26
- permissions: any;
27
- };
28
- normalizeEnvTarget(platform: any, hasManifest?: boolean): "browser" | "node";
29
- normalizeHook(hook: any): {
30
- enabled: boolean;
31
- pattern: string;
32
- suppressErrors: boolean;
33
- };
34
- transformConfig(config?: {}): {
35
- base: any;
36
- dir: any;
37
- manifest: any;
38
- resolveModuleSpecifier: any;
39
- envTarget: string;
40
- mode: string;
41
- runtime: string;
42
- apiDepth: any;
43
- reference: any;
44
- context: any;
45
- i18n: {
46
- language: any;
47
- } | null;
48
- debug: {
49
- builder: any;
50
- api: any;
51
- index: any;
52
- modes: any;
53
- wrapper: any;
54
- ownership: any;
55
- context: any;
56
- initialization: any;
57
- materialize: any;
58
- versioning: any;
59
- permissions: any;
60
- };
61
- diagnostics: boolean;
62
- hook: {
63
- enabled: boolean;
64
- pattern: string;
65
- suppressErrors: boolean;
66
- };
67
- collision: {
68
- initial: string;
69
- api: string;
70
- };
71
- api: {
72
- collision: {
73
- initial: string;
74
- api: string;
75
- };
76
- mutations: {
77
- add: boolean;
78
- remove: boolean;
79
- reload: boolean;
80
- permissions: boolean;
81
- } | {
82
- add: boolean;
83
- remove: boolean;
84
- reload: boolean;
85
- };
86
- };
87
- scope: any;
88
- tracking: {
89
- materialization: boolean;
90
- };
91
- backgroundMaterialize: boolean;
92
- silent: boolean;
93
- typescript: {
94
- enabled: boolean;
95
- mode: string;
96
- types?: undefined;
97
- target?: undefined;
98
- sourcemap?: undefined;
99
- } | {
100
- enabled: boolean;
101
- mode: string;
102
- types: any;
103
- target: any;
104
- sourcemap: any;
105
- } | null;
106
- env: {
107
- include: any;
108
- } | null;
109
- versionDispatcher: any;
110
- permissions: {
111
- defaultPolicy: string;
112
- enabled: boolean;
113
- audit: string;
114
- readGating: boolean;
115
- rules: any;
116
- } | null;
117
- suppressFixes: Set<any>;
118
- };
119
- normalizeSuppressFixes(suppressFixes: any, silent: any): Set<any>;
120
- normalizeTypeScript(typescript: any): {
121
- enabled: boolean;
122
- mode: string;
123
- types?: undefined;
124
- target?: undefined;
125
- sourcemap?: undefined;
126
- } | {
127
- enabled: boolean;
128
- mode: string;
129
- types: any;
130
- target: any;
131
- sourcemap: any;
132
- } | null;
133
- normalizeEnv(env: any): {
134
- include: any;
135
- } | null;
136
- normalizePermissions(permissions: any): {
137
- defaultPolicy: string;
138
- enabled: boolean;
139
- audit: string;
140
- readGating: boolean;
141
- rules: any;
142
- } | null;
143
- }
144
- export function normalizeHookConfig(hook: any): {
145
- enabled: boolean;
146
- pattern: string;
147
- suppressErrors: boolean;
148
- };
149
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
150
- //# sourceMappingURL=config.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/config.mjs"],"names":[],"mappings":"AAA+nB;IAAmC,gCAAiC;IAAA;;;MAA2mB;IAAA,iDAA+U;IAAA,2CAA0S;IAAA;;;;;MAAqV;IAAA;;;;;;;;;;;;MAA46B;IAAA,6EAAwL;IAAA;;;;MAAqD;IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAu8I;IAAA,kEAA0gB;IAAA;;;;;;;;;;;;aAAyf;IAAA;;aAAiN;IAAA;;;;;;aAAymD;CAAC;AAAp+U;;;;EAAyc;8BAAtmB,0CAA0C"}
@@ -1,5 +0,0 @@
1
- export function cleanupEventEmitterResources(): void;
2
- export function disableEventEmitterPatching(): void;
3
- export function enableEventEmitterPatching(): void;
4
- export function setApiContextChecker(checker: any): void;
5
- //# sourceMappingURL=eventemitter-context.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eventemitter-context.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/eventemitter-context.mjs"],"names":[],"mappings":"AAAk7P,qDAA2M;AAAtmB,oDAA2Z;AAArrB,mDAA0R;AAAt7O,yDAA8D"}
@@ -1,11 +0,0 @@
1
- export function generateBrowserAssets(apiDir: any, options?: {}): Promise<{
2
- manifest: any;
3
- importmap: {
4
- imports: {};
5
- };
6
- }>;
7
- export function generateImportMap(slothletBase?: string): Promise<{
8
- imports: {};
9
- }>;
10
- export function generateManifest(dir: any): Promise<any>;
11
- //# sourceMappingURL=generate-manifest.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-manifest.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/generate-manifest.mjs"],"names":[],"mappings":"AAA81G;;;;;GAAkb;AAA/qC;;GAA6vB;AAAx+D,yDAAgd"}
@@ -1,7 +0,0 @@
1
- export class HintDetector extends ComponentBase {
2
- static slothletProperty: string;
3
- detectHint(error: any, errorCode: any): string;
4
- }
5
- export function detectHint(error: any, errorCode: any): string;
6
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
7
- //# sourceMappingURL=hint-detector.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hint-detector.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/hint-detector.mjs"],"names":[],"mappings":"AAA4S;IAAyC,gCAAuC;IAAA,+CAA2M;CAAC;AAA5M,+DAA2M;8BAA9iB,0CAA0C"}
@@ -1,2 +0,0 @@
1
- export function createManifestResolver(base: any): (entry: any) => string;
2
- //# sourceMappingURL=manifest-resolver.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest-resolver.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/manifest-resolver.mjs"],"names":[],"mappings":"AAAA,oDAAoW,UAAK,YAA2C"}
@@ -1,8 +0,0 @@
1
- export class ModesUtils extends ComponentBase {
2
- static slothletProperty: string;
3
- ensureNamedExportFunction(fn: any, ____nameHint: any): any;
4
- cloneWrapperImpl(value: any, mode: any): any;
5
- getOwnershipCollisionMode(config: any, collisionContext?: string): any;
6
- }
7
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
8
- //# sourceMappingURL=modes-utils.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modes-utils.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/modes-utils.mjs"],"names":[],"mappings":"AAAoE;IAAuC,gCAAqC;IAAA,2DAAqD;IAAA,6CAAqR;IAAA,uEAAkH;CAAC;8BAApjB,0CAA0C"}
@@ -1,8 +0,0 @@
1
- export function discoverModules(options?: {}): Promise<Readonly<{
2
- packageName: any;
3
- packageRoot: any;
4
- mountPath: readonly any[];
5
- apiDir: any;
6
- manifest: any;
7
- }>[]>;
8
- //# sourceMappingURL=module-discovery.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-discovery.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/module-discovery.mjs"],"names":[],"mappings":"AAA2Q;;;;;;MAA2nE"}
@@ -1,14 +0,0 @@
1
- export function validateModuleManifest(manifest: any, packageContext: any): {
2
- schemaVersion: number;
3
- name: any;
4
- version: any;
5
- description: any;
6
- mountPath: any[];
7
- apiDir: any;
8
- kind: any;
9
- priority: any;
10
- dependencies: any;
11
- permissions: any;
12
- metadata: any;
13
- };
14
- //# sourceMappingURL=module-manifest-validator.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-manifest-validator.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/module-manifest-validator.mjs"],"names":[],"mappings":"AAA6b;;;;;;;;;;;;EAA0mJ"}
@@ -1,2 +0,0 @@
1
- export function sortModules(results: any, comparator: any): any[];
2
- //# sourceMappingURL=module-sort.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-sort.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/module-sort.mjs"],"names":[],"mappings":"AAAA,kEAAkJ"}
@@ -1,4 +0,0 @@
1
- export function compilePattern(pattern: any, options?: {}): any;
2
- export function expandBraces(pattern: any, depth?: number, maxDepth?: number, options?: {}): any;
3
- export function splitBraceAlternatives(content: any): string[];
4
- //# sourceMappingURL=pattern-matcher.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pattern-matcher.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/pattern-matcher.mjs"],"names":[],"mappings":"AAAkD,gEAA+oB;AAAA,iGAA44B;AAAA,+DAAqX"}
@@ -1,12 +0,0 @@
1
- export let AsyncLocalStorage: null;
2
- export let AsyncResource: null;
3
- export let EventEmitter: null;
4
- export let createRequire: null;
5
- export let fs: null;
6
- export let fsp: null;
7
- export const isNode: boolean;
8
- export function loadJson(ref: any): any;
9
- export let path: null;
10
- export let url: null;
11
- export let util: null;
12
- //# sourceMappingURL=platform.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platform.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/platform.mjs"],"names":[],"mappings":"AAAoK,mCAA2B;AAAA,+BAAuB;AAAxE,8BAAsB;AAAkD,+BAAuB;AAAjK,oBAAY;AAAA,qBAAa;AAArG,6BAA4E;AAA2tB,wCAA+L;AAAj4B,sBAAc;AAAA,qBAAa;AAAA,sBAAc"}
@@ -1,9 +0,0 @@
1
- export class Resolver extends ComponentBase {
2
- static slothletProperty: string;
3
- getStack(skipFn: any): string | undefined;
4
- toFsPath(v: any): any;
5
- resolvePathFromCaller(rel: any): any;
6
- #private;
7
- }
8
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
9
- //# sourceMappingURL=resolve-from-caller.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-from-caller.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/resolve-from-caller.mjs"],"names":[],"mappings":"AAAmZ;IAAqC,gCAAmC;IAAA,0CAA2N;IAA0L,sBAA8G;IAAs7B,qCAAsgB;;CAAC;8BAAl4E,0CAA0C"}
@@ -1,10 +0,0 @@
1
- export class Sanitize extends ComponentBase {
2
- static slothletProperty: string;
3
- sanitizePropertyName(input: any, options?: {}): string;
4
- getModuleId(filePath: any, baseDir: any): any;
5
- shouldPreserveFunctionCase(name: any): boolean;
6
- #private;
7
- }
8
- export function sanitizePropertyName(input: any, options?: {}): string;
9
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
10
- //# sourceMappingURL=sanitize.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sanitize.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/sanitize.mjs"],"names":[],"mappings":"AAAoE;IAAqC,gCAAmC;IAAg6G,uDAA4qG;IAAA,8CAA+L;IAAA,+CAA8I;;CAAC;AAAA,uEAAwI;8BAArpO,0CAA0C"}
@@ -1,9 +0,0 @@
1
- export class Utilities extends ComponentBase {
2
- static slothletProperty: string;
3
- isPlainObject(obj: any): boolean;
4
- deepMerge(target: any, source: any): any;
5
- deepClone(obj: any): any;
6
- generateId(): string;
7
- }
8
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
9
- //# sourceMappingURL=utilities.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utilities.d.mts","sourceRoot":"","sources":["../../../../dist/lib/helpers/utilities.mjs"],"names":[],"mappings":"AAAoE;IAAsC,gCAAoC;IAAA,iCAA0J;IAAA,yCAAmX;IAAA,yBAA+Y;IAAA,qBAAsF;CAAC;8BAAxmC,0CAA0C"}
@@ -1,7 +0,0 @@
1
- export function getLanguage(): string;
2
- export function initI18n(options?: {}): void;
3
- export function setLanguage(lang: any): void;
4
- export function setLanguageAsync(lang: any): Promise<void>;
5
- export function t(errorCode: any, params?: {}): any;
6
- export function translate(errorCode: any, params?: {}): any;
7
- //# sourceMappingURL=translations.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translations.d.mts","sourceRoot":"","sources":["../../../../dist/lib/i18n/translations.mjs"],"names":[],"mappings":"AAAgpF,sCAA8C;AAAmc,6CAAgX;AAA7tD,6CAA8b;AAAA,2DAA8b;AAA8C,oDAAmc;AAAnc,4DAAmc"}
@@ -1,14 +0,0 @@
1
- export class EagerMode extends ComponentBase {
2
- static slothletProperty: string;
3
- buildAPI({ dir, apiPathPrefix, collisionContext, moduleID, apiDepth, cacheBust, fileFilter }: {
4
- dir: any;
5
- apiPathPrefix?: string | undefined;
6
- collisionContext?: string | undefined;
7
- moduleID: any;
8
- apiDepth?: number | undefined;
9
- cacheBust?: null | undefined;
10
- fileFilter?: null | undefined;
11
- }): Promise<any>;
12
- }
13
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
14
- //# sourceMappingURL=eager.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eager.d.mts","sourceRoot":"","sources":["../../../../dist/lib/modes/eager.mjs"],"names":[],"mappings":"AAAoE;IAAsC,gCAAgC;IAAsC;;;;;;;;qBAAkpB;CAAC;8BAA1yB,0CAA0C"}
@@ -1,16 +0,0 @@
1
- export class LazyMode extends ComponentBase {
2
- static slothletProperty: string;
3
- createNamedMaterializeFunc(apiPath: any, handler: any): (...args: any[]) => Promise<any>;
4
- buildAPI({ dir, apiPathPrefix, collisionContext, collisionMode, moduleID, apiDepth, cacheBust, fileFilter }: {
5
- dir: any;
6
- apiPathPrefix?: string | undefined;
7
- collisionContext?: string | undefined;
8
- collisionMode?: null | undefined;
9
- moduleID: any;
10
- apiDepth?: number | undefined;
11
- cacheBust?: null | undefined;
12
- fileFilter?: null | undefined;
13
- }): Promise<any>;
14
- }
15
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
16
- //# sourceMappingURL=lazy.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lazy.d.mts","sourceRoot":"","sources":["../../../../dist/lib/modes/lazy.mjs"],"names":[],"mappings":"AAAoE;IAAqC,gCAA+B;IAAsC,yFAAiV;IAAA;;;;;;;;;qBAAqyB;CAAC;8BAA5wC,0CAA0C"}
@@ -1,63 +0,0 @@
1
- export class Flatten extends ComponentBase {
2
- static slothletProperty: string;
3
- getFlatteningDecision(options: any): Promise<{
4
- preserveAsNamespace: boolean;
5
- reason: any;
6
- flattenToRoot?: undefined;
7
- } | {
8
- flattenToRoot: boolean;
9
- reason: any;
10
- preserveAsNamespace?: undefined;
11
- } | {
12
- flattenToCategory: boolean;
13
- flattenType: string;
14
- reason: any;
15
- useAutoFlattening?: undefined;
16
- preserveAsNamespace?: undefined;
17
- preferredName?: undefined;
18
- } | {
19
- useAutoFlattening: boolean;
20
- reason: any;
21
- flattenToCategory?: undefined;
22
- flattenType?: undefined;
23
- preserveAsNamespace?: undefined;
24
- preferredName?: undefined;
25
- } | {
26
- flattenToCategory: boolean;
27
- reason: any;
28
- flattenType?: undefined;
29
- useAutoFlattening?: undefined;
30
- preserveAsNamespace?: undefined;
31
- preferredName?: undefined;
32
- } | {
33
- preserveAsNamespace: boolean;
34
- preferredName: any;
35
- reason: any;
36
- flattenToCategory?: undefined;
37
- flattenType?: undefined;
38
- useAutoFlattening?: undefined;
39
- }>;
40
- processModuleForAPI(options: any): {
41
- moduleContent: any;
42
- };
43
- buildCategoryDecisions(options: any): Promise<{
44
- shouldFlatten: boolean;
45
- flattenType: string;
46
- reason: any;
47
- preferredName?: undefined;
48
- } | {
49
- shouldFlatten: boolean;
50
- flattenType: string;
51
- preferredName: any;
52
- reason: any;
53
- } | {
54
- shouldFlatten: boolean;
55
- preferredName: any;
56
- reason: any;
57
- flattenType?: undefined;
58
- }>;
59
- shouldAttachNamedExport(key: any, value: any, defaultFunc: any, originalDefault: any): boolean;
60
- #private;
61
- }
62
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
63
- //# sourceMappingURL=flatten.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flatten.d.mts","sourceRoot":"","sources":["../../../../dist/lib/processors/flatten.mjs"],"names":[],"mappings":"AAAoE;IAAoC,gCAAkC;IAAqjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAA8pE;IAAA;;MAA+yF;IAAA;;;;;;;;;;;;;;;OAAk7G;IAAA,+FAA0U;;CAAC;8BAAh3S,0CAA0C"}
@@ -1,12 +0,0 @@
1
- export class Loader extends ComponentBase {
2
- static slothletProperty: string;
3
- loadModule(filePath: any, instanceID: any, moduleID: any, cacheBust?: null): Promise<any>;
4
- scanDirectory(dir: any, options?: {}): Promise<{
5
- files: never[];
6
- directories: never[];
7
- }>;
8
- extractExports(module: any): {};
9
- #private;
10
- }
11
- import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
12
- //# sourceMappingURL=loader.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader.d.mts","sourceRoot":"","sources":["../../../../dist/lib/processors/loader.mjs"],"names":[],"mappings":"AAA6I;IAAmC,gCAAiC;IAAsC,0FAAooH;IAA0zB;;;OAAkjD;IAA6pF,gCAAipB;;CAAC;8BAA7/S,0CAA0C"}
@@ -1,5 +0,0 @@
1
- export function generateTypes(api: any, options: any): Promise<{
2
- output: string;
3
- filePath: any;
4
- }>;
5
- //# sourceMappingURL=type-generator.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-generator.d.mts","sourceRoot":"","sources":["../../../../dist/lib/processors/type-generator.mjs"],"names":[],"mappings":"AAA+V;;;GAA0gC"}
@@ -1,18 +0,0 @@
1
- export function createDataUrl(code: any): string;
2
- export function formatDiagnostics(diagnostics: any, ts: any): any;
3
- export function maskStringsAndComments(code: any): Uint8Array<any>;
4
- export function resolveModuleFile(absoluteTarget: any): {
5
- path: any;
6
- isTS: boolean;
7
- };
8
- export function rewriteRelativeSpecifiers(code: any, sourcePath: any, resolve: any): any;
9
- export function transformTypeScript(filePath: any, options?: {}): Promise<any>;
10
- export function transformTypeScriptStrict(filePath: any, options?: {}): Promise<{
11
- code: any;
12
- diagnostics: any[];
13
- }>;
14
- export function writeTransformedToCache(originalPath: any, code: any, instanceID: any, transform: any): Promise<{
15
- url: any;
16
- cacheDir: any;
17
- }>;
18
- //# sourceMappingURL=typescript.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.mts","sourceRoot":"","sources":["../../../../dist/lib/processors/typescript.mjs"],"names":[],"mappings":"AAA2hC,iDAAoK;AAA64Q,kEAAkZ;AAAluN,mEAA+kC;AAA55D;;;EAA8iB;AAAqwD,yFAA68B;AAAh9J,+EAA4T;AAA8oN;;;GAAm6D;AAA75H;;;GAA0/D"}
@@ -1,4 +0,0 @@
1
- export const context: {};
2
- export const instanceID: {};
3
- export const self: {};
4
- //# sourceMappingURL=runtime-asynclocalstorage.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime-asynclocalstorage.d.mts","sourceRoot":"","sources":["../../../../dist/lib/runtime/runtime-asynclocalstorage.mjs"],"names":[],"mappings":"AAAmzC,yBAAmrB;AAAA,4BAA6V;AAAnoE,sBAAmnC"}
@@ -1,3 +0,0 @@
1
- export const context: {};
2
- export const self: {};
3
- //# sourceMappingURL=runtime-livebindings.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime-livebindings.d.mts","sourceRoot":"","sources":["../../../../dist/lib/runtime/runtime-livebindings.mjs"],"names":[],"mappings":"AAAwwC,yBAA2tB;AAAt3D,sBAA2pC"}
@@ -1,4 +0,0 @@
1
- export const context: {};
2
- export const instanceID: {};
3
- export const self: {};
4
- //# sourceMappingURL=runtime.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.d.mts","sourceRoot":"","sources":["../../../../dist/lib/runtime/runtime.mjs"],"names":[],"mappings":"AAAo8B,yBAA4e;AAAA,4BAAoP;AAAvvC,sBAAuhB"}
@@ -1,5 +0,0 @@
1
- export function generateTypes(options?: {}): Promise<{
2
- filePath: any;
3
- content: string;
4
- }>;
5
- //# sourceMappingURL=typegen.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typegen.d.mts","sourceRoot":"","sources":["../../../../dist/lib/typegen/typegen.mjs"],"names":[],"mappings":"AAAiN;;;GAA61B"}
@@ -1,4 +0,0 @@
1
- declare function stdin_default(config: any): Promise<{}>;
2
- export function slothlet(config: any): Promise<{}>;
3
- export { stdin_default as default };
4
- //# sourceMappingURL=slothlet.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slothlet.d.mts","sourceRoot":"","sources":["../../dist/slothlet.mjs"],"names":[],"mappings":"AAA+2d,yDAA6G;AAA7G,mDAA6G"}
package/types/index.d.mts DELETED
@@ -1,18 +0,0 @@
1
- export default slothlet;
2
- /**
3
- * Creates a slothlet API instance with live-binding context and AsyncLocalStorage support.
4
- * Automatically wraps all API functions with context isolation for multi-instance support.
5
- * @public
6
- * @async
7
- *
8
- * @param {import("./src/slothlet.mjs").SlothletOptions} [options={}] - Configuration options for the slothlet instance. See {@link SlothletOptions} for the full set.
9
- * @returns {Promise<import("./src/slothlet.mjs").SlothletAPI>} The bound API object with management methods
10
- *
11
- * @example // ESM
12
- * import slothlet from "@cldmv/slothlet";
13
- * const api = await slothlet({ base: './api', mode: 'lazy' });
14
- * const result = await api.math.add(2, 3); // 5
15
- *
16
- */
17
- export function slothlet(options?: import("./src/slothlet.mjs").SlothletOptions): Promise<import("./src/slothlet.mjs").SlothletAPI>;
18
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../index.mjs"],"names":[],"mappings":";AAsGA;;;;;;;;;;;;;;GAcG;AACH,mCATW,OAAO,oBAAoB,EAAE,eAAe,GAC1C,OAAO,CAAC,OAAO,oBAAoB,EAAE,WAAW,CAAC,CAkB7D"}