extract-base-iterator 1.3.12 → 1.3.14
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.d.cts +5 -2
- package/dist/cjs/DirectoryEntry.d.ts +5 -2
- package/dist/cjs/DirectoryEntry.js +4 -2
- package/dist/cjs/DirectoryEntry.js.map +1 -1
- package/dist/cjs/FileEntry.d.cts +5 -2
- package/dist/cjs/FileEntry.d.ts +5 -2
- package/dist/cjs/FileEntry.js +4 -2
- package/dist/cjs/FileEntry.js.map +1 -1
- package/dist/cjs/LinkEntry.d.cts +6 -3
- package/dist/cjs/LinkEntry.d.ts +6 -3
- package/dist/cjs/LinkEntry.js +4 -2
- package/dist/cjs/LinkEntry.js.map +1 -1
- package/dist/cjs/SymbolicLinkEntry.d.cts +6 -3
- package/dist/cjs/SymbolicLinkEntry.d.ts +6 -3
- package/dist/cjs/SymbolicLinkEntry.js +6 -11
- package/dist/cjs/SymbolicLinkEntry.js.map +1 -1
- package/dist/cjs/fs/chmod.d.cts +3 -1
- package/dist/cjs/fs/chmod.d.ts +3 -1
- package/dist/cjs/fs/chmod.js +4 -1
- package/dist/cjs/fs/chmod.js.map +1 -1
- package/dist/cjs/fs/chown.d.cts +3 -1
- package/dist/cjs/fs/chown.d.ts +3 -1
- package/dist/cjs/fs/chown.js +4 -1
- package/dist/cjs/fs/chown.js.map +1 -1
- package/dist/cjs/fs/lstatReal.d.cts +3 -1
- package/dist/cjs/fs/lstatReal.d.ts +3 -1
- package/dist/cjs/fs/lstatReal.js +3 -3
- package/dist/cjs/fs/lstatReal.js.map +1 -1
- package/dist/cjs/fs/symlinkWin32.d.cts +2 -0
- package/dist/cjs/fs/symlinkWin32.d.ts +2 -0
- package/dist/cjs/fs/symlinkWin32.js +25 -0
- package/dist/cjs/fs/symlinkWin32.js.map +1 -0
- package/dist/cjs/fs/utimes.d.cts +3 -1
- package/dist/cjs/fs/utimes.d.ts +3 -1
- package/dist/cjs/fs/utimes.js.map +1 -1
- package/dist/cjs/index.d.cts +2 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/polyfills.d.cts +1 -0
- package/dist/cjs/polyfills.d.ts +1 -0
- package/dist/cjs/polyfills.js +13 -0
- package/dist/cjs/polyfills.js.map +1 -0
- package/dist/cjs/stripPath.d.cts +2 -1
- package/dist/cjs/stripPath.d.ts +2 -1
- package/dist/cjs/stripPath.js.map +1 -1
- package/dist/cjs/types.d.cts +15 -2
- package/dist/cjs/types.d.ts +15 -2
- package/dist/cjs/validateAttributes.d.cts +1 -1
- package/dist/cjs/validateAttributes.d.ts +1 -1
- package/dist/cjs/validateAttributes.js.map +1 -1
- package/dist/cjs/waitForAccess.d.cts +2 -0
- package/dist/cjs/waitForAccess.d.ts +2 -0
- package/dist/cjs/{fs/waitForAccess.js → waitForAccess.js} +3 -1
- package/dist/cjs/waitForAccess.js.map +1 -0
- package/dist/esm/DirectoryEntry.d.ts +5 -2
- package/dist/esm/DirectoryEntry.js +4 -2
- package/dist/esm/DirectoryEntry.js.map +1 -1
- package/dist/esm/FileEntry.d.ts +5 -2
- package/dist/esm/FileEntry.js +4 -2
- package/dist/esm/FileEntry.js.map +1 -1
- package/dist/esm/LinkEntry.d.ts +6 -3
- package/dist/esm/LinkEntry.js +4 -2
- package/dist/esm/LinkEntry.js.map +1 -1
- package/dist/esm/SymbolicLinkEntry.d.ts +6 -3
- package/dist/esm/SymbolicLinkEntry.js +5 -10
- package/dist/esm/SymbolicLinkEntry.js.map +1 -1
- package/dist/esm/fs/chmod.d.ts +3 -1
- package/dist/esm/fs/chmod.js +4 -1
- package/dist/esm/fs/chmod.js.map +1 -1
- package/dist/esm/fs/chown.d.ts +3 -1
- package/dist/esm/fs/chown.js +4 -1
- package/dist/esm/fs/chown.js.map +1 -1
- package/dist/esm/fs/lstatReal.d.ts +3 -1
- package/dist/esm/fs/lstatReal.js +2 -2
- package/dist/esm/fs/lstatReal.js.map +1 -1
- package/dist/esm/fs/symlinkWin32.d.ts +2 -0
- package/dist/esm/fs/symlinkWin32.js +9 -0
- package/dist/esm/fs/symlinkWin32.js.map +1 -0
- package/dist/esm/fs/utimes.d.ts +3 -1
- package/dist/esm/fs/utimes.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/polyfills.d.ts +1 -0
- package/dist/esm/polyfills.js +3 -0
- package/dist/esm/polyfills.js.map +1 -0
- package/dist/esm/stripPath.d.ts +2 -1
- package/dist/esm/stripPath.js.map +1 -1
- package/dist/esm/types.d.ts +15 -2
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/validateAttributes.d.ts +1 -1
- package/dist/esm/validateAttributes.js.map +1 -1
- package/dist/esm/waitForAccess.d.ts +2 -0
- package/dist/esm/{fs/waitForAccess.js → waitForAccess.js} +1 -1
- package/dist/esm/waitForAccess.js.map +1 -0
- package/package.json +4 -3
- package/dist/cjs/fs/waitForAccess.d.cts +0 -1
- package/dist/cjs/fs/waitForAccess.d.ts +0 -1
- package/dist/cjs/fs/waitForAccess.js.map +0 -1
- package/dist/esm/fs/waitForAccess.d.ts +0 -1
- package/dist/esm/fs/waitForAccess.js.map +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.js';
|
|
2
3
|
export default class DirectoryEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
4
7
|
basename: string;
|
|
5
8
|
type: string;
|
|
6
9
|
constructor(attributes: DirectoryAttributes);
|
|
7
|
-
create(dest:
|
|
10
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
8
11
|
destroy(): void;
|
|
9
12
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.js';
|
|
2
3
|
export default class DirectoryEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
4
7
|
basename: string;
|
|
5
8
|
type: string;
|
|
6
9
|
constructor(attributes: DirectoryAttributes);
|
|
7
|
-
create(dest:
|
|
10
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
8
11
|
destroy(): void;
|
|
9
12
|
}
|
|
@@ -59,9 +59,11 @@ var DirectoryEntry = /*#__PURE__*/ function() {
|
|
|
59
59
|
queue.defer(_chmod.default.bind(null, fullPath, this, options));
|
|
60
60
|
queue.defer(_chown.default.bind(null, fullPath, this, options));
|
|
61
61
|
queue.defer(_utimes.default.bind(null, fullPath, this, options));
|
|
62
|
-
|
|
62
|
+
queue.await(callback);
|
|
63
|
+
return;
|
|
63
64
|
} catch (err) {
|
|
64
|
-
|
|
65
|
+
callback(err);
|
|
66
|
+
return;
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
return new Promise(function(resolve, reject) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/DirectoryEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport utimes from './fs/utimes.js';\nimport stripPath from './stripPath.js';\nimport validateAttributes from './validateAttributes.js';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\nimport type { DirectoryAttributes } from './types.js';\n\nexport default class DirectoryEntry {\n path: string;\n basename: string;\n type: string;\n\n constructor(attributes: DirectoryAttributes) {\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\n create(dest, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(this.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, this, options));\n queue.defer(chown.bind(null, fullPath, this, options));\n queue.defer(utimes.bind(null, fullPath, this, options));\n
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/DirectoryEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport utimes from './fs/utimes.js';\nimport stripPath from './stripPath.js';\nimport validateAttributes from './validateAttributes.js';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\nimport type { Mode } from 'fs';\nimport type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.js';\n\nexport default class DirectoryEntry {\n mode: Mode;\n mtime: number;\n path: string;\n basename: string;\n type: string;\n\n constructor(attributes: DirectoryAttributes) {\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\n create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean> {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(this.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options as ExtractOptions));\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, this, options));\n queue.defer(chown.bind(null, fullPath, this, options));\n queue.defer(utimes.bind(null, fullPath, this, options));\n queue.await(callback);\n return;\n } catch (err) {\n callback(err);\n return;\n }\n }\n\n return new Promise((resolve, reject) => {\n this.create(dest, options, (err?: Error, done?: boolean) => (err ? reject(err) : resolve(done)));\n });\n }\n\n destroy() {}\n}\n"],"names":["DirectoryEntry","MANDATORY_ATTRIBUTES","attributes","validateAttributes","objectAssign","type","undefined","basename","path","create","dest","options","callback","normalizedPath","normalize","fullPath","join","stripPath","queue","Queue","defer","mkdirp","bind","chmod","chown","utimes","await","err","Promise","resolve","reject","done","destroy"],"mappings":";;;;;;;eAeqBA;;;2DAfJ;oEACE;mEACM;8DACP;4DAEA;4DACA;6DACC;gEACG;yEACS;;;;;;;;;;;AAE/B,IAAMC,uBAAuB;IAAC;IAAQ;IAAS;CAAO;AAIvC,IAAA,AAAMD,+BAAN;;aAAMA,eAOPE,UAA+B;gCAPxBF;QAQjBG,IAAAA,2BAAkB,EAACD,YAAYD;QAC/BG,IAAAA,qBAAY,EAAC,IAAI,EAAEF;QACnB,IAAI,IAAI,CAACG,IAAI,KAAKC,WAAW,IAAI,CAACD,IAAI,GAAG;QACzC,IAAI,IAAI,CAACE,QAAQ,KAAKD,WAAW,IAAI,CAACC,QAAQ,GAAGC,aAAI,CAACD,QAAQ,CAAC,IAAI,CAACC,IAAI;;iBAXvDR;IAcnBS,OAAAA,MA6BC,GA7BDA,SAAAA,OAAOC,IAAY,EAAEC,OAAyC,EAAEC,QAA0B;;QACxF,IAAI,OAAOD,YAAY,YAAY;YACjCC,WAAWD;YACXA,UAAU;QACZ;QAEA,IAAI,OAAOC,aAAa,YAAY;YAClCD,UAAUA,WAAW,CAAC;YACtB,IAAI;gBACF,IAAME,iBAAiBL,aAAI,CAACM,SAAS,CAAC,IAAI,CAACN,IAAI;gBAC/C,IAAMO,WAAWP,aAAI,CAACQ,IAAI,CAACN,MAAMO,IAAAA,kBAAS,EAACJ,gBAAgBF;gBAE3D,iFAAiF;gBACjF,IAAMO,QAAQ,IAAIC,gBAAK,CAAC;gBACxBD,MAAME,KAAK,CAACC,sBAAM,CAACC,IAAI,CAAC,MAAMP;gBAC9BG,MAAME,KAAK,CAACG,cAAK,CAACD,IAAI,CAAC,MAAMP,UAAU,IAAI,EAAEJ;gBAC7CO,MAAME,KAAK,CAACI,cAAK,CAACF,IAAI,CAAC,MAAMP,UAAU,IAAI,EAAEJ;gBAC7CO,MAAME,KAAK,CAACK,eAAM,CAACH,IAAI,CAAC,MAAMP,UAAU,IAAI,EAAEJ;gBAC9CO,MAAMQ,KAAK,CAACd;gBACZ;YACF,EAAE,OAAOe,KAAK;gBACZf,SAASe;gBACT;YACF;QACF;QAEA,OAAO,IAAIC,QAAQ,SAACC,SAASC;YAC3B,MAAKrB,MAAM,CAACC,MAAMC,SAAS,SAACgB,KAAaI;uBAAoBJ,MAAMG,OAAOH,OAAOE,QAAQE;;QAC3F;IACF;IAEAC,OAAAA,OAAY,GAAZA,SAAAA,WAAW;WA7CQhC"}
|
package/dist/cjs/FileEntry.d.cts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { ExtractOptions, FileAttributes, NoParamCallback } from './types.js';
|
|
2
3
|
export default class FileEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
4
7
|
basename: string;
|
|
5
8
|
type: string;
|
|
6
9
|
constructor(attributes: FileAttributes);
|
|
7
|
-
create(dest:
|
|
10
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
8
11
|
destroy(): void;
|
|
9
12
|
}
|
package/dist/cjs/FileEntry.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { ExtractOptions, FileAttributes, NoParamCallback } from './types.js';
|
|
2
3
|
export default class FileEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
4
7
|
basename: string;
|
|
5
8
|
type: string;
|
|
6
9
|
constructor(attributes: FileAttributes);
|
|
7
|
-
create(dest:
|
|
10
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
8
11
|
destroy(): void;
|
|
9
12
|
}
|
package/dist/cjs/FileEntry.js
CHANGED
|
@@ -70,9 +70,11 @@ var FileEntry = /*#__PURE__*/ function() {
|
|
|
70
70
|
queue.defer(_chmod.default.bind(null, fullPath, this, options));
|
|
71
71
|
queue.defer(_chown.default.bind(null, fullPath, this, options));
|
|
72
72
|
queue.defer(_utimes.default.bind(null, fullPath, this, options));
|
|
73
|
-
|
|
73
|
+
queue.await(callback);
|
|
74
|
+
return;
|
|
74
75
|
} catch (err) {
|
|
75
|
-
|
|
76
|
+
callback(err);
|
|
77
|
+
return;
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
return new Promise(function(resolve, reject) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/FileEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport utimes from './fs/utimes.js';\nimport stripPath from './stripPath.js';\nimport validateAttributes from './validateAttributes.js';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\nimport type {
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/FileEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport utimes from './fs/utimes.js';\nimport stripPath from './stripPath.js';\nimport validateAttributes from './validateAttributes.js';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path'];\nimport type { Mode } from 'fs';\nimport type { ExtractOptions, FileAttributes, NoParamCallback, WriteFileFn } from './types.js';\n\ninterface AbstractFileEntry {\n _writeFile: WriteFileFn;\n}\n\nexport default class FileEntry {\n mode: Mode;\n mtime: number;\n path: string;\n basename: string;\n type: string;\n\n constructor(attributes: FileAttributes) {\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 as unknown as AbstractFileEntry)._writeFile === undefined) throw new Error('File this missing _writeFile. Please implement this method in your subclass');\n }\n\n create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean> {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(this.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options as ExtractOptions));\n\n const queue = new Queue(1);\n if ((options as ExtractOptions).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 as unknown as AbstractFileEntry)._writeFile.bind(this, fullPath, options));\n queue.defer(chmod.bind(null, fullPath, this, options));\n queue.defer(chown.bind(null, fullPath, this, options));\n queue.defer(utimes.bind(null, fullPath, this, options));\n queue.await(callback);\n return;\n } catch (err) {\n callback(err);\n return;\n }\n }\n\n return new Promise((resolve, reject) => {\n this.create(dest, options, (err?: Error, done?: boolean) => (err ? reject(err) : resolve(done)));\n });\n }\n\n destroy() {}\n}\n"],"names":["FileEntry","MANDATORY_ATTRIBUTES","attributes","validateAttributes","objectAssign","basename","undefined","path","type","_writeFile","Error","create","dest","options","callback","normalizedPath","normalize","fullPath","join","stripPath","queue","Queue","force","defer","rimraf2","disableGlob","err","code","mkdirp","bind","dirname","chmod","chown","utimes","await","Promise","resolve","reject","done","destroy"],"mappings":";;;;;;;eAoBqBA;;;2DApBJ;oEACE;mEACM;8DACP;8DAEE;4DACF;4DACA;6DACC;gEACG;yEACS;;;;;;;;;;;AAE/B,IAAMC,uBAAuB;IAAC;IAAQ;IAAS;CAAO;AAQvC,IAAA,AAAMD,0BAAN;;aAAMA,UAOPE,UAA0B;gCAPnBF;QAQjBG,IAAAA,2BAAkB,EAACD,YAAYD;QAC/BG,IAAAA,qBAAY,EAAC,IAAI,EAAEF;QACnB,IAAI,IAAI,CAACG,QAAQ,KAAKC,WAAW,IAAI,CAACD,QAAQ,GAAGE,aAAI,CAACF,QAAQ,CAAC,IAAI,CAACE,IAAI;QACxE,IAAI,IAAI,CAACC,IAAI,KAAKF,WAAW,IAAI,CAACE,IAAI,GAAG;QACzC,IAAI,AAAC,IAAI,CAAkCC,UAAU,KAAKH,WAAW,MAAM,IAAII,MAAM;;iBAZpEV;IAenBW,OAAAA,MAoCC,GApCDA,SAAAA,OAAOC,IAAY,EAAEC,OAAyC,EAAEC,QAA0B;;QACxF,IAAI,OAAOD,YAAY,YAAY;YACjCC,WAAWD;YACXA,UAAU;QACZ;QAEA,IAAI,OAAOC,aAAa,YAAY;YAClCD,UAAUA,WAAW,CAAC;YACtB,IAAI;gBACF,IAAME,iBAAiBR,aAAI,CAACS,SAAS,CAAC,IAAI,CAACT,IAAI;gBAC/C,IAAMU,WAAWV,aAAI,CAACW,IAAI,CAACN,MAAMO,IAAAA,kBAAS,EAACJ,gBAAgBF;gBAE3D,IAAMO,QAAQ,IAAIC,gBAAK,CAAC;gBACxB,IAAI,AAACR,QAA2BS,KAAK,EAAE;oBACrCF,MAAMG,KAAK,CAAC,SAACT;wBACXU,IAAAA,gBAAO,EAACP,UAAU;4BAAEQ,aAAa;wBAAK,GAAG,SAACC;4BACxCA,OAAOA,IAAIC,IAAI,KAAK,WAAWb,SAASY,OAAOZ;wBACjD;oBACF;gBACF;gBACAM,MAAMG,KAAK,CAACK,sBAAM,CAACC,IAAI,CAAC,MAAMtB,aAAI,CAACuB,OAAO,CAACb;gBAC3CG,MAAMG,KAAK,CAAC,AAAC,IAAI,CAAkCd,UAAU,CAACoB,IAAI,CAAC,IAAI,EAAEZ,UAAUJ;gBACnFO,MAAMG,KAAK,CAACQ,cAAK,CAACF,IAAI,CAAC,MAAMZ,UAAU,IAAI,EAAEJ;gBAC7CO,MAAMG,KAAK,CAACS,cAAK,CAACH,IAAI,CAAC,MAAMZ,UAAU,IAAI,EAAEJ;gBAC7CO,MAAMG,KAAK,CAACU,eAAM,CAACJ,IAAI,CAAC,MAAMZ,UAAU,IAAI,EAAEJ;gBAC9CO,MAAMc,KAAK,CAACpB;gBACZ;YACF,EAAE,OAAOY,KAAK;gBACZZ,SAASY;gBACT;YACF;QACF;QAEA,OAAO,IAAIS,QAAQ,SAACC,SAASC;YAC3B,MAAK1B,MAAM,CAACC,MAAMC,SAAS,SAACa,KAAaY;uBAAoBZ,MAAMW,OAAOX,OAAOU,QAAQE;;QAC3F;IACF;IAEAC,OAAAA,OAAY,GAAZA,SAAAA,WAAW;WArDQvC"}
|
package/dist/cjs/LinkEntry.d.cts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';
|
|
2
3
|
export default class LinkEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
7
|
+
linkpath: string;
|
|
4
8
|
basename: string;
|
|
5
9
|
type: string;
|
|
6
|
-
linkpath: string;
|
|
7
10
|
constructor(attributes: LinkAttributes);
|
|
8
|
-
create(dest:
|
|
11
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
9
12
|
destroy(): void;
|
|
10
13
|
}
|
package/dist/cjs/LinkEntry.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';
|
|
2
3
|
export default class LinkEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
7
|
+
linkpath: string;
|
|
4
8
|
basename: string;
|
|
5
9
|
type: string;
|
|
6
|
-
linkpath: string;
|
|
7
10
|
constructor(attributes: LinkAttributes);
|
|
8
|
-
create(dest:
|
|
11
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
9
12
|
destroy(): void;
|
|
10
13
|
}
|
package/dist/cjs/LinkEntry.js
CHANGED
|
@@ -73,9 +73,11 @@ var LinkEntry = /*#__PURE__*/ function() {
|
|
|
73
73
|
queue.defer(_chmod.default.bind(null, fullPath, this, options));
|
|
74
74
|
queue.defer(_chown.default.bind(null, fullPath, this, options));
|
|
75
75
|
queue.defer(_utimes.default.bind(null, fullPath, this, options));
|
|
76
|
-
|
|
76
|
+
queue.await(callback);
|
|
77
|
+
return;
|
|
77
78
|
} catch (err) {
|
|
78
|
-
|
|
79
|
+
callback(err);
|
|
80
|
+
return;
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
return new Promise(function(resolve, reject) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/LinkEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport utimes from './fs/utimes.js';\nimport stripPath from './stripPath.js';\nimport validateAttributes from './validateAttributes.js';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path', 'linkpath'];\nimport type { LinkAttributes } from './types.js';\n\nexport default class LinkEntry {\n path: string;\n
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/LinkEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport utimes from './fs/utimes.js';\nimport stripPath from './stripPath.js';\nimport validateAttributes from './validateAttributes.js';\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path', 'linkpath'];\nimport type { Mode } from 'fs';\nimport type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';\n\nexport default class LinkEntry {\n mode: Mode;\n mtime: number;\n path: string;\n linkpath: string;\n basename: string;\n type: string;\n\n constructor(attributes: LinkAttributes) {\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\n create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean> {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(this.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options as ExtractOptions));\n const normalizedLinkpath = path.normalize(this.linkpath);\n const linkFullPath = path.join(dest, stripPath(normalizedLinkpath, options as ExtractOptions));\n\n const queue = new Queue(1);\n if ((options as ExtractOptions).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, this, options));\n queue.defer(chown.bind(null, fullPath, this, options));\n queue.defer(utimes.bind(null, fullPath, this, options));\n queue.await(callback);\n return;\n } catch (err) {\n callback(err);\n return;\n }\n }\n\n return new Promise((resolve, reject) => {\n this.create(dest, options, (err?: Error, done?: boolean) => (err ? reject(err) : resolve(done)));\n });\n }\n\n destroy() {}\n}\n"],"names":["LinkEntry","MANDATORY_ATTRIBUTES","attributes","validateAttributes","objectAssign","basename","undefined","path","type","create","dest","options","callback","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","resolve","reject","done","destroy"],"mappings":";;;;;;;eAiBqBA;;;2DAjBJ;iEACF;oEACI;mEACM;8DACP;8DACE;4DAEF;4DACA;6DACC;gEACG;yEACS;;;;;;;;;;;AAE/B,IAAMC,uBAAuB;IAAC;IAAQ;IAAS;IAAQ;CAAW;AAInD,IAAA,AAAMD,0BAAN;;aAAMA,UAQPE,UAA0B;gCARnBF;QASjBG,IAAAA,2BAAkB,EAACD,YAAYD;QAC/BG,IAAAA,qBAAY,EAAC,IAAI,EAAEF;QACnB,IAAI,IAAI,CAACG,QAAQ,KAAKC,WAAW,IAAI,CAACD,QAAQ,GAAGE,aAAI,CAACF,QAAQ,CAAC,IAAI,CAACE,IAAI;QACxE,IAAI,IAAI,CAACC,IAAI,KAAKF,WAAW,IAAI,CAACE,IAAI,GAAG;;iBAZxBR;IAenBS,OAAAA,MAsCC,GAtCDA,SAAAA,OAAOC,IAAY,EAAEC,OAAyC,EAAEC,QAA0B;;QACxF,IAAI,OAAOD,YAAY,YAAY;YACjCC,WAAWD;YACXA,UAAU;QACZ;QAEA,IAAI,OAAOC,aAAa,YAAY;YAClCD,UAAUA,WAAW,CAAC;YACtB,IAAI;gBACF,IAAME,iBAAiBN,aAAI,CAACO,SAAS,CAAC,IAAI,CAACP,IAAI;gBAC/C,IAAMQ,WAAWR,aAAI,CAACS,IAAI,CAACN,MAAMO,IAAAA,kBAAS,EAACJ,gBAAgBF;gBAC3D,IAAMO,qBAAqBX,aAAI,CAACO,SAAS,CAAC,IAAI,CAACK,QAAQ;gBACvD,IAAMC,eAAeb,aAAI,CAACS,IAAI,CAACN,MAAMO,IAAAA,kBAAS,EAACC,oBAAoBP;gBAEnE,IAAMU,QAAQ,IAAIC,gBAAK,CAAC;gBACxB,IAAI,AAACX,QAA2BY,KAAK,EAAE;oBACrCF,MAAMG,KAAK,CAAC,SAACZ;wBACXa,IAAAA,gBAAO,EAACV,UAAU;4BAAEW,aAAa;wBAAK,GAAG,SAACC;4BACxCA,OAAOA,IAAIC,IAAI,KAAK,WAAWhB,SAASe,OAAOf;wBACjD;oBACF;gBACF;gBACAS,MAAMG,KAAK,CAACK,sBAAM,CAACC,IAAI,CAAC,MAAMvB,aAAI,CAACwB,OAAO,CAAChB;gBAC3CM,MAAMG,KAAK,CAACQ,mBAAE,CAACC,IAAI,CAACH,IAAI,CAACE,mBAAE,EAAEZ,cAAcL;gBAC3CM,MAAMG,KAAK,CAACU,cAAK,CAACJ,IAAI,CAAC,MAAMf,UAAU,IAAI,EAAEJ;gBAC7CU,MAAMG,KAAK,CAACW,cAAK,CAACL,IAAI,CAAC,MAAMf,UAAU,IAAI,EAAEJ;gBAC7CU,MAAMG,KAAK,CAACY,eAAM,CAACN,IAAI,CAAC,MAAMf,UAAU,IAAI,EAAEJ;gBAC9CU,MAAMgB,KAAK,CAACzB;gBACZ;YACF,EAAE,OAAOe,KAAK;gBACZf,SAASe;gBACT;YACF;QACF;QAEA,OAAO,IAAIW,QAAQ,SAACC,SAASC;YAC3B,MAAK/B,MAAM,CAACC,MAAMC,SAAS,SAACgB,KAAac;uBAAoBd,MAAMa,OAAOb,OAAOY,QAAQE;;QAC3F;IACF;IAEAC,OAAAA,OAAY,GAAZA,SAAAA,WAAW;WAvDQ1C"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';
|
|
2
3
|
export default class SymbolicLinkEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
7
|
+
linkpath: string;
|
|
4
8
|
basename: string;
|
|
5
9
|
type: string;
|
|
6
|
-
linkpath: string;
|
|
7
10
|
constructor(attributes: LinkAttributes);
|
|
8
|
-
create(dest:
|
|
11
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
9
12
|
destroy(): void;
|
|
10
13
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Mode } from 'fs';
|
|
2
|
+
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';
|
|
2
3
|
export default class SymbolicLinkEntry {
|
|
4
|
+
mode: Mode;
|
|
5
|
+
mtime: number;
|
|
3
6
|
path: string;
|
|
7
|
+
linkpath: string;
|
|
4
8
|
basename: string;
|
|
5
9
|
type: string;
|
|
6
|
-
linkpath: string;
|
|
7
10
|
constructor(attributes: LinkAttributes);
|
|
8
|
-
create(dest:
|
|
11
|
+
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
9
12
|
destroy(): void;
|
|
10
13
|
}
|
|
@@ -17,7 +17,7 @@ var _queuecb = /*#__PURE__*/ _interop_require_default(require("queue-cb"));
|
|
|
17
17
|
var _rimraf2 = /*#__PURE__*/ _interop_require_default(require("rimraf2"));
|
|
18
18
|
var _chmod = /*#__PURE__*/ _interop_require_default(require("./fs/chmod.js"));
|
|
19
19
|
var _chown = /*#__PURE__*/ _interop_require_default(require("./fs/chown.js"));
|
|
20
|
-
var
|
|
20
|
+
var _symlinkWin32 = /*#__PURE__*/ _interop_require_default(require("./fs/symlinkWin32.js"));
|
|
21
21
|
var _utimes = /*#__PURE__*/ _interop_require_default(require("./fs/utimes.js"));
|
|
22
22
|
var _stripPath = /*#__PURE__*/ _interop_require_default(require("./stripPath.js"));
|
|
23
23
|
var _validateAttributes = /*#__PURE__*/ _interop_require_default(require("./validateAttributes.js"));
|
|
@@ -31,13 +31,6 @@ function _interop_require_default(obj) {
|
|
|
31
31
|
default: obj
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function symlinkWin32(linkFullPath, linkpath, fullPath, callback) {
|
|
35
|
-
(0, _lstatReal.default)(linkFullPath, function(err, targetStat) {
|
|
36
|
-
if (err || !targetStat) return callback(err || new Error("Symlink path does not exist".concat(linkFullPath)));
|
|
37
|
-
var type = targetStat.isDirectory() ? 'dir' : 'file';
|
|
38
|
-
_gracefulfs.default.symlink(linkpath, fullPath, type, callback);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
34
|
var isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);
|
|
42
35
|
var MANDATORY_ATTRIBUTES = [
|
|
43
36
|
'mode',
|
|
@@ -84,14 +77,16 @@ var SymbolicLinkEntry = /*#__PURE__*/ function() {
|
|
|
84
77
|
});
|
|
85
78
|
}
|
|
86
79
|
queue.defer(_mkdirpclassic.default.bind(null, _path.default.dirname(fullPath)));
|
|
87
|
-
if (isWindows) queue.defer(
|
|
80
|
+
if (isWindows) queue.defer(_symlinkWin32.default.bind(null, linkFullPath, normalizedLinkpath, fullPath));
|
|
88
81
|
else queue.defer(_gracefulfs.default.symlink.bind(_gracefulfs.default, normalizedLinkpath, fullPath));
|
|
89
82
|
queue.defer(_chmod.default.bind(null, fullPath, this, options));
|
|
90
83
|
queue.defer(_chown.default.bind(null, fullPath, this, options));
|
|
91
84
|
queue.defer(_utimes.default.bind(null, fullPath, this, options));
|
|
92
|
-
|
|
85
|
+
queue.await(callback);
|
|
86
|
+
return;
|
|
93
87
|
} catch (err) {
|
|
94
|
-
|
|
88
|
+
callback(err);
|
|
89
|
+
return;
|
|
95
90
|
}
|
|
96
91
|
}
|
|
97
92
|
return new Promise(function(resolve, reject) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/SymbolicLinkEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/SymbolicLinkEntry.ts"],"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.js';\nimport chown from './fs/chown.js';\nimport symlinkWin32 from './fs/symlinkWin32.js';\nimport utimes from './fs/utimes.js';\nimport stripPath from './stripPath.js';\nimport validateAttributes from './validateAttributes.js';\n\nconst isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);\n\nconst MANDATORY_ATTRIBUTES = ['mode', 'mtime', 'path', 'linkpath'];\nimport type { Mode } from 'fs';\nimport type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';\n\nexport default class SymbolicLinkEntry {\n mode: Mode;\n mtime: number;\n path: string;\n linkpath: string;\n basename: string;\n type: string;\n\n constructor(attributes: LinkAttributes) {\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\n create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean> {\n if (typeof options === 'function') {\n callback = options;\n options = null;\n }\n\n if (typeof callback === 'function') {\n options = options || {};\n try {\n const normalizedPath = path.normalize(this.path);\n const fullPath = path.join(dest, stripPath(normalizedPath, options as ExtractOptions));\n let normalizedLinkpath = path.normalize(this.linkpath);\n let linkFullPath = path.join(dest, stripPath(normalizedLinkpath, options as ExtractOptions));\n if (!isAbsolute(normalizedLinkpath)) {\n const linkRelativePath = path.join(path.dirname(normalizedPath), this.linkpath);\n linkFullPath = path.join(dest, stripPath(linkRelativePath, options as ExtractOptions));\n normalizedLinkpath = path.relative(path.dirname(fullPath), linkFullPath);\n }\n\n const queue = new Queue(1);\n if ((options as ExtractOptions).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, this, options));\n queue.defer(chown.bind(null, fullPath, this, options));\n queue.defer(utimes.bind(null, fullPath, this, options));\n queue.await(callback);\n return;\n } catch (err) {\n callback(err);\n return;\n }\n }\n\n return new Promise((resolve, reject) => {\n this.create(dest, options, (err?: Error, done?: boolean) => (err ? reject(err) : resolve(done)));\n });\n }\n\n destroy() {}\n}\n"],"names":["SymbolicLinkEntry","isWindows","process","platform","test","env","OSTYPE","MANDATORY_ATTRIBUTES","attributes","validateAttributes","objectAssign","basename","undefined","path","type","create","dest","options","callback","normalizedPath","normalize","fullPath","join","stripPath","normalizedLinkpath","linkpath","linkFullPath","isAbsolute","linkRelativePath","dirname","relative","queue","Queue","force","defer","rimraf2","disableGlob","err","code","mkdirp","bind","symlinkWin32","fs","symlink","chmod","chown","utimes","await","Promise","resolve","reject","done","destroy"],"mappings":";;;;;;;eAqBqBA;;;2DArBJ;iEACF;iEACQ;oEACJ;mEACM;8DACP;8DACE;4DAEF;4DACA;mEACO;6DACN;gEACG;yEACS;;;;;;;;;;;AAE/B,IAAMC,YAAYC,QAAQC,QAAQ,KAAK,WAAW,kBAAkBC,IAAI,CAACF,QAAQG,GAAG,CAACC,MAAM;AAE3F,IAAMC,uBAAuB;IAAC;IAAQ;IAAS;IAAQ;CAAW;AAInD,IAAA,AAAMP,kCAAN;;aAAMA,kBAQPQ,UAA0B;gCARnBR;QASjBS,IAAAA,2BAAkB,EAACD,YAAYD;QAC/BG,IAAAA,qBAAY,EAAC,IAAI,EAAEF;QACnB,IAAI,IAAI,CAACG,QAAQ,KAAKC,WAAW,IAAI,CAACD,QAAQ,GAAGE,aAAI,CAACF,QAAQ,CAAC,IAAI,CAACE,IAAI;QACxE,IAAI,IAAI,CAACC,IAAI,KAAKF,WAAW,IAAI,CAACE,IAAI,GAAG;;iBAZxBd;IAenBe,OAAAA,MA4CC,GA5CDA,SAAAA,OAAOC,IAAY,EAAEC,OAAyC,EAAEC,QAA0B;;QACxF,IAAI,OAAOD,YAAY,YAAY;YACjCC,WAAWD;YACXA,UAAU;QACZ;QAEA,IAAI,OAAOC,aAAa,YAAY;YAClCD,UAAUA,WAAW,CAAC;YACtB,IAAI;gBACF,IAAME,iBAAiBN,aAAI,CAACO,SAAS,CAAC,IAAI,CAACP,IAAI;gBAC/C,IAAMQ,WAAWR,aAAI,CAACS,IAAI,CAACN,MAAMO,IAAAA,kBAAS,EAACJ,gBAAgBF;gBAC3D,IAAIO,qBAAqBX,aAAI,CAACO,SAAS,CAAC,IAAI,CAACK,QAAQ;gBACrD,IAAIC,eAAeb,aAAI,CAACS,IAAI,CAACN,MAAMO,IAAAA,kBAAS,EAACC,oBAAoBP;gBACjE,IAAI,CAACU,IAAAA,mBAAU,EAACH,qBAAqB;oBACnC,IAAMI,mBAAmBf,aAAI,CAACS,IAAI,CAACT,aAAI,CAACgB,OAAO,CAACV,iBAAiB,IAAI,CAACM,QAAQ;oBAC9EC,eAAeb,aAAI,CAACS,IAAI,CAACN,MAAMO,IAAAA,kBAAS,EAACK,kBAAkBX;oBAC3DO,qBAAqBX,aAAI,CAACiB,QAAQ,CAACjB,aAAI,CAACgB,OAAO,CAACR,WAAWK;gBAC7D;gBAEA,IAAMK,QAAQ,IAAIC,gBAAK,CAAC;gBACxB,IAAI,AAACf,QAA2BgB,KAAK,EAAE;oBACrCF,MAAMG,KAAK,CAAC,SAAChB;wBACXiB,IAAAA,gBAAO,EAACd,UAAU;4BAAEe,aAAa;wBAAK,GAAG,SAACC;4BACxCA,OAAOA,IAAIC,IAAI,KAAK,WAAWpB,SAASmB,OAAOnB;wBACjD;oBACF;gBACF;gBACAa,MAAMG,KAAK,CAACK,sBAAM,CAACC,IAAI,CAAC,MAAM3B,aAAI,CAACgB,OAAO,CAACR;gBAC3C,IAAIpB,WAAW8B,MAAMG,KAAK,CAACO,qBAAY,CAACD,IAAI,CAAC,MAAMd,cAAcF,oBAAoBH;qBAChFU,MAAMG,KAAK,CAACQ,mBAAE,CAACC,OAAO,CAACH,IAAI,CAACE,mBAAE,EAAElB,oBAAoBH;gBACzDU,MAAMG,KAAK,CAACU,cAAK,CAACJ,IAAI,CAAC,MAAMnB,UAAU,IAAI,EAAEJ;gBAC7Cc,MAAMG,KAAK,CAACW,cAAK,CAACL,IAAI,CAAC,MAAMnB,UAAU,IAAI,EAAEJ;gBAC7Cc,MAAMG,KAAK,CAACY,eAAM,CAACN,IAAI,CAAC,MAAMnB,UAAU,IAAI,EAAEJ;gBAC9Cc,MAAMgB,KAAK,CAAC7B;gBACZ;YACF,EAAE,OAAOmB,KAAK;gBACZnB,SAASmB;gBACT;YACF;QACF;QAEA,OAAO,IAAIW,QAAQ,SAACC,SAASC;YAC3B,MAAKnC,MAAM,CAACC,MAAMC,SAAS,SAACoB,KAAac;uBAAoBd,MAAMa,OAAOb,OAAOY,QAAQE;;QAC3F;IACF;IAEAC,OAAAA,OAAY,GAAZA,SAAAA,WAAW;WA7DQpD"}
|
package/dist/cjs/fs/chmod.d.cts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NoParamCallback } from 'fs';
|
|
2
|
+
import type { Entry, ExtractOptions } from '../types.js';
|
|
3
|
+
export default function chmodFn(fullPath: string, entry: Entry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/cjs/fs/chmod.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NoParamCallback } from 'fs';
|
|
2
|
+
import type { Entry, ExtractOptions } from '../types.js';
|
|
3
|
+
export default function chmodFn(fullPath: string, entry: Entry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/cjs/fs/chmod.js
CHANGED
|
@@ -22,7 +22,10 @@ var SMODE = 493;
|
|
|
22
22
|
var LMODE = 420;
|
|
23
23
|
function chmodFn(fullPath, entry, _options, callback) {
|
|
24
24
|
var chmod = entry.type === 'symlink' ? _gracefulfs.default.lchmod : _gracefulfs.default.chmod;
|
|
25
|
-
if (!chmod || UMASK === null)
|
|
25
|
+
if (!chmod || UMASK === null) {
|
|
26
|
+
callback(null);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
26
29
|
var mode = entry.mode;
|
|
27
30
|
if (!mode) {
|
|
28
31
|
switch(entry.type){
|
package/dist/cjs/fs/chmod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/chmod.ts"],"sourcesContent":["// adapted from https://github.com/mafintosh/tar-fs\n\nimport fs from 'graceful-fs';\n\nconst UMASK = process.umask ? process.umask() : null;\nconst DMODE = 0o755;\nconst FMODE = 0o644;\nconst SMODE = 0o755;\nconst LMODE = 0o644;\n\nexport default function chmodFn(fullPath, entry, _options, callback) {\n const chmod = entry.type === 'symlink' ? fs.lchmod : fs.chmod;\n if (!chmod || UMASK === null)
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/chmod.ts"],"sourcesContent":["// adapted from https://github.com/mafintosh/tar-fs\n\nimport fs from 'graceful-fs';\n\nimport type { NoParamCallback } from 'fs';\nimport type { Entry, ExtractOptions } from '../types.js';\n\nconst UMASK = process.umask ? process.umask() : null;\nconst DMODE = 0o755;\nconst FMODE = 0o644;\nconst SMODE = 0o755;\nconst LMODE = 0o644;\n\nexport default function chmodFn(fullPath: string, entry: Entry, _options: ExtractOptions, callback: NoParamCallback) {\n const chmod = entry.type === 'symlink' ? fs.lchmod : fs.chmod;\n if (!chmod || UMASK === null) {\n callback(null);\n return;\n }\n\n let mode = entry.mode;\n if (!mode) {\n switch (entry.type) {\n case 'directory':\n mode = DMODE;\n break;\n case 'file':\n mode = FMODE;\n break;\n case 'symlink':\n mode = SMODE;\n break;\n case 'link':\n mode = LMODE;\n break;\n }\n }\n chmod(fullPath, (mode as number) & ~UMASK, callback);\n}\n"],"names":["chmodFn","UMASK","process","umask","DMODE","FMODE","SMODE","LMODE","fullPath","entry","_options","callback","chmod","type","fs","lchmod","mode"],"mappings":"AAAA,mDAAmD;;;;;+BAanD;;;eAAwBA;;;iEAXT;;;;;;AAKf,IAAMC,QAAQC,QAAQC,KAAK,GAAGD,QAAQC,KAAK,KAAK;AAChD,IAAMC,QAAQ;AACd,IAAMC,QAAQ;AACd,IAAMC,QAAQ;AACd,IAAMC,QAAQ;AAEC,SAASP,QAAQQ,QAAgB,EAAEC,KAAY,EAAEC,QAAwB,EAAEC,QAAyB;IACjH,IAAMC,QAAQH,MAAMI,IAAI,KAAK,YAAYC,mBAAE,CAACC,MAAM,GAAGD,mBAAE,CAACF,KAAK;IAC7D,IAAI,CAACA,SAASX,UAAU,MAAM;QAC5BU,SAAS;QACT;IACF;IAEA,IAAIK,OAAOP,MAAMO,IAAI;IACrB,IAAI,CAACA,MAAM;QACT,OAAQP,MAAMI,IAAI;YAChB,KAAK;gBACHG,OAAOZ;gBACP;YACF,KAAK;gBACHY,OAAOX;gBACP;YACF,KAAK;gBACHW,OAAOV;gBACP;YACF,KAAK;gBACHU,OAAOT;gBACP;QACJ;IACF;IACAK,MAAMJ,UAAU,AAACQ,OAAkB,CAACf,OAAOU;AAC7C"}
|
package/dist/cjs/fs/chown.d.cts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NoParamCallback } from 'fs';
|
|
2
|
+
import type { Entry, ExtractOptions } from '../types.js';
|
|
3
|
+
export default function chownFn(fullPath: string, entry: Entry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/cjs/fs/chown.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NoParamCallback } from 'fs';
|
|
2
|
+
import type { Entry, ExtractOptions } from '../types.js';
|
|
3
|
+
export default function chownFn(fullPath: string, entry: Entry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/cjs/fs/chown.js
CHANGED
|
@@ -19,7 +19,10 @@ var UID = process.getuid ? process.getuid() : -1;
|
|
|
19
19
|
var OWN = process.platform !== 'win32' && UID === 0;
|
|
20
20
|
function chownFn(fullPath, entry, _options, callback) {
|
|
21
21
|
var chown = entry.type === 'symlink' ? _gracefulfs.default.lchown : _gracefulfs.default.chown;
|
|
22
|
-
if (!chown || !OWN || !entry.uid || !entry.gid)
|
|
22
|
+
if (!chown || !OWN || !entry.uid || !entry.gid) {
|
|
23
|
+
callback(null);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
23
26
|
chown(fullPath, entry.uid, entry.gid, callback);
|
|
24
27
|
}
|
|
25
28
|
/* 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; }
|
package/dist/cjs/fs/chown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/chown.ts"],"sourcesContent":["// adapted from https://github.com/mafintosh/tar-fs\n\nimport fs from 'graceful-fs';\n\nconst UID = process.getuid ? process.getuid() : -1;\nconst OWN = process.platform !== 'win32' && UID === 0;\n\nexport default function chownFn(fullPath, entry, _options, callback) {\n const chown = entry.type === 'symlink' ? fs.lchown : fs.chown;\n if (!chown || !OWN || !entry.uid || !entry.gid)
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/chown.ts"],"sourcesContent":["// adapted from https://github.com/mafintosh/tar-fs\n\nimport type { NoParamCallback } from 'fs';\nimport fs from 'graceful-fs';\nimport type { Entry, ExtractOptions } from '../types.js';\n\nconst UID = process.getuid ? process.getuid() : -1;\nconst OWN = process.platform !== 'win32' && UID === 0;\n\nexport default function chownFn(fullPath: string, entry: Entry, _options: ExtractOptions, callback: NoParamCallback) {\n const chown = entry.type === 'symlink' ? fs.lchown : fs.chown;\n if (!chown || !OWN || !entry.uid || !entry.gid) {\n callback(null);\n return;\n }\n chown(fullPath, entry.uid, entry.gid, callback);\n}\n"],"names":["chownFn","UID","process","getuid","OWN","platform","fullPath","entry","_options","callback","chown","type","fs","lchown","uid","gid"],"mappings":"AAAA,mDAAmD;;;;;+BASnD;;;eAAwBA;;;iEANT;;;;;;AAGf,IAAMC,MAAMC,QAAQC,MAAM,GAAGD,QAAQC,MAAM,KAAK,CAAC;AACjD,IAAMC,MAAMF,QAAQG,QAAQ,KAAK,WAAWJ,QAAQ;AAErC,SAASD,QAAQM,QAAgB,EAAEC,KAAY,EAAEC,QAAwB,EAAEC,QAAyB;IACjH,IAAMC,QAAQH,MAAMI,IAAI,KAAK,YAAYC,mBAAE,CAACC,MAAM,GAAGD,mBAAE,CAACF,KAAK;IAC7D,IAAI,CAACA,SAAS,CAACN,OAAO,CAACG,MAAMO,GAAG,IAAI,CAACP,MAAMQ,GAAG,EAAE;QAC9CN,SAAS;QACT;IACF;IACAC,MAAMJ,UAAUC,MAAMO,GAAG,EAAEP,MAAMQ,GAAG,EAAEN;AACxC"}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Stats, type BigIntStats } from 'fs';
|
|
2
|
+
export type Callback = (err: NodeJS.ErrnoException | null, stats?: Stats | BigIntStats) => void;
|
|
3
|
+
export default function lstatReal(path: string, callback: Callback): undefined;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Stats, type BigIntStats } from 'fs';
|
|
2
|
+
export type Callback = (err: NodeJS.ErrnoException | null, stats?: Stats | BigIntStats) => void;
|
|
3
|
+
export default function lstatReal(path: string, callback: Callback): undefined;
|
package/dist/cjs/fs/lstatReal.js
CHANGED
|
@@ -8,15 +8,15 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return lstatReal;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var
|
|
11
|
+
var _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
|
|
12
12
|
function _interop_require_default(obj) {
|
|
13
13
|
return obj && obj.__esModule ? obj : {
|
|
14
14
|
default: obj
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
function lstatReal(path, callback) {
|
|
18
|
-
|
|
19
|
-
err ? callback(err) :
|
|
18
|
+
_fs.default.realpath(path, function(err, realpath) {
|
|
19
|
+
err ? callback(err) : _fs.default.lstat(realpath, callback);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
/* 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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/lstatReal.ts"],"sourcesContent":["import fs from '
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/lstatReal.ts"],"sourcesContent":["import fs, { type Stats, type BigIntStats } from 'fs';\n\nexport type Callback = (err: NodeJS.ErrnoException | null, stats?: Stats | BigIntStats) => void;\n\nexport default function lstatReal(path: string, callback: Callback): undefined {\n fs.realpath(path, (err, realpath) => {\n err ? callback(err) : fs.lstat(realpath, callback);\n });\n}\n"],"names":["lstatReal","path","callback","fs","realpath","err","lstat"],"mappings":";;;;+BAIA;;;eAAwBA;;;yDAJyB;;;;;;AAIlC,SAASA,UAAUC,IAAY,EAAEC,QAAkB;IAChEC,WAAE,CAACC,QAAQ,CAACH,MAAM,SAACI,KAAKD;QACtBC,MAAMH,SAASG,OAAOF,WAAE,CAACG,KAAK,CAACF,UAAUF;IAC3C;AACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return symlinkWin32;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _gracefulfs = /*#__PURE__*/ _interop_require_default(require("graceful-fs"));
|
|
12
|
+
var _lstatReal = /*#__PURE__*/ _interop_require_default(require("./lstatReal.js"));
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function symlinkWin32(linkFullPath, linkpath, fullPath, callback) {
|
|
19
|
+
(0, _lstatReal.default)(linkFullPath, function(err, targetStat) {
|
|
20
|
+
if (err || !targetStat) return callback(err || new Error("Symlink path does not exist".concat(linkFullPath)));
|
|
21
|
+
var type = targetStat.isDirectory() ? 'dir' : 'file';
|
|
22
|
+
_gracefulfs.default.symlink(linkpath, fullPath, type, callback);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/* 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; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/symlinkWin32.ts"],"sourcesContent":["import fs from 'graceful-fs';\n\nimport type { NoParamCallback } from 'fs';\nimport lstatReal from './lstatReal.js';\n\nexport default function symlinkWin32(linkFullPath: string, linkpath: string, fullPath: string, callback: NoParamCallback) {\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}\n"],"names":["symlinkWin32","linkFullPath","linkpath","fullPath","callback","lstatReal","err","targetStat","Error","type","isDirectory","fs","symlink"],"mappings":";;;;+BAKA;;;eAAwBA;;;iEALT;gEAGO;;;;;;AAEP,SAASA,aAAaC,YAAoB,EAAEC,QAAgB,EAAEC,QAAgB,EAAEC,QAAyB;IACtHC,IAAAA,kBAAS,EAACJ,cAAc,SAACK,KAAKC;QAC5B,IAAID,OAAO,CAACC,YAAY,OAAOH,SAASE,OAAO,IAAIE,MAAM,AAAC,8BAA0C,OAAbP;QACvF,IAAMQ,OAAOF,WAAWG,WAAW,KAAK,QAAQ;QAChDC,mBAAE,CAACC,OAAO,CAACV,UAAUC,UAAUM,MAAML;IACvC;AACF"}
|
package/dist/cjs/fs/utimes.d.cts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NoParamCallback } from 'fs';
|
|
2
|
+
import type { Entry, ExtractOptions } from '../types.js';
|
|
3
|
+
export default function utimes(fullPath: string, entry: Entry, options: ExtractOptions, callback: NoParamCallback): undefined;
|
package/dist/cjs/fs/utimes.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NoParamCallback } from 'fs';
|
|
2
|
+
import type { Entry, ExtractOptions } from '../types.js';
|
|
3
|
+
export default function utimes(fullPath: string, entry: Entry, options: ExtractOptions, callback: NoParamCallback): undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/utimes.ts"],"sourcesContent":["// adapted from https://github.com/mafintosh/tar-fs\n\nimport fs from 'graceful-fs';\n\nexport default function utimes(fullPath, entry, options, callback) {\n const now = options.now || new Date();\n fs.utimes(fullPath, now, new Date(entry.mtime), callback);\n}\n"],"names":["utimes","fullPath","entry","options","callback","now","Date","fs","mtime"],"mappings":"AAAA,mDAAmD;;;;;+
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/fs/utimes.ts"],"sourcesContent":["// adapted from https://github.com/mafintosh/tar-fs\n\nimport fs from 'graceful-fs';\n\nimport type { NoParamCallback } from 'fs';\nimport type { Entry, ExtractOptions } from '../types.js';\n\nexport default function utimes(fullPath: string, entry: Entry, options: ExtractOptions, callback: NoParamCallback): undefined {\n const now = options.now || new Date();\n fs.utimes(fullPath, now, new Date(entry.mtime), callback);\n}\n"],"names":["utimes","fullPath","entry","options","callback","now","Date","fs","mtime"],"mappings":"AAAA,mDAAmD;;;;;+BAOnD;;;eAAwBA;;;iEALT;;;;;;AAKA,SAASA,OAAOC,QAAgB,EAAEC,KAAY,EAAEC,OAAuB,EAAEC,QAAyB;IAC/G,IAAMC,MAAMF,QAAQE,GAAG,IAAI,IAAIC;IAC/BC,mBAAE,CAACP,MAAM,CAACC,UAAUI,KAAK,IAAIC,KAAKJ,MAAMM,KAAK,GAAGJ;AAClD"}
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import './polyfills.js';
|
|
1
2
|
import StackBaseIterator from 'stack-base-iterator';
|
|
2
3
|
export default StackBaseIterator;
|
|
4
|
+
export { default as waitForAccess } from './waitForAccess.js';
|
|
3
5
|
export { default as DirectoryEntry } from './DirectoryEntry.js';
|
|
4
6
|
export { default as FileEntry } from './FileEntry.js';
|
|
5
7
|
export { default as LinkEntry } from './LinkEntry.js';
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import './polyfills.js';
|
|
1
2
|
import StackBaseIterator from 'stack-base-iterator';
|
|
2
3
|
export default StackBaseIterator;
|
|
4
|
+
export { default as waitForAccess } from './waitForAccess.js';
|
|
3
5
|
export { default as DirectoryEntry } from './DirectoryEntry.js';
|
|
4
6
|
export { default as FileEntry } from './FileEntry.js';
|
|
5
7
|
export { default as LinkEntry } from './LinkEntry.js';
|
package/dist/cjs/index.js
CHANGED
|
@@ -23,9 +23,14 @@ _export(exports, {
|
|
|
23
23
|
},
|
|
24
24
|
get default () {
|
|
25
25
|
return _default;
|
|
26
|
+
},
|
|
27
|
+
get waitForAccess () {
|
|
28
|
+
return _waitForAccess.default;
|
|
26
29
|
}
|
|
27
30
|
});
|
|
31
|
+
require("./polyfills.js");
|
|
28
32
|
var _stackbaseiterator = /*#__PURE__*/ _interop_require_default(require("stack-base-iterator"));
|
|
33
|
+
var _waitForAccess = /*#__PURE__*/ _interop_require_default(require("./waitForAccess.js"));
|
|
29
34
|
var _DirectoryEntry = /*#__PURE__*/ _interop_require_default(require("./DirectoryEntry.js"));
|
|
30
35
|
var _FileEntry = /*#__PURE__*/ _interop_require_default(require("./FileEntry.js"));
|
|
31
36
|
var _LinkEntry = /*#__PURE__*/ _interop_require_default(require("./LinkEntry.js"));
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/index.ts"],"sourcesContent":["import StackBaseIterator from 'stack-base-iterator';\n\nexport default StackBaseIterator;\nexport { default as DirectoryEntry } from './DirectoryEntry.js';\nexport { default as FileEntry } from './FileEntry.js';\nexport { default as LinkEntry } from './LinkEntry.js';\nexport { default as SymbolicLinkEntry } from './SymbolicLinkEntry.js';\nexport * from './types.js';\n"],"names":["DirectoryEntry","FileEntry","LinkEntry","SymbolicLinkEntry","StackBaseIterator"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/extract-base-iterator/src/index.ts"],"sourcesContent":["import './polyfills.js';\nimport StackBaseIterator from 'stack-base-iterator';\n\nexport default StackBaseIterator;\nexport { default as waitForAccess } from './waitForAccess.js';\nexport { default as DirectoryEntry } from './DirectoryEntry.js';\nexport { default as FileEntry } from './FileEntry.js';\nexport { default as LinkEntry } from './LinkEntry.js';\nexport { default as SymbolicLinkEntry } from './SymbolicLinkEntry.js';\nexport * from './types.js';\n"],"names":["DirectoryEntry","FileEntry","LinkEntry","SymbolicLinkEntry","waitForAccess","StackBaseIterator"],"mappings":";;;;;;;;;;;QAKoBA;eAAAA,uBAAc;;QACdC;eAAAA,kBAAS;;QACTC;eAAAA,kBAAS;;QACTC;eAAAA,0BAAiB;;QALrC;eAAA;;QACoBC;eAAAA,sBAAa;;;QAJ1B;wEACuB;oEAGW;qEACC;gEACL;gEACA;wEACQ;qBAC/B;;;;;;;;;;;;;;;;;;;IANd,WAAeC,0BAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
var _module = /*#__PURE__*/ _interop_require_default(require("module"));
|
|
6
|
+
function _interop_require_default(obj) {
|
|
7
|
+
return obj && obj.__esModule ? obj : {
|
|
8
|
+
default: obj
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
var _require = typeof require === 'undefined' ? _module.default.createRequire(require("url").pathToFileURL(__filename).toString()) : require;
|
|
12
|
+
if (typeof setImmediate === 'undefined') global.setImmediate = _require('next-tick');
|
|
13
|
+
/* 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; }
|