extract-base-iterator 1.1.5 → 1.1.6
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.
- package/dist/cjs/DirectoryEntry.js +4 -3
- package/dist/cjs/DirectoryEntry.js.map +1 -1
- package/dist/cjs/FileEntry.js +4 -3
- package/dist/cjs/FileEntry.js.map +1 -1
- package/dist/cjs/LinkEntry.js +4 -3
- package/dist/cjs/LinkEntry.js.map +1 -1
- package/dist/cjs/SymbolicLinkEntry.js +4 -3
- package/dist/cjs/SymbolicLinkEntry.js.map +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/DirectoryEntry.mjs +4 -3
- package/dist/esm/DirectoryEntry.mjs.map +1 -1
- package/dist/esm/FileEntry.mjs +4 -3
- package/dist/esm/FileEntry.mjs.map +1 -1
- package/dist/esm/LinkEntry.mjs +4 -3
- package/dist/esm/LinkEntry.mjs.map +1 -1
- package/dist/esm/SymbolicLinkEntry.mjs +4 -3
- package/dist/esm/SymbolicLinkEntry.mjs.map +1 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +9 -11
- package/dist/cjs/polyfills.js +0 -3
- package/dist/cjs/polyfills.js.map +0 -1
- package/dist/esm/polyfills.cjs +0 -1
- package/dist/esm/polyfills.cjs.map +0 -1
- package/dist/types/polyfills.d.cts +0 -1
|
@@ -9,7 +9,8 @@ Object.defineProperty(exports, "default", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
var _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
12
|
-
var
|
|
12
|
+
var _mkdirpclassic = /*#__PURE__*/ _interop_require_default(require("mkdirp-classic"));
|
|
13
|
+
var _objectassign = /*#__PURE__*/ _interop_require_default(require("object-assign"));
|
|
13
14
|
var _queuecb = /*#__PURE__*/ _interop_require_default(require("queue-cb"));
|
|
14
15
|
var _chmod = /*#__PURE__*/ _interop_require_default(require("./fs/chmod.js"));
|
|
15
16
|
var _chown = /*#__PURE__*/ _interop_require_default(require("./fs/chown.js"));
|
|
@@ -28,7 +29,7 @@ var MANDATORY_ATTRIBUTES = [
|
|
|
28
29
|
];
|
|
29
30
|
function DirectoryEntry(attributes) {
|
|
30
31
|
(0, _validateAttributes.default)(attributes, MANDATORY_ATTRIBUTES);
|
|
31
|
-
|
|
32
|
+
(0, _objectassign.default)(this, attributes);
|
|
32
33
|
if (this.type === undefined) this.type = 'directory';
|
|
33
34
|
if (this.basename === undefined) this.basename = _path.default.basename(this.path);
|
|
34
35
|
}
|
|
@@ -45,7 +46,7 @@ DirectoryEntry.prototype.create = function create(dest, options, callback) {
|
|
|
45
46
|
var fullPath = _path.default.join(dest, (0, _stripPath.default)(normalizedPath, options));
|
|
46
47
|
// do not check for the existence of the directory but allow out-of-order calling
|
|
47
48
|
var queue = new _queuecb.default(1);
|
|
48
|
-
queue.defer(
|
|
49
|
+
queue.defer(_mkdirpclassic.default.bind(null, fullPath));
|
|
49
50
|
queue.defer(_chmod.default.bind(null, fullPath, self, options));
|
|
50
51
|
queue.defer(_chown.default.bind(null, fullPath, self, options));
|
|
51
52
|
queue.defer(_utimes.default.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["DirectoryEntry.mjs"],"sourcesContent":["import path from 'path';\nimport
|
|
1
|
+
{"version":3,"sources":["DirectoryEntry.mjs"],"sourcesContent":["import path from 'path';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\n\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\n\nexport default function DirectoryEntry(attributes) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.type === undefined) this.type = 'directory';\n if (this.basename === undefined) this.basename = path.basename(this.path);\n}\n\nDirectoryEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n\n // do not check for the existence of the directory but allow out-of-order calling\n const queue = new Queue(1);\n queue.defer(mkdirp.bind(null, fullPath));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nDirectoryEntry.prototype.destroy = function destroy() {};\n"],"names":["DirectoryEntry","MANDATORY_ATTRIBUTES","attributes","validateAttributes","objectAssign","type","undefined","basename","path","prototype","create","dest","options","callback","self","normalizedPath","normalize","fullPath","join","stripPath","queue","Queue","defer","mkdirp","bind","chmod","chown","utimes","await","err","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":";;;;+BAaA;;;eAAwBA;;;2DAbP;oEACE;mEACM;8DACP;4DAEA;4DACA;6DACC;gEACG;yEACS;;;;;;AAE/B,IAAMC,uBAAuB;IAAC;IAAQ;IAAS;CAAO;AAEvC,SAASD,eAAeE,UAAU;IAC/CC,IAAAA,2BAAkB,EAACD,YAAYD;IAC/BG,IAAAA,qBAAY,EAAC,IAAI,EAAEF;IACnB,IAAI,IAAI,CAACG,IAAI,KAAKC,WAAW,IAAI,CAACD,IAAI,GAAG;IACzC,IAAI,IAAI,CAACE,QAAQ,KAAKD,WAAW,IAAI,CAACC,QAAQ,GAAGC,aAAI,CAACD,QAAQ,CAAC,IAAI,CAACC,IAAI;AAC1E;AAEAR,eAAeS,SAAS,CAACC,MAAM,GAAG,SAASA,OAAOC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IACvE,IAAI,OAAOD,YAAY,YAAY;QACjCC,WAAWD;QACXA,UAAU;IACZ;IAEA,IAAME,OAAO,IAAI;IACjB,IAAI,OAAOD,aAAa,YAAY;QAClCD,UAAUA,WAAW,CAAC;QACtB,IAAI;YACF,IAAMG,iBAAiBP,aAAI,CAACQ,SAAS,CAACF,KAAKN,IAAI;YAC/C,IAAMS,WAAWT,aAAI,CAACU,IAAI,CAACP,MAAMQ,IAAAA,kBAAS,EAACJ,gBAAgBH;YAE3D,iFAAiF;YACjF,IAAMQ,QAAQ,IAAIC,gBAAK,CAAC;YACxBD,MAAME,KAAK,CAACC,sBAAM,CAACC,IAAI,CAAC,MAAMP;YAC9BG,MAAME,KAAK,CAACG,cAAK,CAACD,IAAI,CAAC,MAAMP,UAAUH,MAAMF;YAC7CQ,MAAME,KAAK,CAACI,cAAK,CAACF,IAAI,CAAC,MAAMP,UAAUH,MAAMF;YAC7CQ,MAAME,KAAK,CAACK,eAAM,CAACH,IAAI,CAAC,MAAMP,UAAUH,MAAMF;YAC9C,OAAOQ,MAAMQ,KAAK,CAACf;QACrB,EAAE,OAAOgB,KAAK;YACZ,OAAOhB,SAASgB;QAClB;IACF;IAEA,OAAO,IAAIC,QAAQ,SAASC,cAAcC,OAAO,EAAEC,MAAM;QACvDnB,KAAKJ,MAAM,CAACC,MAAMC,SAAS,SAASsB,eAAeL,GAAG,EAAEM,IAAI;YAC1DN,MAAMI,OAAOJ,OAAOG,QAAQG;QAC9B;IACF;AACF;AAEAnC,eAAeS,SAAS,CAAC2B,OAAO,GAAG,SAASA,WAAW"}
|
package/dist/cjs/FileEntry.js
CHANGED
|
@@ -9,7 +9,8 @@ Object.defineProperty(exports, "default", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
var _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
12
|
-
var
|
|
12
|
+
var _mkdirpclassic = /*#__PURE__*/ _interop_require_default(require("mkdirp-classic"));
|
|
13
|
+
var _objectassign = /*#__PURE__*/ _interop_require_default(require("object-assign"));
|
|
13
14
|
var _queuecb = /*#__PURE__*/ _interop_require_default(require("queue-cb"));
|
|
14
15
|
var _rimraf2 = /*#__PURE__*/ _interop_require_default(require("rimraf2"));
|
|
15
16
|
var _chmod = /*#__PURE__*/ _interop_require_default(require("./fs/chmod.js"));
|
|
@@ -29,7 +30,7 @@ var MANDATORY_ATTRIBUTES = [
|
|
|
29
30
|
];
|
|
30
31
|
function FileEntry(attributes) {
|
|
31
32
|
(0, _validateAttributes.default)(attributes, MANDATORY_ATTRIBUTES);
|
|
32
|
-
|
|
33
|
+
(0, _objectassign.default)(this, attributes);
|
|
33
34
|
if (this.basename === undefined) this.basename = _path.default.basename(this.path);
|
|
34
35
|
if (this.type === undefined) this.type = 'file';
|
|
35
36
|
if (this._writeFile === undefined) throw new Error('File self missing _writeFile. Please implement this method in your subclass');
|
|
@@ -55,7 +56,7 @@ FileEntry.prototype.create = function create(dest, options, callback) {
|
|
|
55
56
|
});
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
|
-
queue.defer(
|
|
59
|
+
queue.defer(_mkdirpclassic.default.bind(null, _path.default.dirname(fullPath)));
|
|
59
60
|
queue.defer(this._writeFile.bind(this, fullPath, options));
|
|
60
61
|
queue.defer(_chmod.default.bind(null, fullPath, self, options));
|
|
61
62
|
queue.defer(_chown.default.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["FileEntry.mjs"],"sourcesContent":["import path from 'path';\nimport
|
|
1
|
+
{"version":3,"sources":["FileEntry.mjs"],"sourcesContent":["import path from 'path';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\n\nimport rimraf2 from 'rimraf2';\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\n\nexport default function FileEntry(attributes) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.basename === undefined) this.basename = path.basename(this.path);\n if (this.type === undefined) this.type = 'file';\n if (this._writeFile === undefined) throw new Error('File self missing _writeFile. Please implement this method in your subclass');\n}\n\nFileEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n\n const queue = new Queue(1);\n if (options.force) {\n queue.defer((callback) => {\n rimraf2(fullPath, { disableGlob: true }, (err) => {\n err && err.code !== 'ENOENT' ? callback(err) : callback();\n });\n });\n }\n queue.defer(mkdirp.bind(null, path.dirname(fullPath)));\n queue.defer(this._writeFile.bind(this, fullPath, options));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nFileEntry.prototype.destroy = function destroy() {};\n"],"names":["FileEntry","MANDATORY_ATTRIBUTES","attributes","validateAttributes","objectAssign","basename","undefined","path","type","_writeFile","Error","prototype","create","dest","options","callback","self","normalizedPath","normalize","fullPath","join","stripPath","queue","Queue","force","defer","rimraf2","disableGlob","err","code","mkdirp","bind","dirname","chmod","chown","utimes","await","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":";;;;+BAcA;;;eAAwBA;;;2DAdP;oEACE;mEACM;8DACP;8DAEE;4DACF;4DACA;6DACC;gEACG;yEACS;;;;;;AAE/B,IAAMC,uBAAuB;IAAC;I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CAAC,MAAMZ,UAAUH,MAAMF;YAC7CQ,MAAMG,KAAK,CAACS,cAAK,CAACH,IAAI,CAAC,MAAMZ,UAAUH,MAAMF;YAC7CQ,MAAMG,KAAK,CAACU,eAAM,CAACJ,IAAI,CAAC,MAAMZ,UAAUH,MAAMF;YAC9C,OAAOQ,MAAMc,KAAK,CAACrB;QACrB,EAAE,OAAOa,KAAK;YACZ,OAAOb,SAASa;QAClB;IACF;IAEA,OAAO,IAAIS,QAAQ,SAASC,cAAcC,OAAO,EAAEC,MAAM;QACvDxB,KAAKJ,MAAM,CAACC,MAAMC,SAAS,SAAS2B,eAAeb,GAAG,EAAEc,IAAI;YAC1Dd,MAAMY,OAAOZ,OAAOW,QAAQG;QAC9B;IACF;AACF;AAEA1C,UAAUW,SAAS,CAACgC,OAAO,GAAG,SAASA,WAAW"}
|
package/dist/cjs/LinkEntry.js
CHANGED
|
@@ -10,7 +10,8 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
});
|
|
11
11
|
var _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
12
12
|
var _gracefulfs = /*#__PURE__*/ _interop_require_default(require("graceful-fs"));
|
|
13
|
-
var
|
|
13
|
+
var _mkdirpclassic = /*#__PURE__*/ _interop_require_default(require("mkdirp-classic"));
|
|
14
|
+
var _objectassign = /*#__PURE__*/ _interop_require_default(require("object-assign"));
|
|
14
15
|
var _queuecb = /*#__PURE__*/ _interop_require_default(require("queue-cb"));
|
|
15
16
|
var _rimraf2 = /*#__PURE__*/ _interop_require_default(require("rimraf2"));
|
|
16
17
|
var _chmod = /*#__PURE__*/ _interop_require_default(require("./fs/chmod.js"));
|
|
@@ -31,7 +32,7 @@ var MANDATORY_ATTRIBUTES = [
|
|
|
31
32
|
];
|
|
32
33
|
function LinkEntry(attributes, _type) {
|
|
33
34
|
(0, _validateAttributes.default)(attributes, MANDATORY_ATTRIBUTES);
|
|
34
|
-
|
|
35
|
+
(0, _objectassign.default)(this, attributes);
|
|
35
36
|
if (this.basename === undefined) this.basename = _path.default.basename(this.path);
|
|
36
37
|
if (this.type === undefined) this.type = 'link';
|
|
37
38
|
}
|
|
@@ -58,7 +59,7 @@ LinkEntry.prototype.create = function create(dest, options, callback) {
|
|
|
58
59
|
});
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
|
-
queue.defer(
|
|
62
|
+
queue.defer(_mkdirpclassic.default.bind(null, _path.default.dirname(fullPath)));
|
|
62
63
|
queue.defer(_gracefulfs.default.link.bind(_gracefulfs.default, linkFullPath, fullPath));
|
|
63
64
|
queue.defer(_chmod.default.bind(null, fullPath, self, options));
|
|
64
65
|
queue.defer(_chown.default.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["LinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport
|
|
1
|
+
{"version":3,"sources":["LinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path', 'linkpath'];\n\nexport default function LinkEntry(attributes, _type) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.basename === undefined) this.basename = path.basename(this.path);\n if (this.type === undefined) this.type = 'link';\n}\n\nLinkEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n const normalizedLinkpath = path.normalize(self.linkpath);\n const linkFullPath = path.join(dest, stripPath(normalizedLinkpath, options));\n\n const queue = new Queue(1);\n if (options.force) {\n queue.defer((callback) => {\n rimraf2(fullPath, { disableGlob: true }, (err) => {\n err && err.code !== 'ENOENT' ? callback(err) : callback();\n });\n });\n }\n queue.defer(mkdirp.bind(null, path.dirname(fullPath)));\n queue.defer(fs.link.bind(fs, linkFullPath, fullPath));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nLinkEntry.prototype.destroy = function destroy() {};\n"],"names":["LinkEntry","MANDATORY_ATTRIBUTES","attributes","_type","validateAttributes","objectAssign","basename","undefined","path","type","prototype","create","dest","options","callback","self","normalizedPath","normalize","fullPath","join","stripPath","normalizedLinkpath","linkpath","linkFullPath","queue","Queue","force","defer","rimraf2","disableGlob","err","code","mkdirp","bind","dirname","fs","link","chmod","chown","utimes","await","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":";;;;+BAeA;;;eAAwBA;;;2DAfP;iEACF;oEACI;mEACM;8DACP;8DACE;4DAEF;4DACA;6DACC;gEACG;yEACS;;;;;;AAE/B,IAAMC,uBAAuB;IAAC;IAAQ;IAAS;IAAQ;CAAW;AAEnD,SAASD,UAAUE,UAAU,EAAEC,KAAK;IACjDC,IAAAA,2BAAkB,EAACF,YAAYD;IAC/BI,IAAAA,qBAAY,EAAC,IAAI,EAAEH;IACnB,IAAI,IAAI,CAACI,QAAQ,KAAKC,WAAW,IAAI,CAACD,QAAQ,GAAGE,aAAI,CAACF,QAAQ,CAAC,IAAI,CAACE,IAAI;IACxE,IAAI,IAAI,CAACC,IAAI,KAAKF,WAAW,IAAI,CAACE,IAAI,GAAG;AAC3C;AAEAT,UAAUU,SAAS,CAACC,MAAM,GAA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;QAClB;IACF;IAEA,OAAO,IAAIW,QAAQ,SAASC,cAAcC,OAAO,EAAEC,MAAM;QACvD7B,KAAKJ,MAAM,CAACC,MAAMC,SAAS,SAASgC,eAAef,GAAG,EAAEgB,IAAI;YAC1DhB,MAAMc,OAAOd,OAAOa,QAAQG;QAC9B;IACF;AACF;AAEA9C,UAAUU,SAAS,CAACqC,OAAO,GAAG,SAASA,WAAW"}
|
|
@@ -11,7 +11,8 @@ Object.defineProperty(exports, "default", {
|
|
|
11
11
|
var _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
12
12
|
var _gracefulfs = /*#__PURE__*/ _interop_require_default(require("graceful-fs"));
|
|
13
13
|
var _isabsolute = /*#__PURE__*/ _interop_require_default(require("is-absolute"));
|
|
14
|
-
var
|
|
14
|
+
var _mkdirpclassic = /*#__PURE__*/ _interop_require_default(require("mkdirp-classic"));
|
|
15
|
+
var _objectassign = /*#__PURE__*/ _interop_require_default(require("object-assign"));
|
|
15
16
|
var _queuecb = /*#__PURE__*/ _interop_require_default(require("queue-cb"));
|
|
16
17
|
var _rimraf2 = /*#__PURE__*/ _interop_require_default(require("rimraf2"));
|
|
17
18
|
var _chmod = /*#__PURE__*/ _interop_require_default(require("./fs/chmod.js"));
|
|
@@ -41,7 +42,7 @@ var MANDATORY_ATTRIBUTES = [
|
|
|
41
42
|
];
|
|
42
43
|
function SymbolicLinkEntry(attributes) {
|
|
43
44
|
(0, _validateAttributes.default)(attributes, MANDATORY_ATTRIBUTES);
|
|
44
|
-
|
|
45
|
+
(0, _objectassign.default)(this, attributes);
|
|
45
46
|
if (this.basename === undefined) this.basename = _path.default.basename(this.path);
|
|
46
47
|
if (this.type === undefined) this.type = 'symlink';
|
|
47
48
|
}
|
|
@@ -73,7 +74,7 @@ SymbolicLinkEntry.prototype.create = function create(dest, options, callback) {
|
|
|
73
74
|
});
|
|
74
75
|
});
|
|
75
76
|
}
|
|
76
|
-
queue.defer(
|
|
77
|
+
queue.defer(_mkdirpclassic.default.bind(null, _path.default.dirname(fullPath)));
|
|
77
78
|
if (isWindows) queue.defer(symlinkWin32.bind(null, linkFullPath, normalizedLinkpath, fullPath));
|
|
78
79
|
else queue.defer(_gracefulfs.default.symlink.bind(_gracefulfs.default, normalizedLinkpath, fullPath));
|
|
79
80
|
queue.defer(_chmod.default.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["SymbolicLinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport isAbsolute from 'is-absolute';\nimport
|
|
1
|
+
{"version":3,"sources":["SymbolicLinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport isAbsolute from 'is-absolute';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport lstatReal from './fs/lstatReal.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nfunction symlinkWin32(linkFullPath, linkpath, fullPath, callback) {\n lstatReal(linkFullPath, (err, targetStat) => {\n if (err || !targetStat) return callback(err || new Error(`Symlink path does not exist${linkFullPath}`));\n const type = targetStat.isDirectory() ? 'dir' : 'file';\n fs.symlink(linkpath, fullPath, type, callback);\n });\n}\nconst isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path', 'linkpath'];\n\nexport default function SymbolicLinkEntry(attributes) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.basename === undefined) this.basename = path.basename(this.path);\n if (this.type === undefined) this.type = 'symlink';\n}\n\nSymbolicLinkEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n let normalizedLinkpath = path.normalize(self.linkpath);\n let linkFullPath = path.join(dest, stripPath(normalizedLinkpath, options));\n if (!isAbsolute(normalizedLinkpath)) {\n const linkRelativePath = path.join(path.dirname(normalizedPath), self.linkpath);\n linkFullPath = path.join(dest, stripPath(linkRelativePath, options));\n normalizedLinkpath = path.relative(path.dirname(fullPath), linkFullPath);\n }\n\n const queue = new Queue(1);\n if (options.force) {\n queue.defer((callback) => {\n rimraf2(fullPath, { disableGlob: true }, (err) => {\n err && err.code !== 'ENOENT' ? callback(err) : callback();\n });\n });\n }\n queue.defer(mkdirp.bind(null, path.dirname(fullPath)));\n if (isWindows) queue.defer(symlinkWin32.bind(null, linkFullPath, normalizedLinkpath, fullPath));\n else queue.defer(fs.symlink.bind(fs, normalizedLinkpath, fullPath));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nSymbolicLinkEntry.prototype.destroy = function destroy() {};\n"],"names":["SymbolicLinkEntry","symlinkWin32","linkFullPath","linkpath","fullPath","callback","lstatReal","err","targetStat","Error","type","isDirectory","fs","symlink","isWindows","process","platform","test","env","OSTYPE","MANDATORY_ATTRIBUTES","attributes","validateAttributes","objectAssign","basename","undefined","path","prototype","create","dest","options","self","normalizedPath","normalize","join","stripPath","normalizedLinkpath","isAbsolute","linkRelativePath","dirname","relative","queue","Queue","force","defer","rimraf2","disableGlob","code","mkdirp","bind","chmod","chown","utimes","await","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":";;;;+BA0BA;;;eAAwBA;;;2DA1BP;iEACF;iE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W,MAAMY,KAAK,CAAChD;QACrB,EAAE,OAAOE,KAAK;YACZ,OAAOF,SAASE;QAClB;IACF;IAEA,OAAO,IAAI+C,QAAQ,SAASC,cAAcC,OAAO,EAAEC,MAAM;QACvD1B,KAAKH,MAAM,CAACC,MAAMC,SAAS,SAAS4B,eAAenD,GAAG,EAAEoD,IAAI;YAC1DpD,MAAMkD,OAAOlD,OAAOiD,QAAQG;QAC9B;IACF;AACF;AAEA3D,kBAAkB2B,SAAS,CAACiC,OAAO,GAAG,SAASA,WAAW"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -25,7 +25,6 @@ _export(exports, {
|
|
|
25
25
|
return _default;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
require("./polyfills.js");
|
|
29
28
|
var _stackbaseiterator = /*#__PURE__*/ _interop_require_default(require("stack-base-iterator"));
|
|
30
29
|
var _DirectoryEntry = /*#__PURE__*/ _interop_require_default(require("./DirectoryEntry.js"));
|
|
31
30
|
var _FileEntry = /*#__PURE__*/ _interop_require_default(require("./FileEntry.js"));
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.mjs"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["index.mjs"],"sourcesContent":["import StackBaseIterator from 'stack-base-iterator';\n\nexport default StackBaseIterator;\nexport { default as DirectoryEntry } from './DirectoryEntry.mjs';\nexport { default as FileEntry } from './FileEntry.mjs';\nexport { default as LinkEntry } from './LinkEntry.mjs';\nexport { default as SymbolicLinkEntry } from './SymbolicLinkEntry.mjs';\n"],"names":["DirectoryEntry","FileEntry","LinkEntry","SymbolicLinkEntry","StackBaseIterator"],"mappings":";;;;;;;;;;;IAGoBA,cAAc;eAAdA,uBAAc;;IACdC,SAAS;eAATA,kBAAS;;IACTC,SAAS;eAATA,kBAAS;;IACTC,iBAAiB;eAAjBA,0BAAiB;;IAJrC,OAAiC;eAAjC;;;wEAF8B;qEAGY;gEACL;gEACA;wEACQ;;;;;;IAJ7C,WAAeC,0BAAiB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import
|
|
2
|
+
import mkdirp from 'mkdirp-classic';
|
|
3
|
+
import objectAssign from 'object-assign';
|
|
3
4
|
import Queue from 'queue-cb';
|
|
4
5
|
import chmod from './fs/chmod.mjs';
|
|
5
6
|
import chown from './fs/chown.mjs';
|
|
@@ -13,7 +14,7 @@ const MANDATORY_ATTRIBUTES = [
|
|
|
13
14
|
];
|
|
14
15
|
export default function DirectoryEntry(attributes) {
|
|
15
16
|
validateAttributes(attributes, MANDATORY_ATTRIBUTES);
|
|
16
|
-
|
|
17
|
+
objectAssign(this, attributes);
|
|
17
18
|
if (this.type === undefined) this.type = 'directory';
|
|
18
19
|
if (this.basename === undefined) this.basename = path.basename(this.path);
|
|
19
20
|
}
|
|
@@ -30,7 +31,7 @@ DirectoryEntry.prototype.create = function create(dest, options, callback) {
|
|
|
30
31
|
const fullPath = path.join(dest, stripPath(normalizedPath, options));
|
|
31
32
|
// do not check for the existence of the directory but allow out-of-order calling
|
|
32
33
|
const queue = new Queue(1);
|
|
33
|
-
queue.defer(
|
|
34
|
+
queue.defer(mkdirp.bind(null, fullPath));
|
|
34
35
|
queue.defer(chmod.bind(null, fullPath, self, options));
|
|
35
36
|
queue.defer(chown.bind(null, fullPath, self, options));
|
|
36
37
|
queue.defer(utimes.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["DirectoryEntry.mjs"],"sourcesContent":["import path from 'path';\nimport
|
|
1
|
+
{"version":3,"sources":["DirectoryEntry.mjs"],"sourcesContent":["import path from 'path';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\n\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\n\nexport default function DirectoryEntry(attributes) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.type === undefined) this.type = 'directory';\n if (this.basename === undefined) this.basename = path.basename(this.path);\n}\n\nDirectoryEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n\n // do not check for the existence of the directory but allow out-of-order calling\n const queue = new Queue(1);\n queue.defer(mkdirp.bind(null, fullPath));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nDirectoryEntry.prototype.destroy = function destroy() {};\n"],"names":["path","mkdirp","objectAssign","Queue","chmod","chown","utimes","stripPath","validateAttributes","MANDATORY_ATTRIBUTES","DirectoryEntry","attributes","type","undefined","basename","prototype","create","dest","options","callback","self","normalizedPath","normalize","fullPath","join","queue","defer","bind","await","err","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,YAAY,iBAAiB;AACpC,OAAOC,kBAAkB,gBAAgB;AACzC,OAAOC,WAAW,WAAW;AAE7B,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,YAAY,kBAAkB;AACrC,OAAOC,eAAe,kBAAkB;AACxC,OAAOC,wBAAwB,2BAA2B;AAE1D,MAAMC,uBAAuB;IAAC;IAAQ;IAAS;CAAO;AAEtD,eAAe,SAASC,eAAeC,UAAU;I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B,OAAO,GAAG,SAASA,WAAW"}
|
package/dist/esm/FileEntry.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import
|
|
2
|
+
import mkdirp from 'mkdirp-classic';
|
|
3
|
+
import objectAssign from 'object-assign';
|
|
3
4
|
import Queue from 'queue-cb';
|
|
4
5
|
import rimraf2 from 'rimraf2';
|
|
5
6
|
import chmod from './fs/chmod.mjs';
|
|
@@ -14,7 +15,7 @@ const MANDATORY_ATTRIBUTES = [
|
|
|
14
15
|
];
|
|
15
16
|
export default function FileEntry(attributes) {
|
|
16
17
|
validateAttributes(attributes, MANDATORY_ATTRIBUTES);
|
|
17
|
-
|
|
18
|
+
objectAssign(this, attributes);
|
|
18
19
|
if (this.basename === undefined) this.basename = path.basename(this.path);
|
|
19
20
|
if (this.type === undefined) this.type = 'file';
|
|
20
21
|
if (this._writeFile === undefined) throw new Error('File self missing _writeFile. Please implement this method in your subclass');
|
|
@@ -40,7 +41,7 @@ FileEntry.prototype.create = function create(dest, options, callback) {
|
|
|
40
41
|
});
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
|
-
queue.defer(
|
|
44
|
+
queue.defer(mkdirp.bind(null, path.dirname(fullPath)));
|
|
44
45
|
queue.defer(this._writeFile.bind(this, fullPath, options));
|
|
45
46
|
queue.defer(chmod.bind(null, fullPath, self, options));
|
|
46
47
|
queue.defer(chown.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["FileEntry.mjs"],"sourcesContent":["import path from 'path';\nimport
|
|
1
|
+
{"version":3,"sources":["FileEntry.mjs"],"sourcesContent":["import path from 'path';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\n\nimport rimraf2 from 'rimraf2';\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\n\nexport default function FileEntry(attributes) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.basename === undefined) this.basename = path.basename(this.path);\n if (this.type === undefined) this.type = 'file';\n if (this._writeFile === undefined) throw new Error('File self missing _writeFile. Please implement this method in your subclass');\n}\n\nFileEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n\n const queue = new Queue(1);\n if (options.force) {\n queue.defer((callback) => {\n rimraf2(fullPath, { disableGlob: true }, (err) => {\n err && err.code !== 'ENOENT' ? callback(err) : callback();\n });\n });\n }\n queue.defer(mkdirp.bind(null, path.dirname(fullPath)));\n queue.defer(this._writeFile.bind(this, fullPath, options));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nFileEntry.prototype.destroy = function destroy() {};\n"],"names":["path","mkdirp","objectAssign","Queue","rimraf2","chmod","chown","utimes","stripPath","validateAttributes","MANDATORY_ATTRIBUTES","FileEntry","attributes","basename","undefined","type","_writeFile","Error","prototype","create","dest","options","callback","self","normalizedPath","normalize","fullPath","join","queue","force","defer","disableGlob","err","code","bind","dirname","await","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,YAAY,iBAAiB;AACpC,OAAOC,kBAAkB,gBAAgB;AACzC,OAAOC,WAAW,WAAW;AAE7B,OAAOC,aAAa,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C,IAAI,CAACd,UAAU,CAACkB,IAAI,CAAC,IAAI,EAAER,UAAUL;YACjDO,MAAME,KAAK,CAACzB,MAAM6B,IAAI,CAAC,MAAMR,UAAUH,MAAMF;YAC7CO,MAAME,KAAK,CAACxB,MAAM4B,IAAI,CAAC,MAAMR,UAAUH,MAAMF;YAC7CO,MAAME,KAAK,CAACvB,OAAO2B,IAAI,CAAC,MAAMR,UAAUH,MAAMF;YAC9C,OAAOO,MAAMQ,KAAK,CAACd;QACrB,EAAE,OAAOU,KAAK;YACZ,OAAOV,SAASU;QAClB;IACF;IAEA,OAAO,IAAIK,QAAQ,SAASC,cAAcC,OAAO,EAAEC,MAAM;QACvDjB,KAAKJ,MAAM,CAACC,MAAMC,SAAS,SAASoB,eAAeT,GAAG,EAAEU,IAAI;YAC1DV,MAAMQ,OAAOR,OAAOO,QAAQG;QAC9B;IACF;AACF;AAEA/B,UAAUO,SAAS,CAACyB,OAAO,GAAG,SAASA,WAAW"}
|
package/dist/esm/LinkEntry.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import fs from 'graceful-fs';
|
|
3
|
-
import
|
|
3
|
+
import mkdirp from 'mkdirp-classic';
|
|
4
|
+
import objectAssign from 'object-assign';
|
|
4
5
|
import Queue from 'queue-cb';
|
|
5
6
|
import rimraf2 from 'rimraf2';
|
|
6
7
|
import chmod from './fs/chmod.mjs';
|
|
@@ -16,7 +17,7 @@ const MANDATORY_ATTRIBUTES = [
|
|
|
16
17
|
];
|
|
17
18
|
export default function LinkEntry(attributes, _type) {
|
|
18
19
|
validateAttributes(attributes, MANDATORY_ATTRIBUTES);
|
|
19
|
-
|
|
20
|
+
objectAssign(this, attributes);
|
|
20
21
|
if (this.basename === undefined) this.basename = path.basename(this.path);
|
|
21
22
|
if (this.type === undefined) this.type = 'link';
|
|
22
23
|
}
|
|
@@ -43,7 +44,7 @@ LinkEntry.prototype.create = function create(dest, options, callback) {
|
|
|
43
44
|
});
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
queue.defer(
|
|
47
|
+
queue.defer(mkdirp.bind(null, path.dirname(fullPath)));
|
|
47
48
|
queue.defer(fs.link.bind(fs, linkFullPath, fullPath));
|
|
48
49
|
queue.defer(chmod.bind(null, fullPath, self, options));
|
|
49
50
|
queue.defer(chown.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["LinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport
|
|
1
|
+
{"version":3,"sources":["LinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path', 'linkpath'];\n\nexport default function LinkEntry(attributes, _type) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.basename === undefined) this.basename = path.basename(this.path);\n if (this.type === undefined) this.type = 'link';\n}\n\nLinkEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n const normalizedLinkpath = path.normalize(self.linkpath);\n const linkFullPath = path.join(dest, stripPath(normalizedLinkpath, options));\n\n const queue = new Queue(1);\n if (options.force) {\n queue.defer((callback) => {\n rimraf2(fullPath, { disableGlob: true }, (err) => {\n err && err.code !== 'ENOENT' ? callback(err) : callback();\n });\n });\n }\n queue.defer(mkdirp.bind(null, path.dirname(fullPath)));\n queue.defer(fs.link.bind(fs, linkFullPath, fullPath));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nLinkEntry.prototype.destroy = function destroy() {};\n"],"names":["path","fs","mkdirp","objectAssign","Queue","rimraf2","chmod","chown","utimes","stripPath","validateAttributes","MANDATORY_ATTRIBUTES","LinkEntry","attributes","_type","basename","undefined","type","prototype","create","dest","options","callback","self","normalizedPath","normalize","fullPath","join","normalizedLinkpath","linkpath","linkFullPath","queue","force","defer","disableGlob","err","code","bind","dirname","link","await","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,QAAQ,cAAc;AAC7B,OAAOC,YAAY,iBAAiB;AACpC,OAAOC,kBAAkB,gBAAgB;AACzC,OAAOC,WAAW,WAAW;AAC7B,OAAOC,aAAa,UAAU;AAE9B,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,YAAY,kBAAkB;AACrC,OAAOC,eAAe,kBAAkB;AACxC,OAAOC,wBAAwB,2BAA2B;AAE1D,MAAMC,uBAAuB;IAAC;IAAQ;IAAS;IAAQ;CAAW;AAElE,eAAe,SAASC,UAAUC,UAAU,EAAEC,KAAK;IACjDJ,mBAAmBG,YAAYF;IAC/BR,aAAa,IAAI,EAAEU;IACnB,IAAI,IAAI,CAACE,QAAQ,KAAKC,WAAW,IAAI,CAACD,QAAQ,GAAGf,KAAKe,QAAQ,CAAC,IAAI,CAACf,IAAI;IACxE,IAAI,IAAI,CAACiB,IAAI,KAAKD,WAAW,IAAI,CAACC,IAAI,GAAG;AAC3C;AAEAL,UAAUM,SAAS,CAACC,MAAM,GAAG,SAASA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MAAMC,SAAS,SAASwB,eAAeV,GAAG,EAAEW,IAAI;YAC1DX,MAAMS,OAAOT,OAAOQ,QAAQG;QAC9B;IACF;AACF;AAEAlC,UAAUM,SAAS,CAAC6B,OAAO,GAAG,SAASA,WAAW"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import fs from 'graceful-fs';
|
|
3
3
|
import isAbsolute from 'is-absolute';
|
|
4
|
-
import
|
|
4
|
+
import mkdirp from 'mkdirp-classic';
|
|
5
|
+
import objectAssign from 'object-assign';
|
|
5
6
|
import Queue from 'queue-cb';
|
|
6
7
|
import rimraf2 from 'rimraf2';
|
|
7
8
|
import chmod from './fs/chmod.mjs';
|
|
@@ -26,7 +27,7 @@ const MANDATORY_ATTRIBUTES = [
|
|
|
26
27
|
];
|
|
27
28
|
export default function SymbolicLinkEntry(attributes) {
|
|
28
29
|
validateAttributes(attributes, MANDATORY_ATTRIBUTES);
|
|
29
|
-
|
|
30
|
+
objectAssign(this, attributes);
|
|
30
31
|
if (this.basename === undefined) this.basename = path.basename(this.path);
|
|
31
32
|
if (this.type === undefined) this.type = 'symlink';
|
|
32
33
|
}
|
|
@@ -58,7 +59,7 @@ SymbolicLinkEntry.prototype.create = function create(dest, options, callback) {
|
|
|
58
59
|
});
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
|
-
queue.defer(
|
|
62
|
+
queue.defer(mkdirp.bind(null, path.dirname(fullPath)));
|
|
62
63
|
if (isWindows) queue.defer(symlinkWin32.bind(null, linkFullPath, normalizedLinkpath, fullPath));
|
|
63
64
|
else queue.defer(fs.symlink.bind(fs, normalizedLinkpath, fullPath));
|
|
64
65
|
queue.defer(chmod.bind(null, fullPath, self, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["SymbolicLinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport isAbsolute from 'is-absolute';\nimport
|
|
1
|
+
{"version":3,"sources":["SymbolicLinkEntry.mjs"],"sourcesContent":["import path from 'path';\nimport fs from 'graceful-fs';\nimport isAbsolute from 'is-absolute';\nimport mkdirp from 'mkdirp-classic';\nimport objectAssign from 'object-assign';\nimport Queue from 'queue-cb';\nimport rimraf2 from 'rimraf2';\n\nimport chmod from './fs/chmod.mjs';\nimport chown from './fs/chown.mjs';\nimport lstatReal from './fs/lstatReal.mjs';\nimport utimes from './fs/utimes.mjs';\nimport stripPath from './stripPath.mjs';\nimport validateAttributes from './validateAttributes.mjs';\n\nfunction symlinkWin32(linkFullPath, linkpath, fullPath, callback) {\n lstatReal(linkFullPath, (err, targetStat) => {\n if (err || !targetStat) return callback(err || new Error(`Symlink path does not exist${linkFullPath}`));\n const type = targetStat.isDirectory() ? 'dir' : 'file';\n fs.symlink(linkpath, fullPath, type, callback);\n });\n}\nconst isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path', 'linkpath'];\n\nexport default function SymbolicLinkEntry(attributes) {\n validateAttributes(attributes, MANDATORY_ATTRIBUTES);\n objectAssign(this, attributes);\n if (this.basename === undefined) this.basename = path.basename(this.path);\n if (this.type === undefined) this.type = 'symlink';\n}\n\nSymbolicLinkEntry.prototype.create = function create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n const self = this;\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(self.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options));\n let normalizedLinkpath = path.normalize(self.linkpath);\n let linkFullPath = path.join(dest, stripPath(normalizedLinkpath, options));\n if (!isAbsolute(normalizedLinkpath)) {\n const linkRelativePath = path.join(path.dirname(normalizedPath), self.linkpath);\n linkFullPath = path.join(dest, stripPath(linkRelativePath, options));\n normalizedLinkpath = path.relative(path.dirname(fullPath), linkFullPath);\n }\n\n const queue = new Queue(1);\n if (options.force) {\n queue.defer((callback) => {\n rimraf2(fullPath, { disableGlob: true }, (err) => {\n err && err.code !== 'ENOENT' ? callback(err) : callback();\n });\n });\n }\n queue.defer(mkdirp.bind(null, path.dirname(fullPath)));\n if (isWindows) queue.defer(symlinkWin32.bind(null, linkFullPath, normalizedLinkpath, fullPath));\n else queue.defer(fs.symlink.bind(fs, normalizedLinkpath, fullPath));\n queue.defer(chmod.bind(null, fullPath, self, options));\n queue.defer(chown.bind(null, fullPath, self, options));\n queue.defer(utimes.bind(null, fullPath, self, options));\n return queue.await(callback);\n } catch (err) {\n return callback(err);\n }\n }\n\n return new Promise(function createPromise(resolve, reject) {\n self.create(dest, options, function createCallback(err, done) {\n err ? reject(err) : resolve(done);\n });\n });\n};\n\nSymbolicLinkEntry.prototype.destroy = function destroy() {};\n"],"names":["path","fs","isAbsolute","mkdirp","objectAssign","Queue","rimraf2","chmod","chown","lstatReal","utimes","stripPath","validateAttributes","symlinkWin32","linkFullPath","linkpath","fullPath","callback","err","targetStat","Error","type","isDirectory","symlink","isWindows","process","platform","test","env","OSTYPE","MANDATORY_ATTRIBUTES","SymbolicLinkEntry","attributes","basename","undefined","prototype","create","dest","options","self","normalizedPath","normalize","join","normalizedLinkpath","linkRelativePath","dirname","relative","queue","force","defer","disableGlob","code","bind","await","Promise","createPromise","resolve","reject","createCallback","done","destroy"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,QAAQ,cAAc;AAC7B,OAAOC,gBAAgB,cAAc;AACrC,OAAOC,YAAY,iBAAiB;AACpC,OAAOC,kBAAkB,gBAAgB;AACzC,OAAOC,WAAW,WAAW;AAC7B,OAAOC,aAAa,UAAU;AAE9B,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,WAAW,iBAAiB;AACnC,OAAOC,eAAe,qBAAqB;AAC3C,OAAOC,YAAY,kBAAkB;AACrC,OAAOC,eAAe,kBAAkB;AACxC,OAAOC,wBAAwB,2BAA2B;AAE1D,SAASC,aAAaC,YAAY,EAAEC,QAAQ,EAAEC,QAAQ,EA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BI,SAAS,CAACyB,OAAO,GAAG,SAASA,WAAW"}
|
package/dist/esm/index.mjs
CHANGED
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.mjs"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["index.mjs"],"sourcesContent":["import StackBaseIterator from 'stack-base-iterator';\n\nexport default StackBaseIterator;\nexport { default as DirectoryEntry } from './DirectoryEntry.mjs';\nexport { default as FileEntry } from './FileEntry.mjs';\nexport { default as LinkEntry } from './LinkEntry.mjs';\nexport { default as SymbolicLinkEntry } from './SymbolicLinkEntry.mjs';\n"],"names":["StackBaseIterator","default","DirectoryEntry","FileEntry","LinkEntry","SymbolicLinkEntry"],"mappings":"AAAA,OAAOA,uBAAuB,sBAAsB;AAEpD,eAAeA,kBAAkB;AACjC,SAASC,WAAWC,cAAc,QAAQ,uBAAuB;AACjE,SAASD,WAAWE,SAAS,QAAQ,kBAAkB;AACvD,SAASF,WAAWG,SAAS,QAAQ,kBAAkB;AACvD,SAASH,WAAWI,iBAAiB,QAAQ,0BAA0B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extract-base-iterator",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Base iterator for extract iterators like tar-iterator and zip-iterator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"extract",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"version": "tsds version"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"core-js": "^3.39.0",
|
|
48
47
|
"fs-access-compat": "^1.0.3",
|
|
49
48
|
"graceful-fs": "^4.2.11",
|
|
50
49
|
"is-absolute": "^1.0.0",
|
|
51
50
|
"lodash.compact": "^3.0.1",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
51
|
+
"mkdirp-classic": "^0.5.3",
|
|
52
|
+
"object-assign": "^4.1.1",
|
|
53
|
+
"queue-cb": "^1.4.4",
|
|
54
54
|
"rimraf2": "^2.8.2",
|
|
55
|
-
"stack-base-iterator": "^1.1.
|
|
55
|
+
"stack-base-iterator": "^1.1.4"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@biomejs/biome": "^1.9.4",
|
|
@@ -64,16 +64,14 @@
|
|
|
64
64
|
"fs-stats-spys": "^1.1.0",
|
|
65
65
|
"inherits": "^2.0.4",
|
|
66
66
|
"lodash.find": "^4.6.0",
|
|
67
|
-
"
|
|
67
|
+
"pinkie-promise": "^2.0.1",
|
|
68
|
+
"ts-dev-stack": "^1.5.4"
|
|
68
69
|
},
|
|
70
|
+
"packageManager": "npm@11.0.0+sha512.11dff29565d2297c74e7c594a9762581bde969f0aa5cbe6f5b3644bf008a16c065ece61094d9ffbb81125be38df8e1ba43eb8244b3d30c61eb797e9a2440e3ec",
|
|
69
71
|
"engines": {
|
|
70
72
|
"node": ">=0.8"
|
|
71
73
|
},
|
|
72
74
|
"tsds": {
|
|
73
|
-
"source": "src/index.mjs"
|
|
74
|
-
"targets": [
|
|
75
|
-
"cjs",
|
|
76
|
-
"esm"
|
|
77
|
-
]
|
|
75
|
+
"source": "src/index.mjs"
|
|
78
76
|
}
|
|
79
77
|
}
|
package/dist/cjs/polyfills.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
require('core-js/actual/object/assign');
|
|
3
|
-
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["polyfills.cjs"],"sourcesContent":["require('core-js/actual/object/assign');\n"],"names":["require"],"mappings":";AAAAA,QAAQ"}
|
package/dist/esm/polyfills.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('core-js/actual/object/assign');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["polyfills.cjs"],"sourcesContent":["require('core-js/actual/object/assign');\n"],"names":["require"],"mappings":"AAAAA,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|