@code-inspector/core 1.2.3-beta.2 → 1.2.4
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 +31952 -31829
- package/package.json +2 -2
- package/types/shared/type.d.ts +3 -0
- package/types/shared/utils.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-inspector/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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/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';
|
package/types/shared/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { CodeOptions, Condition, EscapeTags, RecordInfo } from './type';
|
|
2
3
|
export declare function getIP(ip: boolean | string): string;
|
|
3
4
|
export declare function fileURLToPath(fileURL: string): string;
|
|
4
5
|
export declare function isJsTypeFile(file: string): boolean;
|
|
@@ -14,4 +15,9 @@ export declare function getMappingFilePath(file: string, mappings?: Record<strin
|
|
|
14
15
|
replacement: string;
|
|
15
16
|
}>): string;
|
|
16
17
|
export declare function isExcludedFile(file: string, options: CodeOptions): boolean;
|
|
18
|
+
export declare const hasProjectRecord: (record: RecordInfo) => boolean;
|
|
19
|
+
export declare const getProjectRecord: (record: RecordInfo) => Partial<RecordInfo> | undefined;
|
|
20
|
+
export declare const setProjectRecord: (record: RecordInfo, key: keyof RecordInfo, value: any) => void;
|
|
21
|
+
export declare const cleanProjectRecord: (record: RecordInfo) => void;
|
|
22
|
+
export declare const isProjectAlive: (record: RecordInfo) => false | (() => string | import("net").AddressInfo | null) | undefined;
|
|
17
23
|
export {};
|