@e-mc/types 0.5.19 → 0.5.21

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.5.19',
2
+ VERSION = '0.5.21',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
@@ -51,6 +51,7 @@ export const enum ERR_MESSAGE {
51
51
  UNSUPPORTED_ACCESS = 'Unsupported access',
52
52
  UNSUPPORTED_READ = 'Not permitted to read file',
53
53
  UNSUPPORTED_WRITE = 'Not permitted to write file',
54
+ UNSUPPORTED_PATH = 'Not permitted to set absolute path',
54
55
  NOTFOUND_FILE = 'File not found',
55
56
  NOTFOUND_BINARY = 'Binary not found',
56
57
  NOTFOUND_PACKAGE = 'Package not found',
package/lib/document.d.ts CHANGED
@@ -80,7 +80,7 @@ export interface TransformOptions<T = AnyObject, U = T> extends TransformOutput
80
80
  supplementChunks: ChunkData[];
81
81
  }
82
82
 
83
- export interface ITransformSeries<T = AnyObject, U = T> extends IModule, TransformOptions<T, U> {
83
+ export interface ITransformSeries<T = AnyObject, U = T, V = object> extends IModule, TransformOptions<T, U> {
84
84
  readonly type: string;
85
85
  init(instance: IModule, dirname?: string): this;
86
86
  close(instance: IModule): void;
@@ -88,11 +88,11 @@ export interface ITransformSeries<T = AnyObject, U = T> extends IModule, Transfo
88
88
  getMainFile(code?: string, imports?: StringMap): Undef<SourceInput<string>>;
89
89
  getSourceFiles(imports?: StringMap): Undef<SourceInput>;
90
90
  toBaseConfig(all?: boolean): T;
91
- upgrade<V = unknown>(context: V, dirname?: string, name?: string): V;
91
+ upgrade<W = unknown>(context: W, dirname?: string, name?: string): W;
92
92
  set code(value);
93
93
  get code(): string;
94
94
  get out(): IOut;
95
- get metadata(): object;
95
+ get metadata(): V;
96
96
  get options(): TransformOutput;
97
97
  get productionRelease(): boolean;
98
98
  get imported(): boolean;
package/lib/task.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export interface Command<T = unknown> extends PlainObject {
2
- task: string;
3
- origDir: string;
4
- data: T;
5
- }
6
-
7
- export interface SpawnResult {
8
- added?: string[];
9
- deleted?: string[];
1
+ export interface Command<T = unknown> extends PlainObject {
2
+ task: string;
3
+ origDir: string;
4
+ data: T;
5
+ }
6
+
7
+ export interface SpawnResult {
8
+ added?: string[];
9
+ deleted?: string[];
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.5.19",
3
+ "version": "0.5.21",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",