@formatjs/cli 6.2.12 → 6.2.13

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 +2 -811
  2. package/package.json +2 -2
package/bin/formatjs CHANGED
@@ -196454,814 +196454,6 @@ var require_ensure = __commonJS({
196454
196454
  }
196455
196455
  });
196456
196456
 
196457
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
196458
- var require_polyfills2 = __commonJS({
196459
- "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
196460
- var constants = require("constants");
196461
- var origCwd = process.cwd;
196462
- var cwd = null;
196463
- var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
196464
- process.cwd = function() {
196465
- if (!cwd)
196466
- cwd = origCwd.call(process);
196467
- return cwd;
196468
- };
196469
- try {
196470
- process.cwd();
196471
- } catch (er) {
196472
- }
196473
- if (typeof process.chdir === "function") {
196474
- chdir = process.chdir;
196475
- process.chdir = function(d) {
196476
- cwd = null;
196477
- chdir.call(process, d);
196478
- };
196479
- if (Object.setPrototypeOf)
196480
- Object.setPrototypeOf(process.chdir, chdir);
196481
- }
196482
- var chdir;
196483
- module2.exports = patch;
196484
- function patch(fs) {
196485
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
196486
- patchLchmod(fs);
196487
- }
196488
- if (!fs.lutimes) {
196489
- patchLutimes(fs);
196490
- }
196491
- fs.chown = chownFix(fs.chown);
196492
- fs.fchown = chownFix(fs.fchown);
196493
- fs.lchown = chownFix(fs.lchown);
196494
- fs.chmod = chmodFix(fs.chmod);
196495
- fs.fchmod = chmodFix(fs.fchmod);
196496
- fs.lchmod = chmodFix(fs.lchmod);
196497
- fs.chownSync = chownFixSync(fs.chownSync);
196498
- fs.fchownSync = chownFixSync(fs.fchownSync);
196499
- fs.lchownSync = chownFixSync(fs.lchownSync);
196500
- fs.chmodSync = chmodFixSync(fs.chmodSync);
196501
- fs.fchmodSync = chmodFixSync(fs.fchmodSync);
196502
- fs.lchmodSync = chmodFixSync(fs.lchmodSync);
196503
- fs.stat = statFix(fs.stat);
196504
- fs.fstat = statFix(fs.fstat);
196505
- fs.lstat = statFix(fs.lstat);
196506
- fs.statSync = statFixSync(fs.statSync);
196507
- fs.fstatSync = statFixSync(fs.fstatSync);
196508
- fs.lstatSync = statFixSync(fs.lstatSync);
196509
- if (fs.chmod && !fs.lchmod) {
196510
- fs.lchmod = function(path, mode, cb) {
196511
- if (cb)
196512
- process.nextTick(cb);
196513
- };
196514
- fs.lchmodSync = function() {
196515
- };
196516
- }
196517
- if (fs.chown && !fs.lchown) {
196518
- fs.lchown = function(path, uid, gid, cb) {
196519
- if (cb)
196520
- process.nextTick(cb);
196521
- };
196522
- fs.lchownSync = function() {
196523
- };
196524
- }
196525
- if (platform === "win32") {
196526
- fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
196527
- function rename(from, to, cb) {
196528
- var start = Date.now();
196529
- var backoff = 0;
196530
- fs$rename(from, to, function CB(er) {
196531
- if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
196532
- setTimeout(function() {
196533
- fs.stat(to, function(stater, st) {
196534
- if (stater && stater.code === "ENOENT")
196535
- fs$rename(from, to, CB);
196536
- else
196537
- cb(er);
196538
- });
196539
- }, backoff);
196540
- if (backoff < 100)
196541
- backoff += 10;
196542
- return;
196543
- }
196544
- if (cb)
196545
- cb(er);
196546
- });
196547
- }
196548
- if (Object.setPrototypeOf)
196549
- Object.setPrototypeOf(rename, fs$rename);
196550
- return rename;
196551
- }(fs.rename);
196552
- }
196553
- fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) {
196554
- function read(fd, buffer, offset, length, position, callback_) {
196555
- var callback;
196556
- if (callback_ && typeof callback_ === "function") {
196557
- var eagCounter = 0;
196558
- callback = function(er, _, __) {
196559
- if (er && er.code === "EAGAIN" && eagCounter < 10) {
196560
- eagCounter++;
196561
- return fs$read.call(fs, fd, buffer, offset, length, position, callback);
196562
- }
196563
- callback_.apply(this, arguments);
196564
- };
196565
- }
196566
- return fs$read.call(fs, fd, buffer, offset, length, position, callback);
196567
- }
196568
- if (Object.setPrototypeOf)
196569
- Object.setPrototypeOf(read, fs$read);
196570
- return read;
196571
- }(fs.read);
196572
- fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : function(fs$readSync) {
196573
- return function(fd, buffer, offset, length, position) {
196574
- var eagCounter = 0;
196575
- while (true) {
196576
- try {
196577
- return fs$readSync.call(fs, fd, buffer, offset, length, position);
196578
- } catch (er) {
196579
- if (er.code === "EAGAIN" && eagCounter < 10) {
196580
- eagCounter++;
196581
- continue;
196582
- }
196583
- throw er;
196584
- }
196585
- }
196586
- };
196587
- }(fs.readSync);
196588
- function patchLchmod(fs2) {
196589
- fs2.lchmod = function(path, mode, callback) {
196590
- fs2.open(
196591
- path,
196592
- constants.O_WRONLY | constants.O_SYMLINK,
196593
- mode,
196594
- function(err, fd) {
196595
- if (err) {
196596
- if (callback)
196597
- callback(err);
196598
- return;
196599
- }
196600
- fs2.fchmod(fd, mode, function(err2) {
196601
- fs2.close(fd, function(err22) {
196602
- if (callback)
196603
- callback(err2 || err22);
196604
- });
196605
- });
196606
- }
196607
- );
196608
- };
196609
- fs2.lchmodSync = function(path, mode) {
196610
- var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
196611
- var threw = true;
196612
- var ret;
196613
- try {
196614
- ret = fs2.fchmodSync(fd, mode);
196615
- threw = false;
196616
- } finally {
196617
- if (threw) {
196618
- try {
196619
- fs2.closeSync(fd);
196620
- } catch (er) {
196621
- }
196622
- } else {
196623
- fs2.closeSync(fd);
196624
- }
196625
- }
196626
- return ret;
196627
- };
196628
- }
196629
- function patchLutimes(fs2) {
196630
- if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
196631
- fs2.lutimes = function(path, at, mt, cb) {
196632
- fs2.open(path, constants.O_SYMLINK, function(er, fd) {
196633
- if (er) {
196634
- if (cb)
196635
- cb(er);
196636
- return;
196637
- }
196638
- fs2.futimes(fd, at, mt, function(er2) {
196639
- fs2.close(fd, function(er22) {
196640
- if (cb)
196641
- cb(er2 || er22);
196642
- });
196643
- });
196644
- });
196645
- };
196646
- fs2.lutimesSync = function(path, at, mt) {
196647
- var fd = fs2.openSync(path, constants.O_SYMLINK);
196648
- var ret;
196649
- var threw = true;
196650
- try {
196651
- ret = fs2.futimesSync(fd, at, mt);
196652
- threw = false;
196653
- } finally {
196654
- if (threw) {
196655
- try {
196656
- fs2.closeSync(fd);
196657
- } catch (er) {
196658
- }
196659
- } else {
196660
- fs2.closeSync(fd);
196661
- }
196662
- }
196663
- return ret;
196664
- };
196665
- } else if (fs2.futimes) {
196666
- fs2.lutimes = function(_a, _b, _c, cb) {
196667
- if (cb)
196668
- process.nextTick(cb);
196669
- };
196670
- fs2.lutimesSync = function() {
196671
- };
196672
- }
196673
- }
196674
- function chmodFix(orig) {
196675
- if (!orig)
196676
- return orig;
196677
- return function(target, mode, cb) {
196678
- return orig.call(fs, target, mode, function(er) {
196679
- if (chownErOk(er))
196680
- er = null;
196681
- if (cb)
196682
- cb.apply(this, arguments);
196683
- });
196684
- };
196685
- }
196686
- function chmodFixSync(orig) {
196687
- if (!orig)
196688
- return orig;
196689
- return function(target, mode) {
196690
- try {
196691
- return orig.call(fs, target, mode);
196692
- } catch (er) {
196693
- if (!chownErOk(er))
196694
- throw er;
196695
- }
196696
- };
196697
- }
196698
- function chownFix(orig) {
196699
- if (!orig)
196700
- return orig;
196701
- return function(target, uid, gid, cb) {
196702
- return orig.call(fs, target, uid, gid, function(er) {
196703
- if (chownErOk(er))
196704
- er = null;
196705
- if (cb)
196706
- cb.apply(this, arguments);
196707
- });
196708
- };
196709
- }
196710
- function chownFixSync(orig) {
196711
- if (!orig)
196712
- return orig;
196713
- return function(target, uid, gid) {
196714
- try {
196715
- return orig.call(fs, target, uid, gid);
196716
- } catch (er) {
196717
- if (!chownErOk(er))
196718
- throw er;
196719
- }
196720
- };
196721
- }
196722
- function statFix(orig) {
196723
- if (!orig)
196724
- return orig;
196725
- return function(target, options, cb) {
196726
- if (typeof options === "function") {
196727
- cb = options;
196728
- options = null;
196729
- }
196730
- function callback(er, stats) {
196731
- if (stats) {
196732
- if (stats.uid < 0)
196733
- stats.uid += 4294967296;
196734
- if (stats.gid < 0)
196735
- stats.gid += 4294967296;
196736
- }
196737
- if (cb)
196738
- cb.apply(this, arguments);
196739
- }
196740
- return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
196741
- };
196742
- }
196743
- function statFixSync(orig) {
196744
- if (!orig)
196745
- return orig;
196746
- return function(target, options) {
196747
- var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
196748
- if (stats) {
196749
- if (stats.uid < 0)
196750
- stats.uid += 4294967296;
196751
- if (stats.gid < 0)
196752
- stats.gid += 4294967296;
196753
- }
196754
- return stats;
196755
- };
196756
- }
196757
- function chownErOk(er) {
196758
- if (!er)
196759
- return true;
196760
- if (er.code === "ENOSYS")
196761
- return true;
196762
- var nonroot = !process.getuid || process.getuid() !== 0;
196763
- if (nonroot) {
196764
- if (er.code === "EINVAL" || er.code === "EPERM")
196765
- return true;
196766
- }
196767
- return false;
196768
- }
196769
- }
196770
- }
196771
- });
196772
-
196773
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
196774
- var require_legacy_streams2 = __commonJS({
196775
- "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
196776
- var Stream = require("stream").Stream;
196777
- module2.exports = legacy;
196778
- function legacy(fs) {
196779
- return {
196780
- ReadStream,
196781
- WriteStream
196782
- };
196783
- function ReadStream(path, options) {
196784
- if (!(this instanceof ReadStream))
196785
- return new ReadStream(path, options);
196786
- Stream.call(this);
196787
- var self = this;
196788
- this.path = path;
196789
- this.fd = null;
196790
- this.readable = true;
196791
- this.paused = false;
196792
- this.flags = "r";
196793
- this.mode = 438;
196794
- this.bufferSize = 64 * 1024;
196795
- options = options || {};
196796
- var keys = Object.keys(options);
196797
- for (var index = 0, length = keys.length; index < length; index++) {
196798
- var key = keys[index];
196799
- this[key] = options[key];
196800
- }
196801
- if (this.encoding)
196802
- this.setEncoding(this.encoding);
196803
- if (this.start !== void 0) {
196804
- if ("number" !== typeof this.start) {
196805
- throw TypeError("start must be a Number");
196806
- }
196807
- if (this.end === void 0) {
196808
- this.end = Infinity;
196809
- } else if ("number" !== typeof this.end) {
196810
- throw TypeError("end must be a Number");
196811
- }
196812
- if (this.start > this.end) {
196813
- throw new Error("start must be <= end");
196814
- }
196815
- this.pos = this.start;
196816
- }
196817
- if (this.fd !== null) {
196818
- process.nextTick(function() {
196819
- self._read();
196820
- });
196821
- return;
196822
- }
196823
- fs.open(this.path, this.flags, this.mode, function(err, fd) {
196824
- if (err) {
196825
- self.emit("error", err);
196826
- self.readable = false;
196827
- return;
196828
- }
196829
- self.fd = fd;
196830
- self.emit("open", fd);
196831
- self._read();
196832
- });
196833
- }
196834
- function WriteStream(path, options) {
196835
- if (!(this instanceof WriteStream))
196836
- return new WriteStream(path, options);
196837
- Stream.call(this);
196838
- this.path = path;
196839
- this.fd = null;
196840
- this.writable = true;
196841
- this.flags = "w";
196842
- this.encoding = "binary";
196843
- this.mode = 438;
196844
- this.bytesWritten = 0;
196845
- options = options || {};
196846
- var keys = Object.keys(options);
196847
- for (var index = 0, length = keys.length; index < length; index++) {
196848
- var key = keys[index];
196849
- this[key] = options[key];
196850
- }
196851
- if (this.start !== void 0) {
196852
- if ("number" !== typeof this.start) {
196853
- throw TypeError("start must be a Number");
196854
- }
196855
- if (this.start < 0) {
196856
- throw new Error("start must be >= zero");
196857
- }
196858
- this.pos = this.start;
196859
- }
196860
- this.busy = false;
196861
- this._queue = [];
196862
- if (this.fd === null) {
196863
- this._open = fs.open;
196864
- this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
196865
- this.flush();
196866
- }
196867
- }
196868
- }
196869
- }
196870
- });
196871
-
196872
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
196873
- var require_clone2 = __commonJS({
196874
- "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
196875
- "use strict";
196876
- module2.exports = clone;
196877
- var getPrototypeOf = Object.getPrototypeOf || function(obj) {
196878
- return obj.__proto__;
196879
- };
196880
- function clone(obj) {
196881
- if (obj === null || typeof obj !== "object")
196882
- return obj;
196883
- if (obj instanceof Object)
196884
- var copy = { __proto__: getPrototypeOf(obj) };
196885
- else
196886
- var copy = /* @__PURE__ */ Object.create(null);
196887
- Object.getOwnPropertyNames(obj).forEach(function(key) {
196888
- Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
196889
- });
196890
- return copy;
196891
- }
196892
- }
196893
- });
196894
-
196895
- // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
196896
- var require_graceful_fs2 = __commonJS({
196897
- "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
196898
- var fs = require("fs");
196899
- var polyfills = require_polyfills2();
196900
- var legacy = require_legacy_streams2();
196901
- var clone = require_clone2();
196902
- var util = require("util");
196903
- var gracefulQueue;
196904
- var previousSymbol;
196905
- if (typeof Symbol === "function" && typeof Symbol.for === "function") {
196906
- gracefulQueue = Symbol.for("graceful-fs.queue");
196907
- previousSymbol = Symbol.for("graceful-fs.previous");
196908
- } else {
196909
- gracefulQueue = "___graceful-fs.queue";
196910
- previousSymbol = "___graceful-fs.previous";
196911
- }
196912
- function noop() {
196913
- }
196914
- function publishQueue(context, queue2) {
196915
- Object.defineProperty(context, gracefulQueue, {
196916
- get: function() {
196917
- return queue2;
196918
- }
196919
- });
196920
- }
196921
- var debug2 = noop;
196922
- if (util.debuglog)
196923
- debug2 = util.debuglog("gfs4");
196924
- else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
196925
- debug2 = function() {
196926
- var m = util.format.apply(util, arguments);
196927
- m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
196928
- console.error(m);
196929
- };
196930
- if (!fs[gracefulQueue]) {
196931
- queue = global[gracefulQueue] || [];
196932
- publishQueue(fs, queue);
196933
- fs.close = function(fs$close) {
196934
- function close(fd, cb) {
196935
- return fs$close.call(fs, fd, function(err) {
196936
- if (!err) {
196937
- resetQueue();
196938
- }
196939
- if (typeof cb === "function")
196940
- cb.apply(this, arguments);
196941
- });
196942
- }
196943
- Object.defineProperty(close, previousSymbol, {
196944
- value: fs$close
196945
- });
196946
- return close;
196947
- }(fs.close);
196948
- fs.closeSync = function(fs$closeSync) {
196949
- function closeSync(fd) {
196950
- fs$closeSync.apply(fs, arguments);
196951
- resetQueue();
196952
- }
196953
- Object.defineProperty(closeSync, previousSymbol, {
196954
- value: fs$closeSync
196955
- });
196956
- return closeSync;
196957
- }(fs.closeSync);
196958
- if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
196959
- process.on("exit", function() {
196960
- debug2(fs[gracefulQueue]);
196961
- require("assert").equal(fs[gracefulQueue].length, 0);
196962
- });
196963
- }
196964
- }
196965
- var queue;
196966
- if (!global[gracefulQueue]) {
196967
- publishQueue(global, fs[gracefulQueue]);
196968
- }
196969
- module2.exports = patch(clone(fs));
196970
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
196971
- module2.exports = patch(fs);
196972
- fs.__patched = true;
196973
- }
196974
- function patch(fs2) {
196975
- polyfills(fs2);
196976
- fs2.gracefulify = patch;
196977
- fs2.createReadStream = createReadStream;
196978
- fs2.createWriteStream = createWriteStream;
196979
- var fs$readFile = fs2.readFile;
196980
- fs2.readFile = readFile2;
196981
- function readFile2(path, options, cb) {
196982
- if (typeof options === "function")
196983
- cb = options, options = null;
196984
- return go$readFile(path, options, cb);
196985
- function go$readFile(path2, options2, cb2, startTime) {
196986
- return fs$readFile(path2, options2, function(err) {
196987
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
196988
- enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
196989
- else {
196990
- if (typeof cb2 === "function")
196991
- cb2.apply(this, arguments);
196992
- }
196993
- });
196994
- }
196995
- }
196996
- var fs$writeFile = fs2.writeFile;
196997
- fs2.writeFile = writeFile;
196998
- function writeFile(path, data, options, cb) {
196999
- if (typeof options === "function")
197000
- cb = options, options = null;
197001
- return go$writeFile(path, data, options, cb);
197002
- function go$writeFile(path2, data2, options2, cb2, startTime) {
197003
- return fs$writeFile(path2, data2, options2, function(err) {
197004
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
197005
- enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
197006
- else {
197007
- if (typeof cb2 === "function")
197008
- cb2.apply(this, arguments);
197009
- }
197010
- });
197011
- }
197012
- }
197013
- var fs$appendFile = fs2.appendFile;
197014
- if (fs$appendFile)
197015
- fs2.appendFile = appendFile;
197016
- function appendFile(path, data, options, cb) {
197017
- if (typeof options === "function")
197018
- cb = options, options = null;
197019
- return go$appendFile(path, data, options, cb);
197020
- function go$appendFile(path2, data2, options2, cb2, startTime) {
197021
- return fs$appendFile(path2, data2, options2, function(err) {
197022
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
197023
- enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
197024
- else {
197025
- if (typeof cb2 === "function")
197026
- cb2.apply(this, arguments);
197027
- }
197028
- });
197029
- }
197030
- }
197031
- var fs$copyFile = fs2.copyFile;
197032
- if (fs$copyFile)
197033
- fs2.copyFile = copyFile;
197034
- function copyFile(src, dest, flags, cb) {
197035
- if (typeof flags === "function") {
197036
- cb = flags;
197037
- flags = 0;
197038
- }
197039
- return go$copyFile(src, dest, flags, cb);
197040
- function go$copyFile(src2, dest2, flags2, cb2, startTime) {
197041
- return fs$copyFile(src2, dest2, flags2, function(err) {
197042
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
197043
- enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
197044
- else {
197045
- if (typeof cb2 === "function")
197046
- cb2.apply(this, arguments);
197047
- }
197048
- });
197049
- }
197050
- }
197051
- var fs$readdir = fs2.readdir;
197052
- fs2.readdir = readdir;
197053
- var noReaddirOptionVersions = /^v[0-5]\./;
197054
- function readdir(path, options, cb) {
197055
- if (typeof options === "function")
197056
- cb = options, options = null;
197057
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
197058
- return fs$readdir(path2, fs$readdirCallback(
197059
- path2,
197060
- options2,
197061
- cb2,
197062
- startTime
197063
- ));
197064
- } : function go$readdir2(path2, options2, cb2, startTime) {
197065
- return fs$readdir(path2, options2, fs$readdirCallback(
197066
- path2,
197067
- options2,
197068
- cb2,
197069
- startTime
197070
- ));
197071
- };
197072
- return go$readdir(path, options, cb);
197073
- function fs$readdirCallback(path2, options2, cb2, startTime) {
197074
- return function(err, files) {
197075
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
197076
- enqueue([
197077
- go$readdir,
197078
- [path2, options2, cb2],
197079
- err,
197080
- startTime || Date.now(),
197081
- Date.now()
197082
- ]);
197083
- else {
197084
- if (files && files.sort)
197085
- files.sort();
197086
- if (typeof cb2 === "function")
197087
- cb2.call(this, err, files);
197088
- }
197089
- };
197090
- }
197091
- }
197092
- if (process.version.substr(0, 4) === "v0.8") {
197093
- var legStreams = legacy(fs2);
197094
- ReadStream = legStreams.ReadStream;
197095
- WriteStream = legStreams.WriteStream;
197096
- }
197097
- var fs$ReadStream = fs2.ReadStream;
197098
- if (fs$ReadStream) {
197099
- ReadStream.prototype = Object.create(fs$ReadStream.prototype);
197100
- ReadStream.prototype.open = ReadStream$open;
197101
- }
197102
- var fs$WriteStream = fs2.WriteStream;
197103
- if (fs$WriteStream) {
197104
- WriteStream.prototype = Object.create(fs$WriteStream.prototype);
197105
- WriteStream.prototype.open = WriteStream$open;
197106
- }
197107
- Object.defineProperty(fs2, "ReadStream", {
197108
- get: function() {
197109
- return ReadStream;
197110
- },
197111
- set: function(val) {
197112
- ReadStream = val;
197113
- },
197114
- enumerable: true,
197115
- configurable: true
197116
- });
197117
- Object.defineProperty(fs2, "WriteStream", {
197118
- get: function() {
197119
- return WriteStream;
197120
- },
197121
- set: function(val) {
197122
- WriteStream = val;
197123
- },
197124
- enumerable: true,
197125
- configurable: true
197126
- });
197127
- var FileReadStream = ReadStream;
197128
- Object.defineProperty(fs2, "FileReadStream", {
197129
- get: function() {
197130
- return FileReadStream;
197131
- },
197132
- set: function(val) {
197133
- FileReadStream = val;
197134
- },
197135
- enumerable: true,
197136
- configurable: true
197137
- });
197138
- var FileWriteStream = WriteStream;
197139
- Object.defineProperty(fs2, "FileWriteStream", {
197140
- get: function() {
197141
- return FileWriteStream;
197142
- },
197143
- set: function(val) {
197144
- FileWriteStream = val;
197145
- },
197146
- enumerable: true,
197147
- configurable: true
197148
- });
197149
- function ReadStream(path, options) {
197150
- if (this instanceof ReadStream)
197151
- return fs$ReadStream.apply(this, arguments), this;
197152
- else
197153
- return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
197154
- }
197155
- function ReadStream$open() {
197156
- var that = this;
197157
- open(that.path, that.flags, that.mode, function(err, fd) {
197158
- if (err) {
197159
- if (that.autoClose)
197160
- that.destroy();
197161
- that.emit("error", err);
197162
- } else {
197163
- that.fd = fd;
197164
- that.emit("open", fd);
197165
- that.read();
197166
- }
197167
- });
197168
- }
197169
- function WriteStream(path, options) {
197170
- if (this instanceof WriteStream)
197171
- return fs$WriteStream.apply(this, arguments), this;
197172
- else
197173
- return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
197174
- }
197175
- function WriteStream$open() {
197176
- var that = this;
197177
- open(that.path, that.flags, that.mode, function(err, fd) {
197178
- if (err) {
197179
- that.destroy();
197180
- that.emit("error", err);
197181
- } else {
197182
- that.fd = fd;
197183
- that.emit("open", fd);
197184
- }
197185
- });
197186
- }
197187
- function createReadStream(path, options) {
197188
- return new fs2.ReadStream(path, options);
197189
- }
197190
- function createWriteStream(path, options) {
197191
- return new fs2.WriteStream(path, options);
197192
- }
197193
- var fs$open = fs2.open;
197194
- fs2.open = open;
197195
- function open(path, flags, mode, cb) {
197196
- if (typeof mode === "function")
197197
- cb = mode, mode = null;
197198
- return go$open(path, flags, mode, cb);
197199
- function go$open(path2, flags2, mode2, cb2, startTime) {
197200
- return fs$open(path2, flags2, mode2, function(err, fd) {
197201
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
197202
- enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
197203
- else {
197204
- if (typeof cb2 === "function")
197205
- cb2.apply(this, arguments);
197206
- }
197207
- });
197208
- }
197209
- }
197210
- return fs2;
197211
- }
197212
- function enqueue(elem) {
197213
- debug2("ENQUEUE", elem[0].name, elem[1]);
197214
- fs[gracefulQueue].push(elem);
197215
- retry();
197216
- }
197217
- var retryTimer;
197218
- function resetQueue() {
197219
- var now = Date.now();
197220
- for (var i = 0; i < fs[gracefulQueue].length; ++i) {
197221
- if (fs[gracefulQueue][i].length > 2) {
197222
- fs[gracefulQueue][i][3] = now;
197223
- fs[gracefulQueue][i][4] = now;
197224
- }
197225
- }
197226
- retry();
197227
- }
197228
- function retry() {
197229
- clearTimeout(retryTimer);
197230
- retryTimer = void 0;
197231
- if (fs[gracefulQueue].length === 0)
197232
- return;
197233
- var elem = fs[gracefulQueue].shift();
197234
- var fn = elem[0];
197235
- var args = elem[1];
197236
- var err = elem[2];
197237
- var startTime = elem[3];
197238
- var lastTime = elem[4];
197239
- if (startTime === void 0) {
197240
- debug2("RETRY", fn.name, args);
197241
- fn.apply(null, args);
197242
- } else if (Date.now() - startTime >= 6e4) {
197243
- debug2("TIMEOUT", fn.name, args);
197244
- var cb = args.pop();
197245
- if (typeof cb === "function")
197246
- cb.call(null, err);
197247
- } else {
197248
- var sinceAttempt = Date.now() - lastTime;
197249
- var sinceStart = Math.max(lastTime - startTime, 1);
197250
- var desiredDelay = Math.min(sinceStart * 1.2, 100);
197251
- if (sinceAttempt >= desiredDelay) {
197252
- debug2("RETRY", fn.name, args);
197253
- fn.apply(null, args.concat([startTime]));
197254
- } else {
197255
- fs[gracefulQueue].push(elem);
197256
- }
197257
- }
197258
- if (retryTimer === void 0) {
197259
- retryTimer = setTimeout(retry, 0);
197260
- }
197261
- }
197262
- }
197263
- });
197264
-
197265
196457
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/jsonfile@6.1.0/node_modules/jsonfile/utils.js
197266
196458
  var require_utils2 = __commonJS({
197267
196459
  "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
@@ -197284,7 +196476,7 @@ var require_jsonfile = __commonJS({
197284
196476
  "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module2) {
197285
196477
  var _fs;
197286
196478
  try {
197287
- _fs = require_graceful_fs2();
196479
+ _fs = require_graceful_fs();
197288
196480
  } catch (_) {
197289
196481
  _fs = require("fs");
197290
196482
  }
@@ -198622,13 +197814,12 @@ Message from ${inputFile}: ${compiled[id]}
198622
197814
  }
198623
197815
  async function compileAndWrite(inputFiles, compileOpts = {}) {
198624
197816
  const { outFile, ...opts } = compileOpts;
198625
- const serializedResult = await compile7(inputFiles, opts);
197817
+ const serializedResult = await compile7(inputFiles, opts) + "\n";
198626
197818
  if (outFile) {
198627
197819
  debug("Writing output file:", outFile);
198628
197820
  return (0, import_fs_extra2.outputFile)(outFile, serializedResult);
198629
197821
  }
198630
197822
  await writeStdout(serializedResult);
198631
- await writeStdout("\n");
198632
197823
  }
198633
197824
  var import_icu_messageformat_parser3, import_fs_extra2, import_json_stable_stringify2;
198634
197825
  var init_compile = __esm({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/cli",
3
- "version": "6.2.12",
3
+ "version": "6.2.13",
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": "6.4.2"
36
+ "@formatjs/cli-lib": "6.4.3"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@glimmer/env": "^0.1.7",