@e-mc/types 0.8.9 → 0.8.11
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/README.md +3 -3
- package/constant.d.ts +1 -1
- package/index.d.ts +1 -0
- package/lib/index.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
12
|
+
- https://www.unpkg.com/@e-mc/types@0.8.11/index.d.ts
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogArguments } from "./lib/logger";
|
|
@@ -186,8 +186,8 @@ const IMPORT_MAP: Record<string, string | undefined>;
|
|
|
186
186
|
|
|
187
187
|
## References
|
|
188
188
|
|
|
189
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
190
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
189
|
+
- https://www.unpkg.com/@e-mc/types@0.8.11/lib/logger.d.ts
|
|
190
|
+
- https://www.unpkg.com/@e-mc/types@0.8.11/lib/module.d.ts
|
|
191
191
|
|
|
192
192
|
* https://nodejs.org/api/perf_hooks.html
|
|
193
193
|
* https://www.npmjs.com/package/@types/bytes
|
package/constant.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ declare namespace types {
|
|
|
286
286
|
function getEncoding(value: unknown, fallback?: BufferEncoding): BufferEncoding;
|
|
287
287
|
function encryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;
|
|
288
288
|
function decryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;
|
|
289
|
+
/* @deprecated - crypto.randomUUID */
|
|
289
290
|
function generateUUID(): string;
|
|
290
291
|
function incrementUUID(restart?: boolean): string;
|
|
291
292
|
function validateUUID(value: unknown): boolean;
|
package/lib/index.d.ts
CHANGED
|
@@ -250,7 +250,9 @@ declare namespace functions {
|
|
|
250
250
|
|
|
251
251
|
interface DocumentConstructor<T extends IFileManager<U>, U extends ExternalAsset = ExternalAsset, V extends ClientModule = DocumentModule, W extends DocumentComponent = DocumentComponent, X extends DocumentComponentOption = DocumentComponentOption, Y extends ICloud = ICloud<T>> extends ModuleConstructor {
|
|
252
252
|
finalize(this: T, instance: IDocument<T, U, V, W, X, Y>): Promise<unknown>;
|
|
253
|
+
/* @deprecated */
|
|
253
254
|
createSourceMap(code: string, remove: boolean): SourceMap;
|
|
255
|
+
/* @deprecated */
|
|
254
256
|
createSourceMap(code: string, uri?: string, remove?: boolean): SourceMap;
|
|
255
257
|
writeSourceMap(uri: string, data: SourceCode, options?: SourceMapOptions): Undef<string>;
|
|
256
258
|
updateGradle(source: string, namespaces: string[], value: string, options?: UpdateGradleOptions | boolean): string;
|
|
@@ -560,6 +562,7 @@ declare namespace functions {
|
|
|
560
562
|
interface IModule<T extends IHost = IHost> extends EventEmitter, IAbortComponent {
|
|
561
563
|
readonly status: LogStatus<StatusType>[];
|
|
562
564
|
readonly errors: unknown[];
|
|
565
|
+
/* @deprecated */
|
|
563
566
|
supported(major: number, minor?: number, patch?: number, lts?: boolean): boolean;
|
|
564
567
|
supports(name: string, value?: boolean): boolean;
|
|
565
568
|
getTempDir(options: GetTempDirOptions): string;
|