@unpackjs/core 2.3.1 → 2.3.3
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/compiled/css-loader/index.js +20 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +10 -10
- package/compiled/sass-loader/index.js +8 -8
- package/compiled/webpack-bundle-analyzer/index.js +21 -13274
- package/dist/bundler-config/cache.cjs +2 -1
- package/dist/bundler-config/cache.js +2 -1
- package/dist/bundler-config/css.cjs +10 -5
- package/dist/bundler-config/css.d.ts.map +1 -1
- package/dist/bundler-config/css.js +11 -6
- package/dist/bundler-config/experimentCss.cjs +8 -5
- package/dist/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist/bundler-config/experimentCss.js +9 -6
- package/dist/bundler-config/helpers.cjs +5 -13
- package/dist/bundler-config/helpers.d.ts +3 -2
- package/dist/bundler-config/helpers.d.ts.map +1 -1
- package/dist/bundler-config/helpers.js +6 -14
- package/dist/bundler-config/index.cjs +25 -25
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +23 -26
- package/dist/bundler-config/jsMinify.cjs +1 -1
- package/dist/bundler-config/jsMinify.js +1 -1
- package/dist/bundler-config/progress/helpers.cjs +1 -1
- package/dist/bundler-config/progress/helpers.js +1 -1
- package/dist/bundler-config/progress/rspack.cjs +1 -1
- package/dist/bundler-config/progress/rspack.d.ts.map +1 -1
- package/dist/bundler-config/progress/rspack.js +1 -1
- package/dist/bundler-config/progress/webpack.cjs +1 -1
- package/dist/bundler-config/progress/webpack.d.ts.map +1 -1
- package/dist/bundler-config/progress/webpack.js +1 -1
- package/dist/colors.d.ts +1 -0
- package/dist/colors.d.ts.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/constants.cjs +7 -3
- package/dist/constants.d.ts +7 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +7 -3
- package/dist/createUnpack.cjs +4 -3
- package/dist/createUnpack.d.ts.map +1 -1
- package/dist/createUnpack.js +5 -4
- package/dist/global.d.ts +1 -1
- package/dist/global.d.ts.map +1 -1
- package/dist/index.js +5 -36
- package/dist/logger.cjs +3 -5
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +3 -5
- package/dist/openBrowser.cjs +46 -61
- package/dist/openBrowser.d.ts.map +1 -1
- package/dist/openBrowser.js +2 -18
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/prebundleDeps.cjs +4 -3
- package/dist/prebundleDeps.d.ts.map +1 -1
- package/dist/prebundleDeps.js +4 -3
- package/dist/run/dev.cjs +8 -5
- package/dist/run/dev.d.ts.map +1 -1
- package/dist/run/dev.js +8 -5
- package/dist/typed-css-modules/loader.cjs +91 -130
- package/dist/typed-css-modules/loader.d.ts +1 -3
- package/dist/typed-css-modules/loader.d.ts.map +1 -1
- package/dist/typed-css-modules/loader.js +2 -41
- package/dist/typed-css-modules/plugin.d.ts +1 -1
- package/dist/typed-css-modules/plugin.d.ts.map +1 -1
- package/dist/typed-css-modules/utils.d.ts +1 -1
- package/dist/typed-css-modules/utils.d.ts.map +1 -1
- package/dist/types/config.d.ts +4 -4
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils.cjs +3 -5
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -5
- package/package.json +9 -15
- package/compiled/line-diff/index.d.ts +0 -1
- package/compiled/line-diff/index.js +0 -160
- package/compiled/line-diff/license +0 -21
- package/compiled/line-diff/package.json +0 -1
- package/compiled/portfinder/index.d.ts +0 -105
- package/compiled/portfinder/index.js +0 -3231
- package/compiled/portfinder/license +0 -22
- package/compiled/portfinder/package.json +0 -1
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
(() => {
|
|
2
|
-
var __webpack_modules__ = {
|
|
3
|
-
445: (module) => {
|
|
4
|
-
module.exports = function (s, t) {
|
|
5
|
-
var d = [];
|
|
6
|
-
var n = s.length;
|
|
7
|
-
var m = t.length;
|
|
8
|
-
if (n == 0) return m;
|
|
9
|
-
if (m == 0) return n;
|
|
10
|
-
for (var i = n; i >= 0; i--) d[i] = [];
|
|
11
|
-
for (var i = n; i >= 0; i--) d[i][0] = i;
|
|
12
|
-
for (var j = m; j >= 0; j--) d[0][j] = j;
|
|
13
|
-
for (var i = 1; i <= n; i++) {
|
|
14
|
-
var s_i = s.charAt(i - 1);
|
|
15
|
-
for (var j = 1; j <= m; j++) {
|
|
16
|
-
if (i == j && d[i][j] > 4) return n;
|
|
17
|
-
var t_j = t.charAt(j - 1);
|
|
18
|
-
var cost = s_i == t_j ? 0 : 1;
|
|
19
|
-
var mi = d[i - 1][j] + 1;
|
|
20
|
-
var b = d[i][j - 1] + 1;
|
|
21
|
-
var c = d[i - 1][j - 1] + cost;
|
|
22
|
-
if (b < mi) mi = b;
|
|
23
|
-
if (c < mi) mi = c;
|
|
24
|
-
d[i][j] = mi;
|
|
25
|
-
if (
|
|
26
|
-
i > 1 &&
|
|
27
|
-
j > 1 &&
|
|
28
|
-
s_i == t.charAt(j - 2) &&
|
|
29
|
-
s.charAt(i - 2) == t_j
|
|
30
|
-
) {
|
|
31
|
-
d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return d[n][m];
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
83: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
39
|
-
"use strict";
|
|
40
|
-
var _createClass = (function () {
|
|
41
|
-
function defineProperties(target, props) {
|
|
42
|
-
for (var i = 0; i < props.length; i++) {
|
|
43
|
-
var descriptor = props[i];
|
|
44
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
45
|
-
descriptor.configurable = true;
|
|
46
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
47
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return function (Constructor, protoProps, staticProps) {
|
|
51
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
52
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
53
|
-
return Constructor;
|
|
54
|
-
};
|
|
55
|
-
})();
|
|
56
|
-
function _classCallCheck(instance, Constructor) {
|
|
57
|
-
if (!(instance instanceof Constructor)) {
|
|
58
|
-
throw new TypeError("Cannot call a class as a function");
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
var LevDist = __nccwpck_require__(445);
|
|
62
|
-
var Change =
|
|
63
|
-
/*!
|
|
64
|
-
* Change
|
|
65
|
-
* This is used for comparing two lines.
|
|
66
|
-
*
|
|
67
|
-
* @name Change
|
|
68
|
-
* @function
|
|
69
|
-
* @param {String} oldLine The old line value.
|
|
70
|
-
* @param {String} addedLine The new line.
|
|
71
|
-
* @param {Number} sensitivity The diff sensitivity.
|
|
72
|
-
* @return {Change} The `Change` object:
|
|
73
|
-
*
|
|
74
|
-
* - `_` (Array): An array with the old line and the new line.
|
|
75
|
-
* - `changes` (Number): How many changes are there, calculated with the levenshtein distance algorithm.
|
|
76
|
-
* - `modified` (Boolean): A boolean value representing if the old line was modified or not.
|
|
77
|
-
*/
|
|
78
|
-
function Change(oldLine, addedLine, sensitivity, lineno) {
|
|
79
|
-
_classCallCheck(this, Change);
|
|
80
|
-
this._ = [oldLine, addedLine];
|
|
81
|
-
this.changes = LevDist(oldLine, addedLine);
|
|
82
|
-
this.modified = this.changes > sensitivity;
|
|
83
|
-
this.lineno = lineno;
|
|
84
|
-
};
|
|
85
|
-
var Diff = (function () {
|
|
86
|
-
function Diff(oldLines, newLines, sensitivity) {
|
|
87
|
-
var _this = this;
|
|
88
|
-
_classCallCheck(this, Diff);
|
|
89
|
-
this.sensitivity = sensitivity || 0;
|
|
90
|
-
this.changes = [];
|
|
91
|
-
oldLines =
|
|
92
|
-
typeof oldLines === "string" ? oldLines.split("\n") : oldLines;
|
|
93
|
-
newLines =
|
|
94
|
-
typeof newLines === "string" ? newLines.split("\n") : newLines;
|
|
95
|
-
this.old_lines = oldLines;
|
|
96
|
-
this.new_lines = newLines;
|
|
97
|
-
var cOldLine = null;
|
|
98
|
-
newLines.forEach(function (cNewLine, i) {
|
|
99
|
-
cOldLine = oldLines[i] || "";
|
|
100
|
-
_this.changes.push(
|
|
101
|
-
new Change(cOldLine, cNewLine, _this.sensitivity, i + 1),
|
|
102
|
-
);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
_createClass(Diff, [
|
|
106
|
-
{
|
|
107
|
-
key: "toString",
|
|
108
|
-
value: function toString() {
|
|
109
|
-
var str = "",
|
|
110
|
-
cDiff = { added: "", removed: "" };
|
|
111
|
-
this.changes.forEach(function (cChange) {
|
|
112
|
-
if (!cChange.modified) {
|
|
113
|
-
str += cDiff.removed;
|
|
114
|
-
str += cDiff.added;
|
|
115
|
-
cDiff.removed = "";
|
|
116
|
-
cDiff.added = "";
|
|
117
|
-
str += " " + cChange._[1] + "\n";
|
|
118
|
-
} else {
|
|
119
|
-
cDiff.removed += " - " + cChange._[0] + "\n";
|
|
120
|
-
if (cChange._[1]) {
|
|
121
|
-
cDiff.added += " + " + cChange._[1] + "\n";
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
str += cDiff.removed;
|
|
126
|
-
str += cDiff.added;
|
|
127
|
-
return str;
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
]);
|
|
131
|
-
return Diff;
|
|
132
|
-
})();
|
|
133
|
-
module.exports = Diff;
|
|
134
|
-
},
|
|
135
|
-
};
|
|
136
|
-
var __webpack_module_cache__ = {};
|
|
137
|
-
function __nccwpck_require__(moduleId) {
|
|
138
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
139
|
-
if (cachedModule !== undefined) {
|
|
140
|
-
return cachedModule.exports;
|
|
141
|
-
}
|
|
142
|
-
var module = (__webpack_module_cache__[moduleId] = { exports: {} });
|
|
143
|
-
var threw = true;
|
|
144
|
-
try {
|
|
145
|
-
__webpack_modules__[moduleId](
|
|
146
|
-
module,
|
|
147
|
-
module.exports,
|
|
148
|
-
__nccwpck_require__,
|
|
149
|
-
);
|
|
150
|
-
threw = false;
|
|
151
|
-
} finally {
|
|
152
|
-
if (threw) delete __webpack_module_cache__[moduleId];
|
|
153
|
-
}
|
|
154
|
-
return module.exports;
|
|
155
|
-
}
|
|
156
|
-
if (typeof __nccwpck_require__ !== "undefined")
|
|
157
|
-
__nccwpck_require__.ab = __dirname + "/";
|
|
158
|
-
var __webpack_exports__ = __nccwpck_require__(83);
|
|
159
|
-
module.exports = __webpack_exports__;
|
|
160
|
-
})();
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015-25 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"line-diff","author":"Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)","version":"2.1.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -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 };
|