@e-mc/types 0.4.2 → 0.5.1

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/constant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const enum INTERNAL {
2
- VERSION = '0.4.2',
2
+ VERSION = '0.5.1',
3
3
  TEMP_DIR = 'tmp', // eslint-disable-line @typescript-eslint/no-shadow
4
4
  CJS = '__cjs__'
5
5
  }
@@ -58,6 +58,7 @@ export interface ModuleCompatV4Constructor extends ModuleConstructor, IModuleLib
58
58
  }
59
59
 
60
60
  export interface IFileManagerCompatV4<T extends ExternalAsset = ExternalAsset> extends IFileManager<T> {
61
+ archiving: boolean;
61
62
  cacheHttpRequest: boolean | FirstOf<string>;
62
63
  cacheHttpRequestBuffer: IHttpMemoryCache<T>;
63
64
  fetchTimeout: number;
package/lib/http.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { LookupAddress } from 'dns';
1
2
  import type { ClientRequest, Agent as HttpAgent, OutgoingHttpHeaders } from 'http';
2
3
  import type { Agent as HttpsAgent } from 'https';
3
4
  import type { ClientHttp2Stream } from 'http2';
@@ -83,4 +84,4 @@ export type HttpRequestClient = ClientRequest | ClientHttp2Stream;
83
84
  export type HttpOutgoingHeaders = ObjectMap<OutgoingHttpHeaders>;
84
85
  export type HttpProtocolVersion = 1 | 2 | 3;
85
86
  export type InternetProtocolVersion = 0 | 4 | 6;
86
- export type LookupCallback = (err: NodeJS.ErrnoException | null, address: string, family: number) => void;
87
+ export type LookupCallback = (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family?: number) => void;
package/lib/index.d.ts CHANGED
@@ -342,7 +342,6 @@ declare namespace functions {
342
342
  }
343
343
 
344
344
  interface IFileManager<T extends ExternalAsset = ExternalAsset> extends IHost, Set<string> {
345
- archiving: boolean;
346
345
  finalizeState: number;
347
346
  processTimeout: number;
348
347
  cacheToDisk: IHttpDiskCache<T>;
@@ -493,7 +492,6 @@ declare namespace functions {
493
492
  readonly prototype: IFileManager<T>;
494
493
  new(baseDirectory: string, config: RequestData<T>, postFinalize?: PostFinalizeCallback): IFileManager<T>;
495
494
  new(baseDirectory: string, config: RequestData<T>, permission?: IPermission, postFinalize?: PostFinalizeCallback): IFileManager<T>;
496
- new(baseDirectory: string, config: RequestData<T>, archiving: boolean, postFinalize?: PostFinalizeCallback): IFileManager<T>;
497
495
  }
498
496
 
499
497
  interface IHost extends IModule {
package/lib/squared.d.ts CHANGED
@@ -342,7 +342,7 @@ export interface ControllerSettingsDirectoryUI {
342
342
  }
343
343
 
344
344
  export type WebSocketEvent = "close" | "error";
345
- export type IncrementalMatch = "none" | "etag" | "exists";
345
+ export type IncrementalMatch = "none" | "staging" | "etag" | "exists";
346
346
  export type TextEncoding = "utf-8" | "utf-16" | "utf-16be" | "utf-16le" | "latin1";
347
347
  export type AttributeMap = ObjectMap<unknown>;
348
348
  export type WatchValue = boolean | WatchInterval;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",