@cldmv/slothlet-types 3.12.2 → 3.13.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.
@@ -1,6 +1,7 @@
1
1
  export class ApiAssignment extends ComponentBase {
2
2
  static slothletProperty: string;
3
3
  isWrapperProxy(value: any): boolean;
4
+ mergeOffSlotCollisionFolder(keptWrapper: any): void;
4
5
  assignToApiPath(targetApi: any, key: any, value: any, options?: {}): boolean;
5
6
  mergeApiObjects(targetApi: any, sourceApi: any, options?: {}): Promise<void>;
6
7
  }
@@ -1,6 +1,6 @@
1
1
  export class ModesProcessor extends ComponentBase {
2
2
  static slothletProperty: string;
3
- processFiles(api: any, files: any, directory: any, currentDepth: any, mode: any, isRoot: any, recursive: any, populateDirectly?: boolean, apiPathPrefix?: string, collisionContext?: string, moduleID?: null, sourceFolder?: null, cacheBust?: null, collisionModeOverride?: null): Promise<any>;
3
+ processFiles(api: any, files: any, directory: any, currentDepth: any, mode: any, isRoot: any, recursive: any, populateDirectly?: boolean, apiPathPrefix?: string, collisionContext?: string, moduleID?: null, sourceFolder?: null, cacheBust?: null, collisionModeOverride?: null, rootUnwrap?: boolean): Promise<any>;
4
4
  createLazySubdirectoryWrapper(dir: any, apiPath: any, moduleID?: null, sourceFolder?: null, cacheBust?: null, fileFolderCollisionImpl?: null, collisionMode?: string): any;
5
5
  applyRootContributor(api: any, rootFunction: any, mode: any): Promise<any>;
6
6
  }
package/lib/errors.d.mts CHANGED
@@ -6,6 +6,7 @@ export class SlothletDebug {
6
6
  toString(): string;
7
7
  }
