@empjs/cli 3.0.0-beta.8 → 3.0.0-rc.0

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/client.d.ts CHANGED
@@ -41,13 +41,26 @@ declare module '*.webp' {
41
41
  const src: string
42
42
  export default src
43
43
  }
44
-
45
44
  declare module '*.svg' {
45
+ const src: string
46
+ export default src
47
+ }
48
+
49
+ /* declare module '*.svg' {
46
50
  const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>
47
51
  const content: string
48
-
49
52
  export {ReactComponent}
50
53
  export default content
54
+ } */
55
+ // declare module '*.svg?react' {
56
+ // const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>
57
+ // const content: string
58
+ // export {ReactComponent}
59
+ // export default content
60
+ // }
61
+ declare module '*.svg?react' {
62
+ const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>
63
+ export default ReactComponent
51
64
  }
52
65
  // styles
53
66
 
@@ -98,23 +111,3 @@ interface ImportMetaEnv {
98
111
  interface ImportMeta {
99
112
  readonly env: ImportMetaEnv
100
113
  }
101
-
102
- /**
103
- * polyfill all `core-js` features, including early-stage proposals:
104
- */
105
- // declare module 'core-js/full'
106
-
107
- /**
108
- * polyfill all actual features - stable ES, web standards and stage 3 ES proposals:
109
- */
110
- // declare module 'core-js/actual'
111
-
112
- /**
113
- * polyfill only stable features - ES and web standards:
114
- */
115
- // declare module 'core-js/stable'
116
-
117
- /**
118
- * polyfill only stable ES features:
119
- */
120
- // declare module 'core-js/es'
@@ -1,2 +0,0 @@
1
- declare let ep: any;
2
- export default ep;
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- path: string;
3
- timeout: number;
4
- overlay: boolean;
5
- reload: boolean;
6
- log: boolean;
7
- warn: boolean;
8
- name: string;
9
- autoConnect: boolean;
10
- overlayStyles: {};
11
- overlayWarnings: boolean;
12
- ansiColors: {};
13
- };
14
- export default _default;
@@ -1,6 +0,0 @@
1
- export declare const pathMatch: (url: string, path: string) => boolean;
2
- export default function webpackHotMiddleware(compiler: any, opts?: any): {
3
- (req: any, res: any, next: any): any;
4
- publish(payload: any): void;
5
- close(): void;
6
- };
@@ -1,6 +0,0 @@
1
- export declare function showProblems(type: any, lines: any): void;
2
- export declare function clear(): void;
3
- export default function (options: any): {
4
- showProblems: typeof showProblems;
5
- clear: typeof clear;
6
- };
@@ -0,0 +1,27 @@
1
+ type IpAdressOpt = {
2
+ protocol?: string;
3
+ port?: number;
4
+ pathname?: string;
5
+ host?: string;
6
+ };
7
+ declare class IpAdress {
8
+ imf: {
9
+ protocol: string;
10
+ port: number;
11
+ pathname: string;
12
+ };
13
+ host: string;
14
+ urls: {
15
+ lanUrlForConfig: string;
16
+ lanUrlForTerminal: string;
17
+ localUrlForTerminal: string;
18
+ localUrlForBrowser: string;
19
+ };
20
+ setup(o: IpAdressOpt): void;
21
+ private setupUrls;
22
+ getLanIp: () => string;
23
+ formatUrl(hostname: string): string;
24
+ prettyPrintUrl(hostname: string): string;
25
+ }
26
+ declare const _default: IpAdress;
27
+ export default _default;
@@ -16,28 +16,6 @@ declare class Logger {
16
16
  sysError: (msg: string) => void;
17
17
  link: (msg: string) => string;
18
18
  title: (msg: string) => void;
19
- tableData: any;
20
- tableConfig: {
21
- border: {
22
- topBody: string;
23
- topJoin: string;
24
- topLeft: string;
25
- topRight: string;
26
- bottomBody: string;
27
- bottomJoin: string;
28
- bottomLeft: string;
29
- bottomRight: string;
30
- bodyLeft: string;
31
- bodyRight: string;
32
- bodyJoin: string;
33
- joinBody: string;
34
- joinLeft: string;
35
- joinRight: string;
36
- joinJoin: string;
37
- };
38
- };
39
- tableInput(d: any): void;
40
- tableOutput(): void;
41
19
  }
42
20
  declare const _default: Logger;
43
21
  export default _default;
@@ -1,3 +1,5 @@
1
+ export declare const getLanIp: () => string;
2
+ export declare const getPkgVersion: (pkgPath: string) => any;
1
3
  export declare function clearConsole(): void;
2
4
  export declare function deepAssign<T>(target: any, ...sources: any): T;
3
5
  export declare const ensureArray: <T>(params: T | T[]) => T[];
@@ -10,3 +12,4 @@ export declare const ensureArray: <T>(params: T | T[]) => T[];
10
12
  export declare const jsonFilter: (d?: any, notIncludeKeys?: string[]) => any;
11
13
  export declare const vCompare: (preVersion?: string, lastVersion?: string) => number;
12
14
  export declare const timeFormat: (seconds: number) => string;
15
+ export declare const importJsVm: (content: string) => string;