@code-inspector/core 1.2.3 → 1.2.5
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/dist/index.js +4 -4
- package/dist/index.mjs +22341 -22302
- package/package.json +2 -2
- package/types/shared/index.d.ts +1 -0
- package/types/shared/record-cache.d.ts +5 -0
- package/types/shared/type.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-inspector/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@vue/compiler-dom": "^3.5.13",
|
|
42
42
|
"chalk": "^4.1.1",
|
|
43
43
|
"dotenv": "^16.1.4",
|
|
44
|
-
"launch-ide": "1.
|
|
44
|
+
"launch-ide": "1.2.0",
|
|
45
45
|
"portfinder": "^1.0.28"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
package/types/shared/index.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RecordInfo } from './type';
|
|
2
|
+
export declare const resetFileRecord: (output: string) => void;
|
|
3
|
+
export declare const getProjectRecord: (record: RecordInfo) => any;
|
|
4
|
+
export declare const setProjectRecord: (record: RecordInfo, key: keyof RecordInfo, value: RecordInfo[keyof RecordInfo]) => void;
|
|
5
|
+
export declare const findPort: (record: RecordInfo) => Promise<number>;
|
package/types/shared/type.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Server } from 'http';
|
|
1
3
|
import type { Editor } from 'launch-ide';
|
|
2
4
|
export type HotKey = 'ctrlKey' | 'altKey' | 'metaKey' | 'shiftKey';
|
|
3
5
|
export type Behavior = {
|
|
@@ -14,6 +16,7 @@ export type RecordInfo = {
|
|
|
14
16
|
injectTo?: string[];
|
|
15
17
|
envDir?: string;
|
|
16
18
|
root?: string;
|
|
19
|
+
server?: Server;
|
|
17
20
|
};
|
|
18
21
|
export type IDEOpenMethod = 'reuse' | 'new' | 'auto';
|
|
19
22
|
export type ImportClientWay = 'file' | 'code';
|