8
8
  export class SlothletError extends Error {
9
+ static #describeThrown(thrown: any): string;
9
10
  constructor(code: any, context?: {}, originalError?: null, options?: {});
10
11
  toJSON(): {
11
12
  name: string;
@@ -4,6 +4,7 @@ export class ApiManager extends ComponentBase {
4
4
  addHistory: never[];
5
5
  initialConfig: any;
6
6
  operationHistory: never[];
7
+ replaceShadows: Map<any, any>;
7
8
  };
8
9
  normalizeApiPath(apiPath: any): {
9
10
  apiPath: string;
@@ -21,6 +22,7 @@ export class ApiManager extends ComponentBase {
21
22
  setOwnedProperty(apiPath: any, value: any, callerWrapper: any): void;
22
23
  isWrapperProxy(value: any): boolean;
23
24
  syncWrapper(existingProxy: any, nextProxy: any, config: any, collisionMode?: string, moduleID?: null): Promise<boolean>;
25
+ _recordReplaceShadows(existingWrapper: any, existingChildKeys: any, nextChildKeys: any, moduleID: any): void;
24
26
  mutateApiValue(existingValue: any, nextValue: any, options: any, config: any): Promise<any>;
25
27
  setValueAtPath(root: any, parts: any, value: any, options: any): Promise<boolean>;
26
28
  deletePath(root: any, parts: any): Promise<boolean>;
@@ -12,6 +12,10 @@ export class AsyncContextManager {
12
12
  runInContext(instanceID: any, fn: any, thisArg: any, args: any, currentWrapper: any, rawErrors?: boolean): any;
13
13
  getContext(): any;
14
14
  tryGetContext(): any;
15
+ getCallerIdentity(): {
16
+ currentWrapper: any;
17
+ callerWrapper: any;
18
+ } | undefined;
15
19
  cleanup(instanceID: any): void;
16
20
  getDiagnostics(): {
17
21
  type: string;
@@ -1,6 +1,15 @@
1
1
  export class LiveContextManager {
2
2
  instances: Map<any, any>;
3
3
  currentInstanceID: any;
4
+ getCallerIdentity(): {
5
+ currentWrapper: any;
6
+ callerWrapper: any;
7
+ unresolved?: undefined;
8
+ } | {
9
+ currentWrapper: null;
10
+ callerWrapper: any;
11
+ unresolved: boolean;
12
+ } | undefined;
4
13
  registerEventEmitterContextChecker(): void;
5
14
  initialize(instanceID: any, config?: {}): {
6
15
  instanceID: any;
@@ -23,5 +32,6 @@ export class LiveContextManager {
23
32
  selfKeys: string[];
24
33
  }[];
25
34
  };
35
+ #private;
26
36
  }
27
37
  export const liveContextManager: LiveContextManager;
@@ -29,6 +29,7 @@ export class HookManager extends ComponentBase {
29
29
  }[];
30
30
  };
31
31
  getHooksForPath(type: any, apiPath: any): any[];
32
+ getDispatchStrategy(path: any): any;
32
33
  executeBeforeHooks(path: any, args: any, api: any, ctx: any): {
33
34
  args: any;
34
35
  shortCircuit: boolean;
@@ -45,6 +46,22 @@ export class HookManager extends ComponentBase {
45
46
  modified: boolean;
46
47
  result: any;
47
48
  };
49
+ executeBeforeHooksAsync(path: any, args: any, api: any, ctx: any): Promise<{
50
+ args: any;
51
+ shortCircuit: boolean;
52
+ value: any;
53
+ } | {
54
+ args: any;
55
+ shortCircuit: boolean;
56
+ value?: undefined;
57
+ }>;
58
+ executeAfterHooksAsync(path: any, result: any, args: any, api: any, ctx: any): Promise<{
59
+ modified: boolean;
60
+ result?: undefined;
61
+ } | {
62
+ modified: boolean;
63
+ result: any;
64
+ }>;
48
65
  executeAlwaysHooks(path: any, args: any, resultOrError: any, hasError: boolean | undefined, errors: any[] | undefined, api: any, ctx: any): void;
49
66
  executeErrorHooks(path: any, error: any, source: any, args: any, api: any, ctx: any): void;
50
67
  getCompilePatternForDiagnostics(): (pattern: any) => any;
@@ -56,8 +73,11 @@ export class HookManager extends ComponentBase {
56
73
  priority: any;
57
74
  subset: any;
58
75
  lockCaller: any;
76
+ async: any;
59
77
  };
60
78
  ownerPath: any;
79
+ version: any;
80
+ groupId: any;
61
81
  ownerFilePath: any;
62
82
  enabled: any;
63
83
  }[];
@@ -40,6 +40,8 @@ export class PermissionManager extends ComponentBase {
40
40
  disable(): void;
41
41
  isEnabled(): boolean;
42
42
  isReadGatingEnabled(): boolean;
43
+ isCaptureEnabled(): boolean;
44
+ isPrivateTarget(targetPath: any): boolean;
43
45
  setReadGating(value: any): void;
44
46
  exportRules(): {
45
47
  rule: {
@@ -1,3 +1,4 @@
1
+ export const IMPL_METADATA_KEYS: Set<string>;
1
2
  export namespace TYPE_STATES {
2
3
  let UNMATERIALIZED: symbol;
3
4
  let IN_FLIGHT: symbol;
@@ -29,8 +30,8 @@ export class UnifiedWrapper extends ComponentBase {
29
30
  ___createChildWrapper(key: any, value: any): any;
30
31
  ___createWaitingProxy(propChain?: any[]): any;
31
32
  createProxy(): any;
32
- lastSyncError: unknown;
33
33
  #private;
34
34
  }
35
+ export function isFrameworkReservedKey(key: any): boolean;
35
36
  export function resolveWrapper(value: any): any;
36
37
  import { ComponentBase } from "#factories/component-base";
@@ -7,6 +7,7 @@ export class VersionManager extends ComponentBase {
7
7
  getVersionMetadata(moduleID: any): any;
8
8
  getVersionMetadataByPath(logicalPath: any, versionTag: any): any;
9
9
  setVersionMetadataByPath(logicalPath: any, versionTag: any, patch: any): void;
10
+ findLogicalPathFor(path: any): any;
10
11
  list(logicalPath: any): {
11
12
  versions: {};
12
13
  default: any;
@@ -0,0 +1,2 @@
1
+ export function pinToCurrentCaller(callback: any): any;
2
+ export function setApiCallerPinner(strategy: any): void;
@@ -111,12 +111,19 @@ export class Config extends ComponentBase {
111
111
  include: any;
112
112
  } | null;
113
113
  versionDispatcher: any;
114
+ import: any;
114
115
  permissions: {
115
116
  defaultPolicy: string;
116
117
  enabled: boolean;
117
118
  audit: string;
118
119
  readGating: boolean;
119
120
  failOpenOnAbsentCaller: boolean;
121
+ references: {
122
+ capture: boolean;
123
+ };
124
+ private: {
125
+ host: string;
126
+ };
120
127
  rules: any;
121
128
  } | null;
122
129
  suppressFixes: Set<any>;
@@ -145,6 +152,12 @@ export class Config extends ComponentBase {
145
152
  audit: string;
146
153
  readGating: boolean;
147
154
  failOpenOnAbsentCaller: boolean;
155
+ references: {
156
+ capture: boolean;
157
+ };
158
+ private: {
159
+ host: string;
160
+ };
148
161
  rules: any;
149
162
  } | null;
150
163
  }
@@ -0,0 +1,2 @@
1
+ export function disableEventTargetPatching(): void;
2
+ export function enableEventTargetPatching(): void;
@@ -0,0 +1,2 @@
1
+ export function disableSchedulerPatching(): void;
2
+ export function enableSchedulerPatching(): void;
@@ -1,6 +1,6 @@
1
1
  export class EagerMode extends ComponentBase {
2
2
  static slothletProperty: string;
3
- buildAPI({ dir, apiPathPrefix, collisionContext, moduleID, apiDepth, cacheBust, fileFilter, hidden, scanHiddenFolders, preloadedStructure }: {
3
+ buildAPI({ dir, apiPathPrefix, collisionContext, moduleID, apiDepth, cacheBust, fileFilter, hidden, scanHiddenFolders, preloadedStructure, rootUnwrap }: {
4
4
  dir: any;
5
5
  apiPathPrefix?: string | undefined;
6
6
  collisionContext?: string | undefined;
@@ -11,6 +11,7 @@ export class EagerMode extends ComponentBase {
11
11
  hidden?: null | undefined;
12
12
  scanHiddenFolders?: boolean | undefined;
13
13
  preloadedStructure?: null | undefined;
14
+ rootUnwrap?: boolean | undefined;
14
15
  }): Promise<any>;
15
16
  }
16
17
  import { ComponentBase } from "#factories/component-base";
@@ -1,7 +1,7 @@
1
1
  export class LazyMode extends ComponentBase {
2
2
  static slothletProperty: string;
3
3
  createNamedMaterializeFunc(apiPath: any, handler: any): (...args: any[]) => Promise<any>;
4
- buildAPI({ dir, apiPathPrefix, collisionContext, collisionMode, moduleID, apiDepth, cacheBust, fileFilter, hidden, scanHiddenFolders, preloadedStructure }: {
4
+ buildAPI({ dir, apiPathPrefix, collisionContext, collisionMode, moduleID, apiDepth, cacheBust, fileFilter, hidden, scanHiddenFolders, preloadedStructure, rootUnwrap }: {
5
5
  dir: any;
6
6
  apiPathPrefix?: string | undefined;
7
7
  collisionContext?: string | undefined;
@@ -13,6 +13,7 @@ export class LazyMode extends ComponentBase {
13
13
  hidden?: null | undefined;
14
14
  scanHiddenFolders?: boolean | undefined;
15
15
  preloadedStructure?: null | undefined;
16
+ rootUnwrap?: boolean | undefined;
16
17
  }): Promise<any>;
17
18
  }
18
19
  import { ComponentBase } from "#factories/component-base";
@@ -8,4 +8,8 @@ export class Loader extends ComponentBase {
8
8
  extractExports(module: any): {};
9
9
  #private;
10
10
  }
11
+ export function warnIfCoverageWithoutImporter(config: any, { worker, externalized }?: {
12
+ worker?: any;
13
+ externalized?: boolean | undefined;
14
+ }): boolean;
11
15
  import { ComponentBase } from "#factories/component-base";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cldmv/slothlet-types",
3
- "version": "3.12.2",
3
+ "version": "3.13.0",
4
4
  "description": "TypeScript declaration files (.d.mts) for @cldmv/slothlet. Install alongside @cldmv/slothlet for editor and type-checker support.",
5
5
  "keywords": [
6
6
  "slothlet",
@@ -97,7 +97,7 @@
97
97
  "LICENSE"
98
98
  ],
99
99
  "peerDependencies": {
100
- "@cldmv/slothlet": "3.12.2"
100
+ "@cldmv/slothlet": "3.13.0"
101
101
  },
102
102
  "peerDependenciesMeta": {
103
103
  "@cldmv/slothlet": {