@intlify/message-compiler 9.3.0-beta.0 → 9.3.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * message-compiler v9.3.0-beta.0
2
+ * message-compiler v9.3.0-beta.1
3
3
  * (c) 2022 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * message-compiler v9.3.0-beta.0
2
+ * message-compiler v9.3.0-beta.1
3
3
  * (c) 2022 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * message-compiler v9.3.0-beta.1
3
+ * (c) 2022 kazuya kawaguchi
4
+ * Released under the MIT License.
5
+ */
6
+ const e=/\{([0-9a-zA-Z]+)\}/g;const t=Object.assign,n=e=>"string"==typeof e,r=e=>null!==e&&"object"==typeof e,c={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},o={[c.EXPECTED_TOKEN]:"Expected token: '{0}'",[c.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[c.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[c.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[c.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[c.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[c.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[c.EMPTY_PLACEHOLDER]:"Empty placeholder",[c.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[c.INVALID_LINKED_FORMAT]:"Invalid linked format",[c.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[c.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[c.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[c.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function s(t,n,c={}){const{domain:s,messages:u,args:a}=c,i=function(t,...n){return 1===n.length&&r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}((u||o)[t]||"",...a||[]),l=new SyntaxError(String(i));return l.code=t,n&&(l.location=n),l.domain=s,l}function u(e){throw e}const a={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function i(e,t,n){return{line:e,column:t,offset:n}}function l(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const E=String.fromCharCode(8232),f=String.fromCharCode(8233);function L(e){const t=e;let n=0,r=1,c=1,o=0;const s=e=>"\r"===t[e]&&"\n"===t[e+1],u=e=>t[e]===f,a=e=>t[e]===E,i=e=>s(e)||(e=>"\n"===t[e])(e)||u(e)||a(e),l=e=>s(e)||u(e)||a(e)?"\n":t[e];function L(){return o=0,i(n)&&(r++,c=0),s(n)&&n++,n++,c++,t[n]}return{index:()=>n,line:()=>r,column:()=>c,peekOffset:()=>o,charAt:l,currentChar:()=>l(n),currentPeek:()=>l(n+o),next:L,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,c=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)L();o=0}}}const N=void 0;function _(e,t={}){const n=!1!==t.location,r=L(e),o=()=>r.index(),u=()=>i(r.line(),r.column(),r.index()),a=u(),E=o(),f={currentType:14,offset:E,startLoc:a,endLoc:a,lastType:14,lastOffset:E,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},_=()=>f,{onError:d}=t;function p(e,t,n,...r){const c=_();if(t.column+=n,t.offset+=n,d){const n=s(e,l(c.startLoc,t),{domain:"tokenizer",args:r});d(n)}}function C(e,t,r){e.endLoc=u(),e.currentType=t;const c={type:t};return n&&(c.loc=l(e.startLoc,e.endLoc)),null!=r&&(c.value=r),c}const A=e=>C(e,14);function T(e,t){return e.currentChar()===t?(e.next(),t):(p(c.EXPECTED_TOKEN,u(),0,t),"")}function I(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function k(e){const t=I(e);return e.skipToPeek(),t}function h(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function P(e,t){const{currentType:n}=t;if(2!==n)return!1;I(e);const r=function(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function S(e){I(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function O(e,t=!0){const n=(t=!1,r="",c=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!c)||!(" "===r||"\n"===r):" "===o?(e.peek(),n(!0," ",c)):"\n"!==o||(e.peek(),n(!0,"\n",c)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function D(e,t){const n=e.currentChar();return n===N?N:t(n)?(e.next(),n):null}function y(e){return D(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function x(e){return D(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function m(e){return D(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function U(e){let t="",n="";for(;t=x(e);)n+=t;return n}function b(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!O(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(O(e))t+=n,e.next();else{if(S(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function R(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return v(e,t,4);case"U":return v(e,t,6);default:return p(c.UNKNOWN_ESCAPE_SEQUENCE,u(),0,t),""}}function v(e,t,n){T(e,t);let r="";for(let o=0;o<n;o++){const n=m(e);if(!n){p(c.INVALID_UNICODE_ESCAPE_SEQUENCE,u(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function M(e){k(e);const t=T(e,"|");return k(e),t}function X(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&p(c.NOT_ALLOW_NEST_PLACEHOLDER,u(),0),e.next(),n=C(t,2,"{"),k(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&p(c.EMPTY_PLACEHOLDER,u(),0),e.next(),n=C(t,3,"}"),t.braceNest--,t.braceNest>0&&k(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&p(c.UNTERMINATED_CLOSING_BRACE,u(),0),n=g(e,t)||A(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(S(e))return t.braceNest>0&&p(c.UNTERMINATED_CLOSING_BRACE,u(),0),n=C(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return p(c.UNTERMINATED_CLOSING_BRACE,u(),0),t.braceNest=0,Y(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;I(e);const r=h(e.currentPeek());return e.resetPeek(),r}(e,t))return n=C(t,5,function(e){k(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===N&&p(c.UNTERMINATED_CLOSING_BRACE,u(),0),n}(e)),k(e),n;if(o=P(e,t))return n=C(t,6,function(e){k(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${U(e)}`):t+=U(e),e.currentChar()===N&&p(c.UNTERMINATED_CLOSING_BRACE,u(),0),t}(e)),k(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;I(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=C(t,7,function(e){k(e),T(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=D(e,r);)n+="\\"===t?R(e):t;const o=e.currentChar();return"\n"===o||o===N?(p(c.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,u(),0),"\n"===o&&(e.next(),T(e,"'")),n):(T(e,"'"),n)}(e)),k(e),n;if(!r&&!o&&!s)return n=C(t,13,function(e){k(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=D(e,r);)n+=t;return n}(e)),p(c.INVALID_TOKEN_IN_PLACEHOLDER,u(),0,n.value),k(e),n}return n}function g(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==o&&" "!==o||p(c.INVALID_LINKED_FORMAT,u(),0),o){case"@":return e.next(),r=C(t,8,"@"),t.inLinked=!0,r;case".":return k(e),e.next(),C(t,9,".");case":":return k(e),e.next(),C(t,10,":");default:return S(e)?(r=C(t,1,M(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;I(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;I(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(k(e),g(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;I(e);const r=h(e.currentPeek());return e.resetPeek(),r}(e,t)?(k(e),C(t,12,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?h(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):h(t))},c=r();return e.resetPeek(),c}(e,t)?(k(e),"{"===o?X(e,t)||r:C(t,11,function(e){const t=(n=!1,r)=>{const c=e.currentChar();return"{"!==c&&"%"!==c&&"@"!==c&&"|"!==c&&c?" "===c?r:"\n"===c?(r+=c,e.next(),t(n,r)):(r+=c,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&p(c.INVALID_LINKED_FORMAT,u(),0),t.braceNest=0,t.inLinked=!1,Y(e,t))}}function Y(e,t){let n={type:14};if(t.braceNest>0)return X(e,t)||A(t);if(t.inLinked)return g(e,t)||A(t);switch(e.currentChar()){case"{":return X(e,t)||A(t);case"}":return p(c.UNBALANCED_CLOSING_BRACE,u(),0),e.next(),C(t,3,"}");case"@":return g(e,t)||A(t);default:if(S(e))return n=C(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=I(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?C(t,0,b(e)):C(t,4,function(e){k(e);const t=e.currentChar();return"%"!==t&&p(c.EXPECTED_TOKEN,u(),0,t),e.next(),"%"}(e));if(O(e))return C(t,0,b(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:c}=f;return f.lastType=e,f.lastOffset=t,f.lastStartLoc=n,f.lastEndLoc=c,f.offset=o(),f.startLoc=u(),r.currentChar()===N?C(f,14):Y(r,f)},currentOffset:o,currentPosition:u,context:_}}const d="parser",p=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function C(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function A(e={}){const n=!1!==e.location,{onError:r}=e;function o(e,t,n,c,...o){const u=e.currentPosition();if(u.offset+=c,u.column+=c,r){const e=s(t,l(n,u),{domain:"parser",args:o});r(e)}}function u(e,t,r){const c={type:e,start:t,end:t};return n&&(c.loc={start:r,end:r}),c}function a(e,t,r,c){e.end=t,c&&(e.type=c),n&&e.loc&&(e.loc.end=r)}function i(e,t){const n=e.context(),r=u(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function E(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:c}=n,o=u(5,r,c);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function f(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:c}=n,o=u(4,r,c);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function L(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:c}=n,o=u(9,r,c);return o.value=t.replace(p,C),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function N(e){const t=e.context(),n=u(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:s}=n,i=u(8,r,s);return 12!==t.type?(o(e,c.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),i.value="",a(i,r,s),{nextConsumeToken:t,node:i}):(null==t.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,T(t)),i.value=t.value||"",a(i,e.currentOffset(),e.currentPosition()),{node:i})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(r)),n.key=function(e,t){const n=e.context(),r=u(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 5:null==r.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(r)),n.key=f(e,r.value||"");break;case 6:null==r.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(r)),n.key=E(e,r.value||"");break;case 7:null==r.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(r)),n.key=L(e,r.value||"");break;default:o(e,c.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const s=e.context(),i=u(7,s.offset,s.startLoc);return i.value="",a(i,s.offset,s.startLoc),n.key=i,a(n,s.offset,s.startLoc),{nextConsumeToken:r,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=u(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let r=null;do{const s=r||e.nextToken();switch(r=null,s.type){case 0:null==s.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(s)),n.items.push(i(e,s.value||""));break;case 6:null==s.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(s)),n.items.push(E(e,s.value||""));break;case 5:null==s.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(s)),n.items.push(f(e,s.value||""));break;case 7:null==s.value&&o(e,c.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,T(s)),n.items.push(L(e,s.value||""));break;case 8:const u=N(e);n.items.push(u.node),r=u.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function A(e){const t=e.context(),{offset:n,startLoc:r}=t,s=d(e);return 14===t.currentType?s:function(e,t,n,r){const s=e.context();let i=0===r.items.length;const l=u(1,t,n);l.cases=[],l.cases.push(r);do{const t=d(e);i||(i=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return i&&o(e,c.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}(e,n,r,s)}return{parse:function(r){const s=_(r,t({},e)),i=s.context(),l=u(0,i.offset,i.startLoc);return n&&l.loc&&(l.loc.source=r),l.body=A(s),14!==i.currentType&&o(s,c.UNEXPECTED_LEXICAL_ANALYSIS,i.lastStartLoc,0,r[i.offset]||""),a(l,s.currentOffset(),s.currentPosition()),l}}}function T(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function I(e,t){for(let n=0;n<e.length;n++)k(e[n],t)}function k(e,t){switch(e.type){case 1:I(e.cases,t),t.helper("plural");break;case 2:I(e.items,t);break;case 6:k(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function h(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&k(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function P(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?P(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const c=t.cases.length;for(let n=0;n<c&&(P(e,t.cases[n]),n!==c-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const c=t.items.length;for(let n=0;n<c&&(P(e,t.items[n]),n!==c-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),P(e,t.key),t.modifier?(e.push(", "),P(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;default:throw new Error(`unhandled codegen node type: ${t.type}`)}}function S(e,r={}){const c=t({},r),o=A(c).parse(e);return h(o,c),((e,t={})=>{const r=n(t.mode)?t.mode:"normal",c=n(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=null!=t.breakLineCode?t.breakLineCode:"arrow"===r?";":"\n",u=t.needIndent?t.needIndent:"arrow"!==r,a=e.helpers||[],i=function(e,t){const{sourceMap:n,filename:r,breakLineCode:c,needIndent:o}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:c,needIndent:o,indentLevel:0};function u(e,t){s.code+=e}function a(e,t=!0){const n=t?c:"";u(o?n+" ".repeat(e):n)}return{context:()=>s,push:u,indent:function(e=!0){const t=++s.indentLevel;e&&a(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&a(t)},newline:function(){a(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:r,filename:c,sourceMap:o,breakLineCode:s,needIndent:u});i.push("normal"===r?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(u),a.length>0&&(i.push(`const { ${a.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),i.newline()),i.push("return "),P(i,e),i.deindent(u),i.push("}");const{code:l,map:E}=i.context();return{ast:e,code:l,map:E?E.toJSON():void 0}})(o,c)}export{c as CompileErrorCodes,d as ERROR_DOMAIN,a as LocationStub,S as baseCompile,s as createCompileError,l as createLocation,A as createParser,i as createPosition,u as defaultOnError,o as errorMessages};
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * message-compiler v9.3.0-beta.0
2
+ * message-compiler v9.3.0-beta.1
3
3
  * (c) 2022 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * message-compiler v9.3.0-beta.0
2
+ * message-compiler v9.3.0-beta.1
3
3
  * (c) 2022 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * message-compiler v9.3.0-beta.0
2
+ * message-compiler v9.3.0-beta.1
3
3
  * (c) 2022 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlify/message-compiler",
3
- "version": "9.3.0-beta.0",
3
+ "version": "9.3.0-beta.1",
4
4
  "description": "@intlify/message-compiler",
5
5
  "keywords": [
6
6
  "compiler",
@@ -29,12 +29,12 @@
29
29
  "dist"
30
30
  ],
31
31
  "main": "index.js",
32
- "module": "dist/message-compiler.esm-bundler.js",
32
+ "module": "dist/message-compiler.esm-bundler.mjs",
33
33
  "unpkg": "dist/message-compiler.global.js",
34
34
  "jsdelivr": "dist/message-compiler.global.js",
35
35
  "types": "dist/message-compiler.d.ts",
36
36
  "dependencies": {
37
- "@intlify/shared": "9.3.0-beta.0",
37
+ "@intlify/shared": "9.3.0-beta.1",
38
38
  "source-map": "0.6.1"
39
39
  },
40
40
  "engines": {
@@ -54,7 +54,7 @@
54
54
  ".": {
55
55
  "import": {
56
56
  "node": "./index.mjs",
57
- "default": "./dist/message-compiler.esm-bundler.js"
57
+ "default": "./dist/message-compiler.esm-bundler.mjs"
58
58
  },
59
59
  "require": "./index.js"
60
60
  },