@forsakringskassan/docs-generator 2.18.0 → 2.19.1
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-CaJTFjAd.js → create-markdown-renderer-BVgcQwRq.js} +165 -123
- package/dist/create-markdown-renderer-BVgcQwRq.js.map +1 -0
- package/dist/index.d.ts +64 -26
- package/dist/index.js +68 -55
- 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/runtime.js +18 -16
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-Bagon7WF.js → vendor-BO0JjPoU.js} +47 -17
- package/dist/vendor-BO0JjPoU.js.map +1 -0
- package/dist/{vue3-CEAR7ggN.js → vue3-BitM0YmN.js} +69 -68
- package/dist/vue3-BitM0YmN.js.map +1 -0
- package/package.json +2 -2
package/dist/markdown.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*/
|
|
4
|
+
export declare interface ComponentAttribute {
|
|
2
5
|
/** component name */
|
|
3
6
|
name: string;
|
|
4
7
|
/** optional hint (glob pattern) how to find the component */
|
|
@@ -13,25 +16,7 @@ export declare function createMarkdownRenderer(options: MarkdownOptions): Markdo
|
|
|
13
16
|
/**
|
|
14
17
|
* @public
|
|
15
18
|
*/
|
|
16
|
-
declare
|
|
17
|
-
/** unique identifier for this document */
|
|
18
|
-
id: string;
|
|
19
|
-
/** human-readable pseudo-identifier for this document (consider it unique but there is no contraint enforcing this) */
|
|
20
|
-
name: string;
|
|
21
|
-
/** alternative names this document can be referenced by */
|
|
22
|
-
alias: string[];
|
|
23
|
-
/** true if document should be visible in menu and similar sources */
|
|
24
|
-
visible: boolean;
|
|
25
|
-
attributes: NormalizedDocumentAttributes;
|
|
26
|
-
body: string;
|
|
27
|
-
/** Document outline (i.e. the heading structure) */
|
|
28
|
-
outline: DocumentOutline;
|
|
29
|
-
/** format of body */
|
|
30
|
-
format: "markdown" | "html" | "json" | "redirect";
|
|
31
|
-
tags: string[];
|
|
32
|
-
template: string;
|
|
33
|
-
fileInfo: FileInfo;
|
|
34
|
-
}
|
|
19
|
+
declare type Document_2 = DocumentPage | DocumentPartial;
|
|
35
20
|
export { Document_2 as Document }
|
|
36
21
|
|
|
37
22
|
/**
|
|
@@ -62,6 +47,59 @@ export declare interface DocumentOutlineEntry {
|
|
|
62
47
|
subheadings: DocumentOutline;
|
|
63
48
|
}
|
|
64
49
|
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export declare interface DocumentPage {
|
|
54
|
+
/** discriminator */
|
|
55
|
+
kind: "page";
|
|
56
|
+
/** unique identifier for this document */
|
|
57
|
+
id: string;
|
|
58
|
+
/** human-readable pseudo-identifier for this document (consider it unique but there is no contraint enforcing this) */
|
|
59
|
+
name: string;
|
|
60
|
+
/** alternative names this document can be referenced by */
|
|
61
|
+
alias: string[];
|
|
62
|
+
/** true if document should be visible in menu and similar sources */
|
|
63
|
+
visible: boolean;
|
|
64
|
+
attributes: NormalizedDocumentAttributes;
|
|
65
|
+
/** content of this document */
|
|
66
|
+
body: string;
|
|
67
|
+
/** Document outline (i.e. the heading structure) */
|
|
68
|
+
outline: DocumentOutline;
|
|
69
|
+
/** format of body */
|
|
70
|
+
format: "markdown" | "html" | "json" | "redirect";
|
|
71
|
+
tags: string[];
|
|
72
|
+
template: string;
|
|
73
|
+
fileInfo: FileInfo;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* A partial document for inclusion in other documents.
|
|
78
|
+
*
|
|
79
|
+
* A partial document will never have an output file and only a limited number
|
|
80
|
+
* of parameters.
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare interface DocumentPartial {
|
|
85
|
+
/** discriminator */
|
|
86
|
+
kind: "partial";
|
|
87
|
+
/** unique identifier for this document */
|
|
88
|
+
id: string;
|
|
89
|
+
/** human-readable pseudo-identifier for this document (consider it unique but there is no contraint enforcing this) */
|
|
90
|
+
name: string;
|
|
91
|
+
/** alternative names this document can be referenced by */
|
|
92
|
+
alias: string[];
|
|
93
|
+
/** content of this document */
|
|
94
|
+
body: string | ((tags: string[]) => string);
|
|
95
|
+
/** format of body */
|
|
96
|
+
format: "markdown" | "html" | "json";
|
|
97
|
+
fileInfo: {
|
|
98
|
+
/** original source of this document, if available */
|
|
99
|
+
fullPath: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
65
103
|
/**
|
|
66
104
|
* Represents an example needing compilation.
|
|
67
105
|
*
|
|
@@ -205,7 +243,7 @@ export declare interface MarkdownRenderer {
|
|
|
205
243
|
* @param content - Markdown content to render.
|
|
206
244
|
* @returns HTML rendered from markdown content.
|
|
207
245
|
*/
|
|
208
|
-
render(doc:
|
|
246
|
+
render(doc: DocumentPage, content: string): string;
|
|
209
247
|
}
|
|
210
248
|
|
|
211
249
|
/**
|
|
@@ -217,7 +255,7 @@ export declare interface NormalizedDocumentAttributes {
|
|
|
217
255
|
layout?: string;
|
|
218
256
|
status?: string;
|
|
219
257
|
badge?: DocumentBadge;
|
|
220
|
-
component?:
|
|
258
|
+
component?: ComponentAttribute[];
|
|
221
259
|
href?: string;
|
|
222
260
|
/** normalized sortorder (defaults to Infinity) */
|
|
223
261
|
sortorder: number;
|
|
@@ -250,6 +288,11 @@ export declare interface SoftErrorDetails {
|
|
|
250
288
|
title: string;
|
|
251
289
|
};
|
|
252
290
|
ELINKFORMAT: undefined;
|
|
291
|
+
ELINKPARTIAL: {
|
|
292
|
+
key: string;
|
|
293
|
+
hash: string;
|
|
294
|
+
title: string;
|
|
295
|
+
};
|
|
253
296
|
EINCLUDETARGET: {
|
|
254
297
|
id: string;
|
|
255
298
|
};
|
package/dist/markdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createMarkdownRenderer = require('./create-markdown-renderer-
|
|
4
|
-
require('./vendor-
|
|
3
|
+
var createMarkdownRenderer = require('./create-markdown-renderer-BVgcQwRq.js');
|
|
4
|
+
require('./vendor-BO0JjPoU.js');
|
|
5
5
|
require('node:url');
|
|
6
6
|
require('node:path');
|
|
7
7
|
require('fs');
|
|
@@ -37,9 +37,10 @@ require('querystring');
|
|
|
37
37
|
require('node:path/posix');
|
|
38
38
|
require('node:crypto');
|
|
39
39
|
require('vue');
|
|
40
|
-
require('./vue3-
|
|
40
|
+
require('./vue3-BitM0YmN.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
exports.SoftError = createMarkdownRenderer.SoftError;
|
|
45
45
|
exports.createMarkdownRenderer = createMarkdownRenderer.createMarkdownRenderer;
|
|
46
|
+
//# sourceMappingURL=markdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -78,6 +78,7 @@ var require_re = __commonJS({
|
|
|
78
78
|
var re = exports.re = [];
|
|
79
79
|
var safeRe = exports.safeRe = [];
|
|
80
80
|
var src = exports.src = [];
|
|
81
|
+
var safeSrc = exports.safeSrc = [];
|
|
81
82
|
var t = exports.t = {};
|
|
82
83
|
var R = 0;
|
|
83
84
|
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
@@ -98,6 +99,7 @@ var require_re = __commonJS({
|
|
|
98
99
|
debug(name, index, value);
|
|
99
100
|
t[name] = index;
|
|
100
101
|
src[index] = value;
|
|
102
|
+
safeSrc[index] = safe;
|
|
101
103
|
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
102
104
|
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
103
105
|
};
|
|
@@ -194,7 +196,7 @@ var require_semver = __commonJS({
|
|
|
194
196
|
"node_modules/semver/classes/semver.js"(exports, module2) {
|
|
195
197
|
var debug = require_debug();
|
|
196
198
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
197
|
-
var { safeRe: re, t } = require_re();
|
|
199
|
+
var { safeRe: re, safeSrc: src, t } = require_re();
|
|
198
200
|
var parseOptions = require_parse_options();
|
|
199
201
|
var { compareIdentifiers } = require_identifiers();
|
|
200
202
|
var SemVer = class _SemVer {
|
|
@@ -339,7 +341,8 @@ var require_semver = __commonJS({
|
|
|
339
341
|
throw new Error("invalid increment argument: identifier is empty");
|
|
340
342
|
}
|
|
341
343
|
if (identifier) {
|
|
342
|
-
const
|
|
344
|
+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
|
|
345
|
+
const match = `-${identifier}`.match(r);
|
|
343
346
|
if (!match || match[1] !== identifier) {
|
|
344
347
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
345
348
|
}
|
package/dist/runtime.js
CHANGED
|
@@ -1314,9 +1314,9 @@ function lookupGetter(object3, prop) {
|
|
|
1314
1314
|
function createDOMPurify() {
|
|
1315
1315
|
let window3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
1316
1316
|
const DOMPurify = (root4) => createDOMPurify(root4);
|
|
1317
|
-
DOMPurify.version = "3.2.
|
|
1317
|
+
DOMPurify.version = "3.2.4";
|
|
1318
1318
|
DOMPurify.removed = [];
|
|
1319
|
-
if (!window3 || !window3.document || window3.document.nodeType !== NODE_TYPE.document) {
|
|
1319
|
+
if (!window3 || !window3.document || window3.document.nodeType !== NODE_TYPE.document || !window3.Element) {
|
|
1320
1320
|
DOMPurify.isSupported = false;
|
|
1321
1321
|
return DOMPurify;
|
|
1322
1322
|
}
|
|
@@ -1820,7 +1820,7 @@ function createDOMPurify() {
|
|
|
1820
1820
|
const {
|
|
1821
1821
|
attributes
|
|
1822
1822
|
} = currentNode;
|
|
1823
|
-
if (!attributes) {
|
|
1823
|
+
if (!attributes || _isClobbered(currentNode)) {
|
|
1824
1824
|
return;
|
|
1825
1825
|
}
|
|
1826
1826
|
const hookEvent = {
|
|
@@ -1911,13 +1911,11 @@ function createDOMPurify() {
|
|
|
1911
1911
|
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
1912
1912
|
while (shadowNode = shadowIterator.nextNode()) {
|
|
1913
1913
|
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
}
|
|
1914
|
+
_sanitizeElements(shadowNode);
|
|
1915
|
+
_sanitizeAttributes(shadowNode);
|
|
1917
1916
|
if (shadowNode.content instanceof DocumentFragment2) {
|
|
1918
1917
|
_sanitizeShadowDOM2(shadowNode.content);
|
|
1919
1918
|
}
|
|
1920
|
-
_sanitizeAttributes(shadowNode);
|
|
1921
1919
|
}
|
|
1922
1920
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
1923
1921
|
};
|
|
@@ -1983,13 +1981,11 @@ function createDOMPurify() {
|
|
|
1983
1981
|
}
|
|
1984
1982
|
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
1985
1983
|
while (currentNode = nodeIterator.nextNode()) {
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
}
|
|
1984
|
+
_sanitizeElements(currentNode);
|
|
1985
|
+
_sanitizeAttributes(currentNode);
|
|
1989
1986
|
if (currentNode.content instanceof DocumentFragment2) {
|
|
1990
1987
|
_sanitizeShadowDOM(currentNode.content);
|
|
1991
1988
|
}
|
|
1992
|
-
_sanitizeAttributes(currentNode);
|
|
1993
1989
|
}
|
|
1994
1990
|
if (IN_PLACE) {
|
|
1995
1991
|
return dirty;
|
|
@@ -2042,7 +2038,11 @@ function createDOMPurify() {
|
|
|
2042
2038
|
}
|
|
2043
2039
|
arrayPush(hooks[entryPoint], hookFunction);
|
|
2044
2040
|
};
|
|
2045
|
-
DOMPurify.removeHook = function(entryPoint) {
|
|
2041
|
+
DOMPurify.removeHook = function(entryPoint, hookFunction) {
|
|
2042
|
+
if (hookFunction !== void 0) {
|
|
2043
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
|
2044
|
+
return index === -1 ? void 0 : arraySplice(hooks[entryPoint], index, 1)[0];
|
|
2045
|
+
}
|
|
2046
2046
|
return arrayPop(hooks[entryPoint]);
|
|
2047
2047
|
};
|
|
2048
2048
|
DOMPurify.removeHooks = function(entryPoint) {
|
|
@@ -2053,7 +2053,7 @@ function createDOMPurify() {
|
|
|
2053
2053
|
};
|
|
2054
2054
|
return DOMPurify;
|
|
2055
2055
|
}
|
|
2056
|
-
var entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor, freeze, seal, create, apply, construct, arrayForEach, arrayPop, arrayPush, stringToLowerCase, stringToString, stringMatch, stringReplace, stringIndexOf, stringTrim, objectHasOwnProperty, regExpTest, typeErrorCreate, html$1, svg$1, svgFilters, svgDisallowed, mathMl$1, mathMlDisallowed, text, html, svg, mathMl, xml, MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR, DATA_ATTR, ARIA_ATTR, IS_ALLOWED_URI, IS_SCRIPT_OR_DATA, ATTR_WHITESPACE, DOCTYPE_NAME, CUSTOM_ELEMENT, EXPRESSIONS, NODE_TYPE, getGlobal, _createTrustedTypesPolicy, _createHooksMap, purify;
|
|
2056
|
+
var entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor, freeze, seal, create, apply, construct, arrayForEach, arrayLastIndexOf, arrayPop, arrayPush, arraySplice, stringToLowerCase, stringToString, stringMatch, stringReplace, stringIndexOf, stringTrim, objectHasOwnProperty, regExpTest, typeErrorCreate, html$1, svg$1, svgFilters, svgDisallowed, mathMl$1, mathMlDisallowed, text, html, svg, mathMl, xml, MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR, DATA_ATTR, ARIA_ATTR, IS_ALLOWED_URI, IS_SCRIPT_OR_DATA, ATTR_WHITESPACE, DOCTYPE_NAME, CUSTOM_ELEMENT, EXPRESSIONS, NODE_TYPE, getGlobal, _createTrustedTypesPolicy, _createHooksMap, purify;
|
|
2057
2057
|
var init_purify_es = __esm({
|
|
2058
2058
|
"node_modules/dompurify/dist/purify.es.mjs"() {
|
|
2059
2059
|
({
|
|
@@ -2093,8 +2093,10 @@ var init_purify_es = __esm({
|
|
|
2093
2093
|
};
|
|
2094
2094
|
}
|
|
2095
2095
|
arrayForEach = unapply(Array.prototype.forEach);
|
|
2096
|
+
arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
2096
2097
|
arrayPop = unapply(Array.prototype.pop);
|
|
2097
2098
|
arrayPush = unapply(Array.prototype.push);
|
|
2099
|
+
arraySplice = unapply(Array.prototype.splice);
|
|
2098
2100
|
stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
2099
2101
|
stringToString = unapply(String.prototype.toString);
|
|
2100
2102
|
stringMatch = unapply(String.prototype.match);
|
|
@@ -2117,8 +2119,8 @@ var init_purify_es = __esm({
|
|
|
2117
2119
|
xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
2118
2120
|
MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
2119
2121
|
ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
2120
|
-
TMPLIT_EXPR = seal(
|
|
2121
|
-
DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]
|
|
2122
|
+
TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
2123
|
+
DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
2122
2124
|
ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
2123
2125
|
IS_ALLOWED_URI = seal(
|
|
2124
2126
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
@@ -142997,7 +142999,7 @@ window.toggleMarkup = toggleMarkup;
|
|
|
142997
142999
|
/*! Bundled license information:
|
|
142998
143000
|
|
|
142999
143001
|
dompurify/dist/purify.es.mjs:
|
|
143000
|
-
(*! @license DOMPurify 3.2.
|
|
143002
|
+
(*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE *)
|
|
143001
143003
|
|
|
143002
143004
|
mermaid/dist/chunks/mermaid.core/chunk-S3SWNSAA.mjs:
|
|
143003
143005
|
(*! Bundled license information:
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -663,7 +663,7 @@ const decodeMap = new Map([
|
|
|
663
663
|
*/
|
|
664
664
|
const fromCodePoint$1 =
|
|
665
665
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
666
|
-
(_a = String.fromCodePoint) !== null && _a !==
|
|
666
|
+
(_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function (codePoint) {
|
|
667
667
|
let output = "";
|
|
668
668
|
if (codePoint > 0xffff) {
|
|
669
669
|
codePoint -= 0x10000;
|
|
@@ -683,7 +683,7 @@ function replaceCodePoint(codePoint) {
|
|
|
683
683
|
if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) {
|
|
684
684
|
return 0xfffd;
|
|
685
685
|
}
|
|
686
|
-
return (_a = decodeMap.get(codePoint)) !== null && _a !==
|
|
686
|
+
return (_a = decodeMap.get(codePoint)) !== null && _a !== void 0 ? _a : codePoint;
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
var CharCodes;
|
|
@@ -927,7 +927,7 @@ class EntityDecoder {
|
|
|
927
927
|
var _a;
|
|
928
928
|
// Ensure we consumed at least one digit.
|
|
929
929
|
if (this.consumed <= expectedLength) {
|
|
930
|
-
(_a = this.errors) === null || _a ===
|
|
930
|
+
(_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
931
931
|
return 0;
|
|
932
932
|
}
|
|
933
933
|
// Figure out if this is a legit end of the entity
|
|
@@ -1002,7 +1002,7 @@ class EntityDecoder {
|
|
|
1002
1002
|
const { result, decodeTree } = this;
|
|
1003
1003
|
const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
1004
1004
|
this.emitNamedEntityData(result, valueLength, this.consumed);
|
|
1005
|
-
(_a = this.errors) === null || _a ===
|
|
1005
|
+
(_a = this.errors) === null || _a === void 0 ? void 0 : _a.missingSemicolonAfterCharacterReference();
|
|
1006
1006
|
return this.consumed;
|
|
1007
1007
|
}
|
|
1008
1008
|
/**
|
|
@@ -1051,7 +1051,7 @@ class EntityDecoder {
|
|
|
1051
1051
|
return this.emitNumericEntity(0, 3);
|
|
1052
1052
|
}
|
|
1053
1053
|
case EntityDecoderState.NumericStart: {
|
|
1054
|
-
(_a = this.errors) === null || _a ===
|
|
1054
|
+
(_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
1055
1055
|
return 0;
|
|
1056
1056
|
}
|
|
1057
1057
|
case EntityDecoderState.EntityStart: {
|
|
@@ -7332,6 +7332,16 @@ function ucs2decode(string) {
|
|
|
7332
7332
|
return output;
|
|
7333
7333
|
}
|
|
7334
7334
|
|
|
7335
|
+
/**
|
|
7336
|
+
* Creates a string based on an array of numeric code points.
|
|
7337
|
+
* @see `punycode.ucs2.decode`
|
|
7338
|
+
* @memberOf punycode.ucs2
|
|
7339
|
+
* @name encode
|
|
7340
|
+
* @param {Array} codePoints The array of numeric code points.
|
|
7341
|
+
* @returns {String} The new Unicode string (UCS-2).
|
|
7342
|
+
*/
|
|
7343
|
+
const ucs2encode = codePoints => String.fromCodePoint(...codePoints);
|
|
7344
|
+
|
|
7335
7345
|
/**
|
|
7336
7346
|
* Converts a basic code point into a digit/integer.
|
|
7337
7347
|
* @see `digitToBasic()`
|
|
@@ -7617,6 +7627,25 @@ const toASCII = function(input) {
|
|
|
7617
7627
|
|
|
7618
7628
|
/** Define the public API */
|
|
7619
7629
|
const punycode = {
|
|
7630
|
+
/**
|
|
7631
|
+
* A string representing the current Punycode.js version number.
|
|
7632
|
+
* @memberOf punycode
|
|
7633
|
+
* @type String
|
|
7634
|
+
*/
|
|
7635
|
+
'version': '2.3.1',
|
|
7636
|
+
/**
|
|
7637
|
+
* An object of methods to convert from JavaScript's internal character
|
|
7638
|
+
* representation (UCS-2) to Unicode code points, and back.
|
|
7639
|
+
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
7640
|
+
* @memberOf punycode
|
|
7641
|
+
* @type Object
|
|
7642
|
+
*/
|
|
7643
|
+
'ucs2': {
|
|
7644
|
+
'decode': ucs2decode,
|
|
7645
|
+
'encode': ucs2encode
|
|
7646
|
+
},
|
|
7647
|
+
'decode': decode,
|
|
7648
|
+
'encode': encode,
|
|
7620
7649
|
'toASCII': toASCII,
|
|
7621
7650
|
'toUnicode': toUnicode
|
|
7622
7651
|
};
|
|
@@ -25544,7 +25573,7 @@ Diff.prototype = {
|
|
|
25544
25573
|
if (options.maxEditLength != null) {
|
|
25545
25574
|
maxEditLength = Math.min(maxEditLength, options.maxEditLength);
|
|
25546
25575
|
}
|
|
25547
|
-
var maxExecutionTime = (_options$timeout = options.timeout) !== null && _options$timeout !==
|
|
25576
|
+
var maxExecutionTime = (_options$timeout = options.timeout) !== null && _options$timeout !== void 0 ? _options$timeout : Infinity;
|
|
25548
25577
|
var abortAfterTimestamp = Date.now() + maxExecutionTime;
|
|
25549
25578
|
var bestPath = [{
|
|
25550
25579
|
oldPos: -1,
|
|
@@ -25581,7 +25610,7 @@ Diff.prototype = {
|
|
|
25581
25610
|
// Main worker method. checks all permutations of a given edit length for acceptance.
|
|
25582
25611
|
function execEditLength() {
|
|
25583
25612
|
for (var diagonalPath = Math.max(minDiagonalToConsider, -editLength); diagonalPath <= Math.min(maxDiagonalToConsider, editLength); diagonalPath += 2) {
|
|
25584
|
-
var basePath =
|
|
25613
|
+
var basePath = void 0;
|
|
25585
25614
|
var removePath = bestPath[diagonalPath - 1],
|
|
25586
25615
|
addPath = bestPath[diagonalPath + 1];
|
|
25587
25616
|
if (removePath) {
|
|
@@ -26212,7 +26241,7 @@ function _objectSpread2(e) {
|
|
|
26212
26241
|
function _toPrimitive(t, r) {
|
|
26213
26242
|
if ("object" != typeof t || !t) return t;
|
|
26214
26243
|
var e = t[Symbol.toPrimitive];
|
|
26215
|
-
if (
|
|
26244
|
+
if (void 0 !== e) {
|
|
26216
26245
|
var i = e.call(t, r);
|
|
26217
26246
|
if ("object" != typeof i) return i;
|
|
26218
26247
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -26280,7 +26309,7 @@ jsonDiff.tokenize = lineDiff.tokenize;
|
|
|
26280
26309
|
jsonDiff.castInput = function (value, options) {
|
|
26281
26310
|
var undefinedReplacement = options.undefinedReplacement,
|
|
26282
26311
|
_options$stringifyRep = options.stringifyReplacer,
|
|
26283
|
-
stringifyReplacer = _options$stringifyRep ===
|
|
26312
|
+
stringifyReplacer = _options$stringifyRep === void 0 ? function (k, v) {
|
|
26284
26313
|
return typeof v === 'undefined' ? undefinedReplacement : v;
|
|
26285
26314
|
} : _options$stringifyRep;
|
|
26286
26315
|
return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' ');
|
|
@@ -26520,7 +26549,7 @@ function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader
|
|
|
26520
26549
|
callback: options
|
|
26521
26550
|
};
|
|
26522
26551
|
}
|
|
26523
|
-
if (!((_options2 = options) !== null && _options2 !==
|
|
26552
|
+
if (!((_options2 = options) !== null && _options2 !== void 0 && _options2.callback)) {
|
|
26524
26553
|
var patchObj = structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options);
|
|
26525
26554
|
if (!patchObj) {
|
|
26526
26555
|
return;
|
|
@@ -45766,15 +45795,15 @@ function requireRing_buffer () {
|
|
|
45766
45795
|
};
|
|
45767
45796
|
|
|
45768
45797
|
RingBuffer.prototype.peek = function() {
|
|
45769
|
-
if (this.length === 0) return
|
|
45798
|
+
if (this.length === 0) return void 0;
|
|
45770
45799
|
return this._buffer[this._head];
|
|
45771
45800
|
};
|
|
45772
45801
|
|
|
45773
45802
|
RingBuffer.prototype.shift = function() {
|
|
45774
|
-
if (this.length === 0) return
|
|
45803
|
+
if (this.length === 0) return void 0;
|
|
45775
45804
|
|
|
45776
45805
|
var value = this._buffer[this._head];
|
|
45777
|
-
this._buffer[this._head] =
|
|
45806
|
+
this._buffer[this._head] = void 0;
|
|
45778
45807
|
this.length -= 1;
|
|
45779
45808
|
this._ringOffset -= 1;
|
|
45780
45809
|
|
|
@@ -50830,7 +50859,7 @@ function requireGetIntrinsic () {
|
|
|
50830
50859
|
if (!allowMissing) {
|
|
50831
50860
|
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
50832
50861
|
}
|
|
50833
|
-
return
|
|
50862
|
+
return void 0;
|
|
50834
50863
|
}
|
|
50835
50864
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
50836
50865
|
var desc = $gOPD(value, part);
|
|
@@ -52203,7 +52232,7 @@ function requireStringify () {
|
|
|
52203
52232
|
var tmpSc = sideChannel;
|
|
52204
52233
|
var step = 0;
|
|
52205
52234
|
var findFlag = false;
|
|
52206
|
-
while ((tmpSc = tmpSc.get(sentinel)) !==
|
|
52235
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
52207
52236
|
// Where object last appeared in the ref tree
|
|
52208
52237
|
var pos = tmpSc.get(object);
|
|
52209
52238
|
step += 1;
|
|
@@ -52260,7 +52289,7 @@ function requireStringify () {
|
|
|
52260
52289
|
if (encodeValuesOnly && encoder) {
|
|
52261
52290
|
obj = utils.maybeMap(obj, encoder);
|
|
52262
52291
|
}
|
|
52263
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null :
|
|
52292
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void 0 }];
|
|
52264
52293
|
} else if (isArray(filter)) {
|
|
52265
52294
|
objKeys = filter;
|
|
52266
52295
|
} else {
|
|
@@ -53177,7 +53206,7 @@ function requireServer () {
|
|
|
53177
53206
|
}, {
|
|
53178
53207
|
key: 'param',
|
|
53179
53208
|
value: function param(name, req) {
|
|
53180
|
-
var param =
|
|
53209
|
+
var param = void 0;
|
|
53181
53210
|
if (req.body && req.body[name]) param = req.body[name];else if (req.params && req.params[name]) param = req.params[name];else if (req.query && req.query[name]) param = req.query[name];
|
|
53182
53211
|
|
|
53183
53212
|
// normalize files array
|
|
@@ -53287,3 +53316,4 @@ exports.minimatch = minimatch;
|
|
|
53287
53316
|
exports.spawn = spawn;
|
|
53288
53317
|
exports.tinylr = tinylr;
|
|
53289
53318
|
exports.watch = watch$1;
|
|
53319
|
+
//# sourceMappingURL=vendor-BO0JjPoU.js.map
|