@unpackjs/core 1.5.3 → 1.6.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/bin/openChrome.applescript +94 -0
- package/compiled/chokidar/index.d.ts +327 -0
- package/compiled/chokidar/index.js +1773 -0
- package/compiled/chokidar/license +21 -0
- package/compiled/chokidar/package.json +1 -0
- package/compiled/commander/index.d.ts +971 -0
- package/compiled/commander/index.js +2190 -0
- package/compiled/commander/license +22 -0
- package/compiled/commander/package.json +1 -0
- package/compiled/css-loader/api.js +85 -0
- package/compiled/css-loader/getUrl.js +26 -0
- package/compiled/css-loader/index.d.ts +1 -0
- package/compiled/css-loader/index.js +8004 -0
- package/compiled/css-loader/license +20 -0
- package/compiled/css-loader/noSourceMaps.js +5 -0
- package/compiled/css-loader/package.json +1 -0
- package/compiled/css-loader/sourceMaps.js +16 -0
- package/compiled/fast-glob/index.d.ts +237 -0
- package/compiled/fast-glob/index.js +5726 -0
- package/compiled/fast-glob/license +21 -0
- package/compiled/fast-glob/package.json +1 -0
- package/compiled/less-loader/index.d.ts +1 -0
- package/compiled/less-loader/index.js +340 -0
- package/compiled/less-loader/license +20 -0
- package/compiled/less-loader/package.json +1 -0
- package/compiled/line-diff/index.d.ts +1 -0
- package/compiled/line-diff/index.js +160 -0
- package/compiled/line-diff/license +21 -0
- package/compiled/line-diff/package.json +1 -0
- package/compiled/log-update/index.d.ts +1 -0
- package/compiled/log-update/index.js +1970 -0
- package/compiled/log-update/package.json +1 -0
- package/compiled/portfinder/index.d.ts +64 -0
- package/compiled/portfinder/index.js +3401 -0
- package/compiled/portfinder/license +22 -0
- package/compiled/portfinder/package.json +1 -0
- package/compiled/postcss-loader/index.d.ts +1 -0
- package/compiled/postcss-loader/index.js +94945 -0
- package/compiled/postcss-loader/license +20 -0
- package/compiled/postcss-loader/package.json +1 -0
- package/compiled/sass-loader/index.d.ts +961 -0
- package/compiled/sass-loader/index.js +5610 -0
- package/compiled/sass-loader/index1.js +65 -0
- package/compiled/sass-loader/license +20 -0
- package/compiled/sass-loader/package.json +1 -0
- package/compiled/sass-loader/sass.node.js +12 -0
- package/compiled/semver/index.d.ts +1 -0
- package/compiled/semver/index.js +1940 -0
- package/compiled/semver/license +15 -0
- package/compiled/semver/package.json +1 -0
- package/compiled/style-loader/index.d.ts +1 -0
- package/compiled/style-loader/index.js +370 -0
- package/compiled/style-loader/license +20 -0
- package/compiled/style-loader/package.json +1 -0
- package/compiled/style-loader/runtime/injectStylesIntoLinkTag.js +29 -0
- package/compiled/style-loader/runtime/injectStylesIntoStyleTag.js +84 -0
- package/compiled/style-loader/runtime/insertBySelector.js +34 -0
- package/compiled/style-loader/runtime/insertStyleElement.js +10 -0
- package/compiled/style-loader/runtime/isEqualLocals.js +28 -0
- package/compiled/style-loader/runtime/isOldIE.js +17 -0
- package/compiled/style-loader/runtime/setAttributesWithAttributes.js +13 -0
- package/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js +9 -0
- package/compiled/style-loader/runtime/setAttributesWithoutAttributes.js +10 -0
- package/compiled/style-loader/runtime/singletonStyleDomAPI.js +86 -0
- package/compiled/style-loader/runtime/styleDomAPI.js +61 -0
- package/compiled/style-loader/runtime/styleTagTransform.js +14 -0
- package/compiled/webpack-bundle-analyzer/index.d.ts +1 -0
- package/compiled/webpack-bundle-analyzer/index.js +13276 -0
- package/compiled/webpack-bundle-analyzer/license +20 -0
- package/compiled/webpack-bundle-analyzer/package.json +1 -0
- package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
- package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
- package/compiled/webpack-merge/index.d.ts +31 -0
- package/compiled/webpack-merge/index.js +1200 -0
- package/compiled/webpack-merge/license +20 -0
- package/compiled/webpack-merge/package.json +1 -0
- package/dist/bundleRequire.cjs +200 -0
- package/dist/bundleRequire.d.ts +5 -0
- package/dist/bundleRequire.d.ts.map +1 -0
- package/dist/bundleRequire.js +173 -0
- package/dist/bundler-config/chunkSplit.cjs +151 -0
- package/dist/bundler-config/chunkSplit.d.ts +6 -0
- package/dist/bundler-config/chunkSplit.d.ts.map +1 -0
- package/dist/bundler-config/chunkSplit.js +127 -0
- package/dist/bundler-config/css.cjs +168 -0
- package/dist/bundler-config/css.d.ts +6 -0
- package/dist/bundler-config/css.d.ts.map +1 -0
- package/dist/bundler-config/css.js +158 -0
- package/dist/bundler-config/experimentCss.cjs +167 -0
- package/dist/bundler-config/experimentCss.d.ts +6 -0
- package/dist/bundler-config/experimentCss.d.ts.map +1 -0
- package/dist/bundler-config/experimentCss.js +157 -0
- package/dist/bundler-config/helper.cjs +81 -0
- package/dist/bundler-config/helper.d.ts +8 -0
- package/dist/bundler-config/helper.d.ts.map +1 -0
- package/dist/bundler-config/helper.js +56 -0
- package/dist/bundler-config/index.cjs +206 -0
- package/dist/bundler-config/index.d.ts +3 -0
- package/dist/bundler-config/index.d.ts.map +1 -0
- package/dist/bundler-config/index.js +190 -0
- package/dist/colors.cjs +60 -0
- package/dist/colors.d.ts +6 -0
- package/dist/colors.d.ts.map +1 -0
- package/dist/colors.js +40 -0
- package/dist/{config/index.cjs → config.cjs} +28 -21
- package/dist/{config/index.d.ts → config.d.ts} +4 -3
- package/dist/config.d.ts.map +1 -0
- package/dist/{config/index.js → config.js} +22 -23
- package/dist/constants.cjs +86 -0
- package/dist/constants.d.ts +25 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +61 -0
- package/dist/createService.cjs +65 -0
- package/dist/createService.d.ts +8 -0
- package/dist/createService.d.ts.map +1 -0
- package/dist/createService.js +41 -0
- package/dist/index.cjs +27 -48
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -51
- package/dist/lightningcss/cache.cjs +36 -0
- package/dist/lightningcss/cache.d.ts +2 -0
- package/dist/lightningcss/cache.d.ts.map +1 -0
- package/dist/lightningcss/cache.js +22 -0
- package/dist/lightningcss/index.cjs +21 -0
- package/dist/lightningcss/index.d.ts +2 -0
- package/dist/lightningcss/index.d.ts.map +1 -0
- package/dist/lightningcss/index.js +10 -0
- package/dist/lightningcss/loader.cjs +56 -0
- package/dist/lightningcss/loader.d.ts +5 -0
- package/dist/lightningcss/loader.d.ts.map +1 -0
- package/dist/lightningcss/loader.js +36 -0
- package/dist/lightningcss/minimizer.cjs +114 -0
- package/dist/lightningcss/minimizer.d.ts +11 -0
- package/dist/lightningcss/minimizer.d.ts.map +1 -0
- package/dist/lightningcss/minimizer.js +90 -0
- package/dist/logger.cjs +103 -0
- package/dist/logger.d.ts +3 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +79 -0
- package/dist/openBrowser.cjs +85 -0
- package/dist/openBrowser.d.ts +2 -0
- package/dist/openBrowser.d.ts.map +1 -0
- package/dist/openBrowser.js +61 -0
- package/dist/plugin-progress/rspack.cjs +74 -0
- package/dist/plugin-progress/rspack.d.ts +9 -0
- package/dist/plugin-progress/rspack.d.ts.map +1 -0
- package/dist/plugin-progress/rspack.js +50 -0
- package/dist/plugin-progress/webpack.cjs +84 -0
- package/dist/plugin-progress/webpack.d.ts +9 -0
- package/dist/plugin-progress/webpack.d.ts.map +1 -0
- package/dist/plugin-progress/webpack.js +60 -0
- package/dist/plugin.cjs +33 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +19 -0
- package/dist/progressBar.cjs +70 -0
- package/dist/progressBar.d.ts +14 -0
- package/dist/progressBar.d.ts.map +1 -0
- package/dist/progressBar.js +46 -0
- package/dist/reporter.cjs +133 -0
- package/dist/reporter.d.ts +8 -0
- package/dist/reporter.d.ts.map +1 -0
- package/dist/reporter.js +109 -0
- package/dist/run/build.cjs +77 -0
- package/dist/run/build.d.ts +3 -0
- package/dist/run/build.d.ts.map +1 -0
- package/dist/run/build.js +53 -0
- package/dist/run/dev.cjs +107 -0
- package/dist/run/dev.d.ts +3 -0
- package/dist/run/dev.d.ts.map +1 -0
- package/dist/run/dev.js +83 -0
- package/dist/run/index.cjs +23 -0
- package/dist/run/index.d.ts +3 -0
- package/dist/run/index.d.ts.map +1 -0
- package/dist/run/index.js +11 -0
- package/dist/thread-loader/WorkerError.cjs +41 -0
- package/dist/thread-loader/WorkerError.js +31 -0
- package/dist/thread-loader/WorkerPool.cjs +407 -0
- package/dist/thread-loader/WorkerPool.js +387 -0
- package/dist/thread-loader/index.cjs +100 -0
- package/dist/thread-loader/index.js +85 -0
- package/dist/thread-loader/readBuffer.cjs +55 -0
- package/dist/thread-loader/readBuffer.js +45 -0
- package/dist/thread-loader/serializer.cjs +46 -0
- package/dist/thread-loader/serializer.js +31 -0
- package/dist/thread-loader/utils.cjs +84 -0
- package/dist/thread-loader/utils.js +60 -0
- package/dist/thread-loader/worker.cjs +377 -0
- package/dist/thread-loader/worker.js +382 -0
- package/dist/thread-loader/workerPools.cjs +57 -0
- package/dist/thread-loader/workerPools.js +33 -0
- package/dist/typed-css-modules/index.cjs +21 -0
- package/dist/typed-css-modules/index.d.ts +2 -0
- package/dist/typed-css-modules/index.d.ts.map +1 -0
- package/dist/typed-css-modules/index.js +10 -0
- package/dist/typed-css-modules/loader.cjs +195 -0
- package/dist/typed-css-modules/loader.d.ts +10 -0
- package/dist/typed-css-modules/loader.d.ts.map +1 -0
- package/dist/typed-css-modules/loader.js +170 -0
- package/dist/typed-css-modules/plugin.cjs +96 -0
- package/dist/typed-css-modules/plugin.d.ts +16 -0
- package/dist/typed-css-modules/plugin.d.ts.map +1 -0
- package/dist/typed-css-modules/plugin.js +72 -0
- package/dist/typed-css-modules/utils.cjs +45 -0
- package/dist/typed-css-modules/utils.d.ts +6 -0
- package/dist/typed-css-modules/utils.d.ts.map +1 -0
- package/dist/typed-css-modules/utils.js +31 -0
- package/dist/types/chunkSplit.cjs +15 -0
- package/dist/types/chunkSplit.d.ts +35 -0
- package/dist/types/chunkSplit.d.ts.map +1 -0
- package/dist/types/chunkSplit.js +9 -0
- package/dist/types/config.cjs +15 -0
- package/dist/types/config.d.ts +176 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +9 -0
- package/dist/types/index.cjs +29 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +14 -0
- package/dist/types/lightningcss.cjs +15 -0
- package/dist/types/lightningcss.d.ts +11 -0
- package/dist/types/lightningcss.d.ts.map +1 -0
- package/dist/types/lightningcss.js +9 -0
- package/dist/types/logger.cjs +35 -0
- package/dist/types/logger.d.ts +16 -0
- package/dist/types/logger.d.ts.map +1 -0
- package/dist/types/logger.js +21 -0
- package/dist/types/plugin.cjs +15 -0
- package/dist/types/plugin.d.ts +18 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +9 -0
- package/dist/utils.cjs +293 -0
- package/dist/utils.d.ts +39 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +242 -0
- package/package.json +95 -6
- package/dist/config/index.d.ts.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Denis Malinochkin
|
|
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"fast-glob","author":{"name":"Denis Malinochkin","url":"https://mrmlnc.com"},"version":"3.3.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = any;
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
"use strict";
|
|
3
|
+
var __webpack_modules__ = {
|
|
4
|
+
855: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(464)["default"];
|
|
6
|
+
},
|
|
7
|
+
464: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
|
+
var __webpack_unused_export__;
|
|
9
|
+
__webpack_unused_export__ = { value: true };
|
|
10
|
+
exports["default"] = void 0;
|
|
11
|
+
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(601));
|
|
13
|
+
var _utils = __nccwpck_require__(530);
|
|
14
|
+
function _interopRequireDefault(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
16
|
+
}
|
|
17
|
+
async function lessLoader(source) {
|
|
18
|
+
const options = this.getOptions(_options.default);
|
|
19
|
+
const callback = this.async();
|
|
20
|
+
let implementation;
|
|
21
|
+
try {
|
|
22
|
+
implementation = (0, _utils.getLessImplementation)(
|
|
23
|
+
this,
|
|
24
|
+
options.implementation,
|
|
25
|
+
);
|
|
26
|
+
} catch (error) {
|
|
27
|
+
callback(error);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (!implementation) {
|
|
31
|
+
callback(
|
|
32
|
+
new Error(
|
|
33
|
+
`The Less implementation "${options.implementation}" not found`,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const lessOptions = (0, _utils.getLessOptions)(
|
|
39
|
+
this,
|
|
40
|
+
options,
|
|
41
|
+
implementation,
|
|
42
|
+
);
|
|
43
|
+
const useSourceMap =
|
|
44
|
+
typeof options.sourceMap === "boolean"
|
|
45
|
+
? options.sourceMap
|
|
46
|
+
: this.sourceMap;
|
|
47
|
+
if (useSourceMap) {
|
|
48
|
+
lessOptions.sourceMap = { outputSourceFiles: true };
|
|
49
|
+
}
|
|
50
|
+
let data = source;
|
|
51
|
+
if (typeof options.additionalData !== "undefined") {
|
|
52
|
+
data =
|
|
53
|
+
typeof options.additionalData === "function"
|
|
54
|
+
? `${await options.additionalData(data, this)}`
|
|
55
|
+
: `${options.additionalData}\n${data}`;
|
|
56
|
+
}
|
|
57
|
+
const logger = this.getLogger("less-loader");
|
|
58
|
+
const loaderContext = this;
|
|
59
|
+
const loggerListener = {
|
|
60
|
+
error(message) {
|
|
61
|
+
if (options.lessLogAsWarnOrErr) {
|
|
62
|
+
loaderContext.emitError(new Error(message));
|
|
63
|
+
} else {
|
|
64
|
+
logger.error(message);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
warn(message) {
|
|
68
|
+
if (options.lessLogAsWarnOrErr) {
|
|
69
|
+
loaderContext.emitWarning(new Error(message));
|
|
70
|
+
} else {
|
|
71
|
+
logger.warn(message);
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
info(message) {
|
|
75
|
+
logger.log(message);
|
|
76
|
+
},
|
|
77
|
+
debug(message) {
|
|
78
|
+
logger.debug(message);
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
implementation.logger.addListener(loggerListener);
|
|
82
|
+
let result;
|
|
83
|
+
try {
|
|
84
|
+
result = await implementation.render(data, lessOptions);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
if (error.filename) {
|
|
87
|
+
this.addDependency(_path.default.normalize(error.filename));
|
|
88
|
+
}
|
|
89
|
+
callback((0, _utils.errorFactory)(error));
|
|
90
|
+
return;
|
|
91
|
+
} finally {
|
|
92
|
+
implementation.logger.removeListener(loggerListener);
|
|
93
|
+
delete lessOptions.pluginManager.webpackLoaderContext;
|
|
94
|
+
delete lessOptions.pluginManager;
|
|
95
|
+
}
|
|
96
|
+
const { css, imports } = result;
|
|
97
|
+
imports.forEach((item) => {
|
|
98
|
+
if ((0, _utils.isUnsupportedUrl)(item)) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const normalizedItem = _path.default.normalize(item);
|
|
102
|
+
if (_path.default.isAbsolute(normalizedItem)) {
|
|
103
|
+
this.addDependency(normalizedItem);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
let map =
|
|
107
|
+
typeof result.map === "string" ? JSON.parse(result.map) : result.map;
|
|
108
|
+
if (map && useSourceMap) {
|
|
109
|
+
map = (0, _utils.normalizeSourceMap)(map, this.rootContext);
|
|
110
|
+
}
|
|
111
|
+
callback(null, css, map);
|
|
112
|
+
}
|
|
113
|
+
var _default = (exports["default"] = lessLoader);
|
|
114
|
+
},
|
|
115
|
+
530: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
|
+
exports.errorFactory = errorFactory;
|
|
118
|
+
exports.getLessImplementation = getLessImplementation;
|
|
119
|
+
exports.getLessOptions = getLessOptions;
|
|
120
|
+
exports.isUnsupportedUrl = isUnsupportedUrl;
|
|
121
|
+
exports.normalizeSourceMap = normalizeSourceMap;
|
|
122
|
+
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
123
|
+
function _interopRequireDefault(obj) {
|
|
124
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
125
|
+
}
|
|
126
|
+
const trailingSlash = /[/\\]$/;
|
|
127
|
+
const IS_SPECIAL_MODULE_IMPORT = /^~[^/]+$/;
|
|
128
|
+
const IS_NATIVE_WIN32_PATH = /^[a-z]:[/\\]|^\\\\/i;
|
|
129
|
+
const IS_MODULE_IMPORT =
|
|
130
|
+
/^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;
|
|
131
|
+
const MODULE_REQUEST_REGEX = /^[^?]*~/;
|
|
132
|
+
function createWebpackLessPlugin(loaderContext, implementation) {
|
|
133
|
+
const resolve = loaderContext.getResolve({
|
|
134
|
+
dependencyType: "less",
|
|
135
|
+
conditionNames: ["less", "style", "..."],
|
|
136
|
+
mainFields: ["less", "style", "main", "..."],
|
|
137
|
+
mainFiles: ["index", "..."],
|
|
138
|
+
extensions: [".less", ".css"],
|
|
139
|
+
preferRelative: true,
|
|
140
|
+
});
|
|
141
|
+
class WebpackFileManager extends implementation.FileManager {
|
|
142
|
+
supports(filename) {
|
|
143
|
+
if (filename[0] === "/" || IS_NATIVE_WIN32_PATH.test(filename)) {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
if (this.isPathAbsolute(filename)) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
supportsSync() {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
async resolveFilename(filename, currentDirectory) {
|
|
155
|
+
const context = currentDirectory.replace(trailingSlash, "");
|
|
156
|
+
let request = filename;
|
|
157
|
+
if (MODULE_REQUEST_REGEX.test(filename)) {
|
|
158
|
+
request = request.replace(MODULE_REQUEST_REGEX, "");
|
|
159
|
+
}
|
|
160
|
+
if (IS_MODULE_IMPORT.test(filename)) {
|
|
161
|
+
request =
|
|
162
|
+
request[request.length - 1] === "/" ? request : `${request}/`;
|
|
163
|
+
}
|
|
164
|
+
return this.resolveRequests(context, [
|
|
165
|
+
...new Set([request, filename]),
|
|
166
|
+
]);
|
|
167
|
+
}
|
|
168
|
+
async resolveRequests(context, possibleRequests) {
|
|
169
|
+
if (possibleRequests.length === 0) {
|
|
170
|
+
return Promise.reject();
|
|
171
|
+
}
|
|
172
|
+
let result;
|
|
173
|
+
try {
|
|
174
|
+
result = await resolve(context, possibleRequests[0]);
|
|
175
|
+
} catch (error) {
|
|
176
|
+
const [, ...tailPossibleRequests] = possibleRequests;
|
|
177
|
+
if (tailPossibleRequests.length === 0) {
|
|
178
|
+
throw error;
|
|
179
|
+
}
|
|
180
|
+
result = await this.resolveRequests(
|
|
181
|
+
context,
|
|
182
|
+
tailPossibleRequests,
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
return result;
|
|
186
|
+
}
|
|
187
|
+
async loadFile(filename, ...args) {
|
|
188
|
+
let result;
|
|
189
|
+
try {
|
|
190
|
+
if (IS_SPECIAL_MODULE_IMPORT.test(filename)) {
|
|
191
|
+
const error = new Error();
|
|
192
|
+
error.type = "Next";
|
|
193
|
+
throw error;
|
|
194
|
+
}
|
|
195
|
+
result = await super.loadFile(filename, ...args);
|
|
196
|
+
} catch (error) {
|
|
197
|
+
if (error.type !== "File" && error.type !== "Next") {
|
|
198
|
+
return Promise.reject(error);
|
|
199
|
+
}
|
|
200
|
+
try {
|
|
201
|
+
result = await this.resolveFilename(filename, ...args);
|
|
202
|
+
} catch (webpackResolveError) {
|
|
203
|
+
error.message =
|
|
204
|
+
`Less resolver error:\n${error.message}\n\n` +
|
|
205
|
+
`Webpack resolver error details:\n${webpackResolveError.details}\n\n` +
|
|
206
|
+
`Webpack resolver error missing:\n${webpackResolveError.missing}\n\n`;
|
|
207
|
+
return Promise.reject(error);
|
|
208
|
+
}
|
|
209
|
+
loaderContext.addDependency(result);
|
|
210
|
+
return super.loadFile(result, ...args);
|
|
211
|
+
}
|
|
212
|
+
const absoluteFilename = _path.default.isAbsolute(result.filename)
|
|
213
|
+
? result.filename
|
|
214
|
+
: _path.default.resolve(".", result.filename);
|
|
215
|
+
loaderContext.addDependency(
|
|
216
|
+
_path.default.normalize(absoluteFilename),
|
|
217
|
+
);
|
|
218
|
+
return result;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
install(lessInstance, pluginManager) {
|
|
223
|
+
pluginManager.addFileManager(new WebpackFileManager());
|
|
224
|
+
},
|
|
225
|
+
minVersion: [3, 0, 0],
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function getLessOptions(loaderContext, loaderOptions, implementation) {
|
|
229
|
+
const options =
|
|
230
|
+
typeof loaderOptions.lessOptions === "function"
|
|
231
|
+
? loaderOptions.lessOptions(loaderContext) || {}
|
|
232
|
+
: loaderOptions.lessOptions || {};
|
|
233
|
+
const lessOptions = {
|
|
234
|
+
plugins: [],
|
|
235
|
+
relativeUrls: true,
|
|
236
|
+
filename: loaderContext.resourcePath,
|
|
237
|
+
...options,
|
|
238
|
+
};
|
|
239
|
+
const plugins = lessOptions.plugins.slice();
|
|
240
|
+
const shouldUseWebpackImporter =
|
|
241
|
+
typeof loaderOptions.webpackImporter === "boolean"
|
|
242
|
+
? loaderOptions.webpackImporter
|
|
243
|
+
: true;
|
|
244
|
+
if (shouldUseWebpackImporter) {
|
|
245
|
+
plugins.unshift(
|
|
246
|
+
createWebpackLessPlugin(loaderContext, implementation),
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
plugins.unshift({
|
|
250
|
+
install(lessProcessor, pluginManager) {
|
|
251
|
+
pluginManager.webpackLoaderContext = loaderContext;
|
|
252
|
+
lessOptions.pluginManager = pluginManager;
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
lessOptions.plugins = plugins;
|
|
256
|
+
return lessOptions;
|
|
257
|
+
}
|
|
258
|
+
function isUnsupportedUrl(url) {
|
|
259
|
+
if (IS_NATIVE_WIN32_PATH.test(url)) {
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
return /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(url);
|
|
263
|
+
}
|
|
264
|
+
function normalizeSourceMap(map) {
|
|
265
|
+
const newMap = map;
|
|
266
|
+
delete newMap.file;
|
|
267
|
+
newMap.sourceRoot = "";
|
|
268
|
+
newMap.sources = newMap.sources.map((source) =>
|
|
269
|
+
_path.default.normalize(source),
|
|
270
|
+
);
|
|
271
|
+
return newMap;
|
|
272
|
+
}
|
|
273
|
+
function getLessImplementation(loaderContext, implementation) {
|
|
274
|
+
let resolvedImplementation = implementation;
|
|
275
|
+
if (!implementation || typeof implementation === "string") {
|
|
276
|
+
const lessImplPkg = implementation || "less";
|
|
277
|
+
resolvedImplementation = require(lessImplPkg);
|
|
278
|
+
}
|
|
279
|
+
return resolvedImplementation;
|
|
280
|
+
}
|
|
281
|
+
function getFileExcerptIfPossible(error) {
|
|
282
|
+
if (typeof error.extract === "undefined") {
|
|
283
|
+
return [];
|
|
284
|
+
}
|
|
285
|
+
const excerpt = error.extract.slice(0, 2);
|
|
286
|
+
const column = Math.max(error.column - 1, 0);
|
|
287
|
+
if (typeof excerpt[0] === "undefined") {
|
|
288
|
+
excerpt.shift();
|
|
289
|
+
}
|
|
290
|
+
excerpt.push(`${new Array(column).join(" ")}^`);
|
|
291
|
+
return excerpt;
|
|
292
|
+
}
|
|
293
|
+
function errorFactory(error) {
|
|
294
|
+
const message = [
|
|
295
|
+
"\n",
|
|
296
|
+
...getFileExcerptIfPossible(error),
|
|
297
|
+
error.message.charAt(0).toUpperCase() + error.message.slice(1),
|
|
298
|
+
error.filename
|
|
299
|
+
? ` Error in ${_path.default.normalize(error.filename)} (line ${error.line}, column ${error.column})`
|
|
300
|
+
: "",
|
|
301
|
+
].join("\n");
|
|
302
|
+
const obj = new Error(message, { cause: error });
|
|
303
|
+
obj.stack = null;
|
|
304
|
+
return obj;
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
17: (module) => {
|
|
308
|
+
module.exports = require("path");
|
|
309
|
+
},
|
|
310
|
+
601: (module) => {
|
|
311
|
+
module.exports = JSON.parse(
|
|
312
|
+
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack-contrib/less-loader#lessoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Less` code to the actual entry file.","link":"https://github.com/webpack-contrib/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/less-loader#webpackimporter","type":"boolean"},"implementation":{"description":"The implementation of the `Less` to be used.","link":"https://github.com/webpack-contrib/less-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"lessLogAsWarnOrErr":{"description":"Less warnings and errors will be webpack warnings or errors.","link":"https://github.com/webpack-contrib/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
|
|
313
|
+
);
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
var __webpack_module_cache__ = {};
|
|
317
|
+
function __nccwpck_require__(moduleId) {
|
|
318
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
319
|
+
if (cachedModule !== undefined) {
|
|
320
|
+
return cachedModule.exports;
|
|
321
|
+
}
|
|
322
|
+
var module = (__webpack_module_cache__[moduleId] = { exports: {} });
|
|
323
|
+
var threw = true;
|
|
324
|
+
try {
|
|
325
|
+
__webpack_modules__[moduleId](
|
|
326
|
+
module,
|
|
327
|
+
module.exports,
|
|
328
|
+
__nccwpck_require__,
|
|
329
|
+
);
|
|
330
|
+
threw = false;
|
|
331
|
+
} finally {
|
|
332
|
+
if (threw) delete __webpack_module_cache__[moduleId];
|
|
333
|
+
}
|
|
334
|
+
return module.exports;
|
|
335
|
+
}
|
|
336
|
+
if (typeof __nccwpck_require__ !== "undefined")
|
|
337
|
+
__nccwpck_require__.ab = __dirname + "/";
|
|
338
|
+
var __webpack_exports__ = __nccwpck_require__(855);
|
|
339
|
+
module.exports = __webpack_exports__;
|
|
340
|
+
})();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright JS Foundation and other contributors
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
'Software'), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"less-loader","author":"Johannes Ewald @jhnns","version":"12.2.0","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = any;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
791: (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
|
+
632: (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__(791);
|
|
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__(632);
|
|
159
|
+
module.exports = __webpack_exports__;
|
|
160
|
+
})();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-20 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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"line-diff","author":"Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)","version":"2.1.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = any;
|