@e-mc/types 0.12.5 → 0.12.6

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 CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.12.5/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.12.6/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { LogArguments } from "./lib/logger";
@@ -203,10 +203,10 @@ const IMPORT_MAP: Record<string, string | undefined>;
203
203
 
204
204
  ## References
205
205
 
206
- - https://www.unpkg.com/@e-mc/types@0.12.5/index.d.ts
207
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/logger.d.ts
208
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/module.d.ts
209
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/node.d.ts
206
+ - https://www.unpkg.com/@e-mc/types@0.12.6/index.d.ts
207
+ - https://www.unpkg.com/@e-mc/types@0.12.6/lib/logger.d.ts
208
+ - https://www.unpkg.com/@e-mc/types@0.12.6/lib/module.d.ts
209
+ - https://www.unpkg.com/@e-mc/types@0.12.6/lib/node.d.ts
210
210
 
211
211
  * https://developer.mozilla.org/en-US/docs/Web/API/DOMException
212
212
  * https://www.npmjs.com/package/@types/bytes
package/constant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const enum INTERNAL {
2
- VERSION = '0.12.5',
2
+ VERSION = '0.12.6',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
@@ -78,6 +78,7 @@ export const enum ERR_MESSAGE {
78
78
  UNSUPPORTED_READ = 'Not permitted to read file',
79
79
  UNSUPPORTED_WRITE = 'Not permitted to write file',
80
80
  UNSUPPORTED_OVERWRITE = 'Not permitted to overwrite file',
81
+ UNSUPPORTED_PATH = 'Not permitted to set absolute path',
81
82
  NOTFOUND_PATH = 'Path not found',
82
83
  NOTFOUND_FILE = 'File not found',
83
84
  NOTFOUND_BINARY = 'Binary not found',
package/index.d.ts CHANGED
@@ -145,6 +145,7 @@ declare namespace types {
145
145
 
146
146
  const ERR_CODE: {
147
147
  MODULE_NOT_FOUND: string;
148
+ ERR_MODULE_NOT_FOUND: string;
148
149
  };
149
150
 
150
151
  interface DOWNLOAD_TYPE {
package/lib/index.d.ts CHANGED
@@ -822,15 +822,9 @@ declare namespace functions {
822
822
  getMemUsage(format?: boolean, free?: boolean): number;
823
823
  formatCpuMem(start: CpuUsage, all?: boolean): string;
824
824
  getPackageVersion(name: string | [string, string], options?: PackageVersionOptions): string;
825
- /** @deprecated */
826
- getPackageVersion(name: string | [string, string], startDir: string, baseDir?: string): string;
827
- /** @deprecated */
828
- getPackageVersion(name: string | [string, string], unstable?: boolean, startDir?: string, baseDir?: string): string;
829
825
  checkSemVer(name: string | [string, string], options: CheckSemVerOptions): boolean;
830
826
  checkSemVer(name: string | [string, string], min: number | string, max?: number | string): boolean;
831
827
  checkSemVer(name: string | [string, string], min: number | string, max: number | string, options?: Omit<CheckSemVerOptions, "min" | "max" | "equals">): boolean;
832
- /** @deprecated */
833
- checkSemVer(name: string | [string, string], min: number | string, max?: number | string, unstable?: boolean, startDir?: string): boolean;
834
828
  /** @deprecated @e-mc/types */
835
829
  sanitizeCmd(value: string, ...args: unknown[]): string;
836
830
  /** @deprecated @e-mc/types */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.12.5",
3
+ "version": "0.12.6",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",