summaryrefslogtreecommitdiffstats
path: root/node_modules/@nodelib/fs.stat/out
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@nodelib/fs.stat/out')
-rw-r--r--node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts11
-rw-r--r--node_modules/@nodelib/fs.stat/out/adapters/fs.js16
-rw-r--r--node_modules/@nodelib/fs.stat/out/index.d.ts13
-rw-r--r--node_modules/@nodelib/fs.stat/out/index.js24
-rw-r--r--node_modules/@nodelib/fs.stat/out/providers/async.d.ts5
-rw-r--r--node_modules/@nodelib/fs.stat/out/providers/async.js31
-rw-r--r--node_modules/@nodelib/fs.stat/out/providers/sync.d.ts4
-rw-r--r--node_modules/@nodelib/fs.stat/out/providers/sync.js22
-rw-r--r--node_modules/@nodelib/fs.stat/out/settings.d.ts17
-rw-r--r--node_modules/@nodelib/fs.stat/out/settings.js16
-rw-r--r--node_modules/@nodelib/fs.stat/out/types/index.d.ts5
-rw-r--r--node_modules/@nodelib/fs.stat/out/types/index.js2
12 files changed, 0 insertions, 166 deletions
diff --git a/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts b/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts
deleted file mode 100644
index d17b356..0000000
--- a/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/// <reference types="node" />
-import * as fs from 'fs';
-export declare type FileSystemAdapter = {
- lstat: typeof fs.lstat;
- stat: typeof fs.stat;
- lstatSync: typeof fs.lstatSync;
- statSync: typeof fs.statSync;
-};
-export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
-export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
-//# sourceMappingURL=fs.d.ts.map \ No newline at end of file
diff --git a/node_modules/@nodelib/fs.stat/out/adapters/fs.js b/node_modules/@nodelib/fs.stat/out/adapters/fs.js
deleted file mode 100644
index 3a9806f..0000000
--- a/node_modules/@nodelib/fs.stat/out/adapters/fs.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const fs = require("fs");
-exports.FILE_SYSTEM_ADAPTER = {
- lstat: fs.lstat,
- stat: fs.stat,
- lstatSync: fs.lstatSync,
- statSync: fs.statSync
-};
-function createFileSystemAdapter(fsMethods) {
- if (fsMethods === undefined) {
- return exports.FILE_SYSTEM_ADAPTER;
- }
- return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
-}
-exports.createFileSystemAdapter = createFileSystemAdapter;
diff --git a/node_modules/@nodelib/fs.stat/out/index.d.ts b/node_modules/@nodelib/fs.stat/out/index.d.ts
deleted file mode 100644
index 5f092f9..0000000
--- a/node_modules/@nodelib/fs.stat/out/index.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { FileSystemAdapter } from './adapters/fs';
-import * as async from './providers/async';
-import Settings, { Options } from './settings';
-import { Stats } from './types';
-declare type AsyncCallback = async.AsyncCallback;
-declare function stat(path: string, callback: AsyncCallback): void;
-declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
-declare namespace stat {
- function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Stats>;
-}
-declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats;
-export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, Options, Stats };
-//# sourceMappingURL=index.d.ts.map \ No newline at end of file
diff --git a/node_modules/@nodelib/fs.stat/out/index.js b/node_modules/@nodelib/fs.stat/out/index.js
deleted file mode 100644
index 6a98f77..0000000
--- a/node_modules/@nodelib/fs.stat/out/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const async = require("./providers/async");
-const sync = require("./providers/sync");
-const settings_1 = require("./settings");
-exports.Settings = settings_1.default;
-function stat(path, optionsOrSettingsOrCallback, callback) {
- if (typeof optionsOrSettingsOrCallback === 'function') {
- return async.read(path, getSettings(), optionsOrSettingsOrCallback);
- }
- async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
-}
-exports.stat = stat;
-function statSync(path, optionsOrSettings) {
- const settings = getSettings(optionsOrSettings);
- return sync.read(path, settings);
-}
-exports.statSync = statSync;
-function getSettings(settingsOrOptions = {}) {
- if (settingsOrOptions instanceof settings_1.default) {
- return settingsOrOptions;
- }
- return new settings_1.default(settingsOrOptions);
-}
diff --git a/node_modules/@nodelib/fs.stat/out/providers/async.d.ts b/node_modules/@nodelib/fs.stat/out/providers/async.d.ts
deleted file mode 100644
index a9637c5..0000000
--- a/node_modules/@nodelib/fs.stat/out/providers/async.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import Settings from '../settings';
-import { ErrnoException, Stats } from '../types';
-export declare type AsyncCallback = (err: ErrnoException, stats: Stats) => void;
-export declare function read(path: string, settings: Settings, callback: AsyncCallback): void;
-//# sourceMappingURL=async.d.ts.map \ No newline at end of file
diff --git a/node_modules/@nodelib/fs.stat/out/providers/async.js b/node_modules/@nodelib/fs.stat/out/providers/async.js
deleted file mode 100644
index ab98c29..0000000
--- a/node_modules/@nodelib/fs.stat/out/providers/async.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-function read(path, settings, callback) {
- settings.fs.lstat(path, (lstatError, lstat) => {
- if (lstatError !== null) {
- return callFailureCallback(callback, lstatError);
- }
- if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
- return callSuccessCallback(callback, lstat);
- }
- settings.fs.stat(path, (statError, stat) => {
- if (statError !== null) {
- if (settings.throwErrorOnBrokenSymbolicLink) {
- return callFailureCallback(callback, statError);
- }
- return callSuccessCallback(callback, lstat);
- }
- if (settings.markSymbolicLink) {
- stat.isSymbolicLink = () => true;
- }
- callSuccessCallback(callback, stat);
- });
- });
-}
-exports.read = read;
-function callFailureCallback(callback, error) {
- callback(error);
-}
-function callSuccessCallback(callback, result) {
- callback(null, result);
-}
diff --git a/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts b/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts
deleted file mode 100644
index f4c1d78..0000000
--- a/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import Settings from '../settings';
-import { Stats } from '../types';
-export declare function read(path: string, settings: Settings): Stats;
-//# sourceMappingURL=sync.d.ts.map \ No newline at end of file
diff --git a/node_modules/@nodelib/fs.stat/out/providers/sync.js b/node_modules/@nodelib/fs.stat/out/providers/sync.js
deleted file mode 100644
index 31dab38..0000000
--- a/node_modules/@nodelib/fs.stat/out/providers/sync.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-function read(path, settings) {
- const lstat = settings.fs.lstatSync(path);
- if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
- return lstat;
- }
- try {
- const stat = settings.fs.statSync(path);
- if (settings.markSymbolicLink) {
- stat.isSymbolicLink = () => true;
- }
- return stat;
- }
- catch (error) {
- if (!settings.throwErrorOnBrokenSymbolicLink) {
- return lstat;
- }
- throw error;
- }
-}
-exports.read = read;
diff --git a/node_modules/@nodelib/fs.stat/out/settings.d.ts b/node_modules/@nodelib/fs.stat/out/settings.d.ts
deleted file mode 100644
index 34c4620..0000000
--- a/node_modules/@nodelib/fs.stat/out/settings.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import * as fs from './adapters/fs';
-export declare type Options = {
- followSymbolicLink?: boolean;
- fs?: Partial<fs.FileSystemAdapter>;
- markSymbolicLink?: boolean;
- throwErrorOnBrokenSymbolicLink?: boolean;
-};
-export default class Settings {
- private readonly _options;
- readonly followSymbolicLink: boolean;
- readonly fs: fs.FileSystemAdapter;
- readonly markSymbolicLink: boolean;
- readonly throwErrorOnBrokenSymbolicLink: boolean;
- constructor(_options?: Options);
- private _getValue;
-}
-//# sourceMappingURL=settings.d.ts.map \ No newline at end of file
diff --git a/node_modules/@nodelib/fs.stat/out/settings.js b/node_modules/@nodelib/fs.stat/out/settings.js
deleted file mode 100644
index ef4d057..0000000
--- a/node_modules/@nodelib/fs.stat/out/settings.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const fs = require("./adapters/fs");
-class Settings {
- constructor(_options = {}) {
- this._options = _options;
- this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
- this.fs = fs.createFileSystemAdapter(this._options.fs);
- this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
- this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
- }
- _getValue(option, value) {
- return option === undefined ? value : option;
- }
-}
-exports.default = Settings;
diff --git a/node_modules/@nodelib/fs.stat/out/types/index.d.ts b/node_modules/@nodelib/fs.stat/out/types/index.d.ts
deleted file mode 100644
index 227f7bf..0000000
--- a/node_modules/@nodelib/fs.stat/out/types/index.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-/// <reference types="node" />
-import * as fs from 'fs';
-export declare type Stats = fs.Stats;
-export declare type ErrnoException = NodeJS.ErrnoException;
-//# sourceMappingURL=index.d.ts.map \ No newline at end of file
diff --git a/node_modules/@nodelib/fs.stat/out/types/index.js b/node_modules/@nodelib/fs.stat/out/types/index.js
deleted file mode 100644
index ce03781..0000000
--- a/node_modules/@nodelib/fs.stat/out/types/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });