Node updated. Some todos.
This commit is contained in:
6
Scripts/node_modules/tar-fs/index.js
generated
vendored
6
Scripts/node_modules/tar-fs/index.js
generated
vendored
@ -1,10 +1,9 @@
|
||||
const tar = require('tar-stream')
|
||||
const pump = require('pump')
|
||||
const mkdirp = require('mkdirp-classic')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const win32 = process.platform === 'win32'
|
||||
const win32 = (global.Bare?.platform || process.platform) === 'win32'
|
||||
|
||||
exports.pack = function pack (cwd, opts) {
|
||||
if (!cwd) cwd = '.'
|
||||
@ -45,6 +44,7 @@ exports.pack = function pack (cwd, opts) {
|
||||
}
|
||||
|
||||
function onstat (err, filename, stat) {
|
||||
if (pack.destroyed) return
|
||||
if (err) return pack.destroy(err)
|
||||
if (!filename) {
|
||||
if (opts.finalize !== false) pack.finalize()
|
||||
@ -298,7 +298,7 @@ exports.extract = function extract (cwd, opts) {
|
||||
xfs.stat(name, function (err) {
|
||||
if (!err) return cb(null)
|
||||
if (err.code !== 'ENOENT') return cb(err)
|
||||
mkdirp(name, { fs: opts.fs, mode: opts.mode }, function (err, made) {
|
||||
xfs.mkdir(name, { mode: opts.mode, recursive: true }, function (err, made) {
|
||||
if (err) return cb(err)
|
||||
chperm(name, opts, cb)
|
||||
})
|
||||
|
||||
17
Scripts/node_modules/tar-fs/package.json
generated
vendored
17
Scripts/node_modules/tar-fs/package.json
generated
vendored
@ -1,12 +1,25 @@
|
||||
{
|
||||
"name": "tar-fs",
|
||||
"version": "3.0.4",
|
||||
"version": "3.0.6",
|
||||
"description": "filesystem bindings for tar-stream",
|
||||
"dependencies": {
|
||||
"mkdirp-classic": "^0.5.2",
|
||||
"pump": "^3.0.0",
|
||||
"tar-stream": "^3.1.5"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"bare-fs": "^2.1.1",
|
||||
"bare-path": "^2.1.0"
|
||||
},
|
||||
"imports": {
|
||||
"fs": {
|
||||
"bare": "bare-fs",
|
||||
"default": "fs"
|
||||
},
|
||||
"path": {
|
||||
"bare": "bare-path",
|
||||
"default": "path"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user