@formatjs/cli 5.1.10 → 5.1.11

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.
Files changed (2) hide show
  1. package/bin/formatjs +3 -3
  2. package/package.json +2 -2
package/bin/formatjs CHANGED
@@ -159171,12 +159171,12 @@ function generateXXAC(msg) {
159171
159171
  }
159172
159172
  function generateXXHA(msg) {
159173
159173
  const ast = typeof msg === "string" ? (0, import_icu_messageformat_parser2.parse)(msg) : msg;
159174
- const firstChunk = ast.shift();
159174
+ const [firstChunk, ...rest] = ast;
159175
159175
  if (firstChunk && (0, import_icu_messageformat_parser2.isLiteralElement)(firstChunk)) {
159176
159176
  firstChunk.value = "[javascript]" + firstChunk.value;
159177
- return [firstChunk, ...ast];
159177
+ return [firstChunk, ...rest];
159178
159178
  }
159179
- return [{ type: import_icu_messageformat_parser2.TYPE.literal, value: "[javascript]" }, ...ast];
159179
+ return [{ type: import_icu_messageformat_parser2.TYPE.literal, value: "[javascript]" }, ...rest];
159180
159180
  }
159181
159181
  function generateENXA(msg) {
159182
159182
  const ast = typeof msg === "string" ? (0, import_icu_messageformat_parser2.parse)(msg) : msg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/cli",
3
- "version": "5.1.10",
3
+ "version": "5.1.11",
4
4
  "description": "A CLI for formatjs.",
5
5
  "keywords": [
6
6
  "intl",
@@ -33,7 +33,7 @@
33
33
  "url": "https://github.com/formatjs/formatjs/issues"
34
34
  },
35
35
  "devDependencies": {
36
- "@formatjs/cli-lib": "5.1.10"
36
+ "@formatjs/cli-lib": "5.1.11"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@vue/compiler-sfc": "^3.2.34"