UNPKG

582 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4const fs = require("fs");
5exports.FILE_SYSTEM_ADAPTER = {
6 lstat: fs.lstat,
7 stat: fs.stat,
8 lstatSync: fs.lstatSync,
9 statSync: fs.statSync
10};
11function createFileSystemAdapter(fsMethods) {
12 if (fsMethods === undefined) {
13 return exports.FILE_SYSTEM_ADAPTER;
14 }
15 return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
16}
17exports.createFileSystemAdapter = createFileSystemAdapter;