@intlify/core 12.0.0-alpha.8 → 12.0.0-alpha.9
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/core.esm-browser.js +5 -5
- package/dist/core.esm-browser.prod.js +3 -3
- package/dist/core.global.js +5 -5
- package/dist/core.global.prod.js +3 -3
- package/dist/core.js +1 -1
- package/dist/core.node.js +1 -1
- package/dist/core.runtime.esm-browser.js +5 -5
- package/dist/core.runtime.esm-browser.prod.js +3 -3
- package/dist/core.runtime.global.js +5 -5
- package/dist/core.runtime.global.prod.js +3 -3
- package/dist/core.runtime.js +1 -1
- package/dist/core.runtime.node.js +1 -1
- package/package.json +3 -3
package/dist/core.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -155,8 +155,8 @@ const eventHandlerPattern = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i;
|
|
|
155
155
|
const eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
|
|
156
156
|
const srcdocPattern = /(?:^|[\s"'<>/])srcdoc\s*=/i;
|
|
157
157
|
const srcdocAttributePattern = /(^|[\s"'<>/])s(rcdoc\s*=)/gi;
|
|
158
|
-
const dangerousElementPattern = /<(?:base|animate|set)(?=[\s/>]|$)/i;
|
|
159
|
-
const dangerousElementStartTagPattern = /<(base|animate|set)(?=[\s/>]|$)/gi;
|
|
158
|
+
const dangerousElementPattern = /<(?:base|animate|set|script)(?=[\s/>]|$)/i;
|
|
159
|
+
const dangerousElementStartTagPattern = /<(base|animate|set|script)(?=[\s/>]|$)/gi;
|
|
160
160
|
const unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
161
161
|
function decodeNumericCharacterReference(match, hex, decimal) {
|
|
162
162
|
const digits = hex || decimal;
|
|
@@ -217,7 +217,7 @@ function sanitizeTranslatedHtml(html) {
|
|
|
217
217
|
html = html.replace(srcdocAttributePattern, "$1s$2");
|
|
218
218
|
}
|
|
219
219
|
if (dangerousElementPattern.test(html)) {
|
|
220
|
-
warn("Potentially dangerous element (<base>, <animate> or <
|
|
220
|
+
warn("Potentially dangerous element (<base>, <animate>, <set> or <script>) detected in translation. Consider removing it from your translation messages.");
|
|
221
221
|
html = html.replace(dangerousElementStartTagPattern, "<$1");
|
|
222
222
|
}
|
|
223
223
|
html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
|
|
@@ -1789,7 +1789,7 @@ function getWarnMessage(code, ...args) {
|
|
|
1789
1789
|
* Intlify core-base version
|
|
1790
1790
|
* @internal
|
|
1791
1791
|
*/
|
|
1792
|
-
const VERSION = "12.0.0-alpha.
|
|
1792
|
+
const VERSION = "12.0.0-alpha.9";
|
|
1793
1793
|
const NOT_RESOLVED = -1;
|
|
1794
1794
|
const DEFAULT_LOCALE = "en-US";
|
|
1795
1795
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/ const e = /\{([0-9a-z]+)\}/gi;
|
|
@@ -34,7 +34,7 @@ function D(e) {
|
|
|
34
34
|
function ee(e) {
|
|
35
35
|
return e.replace(/&(?![a-z0-9#]{2,6};)/gi, `&`).replace(/"/g, `"`).replace(/'/g, `'`).replace(/</g, `<`).replace(/>/g, `>`);
|
|
36
36
|
}
|
|
37
|
-
const te = /^javascript:/i, ne = /^(?:href|xlink:href|src|action|formaction)$/i, re = /&#(?:x([0-9a-f]+)|(\d+));?/gi, O = /&(?:Tab|NewLine);/g, ie = /:?/gi, ae = /[\u0000-\u0020\u007f-\u009f]/g, oe = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, se = /(^|[\s"'<>/])on(\w+\s*=)/gi, ce = /(?:^|[\s"'<>/])srcdoc\s*=/i, le = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, ue = /<(?:base|animate|set)(?=[\s/>]|$)/i, de = /<(base|animate|set)(?=[\s/>]|$)/gi, fe = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
37
|
+
const te = /^javascript:/i, ne = /^(?:href|xlink:href|src|action|formaction)$/i, re = /&#(?:x([0-9a-f]+)|(\d+));?/gi, O = /&(?:Tab|NewLine);/g, ie = /:?/gi, ae = /[\u0000-\u0020\u007f-\u009f]/g, oe = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, se = /(^|[\s"'<>/])on(\w+\s*=)/gi, ce = /(?:^|[\s"'<>/])srcdoc\s*=/i, le = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, ue = /<(?:base|animate|set|script)(?=[\s/>]|$)/i, de = /<(base|animate|set|script)(?=[\s/>]|$)/gi, fe = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
38
38
|
function pe(e, t, n) {
|
|
39
39
|
let r = t || n;
|
|
40
40
|
if (!r) return e;
|
|
@@ -1021,7 +1021,7 @@ const q = {
|
|
|
1021
1021
|
function gt(e, ...n) {
|
|
1022
1022
|
return t(ht[e], ...n);
|
|
1023
1023
|
}
|
|
1024
|
-
const _t = `12.0.0-alpha.
|
|
1024
|
+
const _t = `12.0.0-alpha.9`, vt = -1, J = `en-US`, yt = ``, bt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1025
1025
|
function xt() {
|
|
1026
1026
|
return {
|
|
1027
1027
|
upper: (e, t) => t === `text` && _(e) ? e.toUpperCase() : t === `vnode` && y(e) && `__v_isVNode` in e ? e.children.toUpperCase() : e,
|
package/dist/core.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -157,8 +157,8 @@ var IntlifyCore = (function(exports) {
|
|
|
157
157
|
const eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
|
|
158
158
|
const srcdocPattern = /(?:^|[\s"'<>/])srcdoc\s*=/i;
|
|
159
159
|
const srcdocAttributePattern = /(^|[\s"'<>/])s(rcdoc\s*=)/gi;
|
|
160
|
-
const dangerousElementPattern = /<(?:base|animate|set)(?=[\s/>]|$)/i;
|
|
161
|
-
const dangerousElementStartTagPattern = /<(base|animate|set)(?=[\s/>]|$)/gi;
|
|
160
|
+
const dangerousElementPattern = /<(?:base|animate|set|script)(?=[\s/>]|$)/i;
|
|
161
|
+
const dangerousElementStartTagPattern = /<(base|animate|set|script)(?=[\s/>]|$)/gi;
|
|
162
162
|
const unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
163
163
|
function decodeNumericCharacterReference(match, hex, decimal) {
|
|
164
164
|
const digits = hex || decimal;
|
|
@@ -219,7 +219,7 @@ var IntlifyCore = (function(exports) {
|
|
|
219
219
|
html = html.replace(srcdocAttributePattern, "$1s$2");
|
|
220
220
|
}
|
|
221
221
|
if (dangerousElementPattern.test(html)) {
|
|
222
|
-
warn("Potentially dangerous element (<base>, <animate> or <
|
|
222
|
+
warn("Potentially dangerous element (<base>, <animate>, <set> or <script>) detected in translation. Consider removing it from your translation messages.");
|
|
223
223
|
html = html.replace(dangerousElementStartTagPattern, "<$1");
|
|
224
224
|
}
|
|
225
225
|
html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
|
|
@@ -1791,7 +1791,7 @@ var IntlifyCore = (function(exports) {
|
|
|
1791
1791
|
* Intlify core-base version
|
|
1792
1792
|
* @internal
|
|
1793
1793
|
*/
|
|
1794
|
-
const VERSION = "12.0.0-alpha.
|
|
1794
|
+
const VERSION = "12.0.0-alpha.9";
|
|
1795
1795
|
const NOT_RESOLVED = -1;
|
|
1796
1796
|
const DEFAULT_LOCALE = "en-US";
|
|
1797
1797
|
const MISSING_RESOLVE_VALUE = "";
|
package/dist/core.global.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/ var IntlifyCore = (function(e) {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
function te(e) {
|
|
37
37
|
return e.replace(/&(?![a-z0-9#]{2,6};)/gi, `&`).replace(/"/g, `"`).replace(/'/g, `'`).replace(/</g, `<`).replace(/>/g, `>`);
|
|
38
38
|
}
|
|
39
|
-
let ne = /^javascript:/i, re = /^(?:href|xlink:href|src|action|formaction)$/i, O = /&#(?:x([0-9a-f]+)|(\d+));?/gi, ie = /&(?:Tab|NewLine);/g, ae = /:?/gi, oe = /[\u0000-\u0020\u007f-\u009f]/g, se = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, k = /(^|[\s"'<>/])on(\w+\s*=)/gi, ce = /(?:^|[\s"'<>/])srcdoc\s*=/i, le = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, ue = /<(?:base|animate|set)(?=[\s/>]|$)/i, de = /<(base|animate|set)(?=[\s/>]|$)/gi, fe = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
39
|
+
let ne = /^javascript:/i, re = /^(?:href|xlink:href|src|action|formaction)$/i, O = /&#(?:x([0-9a-f]+)|(\d+));?/gi, ie = /&(?:Tab|NewLine);/g, ae = /:?/gi, oe = /[\u0000-\u0020\u007f-\u009f]/g, se = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, k = /(^|[\s"'<>/])on(\w+\s*=)/gi, ce = /(?:^|[\s"'<>/])srcdoc\s*=/i, le = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, ue = /<(?:base|animate|set|script)(?=[\s/>]|$)/i, de = /<(base|animate|set|script)(?=[\s/>]|$)/gi, fe = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
40
40
|
function pe(e, t, n) {
|
|
41
41
|
let r = t || n;
|
|
42
42
|
if (!r) return e;
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
function mt(e, ...t) {
|
|
1043
1043
|
return n(pt[e], ...t);
|
|
1044
1044
|
}
|
|
1045
|
-
let ht = `12.0.0-alpha.
|
|
1045
|
+
let ht = `12.0.0-alpha.9`, Y = `en-US`, gt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1046
1046
|
function _t() {
|
|
1047
1047
|
return {
|
|
1048
1048
|
upper: (e, t) => t === `text` && v(e) ? e.toUpperCase() : t === `vnode` && b(e) && `__v_isVNode` in e ? e.children.toUpperCase() : e,
|
package/dist/core.js
CHANGED
package/dist/core.node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -155,8 +155,8 @@ const eventHandlerPattern = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i;
|
|
|
155
155
|
const eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
|
|
156
156
|
const srcdocPattern = /(?:^|[\s"'<>/])srcdoc\s*=/i;
|
|
157
157
|
const srcdocAttributePattern = /(^|[\s"'<>/])s(rcdoc\s*=)/gi;
|
|
158
|
-
const dangerousElementPattern = /<(?:base|animate|set)(?=[\s/>]|$)/i;
|
|
159
|
-
const dangerousElementStartTagPattern = /<(base|animate|set)(?=[\s/>]|$)/gi;
|
|
158
|
+
const dangerousElementPattern = /<(?:base|animate|set|script)(?=[\s/>]|$)/i;
|
|
159
|
+
const dangerousElementStartTagPattern = /<(base|animate|set|script)(?=[\s/>]|$)/gi;
|
|
160
160
|
const unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
161
161
|
function decodeNumericCharacterReference(match, hex, decimal) {
|
|
162
162
|
const digits = hex || decimal;
|
|
@@ -217,7 +217,7 @@ function sanitizeTranslatedHtml(html) {
|
|
|
217
217
|
html = html.replace(srcdocAttributePattern, "$1s$2");
|
|
218
218
|
}
|
|
219
219
|
if (dangerousElementPattern.test(html)) {
|
|
220
|
-
warn("Potentially dangerous element (<base>, <animate> or <
|
|
220
|
+
warn("Potentially dangerous element (<base>, <animate>, <set> or <script>) detected in translation. Consider removing it from your translation messages.");
|
|
221
221
|
html = html.replace(dangerousElementStartTagPattern, "<$1");
|
|
222
222
|
}
|
|
223
223
|
html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
|
|
@@ -828,7 +828,7 @@ function getWarnMessage(code, ...args) {
|
|
|
828
828
|
* Intlify core-base version
|
|
829
829
|
* @internal
|
|
830
830
|
*/
|
|
831
|
-
const VERSION = "12.0.0-alpha.
|
|
831
|
+
const VERSION = "12.0.0-alpha.9";
|
|
832
832
|
const NOT_RESOLVED = -1;
|
|
833
833
|
const DEFAULT_LOCALE = "en-US";
|
|
834
834
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/ const e = /\{([0-9a-z]+)\}/gi;
|
|
@@ -34,7 +34,7 @@ function E(e) {
|
|
|
34
34
|
function te(e) {
|
|
35
35
|
return e.replace(/&(?![a-z0-9#]{2,6};)/gi, `&`).replace(/"/g, `"`).replace(/'/g, `'`).replace(/</g, `<`).replace(/>/g, `>`);
|
|
36
36
|
}
|
|
37
|
-
const D = /^javascript:/i, ne = /^(?:href|xlink:href|src|action|formaction)$/i, re = /&#(?:x([0-9a-f]+)|(\d+));?/gi, O = /&(?:Tab|NewLine);/g, ie = /:?/gi, ae = /[\u0000-\u0020\u007f-\u009f]/g, oe = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, se = /(^|[\s"'<>/])on(\w+\s*=)/gi, ce = /(?:^|[\s"'<>/])srcdoc\s*=/i, le = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, ue = /<(?:base|animate|set)(?=[\s/>]|$)/i, de = /<(base|animate|set)(?=[\s/>]|$)/gi, fe = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
37
|
+
const D = /^javascript:/i, ne = /^(?:href|xlink:href|src|action|formaction)$/i, re = /&#(?:x([0-9a-f]+)|(\d+));?/gi, O = /&(?:Tab|NewLine);/g, ie = /:?/gi, ae = /[\u0000-\u0020\u007f-\u009f]/g, oe = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, se = /(^|[\s"'<>/])on(\w+\s*=)/gi, ce = /(?:^|[\s"'<>/])srcdoc\s*=/i, le = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, ue = /<(?:base|animate|set|script)(?=[\s/>]|$)/i, de = /<(base|animate|set|script)(?=[\s/>]|$)/gi, fe = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
38
38
|
function pe(e, t, n) {
|
|
39
39
|
let r = t || n;
|
|
40
40
|
if (!r) return e;
|
|
@@ -440,7 +440,7 @@ const W = {
|
|
|
440
440
|
function rt(e, ...n) {
|
|
441
441
|
return t(nt[e], ...n);
|
|
442
442
|
}
|
|
443
|
-
const it = `12.0.0-alpha.
|
|
443
|
+
const it = `12.0.0-alpha.9`, at = -1, G = `en-US`, ot = ``, st = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
444
444
|
function ct() {
|
|
445
445
|
return {
|
|
446
446
|
upper: (e, t) => t === `text` && _(e) ? e.toUpperCase() : t === `vnode` && y(e) && `__v_isVNode` in e ? e.children.toUpperCase() : e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -157,8 +157,8 @@ var IntlifyCore = (function(exports) {
|
|
|
157
157
|
const eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
|
|
158
158
|
const srcdocPattern = /(?:^|[\s"'<>/])srcdoc\s*=/i;
|
|
159
159
|
const srcdocAttributePattern = /(^|[\s"'<>/])s(rcdoc\s*=)/gi;
|
|
160
|
-
const dangerousElementPattern = /<(?:base|animate|set)(?=[\s/>]|$)/i;
|
|
161
|
-
const dangerousElementStartTagPattern = /<(base|animate|set)(?=[\s/>]|$)/gi;
|
|
160
|
+
const dangerousElementPattern = /<(?:base|animate|set|script)(?=[\s/>]|$)/i;
|
|
161
|
+
const dangerousElementStartTagPattern = /<(base|animate|set|script)(?=[\s/>]|$)/gi;
|
|
162
162
|
const unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
163
163
|
function decodeNumericCharacterReference(match, hex, decimal) {
|
|
164
164
|
const digits = hex || decimal;
|
|
@@ -219,7 +219,7 @@ var IntlifyCore = (function(exports) {
|
|
|
219
219
|
html = html.replace(srcdocAttributePattern, "$1s$2");
|
|
220
220
|
}
|
|
221
221
|
if (dangerousElementPattern.test(html)) {
|
|
222
|
-
warn("Potentially dangerous element (<base>, <animate> or <
|
|
222
|
+
warn("Potentially dangerous element (<base>, <animate>, <set> or <script>) detected in translation. Consider removing it from your translation messages.");
|
|
223
223
|
html = html.replace(dangerousElementStartTagPattern, "<$1");
|
|
224
224
|
}
|
|
225
225
|
html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
|
|
@@ -830,7 +830,7 @@ var IntlifyCore = (function(exports) {
|
|
|
830
830
|
* Intlify core-base version
|
|
831
831
|
* @internal
|
|
832
832
|
*/
|
|
833
|
-
const VERSION = "12.0.0-alpha.
|
|
833
|
+
const VERSION = "12.0.0-alpha.9";
|
|
834
834
|
const NOT_RESOLVED = -1;
|
|
835
835
|
const DEFAULT_LOCALE = "en-US";
|
|
836
836
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @intlify/core v12.0.0-alpha.
|
|
2
|
+
* @intlify/core v12.0.0-alpha.9
|
|
3
3
|
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/ var IntlifyCore = (function(e) {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
function re(e) {
|
|
37
37
|
return e.replace(/&(?![a-z0-9#]{2,6};)/gi, `&`).replace(/"/g, `"`).replace(/'/g, `'`).replace(/</g, `<`).replace(/>/g, `>`);
|
|
38
38
|
}
|
|
39
|
-
let ie = /^javascript:/i, ae = /^(?:href|xlink:href|src|action|formaction)$/i, E = /&#(?:x([0-9a-f]+)|(\d+));?/gi, oe = /&(?:Tab|NewLine);/g, se = /:?/gi, ce = /[\u0000-\u0020\u007f-\u009f]/g, le = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, ue = /(^|[\s"'<>/])on(\w+\s*=)/gi, de = /(?:^|[\s"'<>/])srcdoc\s*=/i, fe = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, pe = /<(?:base|animate|set)(?=[\s/>]|$)/i, me = /<(base|animate|set)(?=[\s/>]|$)/gi, he = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
39
|
+
let ie = /^javascript:/i, ae = /^(?:href|xlink:href|src|action|formaction)$/i, E = /&#(?:x([0-9a-f]+)|(\d+));?/gi, oe = /&(?:Tab|NewLine);/g, se = /:?/gi, ce = /[\u0000-\u0020\u007f-\u009f]/g, le = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, ue = /(^|[\s"'<>/])on(\w+\s*=)/gi, de = /(?:^|[\s"'<>/])srcdoc\s*=/i, fe = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, pe = /<(?:base|animate|set|script)(?=[\s/>]|$)/i, me = /<(base|animate|set|script)(?=[\s/>]|$)/gi, he = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
40
40
|
function ge(e, t, n) {
|
|
41
41
|
let r = t || n;
|
|
42
42
|
if (!r) return e;
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
function nt(e, ...t) {
|
|
443
443
|
return n(tt[e], ...t);
|
|
444
444
|
}
|
|
445
|
-
let rt = `12.0.0-alpha.
|
|
445
|
+
let rt = `12.0.0-alpha.9`, G = `en-US`, K = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
446
446
|
function it() {
|
|
447
447
|
return {
|
|
448
448
|
upper: (e, t) => t === `text` && v(e) ? e.toUpperCase() : t === `vnode` && b(e) && `__v_isVNode` in e ? e.children.toUpperCase() : e,
|
package/dist/core.runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlify/core",
|
|
3
3
|
"description": "@intlify/core",
|
|
4
|
-
"version": "12.0.0-alpha.
|
|
4
|
+
"version": "12.0.0-alpha.9",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"types": "dist/core.d.ts",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@intlify/core-base": "12.0.0-alpha.
|
|
60
|
-
"@intlify/shared": "12.0.0-alpha.
|
|
59
|
+
"@intlify/core-base": "12.0.0-alpha.9",
|
|
60
|
+
"@intlify/shared": "12.0.0-alpha.9"
|
|
61
61
|
},
|
|
62
62
|
"buildOptions": {
|
|
63
63
|
"name": "IntlifyCore",
|