@forsakringskassan/docs-generator 2.17.1 → 2.19.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/dist/compile-example.js +4 -3
- package/dist/compile-example.js.map +1 -0
- package/dist/{create-markdown-renderer-2ejm6Tub.js → create-markdown-renderer-CbE5KJoX.js} +173 -125
- package/dist/create-markdown-renderer-CbE5KJoX.js.map +1 -0
- package/dist/index.d.ts +67 -26
- package/dist/index.js +88 -57
- package/dist/index.js.map +1 -0
- package/dist/markdown.d.ts +65 -22
- package/dist/markdown.js +4 -3
- package/dist/markdown.js.map +1 -0
- package/dist/processors/selectable-version.js +5 -2
- package/dist/{vendor-BeoVq2Sv.js → vendor-BHA4LIog.js} +23 -17
- package/dist/vendor-BHA4LIog.js.map +1 -0
- package/dist/{vue3-B1yNeGmz.js → vue3-BhdC7RZQ.js} +69 -68
- package/dist/vue3-BhdC7RZQ.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$0 = require('@vue/compiler-sfc');
|
|
4
|
-
require('./vendor-
|
|
4
|
+
require('./vendor-BHA4LIog.js');
|
|
5
5
|
|
|
6
6
|
var __create = Object.create;
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -37,7 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
var require_utils = __commonJS({
|
|
38
38
|
"../../node_modules/esbuild-plugin-vue3/dist/utils.js"(exports) {
|
|
39
39
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
40
|
-
if (k2 ===
|
|
40
|
+
if (k2 === void 0) k2 = k;
|
|
41
41
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
42
42
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
43
43
|
desc = { enumerable: true, get: function() {
|
|
@@ -46,7 +46,7 @@ var require_utils = __commonJS({
|
|
|
46
46
|
}
|
|
47
47
|
Object.defineProperty(o, k2, desc);
|
|
48
48
|
} : function(o, m, k, k2) {
|
|
49
|
-
if (k2 ===
|
|
49
|
+
if (k2 === void 0) k2 = k;
|
|
50
50
|
o[k2] = m[k];
|
|
51
51
|
});
|
|
52
52
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -156,11 +156,11 @@ var require_utils = __commonJS({
|
|
|
156
156
|
f = t = 0;
|
|
157
157
|
}
|
|
158
158
|
if (op[0] & 5) throw op[1];
|
|
159
|
-
return { value: op[0] ? op[1] :
|
|
159
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
163
|
-
exports.AsyncCache = exports.tryAsync = exports.getFullPath = exports.fileExists = exports.getUrlParams =
|
|
163
|
+
exports.AsyncCache = exports.tryAsync = exports.getFullPath = exports.fileExists = exports.getUrlParams = void 0;
|
|
164
164
|
var fs = __importStar(__require("fs"));
|
|
165
165
|
var path = __importStar(__require("path"));
|
|
166
166
|
function getUrlParams(search) {
|
|
@@ -173,7 +173,7 @@ var require_utils = __commonJS({
|
|
|
173
173
|
}
|
|
174
174
|
exports.getUrlParams = getUrlParams;
|
|
175
175
|
function fileExists(path2) {
|
|
176
|
-
return __awaiter(this,
|
|
176
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
177
177
|
var stat;
|
|
178
178
|
return __generator(this, function(_a) {
|
|
179
179
|
switch (_a.label) {
|
|
@@ -201,7 +201,7 @@ var require_utils = __commonJS({
|
|
|
201
201
|
}
|
|
202
202
|
exports.getFullPath = getFullPath;
|
|
203
203
|
function tryAsync(fn, module2, requiredFor) {
|
|
204
|
-
return __awaiter(this,
|
|
204
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
205
205
|
return __generator(this, function(_a) {
|
|
206
206
|
switch (_a.label) {
|
|
207
207
|
case 0:
|
|
@@ -226,7 +226,7 @@ var require_utils = __commonJS({
|
|
|
226
226
|
/** @class */
|
|
227
227
|
function() {
|
|
228
228
|
function AsyncCache2(enabled) {
|
|
229
|
-
if (enabled ===
|
|
229
|
+
if (enabled === void 0) {
|
|
230
230
|
enabled = true;
|
|
231
231
|
}
|
|
232
232
|
this.enabled = enabled;
|
|
@@ -254,7 +254,7 @@ var require_utils = __commonJS({
|
|
|
254
254
|
var require_paths = __commonJS({
|
|
255
255
|
"../../node_modules/esbuild-plugin-vue3/dist/paths.js"(exports) {
|
|
256
256
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
257
|
-
if (k2 ===
|
|
257
|
+
if (k2 === void 0) k2 = k;
|
|
258
258
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
259
259
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
260
260
|
desc = { enumerable: true, get: function() {
|
|
@@ -263,7 +263,7 @@ var require_paths = __commonJS({
|
|
|
263
263
|
}
|
|
264
264
|
Object.defineProperty(o, k2, desc);
|
|
265
265
|
} : function(o, m, k, k2) {
|
|
266
|
-
if (k2 ===
|
|
266
|
+
if (k2 === void 0) k2 = k;
|
|
267
267
|
o[k2] = m[k];
|
|
268
268
|
});
|
|
269
269
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -373,17 +373,17 @@ var require_paths = __commonJS({
|
|
|
373
373
|
f = t = 0;
|
|
374
374
|
}
|
|
375
375
|
if (op[0] & 5) throw op[1];
|
|
376
|
-
return { value: op[0] ? op[1] :
|
|
376
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
380
|
-
exports.replaceRules = exports.loadRules =
|
|
380
|
+
exports.replaceRules = exports.loadRules = void 0;
|
|
381
381
|
var utils_1 = require_utils();
|
|
382
382
|
var fs = __importStar(__require("fs"));
|
|
383
383
|
var typescript_1 = __require("typescript");
|
|
384
384
|
var rules = [];
|
|
385
385
|
function loadRules(opts, tsconfigPath) {
|
|
386
|
-
return __awaiter(this,
|
|
386
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
387
387
|
var path, from, to;
|
|
388
388
|
return __generator(this, function(_a) {
|
|
389
389
|
switch (_a.label) {
|
|
@@ -415,7 +415,7 @@ var require_paths = __commonJS({
|
|
|
415
415
|
exports.loadRules = loadRules;
|
|
416
416
|
function loadFromTsconfig(path) {
|
|
417
417
|
var _a;
|
|
418
|
-
return __awaiter(this,
|
|
418
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
419
419
|
var _b, tsconfig, error, _c, _d, path_1, dests, from, to;
|
|
420
420
|
return __generator(this, function(_e) {
|
|
421
421
|
switch (_e.label) {
|
|
@@ -432,11 +432,11 @@ var require_paths = __commonJS({
|
|
|
432
432
|
_d = [path];
|
|
433
433
|
return [4, fs.promises.readFile(path)];
|
|
434
434
|
case 2:
|
|
435
|
-
_b = _c.apply(
|
|
435
|
+
_b = _c.apply(void 0, _d.concat([_e.sent().toString()])), tsconfig = _b.config, error = _b.error;
|
|
436
436
|
if (error) {
|
|
437
437
|
throw new Error("Failed to parse tsconfig.json: ".concat(JSON.stringify(error)));
|
|
438
438
|
}
|
|
439
|
-
if (!((_a = tsconfig === null || tsconfig ===
|
|
439
|
+
if (!((_a = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _a === void 0 ? void 0 : _a.paths)) {
|
|
440
440
|
return [
|
|
441
441
|
2
|
|
442
442
|
/*return*/
|
|
@@ -873,7 +873,7 @@ var require_format = __commonJS({
|
|
|
873
873
|
return spaceOptions;
|
|
874
874
|
}
|
|
875
875
|
function formatFrom(source) {
|
|
876
|
-
if (source ===
|
|
876
|
+
if (source === void 0 || source === false) {
|
|
877
877
|
return false;
|
|
878
878
|
}
|
|
879
879
|
if (typeof source == "object" && "breakWith" in source) {
|
|
@@ -1518,7 +1518,7 @@ var require_rounding_precision = __commonJS({
|
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
1520
|
function buildPrecisionFrom(source) {
|
|
1521
|
-
if (source === null || source ===
|
|
1521
|
+
if (source === null || source === void 0) {
|
|
1522
1522
|
return {};
|
|
1523
1523
|
}
|
|
1524
1524
|
if (typeof source == "boolean") {
|
|
@@ -1586,7 +1586,7 @@ var require_optimization_level = __commonJS({
|
|
|
1586
1586
|
replaceMultipleZeros: true,
|
|
1587
1587
|
replaceTimeUnits: true,
|
|
1588
1588
|
replaceZeroUnits: true,
|
|
1589
|
-
roundingPrecision: roundingPrecisionFrom(
|
|
1589
|
+
roundingPrecision: roundingPrecisionFrom(void 0),
|
|
1590
1590
|
selectorsSortingMethod: "standard",
|
|
1591
1591
|
specialComments: "all",
|
|
1592
1592
|
tidyAtRules: true,
|
|
@@ -1626,7 +1626,7 @@ var require_optimization_level = __commonJS({
|
|
|
1626
1626
|
var Zero = OptimizationLevel.Zero;
|
|
1627
1627
|
var One = OptimizationLevel.One;
|
|
1628
1628
|
var Two = OptimizationLevel.Two;
|
|
1629
|
-
if (
|
|
1629
|
+
if (void 0 === source) {
|
|
1630
1630
|
delete level[Two];
|
|
1631
1631
|
return level;
|
|
1632
1632
|
}
|
|
@@ -1713,7 +1713,7 @@ var require_optimization_level = __commonJS({
|
|
|
1713
1713
|
var i;
|
|
1714
1714
|
for (i = 0; i <= 2; i++) {
|
|
1715
1715
|
level = "" + i;
|
|
1716
|
-
if (level in clonedSource && (clonedSource[level] ===
|
|
1716
|
+
if (level in clonedSource && (clonedSource[level] === void 0 || clonedSource[level] === false)) {
|
|
1717
1717
|
delete clonedSource[level];
|
|
1718
1718
|
}
|
|
1719
1719
|
if (level in clonedSource && clonedSource[level] === true) {
|
|
@@ -2296,7 +2296,7 @@ var require_optimize2 = __commonJS({
|
|
|
2296
2296
|
function transformValue(propertyName, propertyValue, rule, transformCallback) {
|
|
2297
2297
|
var selector = serializeRules(rule);
|
|
2298
2298
|
var transformedValue = transformCallback(propertyName, propertyValue, selector);
|
|
2299
|
-
if (transformedValue ===
|
|
2299
|
+
if (transformedValue === void 0) {
|
|
2300
2300
|
return propertyValue;
|
|
2301
2301
|
} else if (transformedValue === false) {
|
|
2302
2302
|
return IgnoreProperty;
|
|
@@ -4999,7 +4999,7 @@ var require_merge_into_shorthands = __commonJS({
|
|
|
4999
4999
|
var shorthandDescriptor;
|
|
5000
5000
|
var candidateComponents;
|
|
5001
5001
|
for (shorthandName in candidates) {
|
|
5002
|
-
if (
|
|
5002
|
+
if (void 0 !== invalidatedBy && shorthandName == invalidatedBy.name) {
|
|
5003
5003
|
continue;
|
|
5004
5004
|
}
|
|
5005
5005
|
shorthandDescriptor = compactable[shorthandName];
|
|
@@ -5047,7 +5047,7 @@ var require_merge_into_shorthands = __commonJS({
|
|
|
5047
5047
|
var important;
|
|
5048
5048
|
var componentName;
|
|
5049
5049
|
for (componentName in components) {
|
|
5050
|
-
if (
|
|
5050
|
+
if (void 0 !== important && components[componentName].important != important) {
|
|
5051
5051
|
return true;
|
|
5052
5052
|
}
|
|
5053
5053
|
important = components[componentName].important;
|
|
@@ -7881,7 +7881,7 @@ var require_load_remote_resource = __commonJS({
|
|
|
7881
7881
|
url.parse(uri),
|
|
7882
7882
|
inlineRequest || {}
|
|
7883
7883
|
);
|
|
7884
|
-
if (inlineRequest.hostname !==
|
|
7884
|
+
if (inlineRequest.hostname !== void 0) {
|
|
7885
7885
|
requestOptions.protocol = inlineRequest.protocol || HTTP_PROTOCOL;
|
|
7886
7886
|
requestOptions.path = requestOptions.href;
|
|
7887
7887
|
}
|
|
@@ -7940,7 +7940,7 @@ var require_inline = __commonJS({
|
|
|
7940
7940
|
if (rules === false) {
|
|
7941
7941
|
return ["none"];
|
|
7942
7942
|
}
|
|
7943
|
-
return
|
|
7943
|
+
return void 0 === rules ? ["local"] : rules.split(",");
|
|
7944
7944
|
}
|
|
7945
7945
|
module.exports = inlineOptionsFrom;
|
|
7946
7946
|
}
|
|
@@ -7977,7 +7977,7 @@ var require_inline_timeout = __commonJS({
|
|
|
7977
7977
|
var require_rebase = __commonJS({
|
|
7978
7978
|
"../../node_modules/clean-css/lib/options/rebase.js"(exports, module) {
|
|
7979
7979
|
function rebaseFrom(rebaseOption) {
|
|
7980
|
-
return
|
|
7980
|
+
return void 0 === rebaseOption ? true : !!rebaseOption;
|
|
7981
7981
|
}
|
|
7982
7982
|
module.exports = rebaseFrom;
|
|
7983
7983
|
}
|
|
@@ -8758,7 +8758,7 @@ var require_tokenize = __commonJS({
|
|
|
8758
8758
|
var internalContext = {
|
|
8759
8759
|
level: Level.BLOCK,
|
|
8760
8760
|
position: {
|
|
8761
|
-
source: externalContext.source ||
|
|
8761
|
+
source: externalContext.source || void 0,
|
|
8762
8762
|
line: 1,
|
|
8763
8763
|
column: 0,
|
|
8764
8764
|
index: 0
|
|
@@ -9184,8 +9184,8 @@ var require_read_sources = __commonJS({
|
|
|
9184
9184
|
}
|
|
9185
9185
|
}
|
|
9186
9186
|
function fromString(input, context, callback) {
|
|
9187
|
-
context.source =
|
|
9188
|
-
context.sourcesContent[
|
|
9187
|
+
context.source = void 0;
|
|
9188
|
+
context.sourcesContent[void 0] = input;
|
|
9189
9189
|
context.stats.originalSize += input.length;
|
|
9190
9190
|
return fromStyles(input, context, { inline: context.options.inline }, callback);
|
|
9191
9191
|
}
|
|
@@ -9625,7 +9625,7 @@ var require_clean = __commonJS({
|
|
|
9625
9625
|
warnings: []
|
|
9626
9626
|
};
|
|
9627
9627
|
if (sourceMap) {
|
|
9628
|
-
context.inputSourceMapTracker.track(
|
|
9628
|
+
context.inputSourceMapTracker.track(void 0, sourceMap);
|
|
9629
9629
|
}
|
|
9630
9630
|
return runner(context.localOnly)(function() {
|
|
9631
9631
|
return readSources(input, context, function(tokens) {
|
|
@@ -10258,7 +10258,7 @@ var require_options = __commonJS({
|
|
|
10258
10258
|
var newOptions = {};
|
|
10259
10259
|
for (var i in defaults) {
|
|
10260
10260
|
if (defaults.hasOwnProperty(i)) {
|
|
10261
|
-
if (options[i] !==
|
|
10261
|
+
if (options[i] !== void 0) {
|
|
10262
10262
|
newOptions[i] = mergeOption(options[i], defaults[i]);
|
|
10263
10263
|
} else {
|
|
10264
10264
|
newOptions[i] = defaults[i];
|
|
@@ -10747,7 +10747,7 @@ var require_lib = __commonJS({
|
|
|
10747
10747
|
removeEmptyQueries: false,
|
|
10748
10748
|
removeRootTrailingSlash: true,
|
|
10749
10749
|
schemeRelative: true,
|
|
10750
|
-
site:
|
|
10750
|
+
site: void 0,
|
|
10751
10751
|
slashesDenoteHost: true
|
|
10752
10752
|
}
|
|
10753
10753
|
);
|
|
@@ -11937,7 +11937,7 @@ var require_html = __commonJS({
|
|
|
11937
11937
|
return __assign.apply(this, arguments);
|
|
11938
11938
|
};
|
|
11939
11939
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
11940
|
-
if (k2 ===
|
|
11940
|
+
if (k2 === void 0) k2 = k;
|
|
11941
11941
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11942
11942
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11943
11943
|
desc = { enumerable: true, get: function() {
|
|
@@ -11946,7 +11946,7 @@ var require_html = __commonJS({
|
|
|
11946
11946
|
}
|
|
11947
11947
|
Object.defineProperty(o, k2, desc);
|
|
11948
11948
|
} : function(o, m, k, k2) {
|
|
11949
|
-
if (k2 ===
|
|
11949
|
+
if (k2 === void 0) k2 = k;
|
|
11950
11950
|
o[k2] = m[k];
|
|
11951
11951
|
});
|
|
11952
11952
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -12056,16 +12056,16 @@ var require_html = __commonJS({
|
|
|
12056
12056
|
f = t = 0;
|
|
12057
12057
|
}
|
|
12058
12058
|
if (op[0] & 5) throw op[1];
|
|
12059
|
-
return { value: op[0] ? op[1] :
|
|
12059
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
12060
12060
|
}
|
|
12061
12061
|
};
|
|
12062
12062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12063
|
-
exports.generateIndexHTML =
|
|
12063
|
+
exports.generateIndexHTML = void 0;
|
|
12064
12064
|
var fs = __importStar(__require("fs"));
|
|
12065
12065
|
var path = __importStar(__require("path"));
|
|
12066
12066
|
var utils_1 = require_utils();
|
|
12067
12067
|
function generateIndexHTML(result, opts, min, inlineStyles) {
|
|
12068
|
-
return __awaiter(this,
|
|
12068
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
12069
12069
|
var cheerio, $, _a, _b, _i, _c, item, link, name_1, ext, script, link, _d, inlineStyles_1, style, el, html, minify;
|
|
12070
12070
|
return __generator(this, function(_e) {
|
|
12071
12071
|
switch (_e.label) {
|
|
@@ -12156,7 +12156,7 @@ var require_random = __commonJS({
|
|
|
12156
12156
|
var crypto_1 = __require("crypto");
|
|
12157
12157
|
var randomBytesClassic = crypto_1.randomBytes;
|
|
12158
12158
|
function default_1(seed) {
|
|
12159
|
-
if (seed ===
|
|
12159
|
+
if (seed === void 0) {
|
|
12160
12160
|
seed = randomBytesClassic(32);
|
|
12161
12161
|
}
|
|
12162
12162
|
randomBytes.seed = seed;
|
|
@@ -12193,7 +12193,7 @@ var require_dist = __commonJS({
|
|
|
12193
12193
|
return __assign.apply(this, arguments);
|
|
12194
12194
|
};
|
|
12195
12195
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
12196
|
-
if (k2 ===
|
|
12196
|
+
if (k2 === void 0) k2 = k;
|
|
12197
12197
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12198
12198
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12199
12199
|
desc = { enumerable: true, get: function() {
|
|
@@ -12202,7 +12202,7 @@ var require_dist = __commonJS({
|
|
|
12202
12202
|
}
|
|
12203
12203
|
Object.defineProperty(o, k2, desc);
|
|
12204
12204
|
} : function(o, m, k, k2) {
|
|
12205
|
-
if (k2 ===
|
|
12205
|
+
if (k2 === void 0) k2 = k;
|
|
12206
12206
|
o[k2] = m[k];
|
|
12207
12207
|
});
|
|
12208
12208
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -12312,7 +12312,7 @@ var require_dist = __commonJS({
|
|
|
12312
12312
|
f = t = 0;
|
|
12313
12313
|
}
|
|
12314
12314
|
if (op[0] & 5) throw op[1];
|
|
12315
|
-
return { value: op[0] ? op[1] :
|
|
12315
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
12316
12316
|
}
|
|
12317
12317
|
};
|
|
12318
12318
|
var __rest = exports && exports.__rest || function(s, e) {
|
|
@@ -12340,7 +12340,7 @@ var require_dist = __commonJS({
|
|
|
12340
12340
|
var html_1 = require_html();
|
|
12341
12341
|
var random_1 = __importDefault(require_random());
|
|
12342
12342
|
var vuePlugin = function(opts) {
|
|
12343
|
-
if (opts ===
|
|
12343
|
+
if (opts === void 0) {
|
|
12344
12344
|
opts = {};
|
|
12345
12345
|
}
|
|
12346
12346
|
return {
|
|
@@ -12348,7 +12348,7 @@ var require_dist = __commonJS({
|
|
|
12348
12348
|
setup: function(_a) {
|
|
12349
12349
|
var _b;
|
|
12350
12350
|
var buildOpts = _a.initialOptions, build = __rest(_a, ["initialOptions"]);
|
|
12351
|
-
return __awaiter(this,
|
|
12351
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
12352
12352
|
var generatedCSS, mustReplace, random, cache, transforms, _loop_1, name_1;
|
|
12353
12353
|
var _this = this;
|
|
12354
12354
|
return __generator(this, function(_c) {
|
|
@@ -12365,10 +12365,10 @@ var require_dist = __commonJS({
|
|
|
12365
12365
|
});
|
|
12366
12366
|
}
|
|
12367
12367
|
generatedCSS = [];
|
|
12368
|
-
return [4, (0, paths_1.loadRules)(opts, (_b = buildOpts.tsconfig) !== null && _b !==
|
|
12368
|
+
return [4, (0, paths_1.loadRules)(opts, (_b = buildOpts.tsconfig) !== null && _b !== void 0 ? _b : "tsconfig.json")];
|
|
12369
12369
|
case 1:
|
|
12370
12370
|
mustReplace = _c.sent();
|
|
12371
|
-
random = (0, random_1.default)(typeof opts.scopeId === "object" && typeof opts.scopeId.random === "string" ? opts.scopeId.random :
|
|
12371
|
+
random = (0, random_1.default)(typeof opts.scopeId === "object" && typeof opts.scopeId.random === "string" ? opts.scopeId.random : void 0);
|
|
12372
12372
|
cache = new utils_1.AsyncCache(!opts.disableCache);
|
|
12373
12373
|
transforms = {};
|
|
12374
12374
|
if (opts.directiveTransforms) {
|
|
@@ -12379,7 +12379,7 @@ var require_dist = __commonJS({
|
|
|
12379
12379
|
var _a2;
|
|
12380
12380
|
return {
|
|
12381
12381
|
key: core.createSimpleExpression(JSON.stringify(name), false),
|
|
12382
|
-
value: (_a2 = dir.exp) !== null && _a2 !==
|
|
12382
|
+
value: (_a2 = dir.exp) !== null && _a2 !== void 0 ? _a2 : core.createSimpleExpression("void 0", false),
|
|
12383
12383
|
loc: dir.loc,
|
|
12384
12384
|
type: 16
|
|
12385
12385
|
};
|
|
@@ -12392,7 +12392,7 @@ var require_dist = __commonJS({
|
|
|
12392
12392
|
}
|
|
12393
12393
|
var ret = propName_1(args[0], args[1], args[2]);
|
|
12394
12394
|
return {
|
|
12395
|
-
props: ret ===
|
|
12395
|
+
props: ret === void 0 ? [] : [transformation_1(args[0], ret)]
|
|
12396
12396
|
};
|
|
12397
12397
|
};
|
|
12398
12398
|
} else {
|
|
@@ -12410,7 +12410,7 @@ var require_dist = __commonJS({
|
|
|
12410
12410
|
}
|
|
12411
12411
|
if (mustReplace) {
|
|
12412
12412
|
build.onResolve({ filter: /.*/ }, function(args) {
|
|
12413
|
-
return __awaiter(_this,
|
|
12413
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
12414
12414
|
var aliased, fullPath, possible, _i, possible_1, postfix;
|
|
12415
12415
|
return __generator(this, function(_a2) {
|
|
12416
12416
|
switch (_a2.label) {
|
|
@@ -12461,7 +12461,7 @@ var require_dist = __commonJS({
|
|
|
12461
12461
|
});
|
|
12462
12462
|
}
|
|
12463
12463
|
build.onResolve({ filter: /\.vue/ }, function(args) {
|
|
12464
|
-
return __awaiter(_this,
|
|
12464
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
12465
12465
|
var params;
|
|
12466
12466
|
return __generator(this, function(_a2) {
|
|
12467
12467
|
params = (0, utils_1.getUrlParams)(args.path);
|
|
@@ -12475,7 +12475,7 @@ var require_dist = __commonJS({
|
|
|
12475
12475
|
});
|
|
12476
12476
|
build.onLoad({ filter: /\.vue$/ }, function(args) {
|
|
12477
12477
|
return cache.get([args.path, args.namespace], function() {
|
|
12478
|
-
return __awaiter(_this,
|
|
12478
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
12479
12479
|
var encPath, source, filename, id, descriptor, script, dataId, code, src, style, renderFuncName;
|
|
12480
12480
|
return __generator(this, function(_a2) {
|
|
12481
12481
|
switch (_a2.label) {
|
|
@@ -12489,7 +12489,7 @@ var require_dist = __commonJS({
|
|
|
12489
12489
|
descriptor = sfc.parse(source, {
|
|
12490
12490
|
filename
|
|
12491
12491
|
}).descriptor;
|
|
12492
|
-
script = descriptor.script || descriptor.scriptSetup ? sfc.compileScript(descriptor, { id, fs: typescript_1.default.sys }) :
|
|
12492
|
+
script = descriptor.script || descriptor.scriptSetup ? sfc.compileScript(descriptor, { id, fs: typescript_1.default.sys }) : void 0;
|
|
12493
12493
|
dataId = "data-v-" + id;
|
|
12494
12494
|
code = "";
|
|
12495
12495
|
if (descriptor.script || descriptor.scriptSetup) {
|
|
@@ -12526,7 +12526,7 @@ var require_dist = __commonJS({
|
|
|
12526
12526
|
});
|
|
12527
12527
|
build.onLoad({ filter: /.*/, namespace: "sfc-script" }, function(args) {
|
|
12528
12528
|
return cache.get([args.path, args.namespace], function() {
|
|
12529
|
-
return __awaiter(_this,
|
|
12529
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
12530
12530
|
var script, code, sourceMap;
|
|
12531
12531
|
return __generator(this, function(_a2) {
|
|
12532
12532
|
script = args.pluginData.script;
|
|
@@ -12552,7 +12552,7 @@ var require_dist = __commonJS({
|
|
|
12552
12552
|
});
|
|
12553
12553
|
build.onLoad({ filter: /.*/, namespace: "sfc-template" }, function(args) {
|
|
12554
12554
|
return cache.get([args.path, args.namespace], function() {
|
|
12555
|
-
return __awaiter(_this,
|
|
12555
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
12556
12556
|
var _a2, descriptor, id, script, source, pug, result;
|
|
12557
12557
|
return __generator(this, function(_b2) {
|
|
12558
12558
|
switch (_b2.label) {
|
|
@@ -12585,7 +12585,7 @@ var require_dist = __commonJS({
|
|
|
12585
12585
|
ssr: opts.renderSSR,
|
|
12586
12586
|
ssrCssVars: [],
|
|
12587
12587
|
isProd: process.env.NODE_ENV === "production" || buildOpts.minify,
|
|
12588
|
-
compilerOptions: __assign({ inSSR: opts.renderSSR, directiveTransforms: transforms, bindingMetadata: script === null || script ===
|
|
12588
|
+
compilerOptions: __assign({ inSSR: opts.renderSSR, directiveTransforms: transforms, bindingMetadata: script === null || script === void 0 ? void 0 : script.bindings }, opts.compilerOptions)
|
|
12589
12589
|
});
|
|
12590
12590
|
if (result.errors.length > 0) {
|
|
12591
12591
|
return [2, {
|
|
@@ -12617,7 +12617,7 @@ var require_dist = __commonJS({
|
|
|
12617
12617
|
});
|
|
12618
12618
|
build.onLoad({ filter: /.*/, namespace: "sfc-style" }, function(args) {
|
|
12619
12619
|
return cache.get([args.path, args.namespace], function() {
|
|
12620
|
-
return __awaiter(_this,
|
|
12620
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
12621
12621
|
var _a2, descriptor, index, id, style, includedFiles, result, errors, cssText, contents;
|
|
12622
12622
|
var _b2, _c2;
|
|
12623
12623
|
return __generator(this, function(_d) {
|
|
@@ -12630,8 +12630,8 @@ var require_dist = __commonJS({
|
|
|
12630
12630
|
filename: args.path,
|
|
12631
12631
|
id,
|
|
12632
12632
|
source: style.content,
|
|
12633
|
-
postcssOptions: (_b2 = opts.postcss) === null || _b2 ===
|
|
12634
|
-
postcssPlugins: (_c2 = opts.postcss) === null || _c2 ===
|
|
12633
|
+
postcssOptions: (_b2 = opts.postcss) === null || _b2 === void 0 ? void 0 : _b2.options,
|
|
12634
|
+
postcssPlugins: (_c2 = opts.postcss) === null || _c2 === void 0 ? void 0 : _c2.plugins,
|
|
12635
12635
|
preprocessLang: style.lang,
|
|
12636
12636
|
preprocessOptions: Object.assign({
|
|
12637
12637
|
includePaths: [
|
|
@@ -12700,24 +12700,24 @@ var require_dist = __commonJS({
|
|
|
12700
12700
|
});
|
|
12701
12701
|
});
|
|
12702
12702
|
build.onEnd(function(result) {
|
|
12703
|
-
return __awaiter(_this,
|
|
12703
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
12704
12704
|
var outDir;
|
|
12705
12705
|
var _a2, _b2, _c2, _d;
|
|
12706
12706
|
var _e, _f, _g;
|
|
12707
12707
|
return __generator(this, function(_h) {
|
|
12708
12708
|
switch (_h.label) {
|
|
12709
12709
|
case 0:
|
|
12710
|
-
if (!((opts === null || opts ===
|
|
12710
|
+
if (!((opts === null || opts === void 0 ? void 0 : opts.generateHTML) && result.errors.length == 0)) return [3, 2];
|
|
12711
12711
|
if (typeof opts.generateHTML === "string") {
|
|
12712
12712
|
opts.generateHTML = {
|
|
12713
12713
|
sourceFile: opts.generateHTML
|
|
12714
12714
|
};
|
|
12715
12715
|
}
|
|
12716
|
-
outDir = buildOpts.outdir ? buildOpts.outdir : buildOpts.outfile ? path.dirname(buildOpts.outfile) :
|
|
12717
|
-
(_a2 = (_e = opts.generateHTML).trimPath) !== null && _a2 !==
|
|
12718
|
-
(_b2 = (_f = opts.generateHTML).pathPrefix) !== null && _b2 !==
|
|
12719
|
-
(_c2 = (_g = opts.generateHTML).outFile) !== null && _c2 !==
|
|
12720
|
-
return [4, (0, html_1.generateIndexHTML)(result, opts.generateHTML, (_d = buildOpts.minify) !== null && _d !==
|
|
12716
|
+
outDir = buildOpts.outdir ? buildOpts.outdir : buildOpts.outfile ? path.dirname(buildOpts.outfile) : void 0;
|
|
12717
|
+
(_a2 = (_e = opts.generateHTML).trimPath) !== null && _a2 !== void 0 ? _a2 : _e.trimPath = outDir;
|
|
12718
|
+
(_b2 = (_f = opts.generateHTML).pathPrefix) !== null && _b2 !== void 0 ? _b2 : _f.pathPrefix = "/";
|
|
12719
|
+
(_c2 = (_g = opts.generateHTML).outFile) !== null && _c2 !== void 0 ? _c2 : _g.outFile = outDir && path.join(outDir, "index.html");
|
|
12720
|
+
return [4, (0, html_1.generateIndexHTML)(result, opts.generateHTML, (_d = buildOpts.minify) !== null && _d !== void 0 ? _d : false, opts.cssInline ? generatedCSS : void 0)];
|
|
12721
12721
|
case 1:
|
|
12722
12722
|
_h.sent();
|
|
12723
12723
|
_h.label = 2;
|
|
@@ -13224,7 +13224,7 @@ ${lines.join("\n")}`,
|
|
|
13224
13224
|
}).join("\n");
|
|
13225
13225
|
let sourcecode = `import { setup } from "${setupPath}";
|
|
13226
13226
|
`;
|
|
13227
|
-
let bindings =
|
|
13227
|
+
let bindings = void 0;
|
|
13228
13228
|
if (descriptor.script || descriptor.scriptSetup) {
|
|
13229
13229
|
const script = require$$0.compileScript(descriptor, {
|
|
13230
13230
|
id: scopeId,
|
|
@@ -13241,7 +13241,7 @@ ${lines.join("\n")}`,
|
|
|
13241
13241
|
compilerOptions: {
|
|
13242
13242
|
comments: false,
|
|
13243
13243
|
whitespace: "condense",
|
|
13244
|
-
scopeId: hasScoped ? scopeId :
|
|
13244
|
+
scopeId: hasScoped ? scopeId : void 0,
|
|
13245
13245
|
mode: "module"
|
|
13246
13246
|
}
|
|
13247
13247
|
}
|
|
@@ -13266,7 +13266,7 @@ ${lines.join("\n")}`,
|
|
|
13266
13266
|
bindingMetadata: bindings,
|
|
13267
13267
|
comments: false,
|
|
13268
13268
|
whitespace: "condense",
|
|
13269
|
-
scopeId: hasScoped ? scopeId :
|
|
13269
|
+
scopeId: hasScoped ? scopeId : void 0,
|
|
13270
13270
|
mode: "module"
|
|
13271
13271
|
}
|
|
13272
13272
|
});
|
|
@@ -13318,3 +13318,4 @@ html-minifier/src/htmlparser.js:
|
|
|
13318
13318
|
|
|
13319
13319
|
exports.export_vuePlugin = export_vuePlugin;
|
|
13320
13320
|
exports.generateCode = generateCode;
|
|
13321
|
+
//# sourceMappingURL=vue3-BhdC7RZQ.js.map
|