update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
24
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.d.ts
generated
vendored
Normal file
24
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/// <reference types="node" />
|
||||
export interface BufferPair {
|
||||
buf1: Buffer;
|
||||
buf2: Buffer;
|
||||
busy: boolean;
|
||||
}
|
||||
/**
|
||||
* Collection of buffers to be shared between async processes.
|
||||
* Avoids allocating buffers each time async process starts.
|
||||
*/
|
||||
export declare class BufferPool {
|
||||
private readonly bufSize;
|
||||
private readonly bufNo;
|
||||
private readonly bufferPool;
|
||||
/**
|
||||
*
|
||||
* @param bufSize Size of each buffer.
|
||||
* @param bufNo Number of buffers. Caller has to make sure no more than bufNo async processes run simultaneously.
|
||||
*/
|
||||
constructor(bufSize: number, bufNo: number);
|
||||
allocateBuffers(): BufferPair;
|
||||
freeBuffers(bufferPair: BufferPair): void;
|
||||
}
|
||||
//# sourceMappingURL=BufferPool.d.ts.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.d.ts.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"BufferPool.d.ts","sourceRoot":"","sources":["../../../src/FileSystem/BufferPool.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,UAAU;IAOP,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAU,OAAO,CAAC,QAAQ,CAAC,KAAK;IANpE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C;;;;OAIG;gBAC0B,OAAO,EAAE,MAAM,EAAmB,KAAK,EAAE,MAAM;IAUrE,eAAe,IAAI,UAAU;IAW7B,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAGnD"}
|
||||
41
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.js
generated
vendored
Normal file
41
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.js
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BufferPool = void 0;
|
||||
/**
|
||||
* Collection of buffers to be shared between async processes.
|
||||
* Avoids allocating buffers each time async process starts.
|
||||
*/
|
||||
class BufferPool {
|
||||
/**
|
||||
*
|
||||
* @param bufSize Size of each buffer.
|
||||
* @param bufNo Number of buffers. Caller has to make sure no more than bufNo async processes run simultaneously.
|
||||
*/
|
||||
constructor(bufSize, bufNo) {
|
||||
this.bufSize = bufSize;
|
||||
this.bufNo = bufNo;
|
||||
this.bufferPool = [];
|
||||
for (let i = 0; i < this.bufNo; i++) {
|
||||
this.bufferPool.push({
|
||||
buf1: Buffer.alloc(this.bufSize),
|
||||
buf2: Buffer.alloc(this.bufSize),
|
||||
busy: false
|
||||
});
|
||||
}
|
||||
}
|
||||
allocateBuffers() {
|
||||
for (let j = 0; j < this.bufNo; j++) {
|
||||
const bufferPair = this.bufferPool[j];
|
||||
if (!bufferPair.busy) {
|
||||
bufferPair.busy = true;
|
||||
return bufferPair;
|
||||
}
|
||||
}
|
||||
throw new Error('Async buffer limit reached');
|
||||
}
|
||||
freeBuffers(bufferPair) {
|
||||
bufferPair.busy = false;
|
||||
}
|
||||
}
|
||||
exports.BufferPool = BufferPool;
|
||||
//# sourceMappingURL=BufferPool.js.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.js.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/BufferPool.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"BufferPool.js","sourceRoot":"","sources":["../../../src/FileSystem/BufferPool.ts"],"names":[],"mappings":";;;AAMA;;;GAGG;AACH,MAAa,UAAU;IAEnB;;;;OAIG;IACH,YAA6B,OAAe,EAAmB,KAAa;QAA/C,YAAO,GAAP,OAAO,CAAQ;QAAmB,UAAK,GAAL,KAAK,CAAQ;QAN3D,eAAU,GAAiB,EAAE,CAAA;QAO1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;YACjC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;gBACjB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;gBAChC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;gBAChC,IAAI,EAAE,KAAK;aACd,CAAC,CAAA;SACL;IACL,CAAC;IAEM,eAAe;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;YACjC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;YACrC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;gBAClB,UAAU,CAAC,IAAI,GAAG,IAAI,CAAA;gBACtB,OAAO,UAAU,CAAA;aACpB;SACJ;QACD,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;IACjD,CAAC;IAEM,WAAW,CAAC,UAAsB;QACrC,UAAU,CAAC,IAAI,GAAG,KAAK,CAAA;IAC3B,CAAC;CACJ;AA/BD,gCA+BC"}
|
||||
9
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.d.ts
generated
vendored
Normal file
9
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { FileDescriptorQueue } from './FileDescriptorQueue';
|
||||
declare function closeFilesSync(fd1?: number, fd2?: number): void;
|
||||
declare function closeFilesAsync(fd1: number | undefined, fd2: number | undefined, fdQueue: FileDescriptorQueue): Promise<void>;
|
||||
export declare const FileCloser: {
|
||||
closeFilesSync: typeof closeFilesSync;
|
||||
closeFilesAsync: typeof closeFilesAsync;
|
||||
};
|
||||
export {};
|
||||
//# sourceMappingURL=FileCloser.d.ts.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.d.ts.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FileCloser.d.ts","sourceRoot":"","sources":["../../../src/FileSystem/FileCloser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,iBAAS,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAOxD;AAED,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAWtH;AAGD,eAAO,MAAM,UAAU;;;CAGtB,CAAA"}
|
||||
32
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.js
generated
vendored
Normal file
32
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FileCloser = void 0;
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
function closeFilesSync(fd1, fd2) {
|
||||
if (fd1) {
|
||||
fs_1.default.closeSync(fd1);
|
||||
}
|
||||
if (fd2) {
|
||||
fs_1.default.closeSync(fd2);
|
||||
}
|
||||
}
|
||||
function closeFilesAsync(fd1, fd2, fdQueue) {
|
||||
if (fd1 && fd2) {
|
||||
return fdQueue.closePromise(fd1).then(() => fdQueue.closePromise(fd2));
|
||||
}
|
||||
if (fd1) {
|
||||
return fdQueue.closePromise(fd1);
|
||||
}
|
||||
if (fd2) {
|
||||
return fdQueue.closePromise(fd2);
|
||||
}
|
||||
return Promise.resolve();
|
||||
}
|
||||
exports.FileCloser = {
|
||||
closeFilesSync,
|
||||
closeFilesAsync
|
||||
};
|
||||
//# sourceMappingURL=FileCloser.js.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.js.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FileCloser.js","sourceRoot":"","sources":["../../../src/FileSystem/FileCloser.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAmB;AAGnB,SAAS,cAAc,CAAC,GAAY,EAAE,GAAY;IAC9C,IAAI,GAAG,EAAE;QACL,YAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;KACpB;IACD,IAAI,GAAG,EAAE;QACL,YAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;KACpB;AACL,CAAC;AAED,SAAS,eAAe,CAAC,GAAuB,EAAE,GAAuB,EAAE,OAA4B;IACnG,IAAI,GAAG,IAAI,GAAG,EAAE;QACZ,OAAO,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAA;KACzE;IACD,IAAI,GAAG,EAAE;QACL,OAAO,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;KACnC;IACD,IAAI,GAAG,EAAE;QACL,OAAO,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;KACnC;IACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;AAC5B,CAAC;AAGY,QAAA,UAAU,GAAG;IACtB,cAAc;IACd,eAAe;CAClB,CAAA"}
|
||||
30
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.d.ts
generated
vendored
Normal file
30
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import { NoParamCallback } from 'fs';
|
||||
type OpenFileFlags = string;
|
||||
type OpenFileCallback = (err: NodeJS.ErrnoException | null, fd: number) => void;
|
||||
/**
|
||||
* Limits the number of concurrent file handlers.
|
||||
* Use it as a wrapper over fs.open() and fs.close().
|
||||
* Example:
|
||||
* const fdQueue = new FileDescriptorQueue(8)
|
||||
* fdQueue.open(path, flags, (err, fd) =>{
|
||||
* ...
|
||||
* fdQueue.close(fd, (err) =>{
|
||||
* ...
|
||||
* })
|
||||
* })
|
||||
*/
|
||||
export declare class FileDescriptorQueue {
|
||||
private maxFilesNo;
|
||||
private activeCount;
|
||||
private pendingJobs;
|
||||
constructor(maxFilesNo: number);
|
||||
open(path: string, flags: OpenFileFlags, callback: OpenFileCallback): void;
|
||||
process(): void;
|
||||
close(fd: number, callback: NoParamCallback): void;
|
||||
openPromise(path: string, flags: OpenFileFlags): Promise<number>;
|
||||
closePromise(fd: number): Promise<void>;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=FileDescriptorQueue.d.ts.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.d.ts.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FileDescriptorQueue.d.ts","sourceRoot":"","sources":["../../../src/FileSystem/FileDescriptorQueue.ts"],"names":[],"mappings":";;AAAA,OAAW,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGxC,KAAK,aAAa,GAAG,MAAM,CAAA;AAC3B,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;AAO/E;;;;;;;;;;;GAWG;AACH,qBAAa,mBAAmB;IAGnB,OAAO,CAAC,UAAU;IAF9B,OAAO,CAAC,WAAW,CAAI;IACvB,OAAO,CAAC,WAAW,CAAmB;gBAClB,UAAU,EAAE,MAAM;IAEtC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAS1E,OAAO,IAAI,IAAI;IAQf,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI;IAMlD,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;IAYhE,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAWvC"}
|
||||
73
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.js
generated
vendored
Normal file
73
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.js
generated
vendored
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FileDescriptorQueue = void 0;
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
const Queue_1 = require("./Queue");
|
||||
/**
|
||||
* Limits the number of concurrent file handlers.
|
||||
* Use it as a wrapper over fs.open() and fs.close().
|
||||
* Example:
|
||||
* const fdQueue = new FileDescriptorQueue(8)
|
||||
* fdQueue.open(path, flags, (err, fd) =>{
|
||||
* ...
|
||||
* fdQueue.close(fd, (err) =>{
|
||||
* ...
|
||||
* })
|
||||
* })
|
||||
*/
|
||||
class FileDescriptorQueue {
|
||||
constructor(maxFilesNo) {
|
||||
this.maxFilesNo = maxFilesNo;
|
||||
this.activeCount = 0;
|
||||
this.pendingJobs = new Queue_1.Queue();
|
||||
}
|
||||
open(path, flags, callback) {
|
||||
this.pendingJobs.enqueue({
|
||||
path: path,
|
||||
flags: flags,
|
||||
callback: callback
|
||||
});
|
||||
this.process();
|
||||
}
|
||||
process() {
|
||||
if (this.pendingJobs.getLength() > 0 && this.activeCount < this.maxFilesNo) {
|
||||
const job = this.pendingJobs.dequeue();
|
||||
this.activeCount++;
|
||||
fs_1.default.open(job.path, job.flags, job.callback);
|
||||
}
|
||||
}
|
||||
close(fd, callback) {
|
||||
this.activeCount--;
|
||||
fs_1.default.close(fd, callback);
|
||||
this.process();
|
||||
}
|
||||
openPromise(path, flags) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.open(path, flags, (err, fd) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(fd);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
closePromise(fd) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.close(fd, (err) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.FileDescriptorQueue = FileDescriptorQueue;
|
||||
//# sourceMappingURL=FileDescriptorQueue.js.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.js.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/FileDescriptorQueue.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FileDescriptorQueue.js","sourceRoot":"","sources":["../../../src/FileSystem/FileDescriptorQueue.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAwC;AACxC,mCAA+B;AAU/B;;;;;;;;;;;GAWG;AACH,MAAa,mBAAmB;IAG/B,YAAoB,UAAkB;QAAlB,eAAU,GAAV,UAAU,CAAQ;QAF9B,gBAAW,GAAG,CAAC,CAAA;QACf,gBAAW,GAAG,IAAI,aAAK,EAAO,CAAA;IACI,CAAC;IAE3C,IAAI,CAAC,IAAY,EAAE,KAAoB,EAAE,QAA0B;QAClE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,QAAQ;SAClB,CAAC,CAAA;QACF,IAAI,CAAC,OAAO,EAAE,CAAA;IACf,CAAC;IAED,OAAO;QACN,IAAI,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE;YAC3E,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAS,CAAA;YAC7C,IAAI,CAAC,WAAW,EAAE,CAAA;YAClB,YAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA;SAC1C;IACF,CAAC;IAED,KAAK,CAAC,EAAU,EAAE,QAAyB;QAC1C,IAAI,CAAC,WAAW,EAAE,CAAA;QAClB,YAAE,CAAC,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;QACtB,IAAI,CAAC,OAAO,EAAE,CAAA;IACf,CAAC;IAED,WAAW,CAAC,IAAY,EAAE,KAAoB;QAC7C,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC9C,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE;gBAClC,IAAI,GAAG,EAAE;oBACR,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;qBAAM;oBACN,OAAO,CAAC,EAAE,CAAC,CAAA;iBACX;YACF,CAAC,CAAC,CAAA;QACH,CAAC,CAAC,CAAA;IACH,CAAC;IAED,YAAY,CAAC,EAAU;QACtB,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC5C,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE;gBACtB,IAAI,GAAG,EAAE;oBACR,MAAM,CAAC,GAAG,CAAC,CAAA;iBACX;qBAAM;oBACN,OAAO,EAAE,CAAA;iBACT;YACF,CAAC,CAAC,CAAA;QACH,CAAC,CAAC,CAAA;IACH,CAAC;CACD;AAnDD,kDAmDC"}
|
||||
8
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.d.ts
generated
vendored
Normal file
8
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/// <reference types="node" />
|
||||
type BytesRead = number;
|
||||
export declare const FsPromise: {
|
||||
readdir(path: string): Promise<string[]>;
|
||||
read(fd: number, buffer: Buffer, offset: number, length: number, position: number | null): Promise<BytesRead>;
|
||||
};
|
||||
export {};
|
||||
//# sourceMappingURL=FsPromise.d.ts.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.d.ts.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FsPromise.d.ts","sourceRoot":"","sources":["../../../src/FileSystem/FsPromise.ts"],"names":[],"mappings":";AAEA,KAAK,SAAS,GAAG,MAAM,CAAA;AAEvB,eAAO,MAAM,SAAS;kBACJ,MAAM,GAAG,QAAQ,MAAM,EAAE,CAAC;aAW/B,MAAM,UAAU,MAAM,UAAU,MAAM,UAAU,MAAM,YAAY,MAAM,GAAG,IAAI,GAAG,QAAQ,SAAS,CAAC;CAWhH,CAAA"}
|
||||
34
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.js
generated
vendored
Normal file
34
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.js
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FsPromise = void 0;
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
exports.FsPromise = {
|
||||
readdir(path) {
|
||||
return new Promise((resolve, reject) => {
|
||||
fs_1.default.readdir(path, (err, files) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(files);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
read(fd, buffer, offset, length, position) {
|
||||
return new Promise((resolve, reject) => {
|
||||
fs_1.default.read(fd, buffer, offset, length, position, (err, bytesRead) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(bytesRead);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=FsPromise.js.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.js.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/FsPromise.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FsPromise.js","sourceRoot":"","sources":["../../../src/FileSystem/FsPromise.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAmB;AAIN,QAAA,SAAS,GAAG;IACrB,OAAO,CAAC,IAAY;QAChB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,YAAE,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;gBAC5B,IAAI,GAAG,EAAE;oBACL,MAAM,CAAC,GAAG,CAAC,CAAA;iBACd;qBAAM;oBACH,OAAO,CAAC,KAAK,CAAC,CAAA;iBACjB;YACL,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACN,CAAC;IACD,IAAI,CAAC,EAAU,EAAE,MAAc,EAAE,MAAc,EAAE,MAAc,EAAE,QAAuB;QACpF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,YAAE,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;gBAC7D,IAAI,GAAG,EAAE;oBACL,MAAM,CAAC,GAAG,CAAC,CAAA;iBACd;qBAAM;oBACH,OAAO,CAAC,SAAS,CAAC,CAAA;iBACrB;YACL,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACN,CAAC;CACJ,CAAA"}
|
||||
8
electron/node_modules/dir-compare/build/src/FileSystem/Queue.d.ts
generated
vendored
Normal file
8
electron/node_modules/dir-compare/build/src/FileSystem/Queue.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export declare class Queue<T> {
|
||||
private queue;
|
||||
private offset;
|
||||
getLength(): number;
|
||||
enqueue(item: T): void;
|
||||
dequeue(): T | undefined;
|
||||
}
|
||||
//# sourceMappingURL=Queue.d.ts.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/Queue.d.ts.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/Queue.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"Queue.d.ts","sourceRoot":"","sources":["../../../src/FileSystem/Queue.ts"],"names":[],"mappings":"AAkBA,qBAAa,KAAK,CAAC,CAAC;IAGlB,OAAO,CAAC,KAAK,CAAU;IACvB,OAAO,CAAC,MAAM,CAAI;IAGX,SAAS,IAAI,MAAM;IAQnB,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAOtB,OAAO,IAAI,CAAC,GAAG,SAAS;CAoBhC"}
|
||||
57
electron/node_modules/dir-compare/build/src/FileSystem/Queue.js
generated
vendored
Normal file
57
electron/node_modules/dir-compare/build/src/FileSystem/Queue.js
generated
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
"use strict";
|
||||
/*
|
||||
|
||||
Queue.js
|
||||
|
||||
A function to represent a queue
|
||||
|
||||
Created by Kate Morley - http://code.iamkate.com/ - and released under the terms
|
||||
of the CC0 1.0 Universal legal code:
|
||||
|
||||
http://creativecommons.org/publicdomain/zero/1.0/legalcode
|
||||
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Queue = void 0;
|
||||
const MAX_UNUSED_ARRAY_SIZE = 10000;
|
||||
/* Creates a new queue. A queue is a first-in-first-out (FIFO) data structure -
|
||||
* items are added to the end of the queue and removed from the front.
|
||||
*/
|
||||
class Queue {
|
||||
constructor() {
|
||||
// Initialize the queue and offset
|
||||
this.queue = [];
|
||||
this.offset = 0;
|
||||
}
|
||||
// Returns the length of the queue.
|
||||
getLength() {
|
||||
return this.queue.length - this.offset;
|
||||
}
|
||||
/* Enqueues the specified item. The parameter is:
|
||||
*
|
||||
* item - the item to enqueue
|
||||
*/
|
||||
enqueue(item) {
|
||||
this.queue.push(item);
|
||||
}
|
||||
/* Dequeues an item and returns it. If the queue is empty, the value
|
||||
* 'undefined' is returned.
|
||||
*/
|
||||
dequeue() {
|
||||
// if the queue is empty, return immediately
|
||||
if (this.queue.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
// store the item at the front of the queue
|
||||
const item = this.queue[this.offset];
|
||||
// increment the offset and remove the free space if necessary
|
||||
if (++this.offset > MAX_UNUSED_ARRAY_SIZE) {
|
||||
this.queue = this.queue.slice(this.offset);
|
||||
this.offset = 0;
|
||||
}
|
||||
// return the dequeued item
|
||||
return item;
|
||||
}
|
||||
}
|
||||
exports.Queue = Queue;
|
||||
//# sourceMappingURL=Queue.js.map
|
||||
1
electron/node_modules/dir-compare/build/src/FileSystem/Queue.js.map
generated
vendored
Normal file
1
electron/node_modules/dir-compare/build/src/FileSystem/Queue.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"Queue.js","sourceRoot":"","sources":["../../../src/FileSystem/Queue.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;EAWE;;;AAEF,MAAM,qBAAqB,GAAG,KAAK,CAAA;AAEnC;;GAEG;AACH,MAAa,KAAK;IAAlB;QAEE,kCAAkC;QAC1B,UAAK,GAAQ,EAAE,CAAA;QACf,WAAM,GAAG,CAAC,CAAA;IAsCpB,CAAC;IApCC,mCAAmC;IAC5B,SAAS;QACd,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;IACxC,CAAC;IAED;;;OAGG;IACI,OAAO,CAAC,IAAO;QACpB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACvB,CAAC;IAED;;OAEG;IACI,OAAO;QAEZ,4CAA4C;QAC5C,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YAC3B,OAAO,SAAS,CAAA;SACjB;QAED,2CAA2C;QAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAEpC,8DAA8D;QAC9D,IAAI,EAAE,IAAI,CAAC,MAAM,GAAG,qBAAqB,EAAE;YACzC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YAC1C,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA;SAChB;QAED,2BAA2B;QAC3B,OAAO,IAAI,CAAA;IAEb,CAAC;CACF;AA1CD,sBA0CC"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue