@unpackjs/core 2.3.0 → 2.3.2

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.
Files changed (44) hide show
  1. package/compiled/css-loader/index.js +20 -20
  2. package/compiled/less-loader/index.js +8 -8
  3. package/compiled/postcss-loader/index.js +8 -8
  4. package/compiled/sass-loader/index.js +8 -8
  5. package/compiled/webpack-bundle-analyzer/index.js +21 -13274
  6. package/dist/bundler-config/index.cjs +9 -12
  7. package/dist/bundler-config/index.d.ts.map +1 -1
  8. package/dist/bundler-config/index.js +7 -13
  9. package/dist/bundler-config/jsMinify.cjs +1 -1
  10. package/dist/bundler-config/jsMinify.js +1 -1
  11. package/dist/bundler-config/progress/helpers.cjs +1 -1
  12. package/dist/bundler-config/progress/helpers.d.ts.map +1 -1
  13. package/dist/bundler-config/progress/helpers.js +1 -1
  14. package/dist/colors.cjs +4 -4
  15. package/dist/colors.js +4 -4
  16. package/dist/createUnpack.cjs +2 -2
  17. package/dist/createUnpack.js +2 -2
  18. package/dist/index.js +36 -5
  19. package/dist/logger.cjs +11 -1
  20. package/dist/logger.d.ts.map +1 -1
  21. package/dist/logger.js +11 -1
  22. package/dist/openBrowser.cjs +46 -61
  23. package/dist/openBrowser.d.ts.map +1 -1
  24. package/dist/openBrowser.js +2 -18
  25. package/dist/prebundleDeps.cjs +2 -2
  26. package/dist/prebundleDeps.js +2 -2
  27. package/dist/run/dev.cjs +1 -1
  28. package/dist/run/dev.js +1 -1
  29. package/dist/typed-css-modules/loader.cjs +115 -130
  30. package/dist/typed-css-modules/loader.d.ts.map +1 -1
  31. package/dist/typed-css-modules/loader.js +2 -18
  32. package/dist/types/config.d.ts +1 -1
  33. package/dist/utils.cjs +3 -5
  34. package/dist/utils.d.ts.map +1 -1
  35. package/dist/utils.js +1 -5
  36. package/package.json +4 -12
  37. package/compiled/line-diff/index.d.ts +0 -1
  38. package/compiled/line-diff/index.js +0 -160
  39. package/compiled/line-diff/license +0 -21
  40. package/compiled/line-diff/package.json +0 -1
  41. package/compiled/portfinder/index.d.ts +0 -105
  42. package/compiled/portfinder/index.js +0 -3231
  43. package/compiled/portfinder/license +0 -22
  44. package/compiled/portfinder/package.json +0 -1
@@ -1,105 +0,0 @@
1
- /**
2
- * portfinder.js typescript definitions.
3
- *
4
- * (C) 2011, Charlie Robbins
5
- */
6
-
7
- type PortfinderCallback = (err: Error, port: number) => void;
8
-
9
- interface PortFinderOptions {
10
- /**
11
- * Host to find available port on.
12
- */
13
- host?: string;
14
- /**
15
- * search start port (equals to port when not provided)
16
- * This exists because getPort and getPortPromise mutates port state in
17
- * recursive calls and doesn't have a way to retrieve begininng port while
18
- * searching.
19
- */
20
- startPort?: number;
21
- /**
22
- * Minimum port (takes precedence over `basePort`).
23
- */
24
- port?: number;
25
- /**
26
- * Maximum port
27
- */
28
- stopPort?: number;
29
- }
30
-
31
- type SocketfinderCallback = (err: Error, socket: string) => void;
32
-
33
- interface SocketFinderOptions {
34
- /**
35
- * Mode to use when creating folder for socket if it doesn't exist
36
- */
37
- mod?: number;
38
- /**
39
- * Path to the socket file to create
40
- * (defaults to `${exports.basePath}.sock` if not provided)
41
- */
42
- path?: string;
43
- }
44
-
45
- /**
46
- * The lowest port to begin any port search from.
47
- */
48
- declare let basePort: number;
49
-
50
- /**
51
- * Set the lowest port to begin any port search from.
52
- */
53
- declare function setBasePort(port: number): void;
54
-
55
- /**
56
- * The highest port to end any port search from.
57
- */
58
- declare let highestPort: number;
59
-
60
- /**
61
- * Set the higheset port to end any port search from.
62
- */
63
- declare function setHighestPort(port: number): void;
64
-
65
- /**
66
- * Default path to begin any socket search from.
67
- */
68
- declare let basePath: string;
69
-
70
- /**
71
- * Set the base path to begin any socket search from.
72
- */
73
- declare function setBasePath(path: string): void;
74
-
75
- /**
76
- * Responds with a unbound port on the current machine.
77
- */
78
- declare function getPort(options: PortFinderOptions): Promise<number>;
79
- declare function getPort(callback: PortfinderCallback): void;
80
- declare function getPort(options: PortFinderOptions, callback: PortfinderCallback): void;
81
-
82
- /**
83
- * Responds a promise of an unbound port on the current machine.
84
- */
85
- declare function getPortPromise(options?: PortFinderOptions): Promise<number>;
86
-
87
- /**
88
- * Responds with an array of unbound ports on the current machine.
89
- */
90
- declare function getPorts(count: number, options: PortFinderOptions): Promise<Array<number>>;
91
- declare function getPorts(count: number, callback: (err: Error, ports: Array<number>) => void): void;
92
- declare function getPorts(count: number, options: PortFinderOptions, callback: (err: Error, ports: Array<number>) => void): void;
93
-
94
- /**
95
- * Responds a promise that resolves to an array of unbound ports on the current machine.
96
- */
97
- declare function getPortsPromise(count: number, options?: PortFinderOptions): Promise<Array<number>>;
98
-
99
- declare function getSocket(options: SocketFinderOptions): Promise<string>;
100
- declare function getSocket(callback: SocketfinderCallback): void;
101
- declare function getSocket(options: SocketFinderOptions, callback: SocketfinderCallback): void;
102
-
103
- declare function getSocketPromise(options?: SocketFinderOptions): Promise<string>;
104
-
105
- export { basePath, basePort, getPort, getPortPromise, getPorts, getPortsPromise, getSocket, getSocketPromise, highestPort, setBasePath, setBasePort, setHighestPort };