@formatjs/cli 5.1.0 → 5.1.2

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 +4 -3
  2. package/package.json +2 -2
package/bin/formatjs CHANGED
@@ -150564,7 +150564,7 @@ var require_interpolate_name = __commonJS({
150564
150564
  }
150565
150565
  let url = filename;
150566
150566
  if (content) {
150567
- url = url.replace(/\[(?:([^:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi, (_, hashType, digestType, maxLength) => getHashDigest(content, hashType, digestType, parseInt(maxLength, 10)));
150567
+ url = url.replace(/\[(?:([^:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*[a-z]*))?(?::(\d+))?\]/gi, (_, hashType, digestType, maxLength) => getHashDigest(content, hashType, digestType, parseInt(maxLength, 10)));
150568
150568
  }
150569
150569
  url = url.replace(/\[ext\]/gi, () => ext).replace(/\[name\]/gi, () => basename2).replace(/\[path\]/gi, () => directory).replace(/\[folder\]/gi, () => folder).replace(/\[query\]/gi, () => query);
150570
150570
  if (regExp && loaderContext.resourcePath) {
@@ -153324,7 +153324,7 @@ var require_icu_messageformat_parser = __commonJS({
153324
153324
  "../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/index.js"(exports) {
153325
153325
  "use strict";
153326
153326
  Object.defineProperty(exports, "__esModule", { value: true });
153327
- exports.parse = void 0;
153327
+ exports._Parser = exports.parse = void 0;
153328
153328
  var tslib_1 = require_tslib();
153329
153329
  var error_1 = require_error2();
153330
153330
  var parser_1 = require_parser();
@@ -153365,6 +153365,7 @@ var require_icu_messageformat_parser = __commonJS({
153365
153365
  }
153366
153366
  exports.parse = parse5;
153367
153367
  tslib_1.__exportStar(require_types(), exports);
153368
+ exports._Parser = parser_1.Parser;
153368
153369
  }
153369
153370
  });
153370
153371
 
@@ -154635,7 +154636,7 @@ var require_manipulator = __commonJS({
154635
154636
  if (Array.isArray(obj)) {
154636
154637
  return tslib_1.__spreadArray([], obj.map(cloneDeep), true);
154637
154638
  }
154638
- if (typeof obj === "object") {
154639
+ if (obj !== null && typeof obj === "object") {
154639
154640
  return Object.keys(obj).reduce(function(cloned, k) {
154640
154641
  cloned[k] = cloneDeep(obj[k]);
154641
154642
  return cloned;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/cli",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
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.0"
36
+ "@formatjs/cli-lib": "5.1.2"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@vue/compiler-sfc": "^3.2.34"