{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nconst async_1 = require(\"../readers/async\");\nclass AsyncProvider {\n  constructor(_root, _settings) {\n    this._root = _root;\n    this._settings = _settings;\n    this._reader = new async_1.default(this._root, this._settings);\n    this._storage = [];\n  }\n  read(callback) {\n    this._reader.onError(error => {\n      callFailureCallback(callback, error);\n    });\n    this._reader.onEntry(entry => {\n      this._storage.push(entry);\n    });\n    this._reader.onEnd(() => {\n      callSuccessCallback(callback, this._storage);\n    });\n    this._reader.read();\n  }\n}\nexports.default = AsyncProvider;\nfunction callFailureCallback(callback, error) {\n  callback(error);\n}\nfunction callSuccessCallback(callback, entries) {\n  callback(null, entries);\n}","map":{"version":3,"names":["Object","defineProperty","exports","value","async_1","require","AsyncProvider","constructor","_root","_settings","_reader","default","_storage","read","callback","onError","error","callFailureCallback","onEntry","entry","push","onEnd","callSuccessCallback","entries"],"sources":["C:/Users/user/Desktop/000newport/node_modules/@nodelib/fs.walk/out/providers/async.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst async_1 = require(\"../readers/async\");\nclass AsyncProvider {\n    constructor(_root, _settings) {\n        this._root = _root;\n        this._settings = _settings;\n        this._reader = new async_1.default(this._root, this._settings);\n        this._storage = [];\n    }\n    read(callback) {\n        this._reader.onError((error) => {\n            callFailureCallback(callback, error);\n        });\n        this._reader.onEntry((entry) => {\n            this._storage.push(entry);\n        });\n        this._reader.onEnd(() => {\n            callSuccessCallback(callback, this._storage);\n        });\n        this._reader.read();\n    }\n}\nexports.default = AsyncProvider;\nfunction callFailureCallback(callback, error) {\n    callback(error);\n}\nfunction callSuccessCallback(callback, entries) {\n    callback(null, entries);\n}\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7D,MAAMC,OAAO,GAAGC,OAAO,CAA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