piral-cli 0.14.8-beta.3490 → 0.14.8-beta.3509

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.
@@ -31271,7 +31271,6 @@ module.exports = input => typeof input === 'string' ? input.replace(ansiRegex(),
31271
31271
 
31272
31272
  module.exports = glob
31273
31273
 
31274
- var fs = __webpack_require__(747)
31275
31274
  var rp = __webpack_require__(741)
31276
31275
  var minimatch = __webpack_require__(170)
31277
31276
  var Minimatch = minimatch.Minimatch
@@ -31732,7 +31731,7 @@ Glob.prototype._readdirInGlobStar = function (abs, cb) {
31732
31731
  var lstatcb = inflight(lstatkey, lstatcb_)
31733
31732
 
31734
31733
  if (lstatcb)
31735
- fs.lstat(abs, lstatcb)
31734
+ self.fs.lstat(abs, lstatcb)
31736
31735
 
31737
31736
  function lstatcb_ (er, lstat) {
31738
31737
  if (er && er.code === 'ENOENT')
@@ -31773,7 +31772,7 @@ Glob.prototype._readdir = function (abs, inGlobStar, cb) {
31773
31772
  }
31774
31773
 
31775
31774
  var self = this
31776
- fs.readdir(abs, readdirCb(this, abs, cb))
31775
+ self.fs.readdir(abs, readdirCb(this, abs, cb))
31777
31776
  }
31778
31777
 
31779
31778
  function readdirCb (self, abs, cb) {
@@ -31977,13 +31976,13 @@ Glob.prototype._stat = function (f, cb) {
31977
31976
  var self = this
31978
31977
  var statcb = inflight('stat\0' + abs, lstatcb_)
31979
31978
  if (statcb)
31980
- fs.lstat(abs, statcb)
31979
+ self.fs.lstat(abs, statcb)
31981
31980
 
31982
31981
  function lstatcb_ (er, lstat) {
31983
31982
  if (lstat && lstat.isSymbolicLink()) {
31984
31983
  // If it's a symlink, then treat it as the target, unless
31985
31984
  // the target does not exist, then treat it as a file.
31986
- return fs.stat(abs, function (er, stat) {
31985
+ return self.fs.stat(abs, function (er, stat) {
31987
31986
  if (er)
31988
31987
  self._stat2(f, abs, null, lstat, cb)
31989
31988
  else
@@ -49206,7 +49205,6 @@ module.exports = (chalk, tmp) => {
49206
49205
  module.exports = globSync
49207
49206
  globSync.GlobSync = GlobSync
49208
49207
 
49209
- var fs = __webpack_require__(747)
49210
49208
  var rp = __webpack_require__(741)
49211
49209
  var minimatch = __webpack_require__(170)
49212
49210
  var Minimatch = minimatch.Minimatch
@@ -49451,7 +49449,7 @@ GlobSync.prototype._readdirInGlobStar = function (abs) {
49451
49449
  var lstat
49452
49450
  var stat
49453
49451
  try {
49454
- lstat = fs.lstatSync(abs)
49452
+ lstat = this.fs.lstatSync(abs)
49455
49453
  } catch (er) {
49456
49454
  if (er.code === 'ENOENT') {
49457
49455
  // lstat failed, doesn't exist
@@ -49488,7 +49486,7 @@ GlobSync.prototype._readdir = function (abs, inGlobStar) {
49488
49486
  }
49489
49487
 
49490
49488
  try {
49491
- return this._readdirEntries(abs, fs.readdirSync(abs))
49489
+ return this._readdirEntries(abs, this.fs.readdirSync(abs))
49492
49490
  } catch (er) {
49493
49491
  this._readdirError(abs, er)
49494
49492
  return null
@@ -49647,7 +49645,7 @@ GlobSync.prototype._stat = function (f) {
49647
49645
  if (!stat) {
49648
49646
  var lstat
49649
49647
  try {
49650
- lstat = fs.lstatSync(abs)
49648
+ lstat = this.fs.lstatSync(abs)
49651
49649
  } catch (er) {
49652
49650
  if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
49653
49651
  this.statCache[abs] = false
@@ -49657,7 +49655,7 @@ GlobSync.prototype._stat = function (f) {
49657
49655
 
49658
49656
  if (lstat && lstat.isSymbolicLink()) {
49659
49657
  try {
49660
- stat = fs.statSync(abs)
49658
+ stat = this.fs.statSync(abs)
49661
49659
  } catch (er) {
49662
49660
  stat = lstat
49663
49661
  }
@@ -50325,6 +50323,7 @@ function ownProp (obj, field) {
50325
50323
  return Object.prototype.hasOwnProperty.call(obj, field)
50326
50324
  }
50327
50325
 
50326
+ var fs = __webpack_require__(747)
50328
50327
  var path = __webpack_require__(622)
50329
50328
  var minimatch = __webpack_require__(170)
50330
50329
  var isAbsolute = __webpack_require__(418)
@@ -50390,6 +50389,7 @@ function setopts (self, pattern, options) {
50390
50389
  self.stat = !!options.stat
50391
50390
  self.noprocess = !!options.noprocess
50392
50391
  self.absolute = !!options.absolute
50392
+ self.fs = options.fs || fs
50393
50393
 
50394
50394
  self.maxLength = options.maxLength || Infinity
50395
50395
  self.cache = options.cache || Object.create(null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-cli",
3
- "version": "0.14.8-beta.3490",
3
+ "version": "0.14.8-beta.3509",
4
4
  "description": "The standard CLI for creating and building a Piral instance or a Pilet.",
5
5
  "keywords": [
6
6
  "portal",
@@ -77,5 +77,5 @@
77
77
  "typescript": "^4.0.2",
78
78
  "yargs": "^15.4.1"
79
79
  },
80
- "gitHead": "c8a70566a926e3306ad5aee94e0f3f7b1bc3d690"
80
+ "gitHead": "309b0cc1deb3e3a7d717963913d0b834b9f484ac"
81
81
  }