@modern-js/utils 2.12.1-alpha.3 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2 -0
- package/dist/{cjs/alias.js → alias.js} +15 -4
- package/dist/{cjs/analyzeProject.js → analyzeProject.js} +25 -5
- package/dist/{cjs/babel.js → babel.js} +16 -9
- package/dist/{cjs/compatRequire.js → compatRequire.js} +17 -4
- package/dist/compiled.d.ts +43 -0
- package/dist/{types/debug.d.ts → debug.d.ts} +1 -1
- package/dist/{cjs/emptyDir.js → emptyDir.js} +24 -4
- package/dist/{cjs/getEntryOptions.js → getEntryOptions.js} +15 -1
- package/dist/{cjs/getPackageManager.js → getPackageManager.js} +41 -19
- package/dist/{cjs/getPort.js → getPort.js} +24 -4
- package/dist/{cjs/getServerConfig.js → getServerConfig.js} +22 -2
- package/dist/{types/logger.d.ts → logger.d.ts} +1 -1
- package/dist/{cjs/logger.js → logger.js} +16 -5
- package/dist/{cjs/monorepo.js → monorepo.js} +15 -4
- package/dist/nodeEnv.js +81 -0
- package/dist/{cjs/path.js → path.js} +1 -1
- package/dist/{cjs/pathSerializer.js → pathSerializer.js} +1 -1
- package/dist/{cjs/react.js → react.js} +15 -4
- package/dist/{cjs/runtimeExports.js → runtimeExports.js} +1 -1
- package/dist/{cjs/universal → universal}/nestedRoutes.js +19 -2
- package/dist/{cjs/version.js → version.js} +40 -7
- package/dist/{cjs/watch.js → watch.js} +29 -9
- package/package.json +23 -55
- package/dist/cjs/nodeEnv.js +0 -55
- package/dist/compiled/address/index.js +0 -1
- package/dist/compiled/address/lib/address.d.ts +0 -28
- package/dist/compiled/address/package.json +0 -1
- package/dist/compiled/ajv/codegen.js +0 -1
- package/dist/compiled/ajv/index.js +0 -9
- package/dist/compiled/ajv/license +0 -22
- package/dist/compiled/ajv/package.json +0 -1
- package/dist/compiled/ajv/types/ajv.d.ts +0 -16
- package/dist/compiled/ajv/types/compile/codegen/code.d.ts +0 -40
- package/dist/compiled/ajv/types/compile/codegen/index.d.ts +0 -79
- package/dist/compiled/ajv/types/compile/codegen/scope.d.ts +0 -79
- package/dist/compiled/ajv/types/compile/errors.d.ts +0 -13
- package/dist/compiled/ajv/types/compile/index.d.ts +0 -80
- package/dist/compiled/ajv/types/compile/ref_error.d.ts +0 -6
- package/dist/compiled/ajv/types/compile/resolve.d.ts +0 -12
- package/dist/compiled/ajv/types/compile/rules.d.ts +0 -28
- package/dist/compiled/ajv/types/compile/util.d.ts +0 -40
- package/dist/compiled/ajv/types/compile/validate/index.d.ts +0 -42
- package/dist/compiled/ajv/types/compile/validate/subschema.d.ts +0 -47
- package/dist/compiled/ajv/types/core.d.ts +0 -173
- package/dist/compiled/ajv/types/runtime/validation_error.d.ts +0 -7
- package/dist/compiled/ajv/types/types/index.d.ts +0 -183
- package/dist/compiled/ajv/types/types/json-schema.d.ts +0 -124
- package/dist/compiled/ajv/types/types/jtd-schema.d.ts +0 -169
- package/dist/compiled/ajv/types/vocabularies/errors.d.ts +0 -1
- package/dist/compiled/ajv/uri-js.d.ts +0 -59
- package/dist/compiled/ajv-keywords/index.d.ts +0 -1
- package/dist/compiled/ajv-keywords/index.js +0 -1
- package/dist/compiled/ajv-keywords/license +0 -21
- package/dist/compiled/ajv-keywords/package.json +0 -1
- package/dist/compiled/better-ajv-errors/index.d.ts +0 -1
- package/dist/compiled/better-ajv-errors/index.js +0 -1
- package/dist/compiled/better-ajv-errors/license +0 -13
- package/dist/compiled/better-ajv-errors/package.json +0 -1
- package/dist/compiled/browserslist/index.d.ts +0 -178
- package/dist/compiled/browserslist/index.js +0 -1
- package/dist/compiled/browserslist/license +0 -20
- package/dist/compiled/browserslist/package.json +0 -1
- package/dist/compiled/chalk/index.d.ts +0 -415
- package/dist/compiled/chalk/index.js +0 -1
- package/dist/compiled/chalk/license +0 -9
- package/dist/compiled/chalk/package.json +0 -1
- package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/index.js +0 -40
- package/dist/compiled/chokidar/license +0 -21
- package/dist/compiled/chokidar/package.json +0 -1
- package/dist/compiled/chokidar/types/index.d.ts +0 -188
- package/dist/compiled/commander/index.js +0 -1
- package/dist/compiled/commander/license +0 -22
- package/dist/compiled/commander/package.json +0 -1
- package/dist/compiled/commander/typings/index.d.ts +0 -890
- package/dist/compiled/debug/index.d.ts +0 -54
- package/dist/compiled/debug/index.js +0 -1
- package/dist/compiled/debug/license +0 -20
- package/dist/compiled/debug/ms/index.d.ts +0 -25
- package/dist/compiled/debug/package.json +0 -1
- package/dist/compiled/dotenv/index.js +0 -1
- package/dist/compiled/dotenv/license +0 -23
- package/dist/compiled/dotenv/package.json +0 -1
- package/dist/compiled/dotenv/types/index.d.ts +0 -59
- package/dist/compiled/dotenv-expand/index.d.ts +0 -15
- package/dist/compiled/dotenv-expand/index.js +0 -1
- package/dist/compiled/dotenv-expand/license +0 -24
- package/dist/compiled/dotenv-expand/package.json +0 -1
- package/dist/compiled/execa/index.d.ts +0 -564
- package/dist/compiled/execa/index.js +0 -1
- package/dist/compiled/execa/license +0 -9
- package/dist/compiled/execa/package.json +0 -1
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/dist/compiled/fast-glob/index.js +0 -37
- package/dist/compiled/fast-glob/license +0 -21
- package/dist/compiled/fast-glob/out/index.d.ts +0 -27
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
- package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
- package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
- package/dist/compiled/fast-glob/package.json +0 -1
- package/dist/compiled/filesize/filesize.d.ts +0 -131
- package/dist/compiled/filesize/index.js +0 -9
- package/dist/compiled/filesize/license +0 -28
- package/dist/compiled/filesize/package.json +0 -1
- package/dist/compiled/fs-extra/index.d.ts +0 -563
- package/dist/compiled/fs-extra/index.js +0 -1
- package/dist/compiled/fs-extra/license +0 -15
- package/dist/compiled/fs-extra/package.json +0 -1
- package/dist/compiled/glob/index.d.ts +0 -91
- package/dist/compiled/glob/index.js +0 -1
- package/dist/compiled/glob/license +0 -21
- package/dist/compiled/glob/minimatch/index.d.ts +0 -204
- package/dist/compiled/glob/package.json +0 -1
- package/dist/compiled/globby/index.d.ts +0 -186
- package/dist/compiled/globby/index.js +0 -1
- package/dist/compiled/globby/license +0 -9
- package/dist/compiled/globby/package.json +0 -1
- package/dist/compiled/gzip-size/index.d.ts +0 -96
- package/dist/compiled/gzip-size/index.js +0 -1
- package/dist/compiled/gzip-size/license +0 -9
- package/dist/compiled/gzip-size/package.json +0 -1
- package/dist/compiled/import-lazy/index.d.ts +0 -26
- package/dist/compiled/import-lazy/index.js +0 -1
- package/dist/compiled/import-lazy/license +0 -9
- package/dist/compiled/import-lazy/package.json +0 -1
- package/dist/compiled/inquirer/index.d.ts +0 -997
- package/dist/compiled/inquirer/index.js +0 -9
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
- package/dist/compiled/inquirer/license +0 -22
- package/dist/compiled/inquirer/package.json +0 -1
- package/dist/compiled/inquirer/through/index.d.ts +0 -25
- package/dist/compiled/js-yaml/index.d.ts +0 -154
- package/dist/compiled/js-yaml/index.js +0 -1
- package/dist/compiled/js-yaml/license +0 -21
- package/dist/compiled/js-yaml/package.json +0 -1
- package/dist/compiled/json5/index.js +0 -1
- package/dist/compiled/json5/lib/index.d.ts +0 -4
- package/dist/compiled/json5/lib/parse.d.ts +0 -15
- package/dist/compiled/json5/lib/stringify.d.ts +0 -89
- package/dist/compiled/json5/package.json +0 -1
- package/dist/compiled/lodash/common/array.d.ts +0 -2126
- package/dist/compiled/lodash/common/collection.d.ts +0 -1930
- package/dist/compiled/lodash/common/common.d.ts +0 -280
- package/dist/compiled/lodash/common/date.d.ts +0 -23
- package/dist/compiled/lodash/common/function.d.ts +0 -1446
- package/dist/compiled/lodash/common/lang.d.ts +0 -1693
- package/dist/compiled/lodash/common/math.d.ts +0 -405
- package/dist/compiled/lodash/common/number.d.ts +0 -131
- package/dist/compiled/lodash/common/object.d.ts +0 -2519
- package/dist/compiled/lodash/common/seq.d.ts +0 -210
- package/dist/compiled/lodash/common/string.d.ts +0 -788
- package/dist/compiled/lodash/common/util.d.ts +0 -1220
- package/dist/compiled/lodash/index.d.ts +0 -46
- package/dist/compiled/lodash/index.js +0 -5
- package/dist/compiled/lodash/license +0 -47
- package/dist/compiled/lodash/package.json +0 -1
- package/dist/compiled/mime-types/index.d.ts +0 -14
- package/dist/compiled/mime-types/index.js +0 -14
- package/dist/compiled/mime-types/license +0 -23
- package/dist/compiled/mime-types/package.json +0 -1
- package/dist/compiled/minimist/index.d.ts +0 -95
- package/dist/compiled/minimist/index.js +0 -1
- package/dist/compiled/minimist/license +0 -18
- package/dist/compiled/minimist/package.json +0 -1
- package/dist/compiled/nanoid/index.d.ts +0 -91
- package/dist/compiled/nanoid/index.js +0 -1
- package/dist/compiled/nanoid/license +0 -20
- package/dist/compiled/nanoid/package.json +0 -1
- package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
- package/dist/compiled/ora/index.d.ts +0 -277
- package/dist/compiled/ora/index.js +0 -3
- package/dist/compiled/ora/license +0 -9
- package/dist/compiled/ora/package.json +0 -1
- package/dist/compiled/pkg-up/index.d.ts +0 -48
- package/dist/compiled/pkg-up/index.js +0 -1
- package/dist/compiled/pkg-up/license +0 -9
- package/dist/compiled/pkg-up/package.json +0 -1
- package/dist/compiled/recursive-readdir/index.d.ts +0 -21
- package/dist/compiled/recursive-readdir/index.js +0 -1
- package/dist/compiled/recursive-readdir/license +0 -21
- package/dist/compiled/recursive-readdir/package.json +0 -1
- package/dist/compiled/schema-utils3/index.d.ts +0 -1
- package/dist/compiled/schema-utils3/index.js +0 -3
- package/dist/compiled/schema-utils3/license +0 -20
- package/dist/compiled/schema-utils3/package.json +0 -1
- package/dist/compiled/semver/classes/comparator.d.ts +0 -17
- package/dist/compiled/semver/classes/range.d.ts +0 -21
- package/dist/compiled/semver/classes/semver.d.ts +0 -62
- package/dist/compiled/semver/functions/clean.d.ts +0 -8
- package/dist/compiled/semver/functions/cmp.d.ts +0 -16
- package/dist/compiled/semver/functions/coerce.d.ts +0 -12
- package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
- package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
- package/dist/compiled/semver/functions/compare.d.ts +0 -20
- package/dist/compiled/semver/functions/diff.d.ts +0 -13
- package/dist/compiled/semver/functions/eq.d.ts +0 -9
- package/dist/compiled/semver/functions/gt.d.ts +0 -9
- package/dist/compiled/semver/functions/gte.d.ts +0 -9
- package/dist/compiled/semver/functions/inc.d.ts +0 -15
- package/dist/compiled/semver/functions/lt.d.ts +0 -9
- package/dist/compiled/semver/functions/lte.d.ts +0 -8
- package/dist/compiled/semver/functions/major.d.ts +0 -9
- package/dist/compiled/semver/functions/minor.d.ts +0 -9
- package/dist/compiled/semver/functions/neq.d.ts +0 -9
- package/dist/compiled/semver/functions/parse.d.ts +0 -12
- package/dist/compiled/semver/functions/patch.d.ts +0 -9
- package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
- package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
- package/dist/compiled/semver/functions/rsort.d.ts +0 -9
- package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
- package/dist/compiled/semver/functions/sort.d.ts +0 -9
- package/dist/compiled/semver/functions/valid.d.ts +0 -11
- package/dist/compiled/semver/index.d.ts +0 -133
- package/dist/compiled/semver/index.js +0 -1
- package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
- package/dist/compiled/semver/license +0 -15
- package/dist/compiled/semver/package.json +0 -1
- package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
- package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
- package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
- package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
- package/dist/compiled/semver/ranges/outside.d.ts +0 -15
- package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
- package/dist/compiled/semver/ranges/subset.d.ts +0 -13
- package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
- package/dist/compiled/semver/ranges/valid.d.ts +0 -12
- package/dist/compiled/signale/index.d.ts +0 -162
- package/dist/compiled/signale/index.js +0 -1
- package/dist/compiled/signale/package.json +0 -1
- package/dist/compiled/slash/index.d.ts +0 -25
- package/dist/compiled/slash/index.js +0 -1
- package/dist/compiled/slash/license +0 -9
- package/dist/compiled/slash/package.json +0 -1
- package/dist/compiled/strip-ansi/index.d.ts +0 -17
- package/dist/compiled/strip-ansi/index.js +0 -1
- package/dist/compiled/strip-ansi/license +0 -9
- package/dist/compiled/strip-ansi/package.json +0 -1
- package/dist/compiled/tsconfig-paths/index.js +0 -1
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
- package/dist/compiled/tsconfig-paths/license +0 -21
- package/dist/compiled/tsconfig-paths/package.json +0 -1
- package/dist/compiled/upath/index.js +0 -1
- package/dist/compiled/upath/license +0 -22
- package/dist/compiled/upath/package.json +0 -1
- package/dist/compiled/upath/upath.d.ts +0 -241
- package/dist/compiled/url-join/index.d.ts +0 -17
- package/dist/compiled/url-join/index.js +0 -1
- package/dist/compiled/url-join/license +0 -21
- package/dist/compiled/url-join/package.json +0 -1
- package/dist/compiled/webpack-chain/index.js +0 -1
- package/dist/compiled/webpack-chain/license +0 -373
- package/dist/compiled/webpack-chain/package.json +0 -1
- package/dist/compiled/webpack-chain/types/index.d.ts +0 -388
- package/dist/compiled/webpack-dev-middleware/index.js +0 -7
- package/dist/compiled/webpack-dev-middleware/license +0 -20
- package/dist/compiled/webpack-dev-middleware/package.json +0 -1
- package/dist/compiled/webpack-dev-middleware/types/index.d.ts +0 -262
- package/dist/esm/FileSizeReporter.js +0 -180
- package/dist/esm/alias.js +0 -83
- package/dist/esm/analyzeProject.js +0 -168
- package/dist/esm/applyOptionsChain.js +0 -26
- package/dist/esm/babel.js +0 -169
- package/dist/esm/chainId.js +0 -92
- package/dist/esm/clearConsole.js +0 -6
- package/dist/esm/commands.js +0 -17
- package/dist/esm/compatRequire.js +0 -68
- package/dist/esm/compiled.js +0 -34
- package/dist/esm/constants.js +0 -317
- package/dist/esm/debug.js +0 -5
- package/dist/esm/emptyDir.js +0 -158
- package/dist/esm/ensureAbsolutePath.js +0 -5
- package/dist/esm/ensureArray.js +0 -9
- package/dist/esm/findExists.js +0 -27
- package/dist/esm/generateMetaTags.js +0 -40
- package/dist/esm/getBrowserslist.js +0 -12
- package/dist/esm/getCoreJsVersion.js +0 -57
- package/dist/esm/getEntryOptions.js +0 -45
- package/dist/esm/getPackageManager.js +0 -187
- package/dist/esm/getPort.js +0 -215
- package/dist/esm/getServerConfig.js +0 -145
- package/dist/esm/getTargetDir.js +0 -6
- package/dist/esm/import.js +0 -8
- package/dist/esm/index.js +0 -44
- package/dist/esm/is/index.js +0 -85
- package/dist/esm/is/nodeEnv.js +0 -16
- package/dist/esm/is/platform.js +0 -7
- package/dist/esm/is/type.js +0 -25
- package/dist/esm/logger.js +0 -207
- package/dist/esm/monorepo.js +0 -109
- package/dist/esm/nodeEnv.js +0 -258
- package/dist/esm/path.js +0 -85
- package/dist/esm/pathSerializer.js +0 -85
- package/dist/esm/plugin.js +0 -45
- package/dist/esm/prettyInstructions.js +0 -96
- package/dist/esm/printBuildError.js +0 -24
- package/dist/esm/react.js +0 -43
- package/dist/esm/readTsConfig.js +0 -10
- package/dist/esm/removeSlash.js +0 -10
- package/dist/esm/resolve.js +0 -42
- package/dist/esm/routes.js +0 -19
- package/dist/esm/runtimeExports.js +0 -65
- package/dist/esm/ssr.js +0 -3
- package/dist/esm/storage.js +0 -36
- package/dist/esm/testUtils.js +0 -13
- package/dist/esm/types.js +0 -1
- package/dist/esm/universal/constants.js +0 -3
- package/dist/esm/universal/formatWebpack.js +0 -108
- package/dist/esm/universal/nestedRoutes.js +0 -174
- package/dist/esm/universal/remixRouter.js +0 -1
- package/dist/esm/universal/serialize.js +0 -7
- package/dist/esm/version.js +0 -193
- package/dist/esm/wait.js +0 -7
- package/dist/esm/watch.js +0 -230
- package/dist/esm-node/FileSizeReporter.js +0 -133
- package/dist/esm-node/alias.js +0 -61
- package/dist/esm-node/analyzeProject.js +0 -17
- package/dist/esm-node/applyOptionsChain.js +0 -35
- package/dist/esm-node/babel.js +0 -105
- package/dist/esm-node/chainId.js +0 -173
- package/dist/esm-node/clearConsole.js +0 -8
- package/dist/esm-node/commands.js +0 -22
- package/dist/esm-node/compatRequire.js +0 -42
- package/dist/esm-node/compiled.js +0 -77
- package/dist/esm-node/constants.js +0 -264
- package/dist/esm-node/debug.js +0 -5
- package/dist/esm-node/emptyDir.js +0 -9
- package/dist/esm-node/ensureAbsolutePath.js +0 -5
- package/dist/esm-node/ensureArray.js +0 -9
- package/dist/esm-node/findExists.js +0 -12
- package/dist/esm-node/generateMetaTags.js +0 -38
- package/dist/esm-node/getBrowserslist.js +0 -7
- package/dist/esm-node/getCoreJsVersion.js +0 -13
- package/dist/esm-node/getEntryOptions.js +0 -17
- package/dist/esm-node/getPackageManager.js +0 -32
- package/dist/esm-node/getPort.js +0 -59
- package/dist/esm-node/getServerConfig.js +0 -14
- package/dist/esm-node/getTargetDir.js +0 -8
- package/dist/esm-node/import.js +0 -9
- package/dist/esm-node/index.js +0 -44
- package/dist/esm-node/is/index.js +0 -71
- package/dist/esm-node/is/nodeEnv.js +0 -12
- package/dist/esm-node/is/platform.js +0 -6
- package/dist/esm-node/is/type.js +0 -34
- package/dist/esm-node/logger.js +0 -100
- package/dist/esm-node/monorepo.js +0 -87
- package/dist/esm-node/nodeEnv.js +0 -30
- package/dist/esm-node/path.js +0 -50
- package/dist/esm-node/pathSerializer.js +0 -46
- package/dist/esm-node/plugin.js +0 -23
- package/dist/esm-node/prettyInstructions.js +0 -77
- package/dist/esm-node/printBuildError.js +0 -34
- package/dist/esm-node/react.js +0 -20
- package/dist/esm-node/readTsConfig.js +0 -13
- package/dist/esm-node/removeSlash.js +0 -8
- package/dist/esm-node/resolve.js +0 -38
- package/dist/esm-node/routes.js +0 -24
- package/dist/esm-node/runtimeExports.js +0 -40
- package/dist/esm-node/ssr.js +0 -6
- package/dist/esm-node/storage.js +0 -42
- package/dist/esm-node/testUtils.js +0 -15
- package/dist/esm-node/types.js +0 -0
- package/dist/esm-node/universal/constants.js +0 -6
- package/dist/esm-node/universal/formatWebpack.js +0 -77
- package/dist/esm-node/universal/nestedRoutes.js +0 -93
- package/dist/esm-node/universal/remixRouter.js +0 -1
- package/dist/esm-node/universal/serialize.js +0 -7
- package/dist/esm-node/version.js +0 -25
- package/dist/esm-node/wait.js +0 -6
- package/dist/esm-node/watch.js +0 -36
- package/dist/types/compiled.d.ts +0 -43
- /package/dist/{types/FileSizeReporter.d.ts → FileSizeReporter.d.ts} +0 -0
- /package/dist/{cjs/FileSizeReporter.js → FileSizeReporter.js} +0 -0
- /package/dist/{types/alias.d.ts → alias.d.ts} +0 -0
- /package/dist/{types/analyzeProject.d.ts → analyzeProject.d.ts} +0 -0
- /package/dist/{types/applyOptionsChain.d.ts → applyOptionsChain.d.ts} +0 -0
- /package/dist/{cjs/applyOptionsChain.js → applyOptionsChain.js} +0 -0
- /package/dist/{types/babel.d.ts → babel.d.ts} +0 -0
- /package/dist/{types/chainId.d.ts → chainId.d.ts} +0 -0
- /package/dist/{cjs/chainId.js → chainId.js} +0 -0
- /package/dist/{types/clearConsole.d.ts → clearConsole.d.ts} +0 -0
- /package/dist/{cjs/clearConsole.js → clearConsole.js} +0 -0
- /package/dist/{types/commands.d.ts → commands.d.ts} +0 -0
- /package/dist/{cjs/commands.js → commands.js} +0 -0
- /package/dist/{types/compatRequire.d.ts → compatRequire.d.ts} +0 -0
- /package/dist/{cjs/compiled.js → compiled.js} +0 -0
- /package/dist/{types/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{cjs/constants.js → constants.js} +0 -0
- /package/dist/{cjs/debug.js → debug.js} +0 -0
- /package/dist/{types/emptyDir.d.ts → emptyDir.d.ts} +0 -0
- /package/dist/{types/ensureAbsolutePath.d.ts → ensureAbsolutePath.d.ts} +0 -0
- /package/dist/{cjs/ensureAbsolutePath.js → ensureAbsolutePath.js} +0 -0
- /package/dist/{types/ensureArray.d.ts → ensureArray.d.ts} +0 -0
- /package/dist/{cjs/ensureArray.js → ensureArray.js} +0 -0
- /package/dist/{types/findExists.d.ts → findExists.d.ts} +0 -0
- /package/dist/{cjs/findExists.js → findExists.js} +0 -0
- /package/dist/{types/generateMetaTags.d.ts → generateMetaTags.d.ts} +0 -0
- /package/dist/{cjs/generateMetaTags.js → generateMetaTags.js} +0 -0
- /package/dist/{types/getBrowserslist.d.ts → getBrowserslist.d.ts} +0 -0
- /package/dist/{cjs/getBrowserslist.js → getBrowserslist.js} +0 -0
- /package/dist/{types/getCoreJsVersion.d.ts → getCoreJsVersion.d.ts} +0 -0
- /package/dist/{cjs/getCoreJsVersion.js → getCoreJsVersion.js} +0 -0
- /package/dist/{types/getEntryOptions.d.ts → getEntryOptions.d.ts} +0 -0
- /package/dist/{types/getPackageManager.d.ts → getPackageManager.d.ts} +0 -0
- /package/dist/{types/getPort.d.ts → getPort.d.ts} +0 -0
- /package/dist/{types/getServerConfig.d.ts → getServerConfig.d.ts} +0 -0
- /package/dist/{types/getTargetDir.d.ts → getTargetDir.d.ts} +0 -0
- /package/dist/{cjs/getTargetDir.js → getTargetDir.js} +0 -0
- /package/dist/{types/import.d.ts → import.d.ts} +0 -0
- /package/dist/{cjs/import.js → import.js} +0 -0
- /package/dist/{types/index.d.ts → index.d.ts} +0 -0
- /package/dist/{cjs/index.js → index.js} +0 -0
- /package/dist/{types/is → is}/index.d.ts +0 -0
- /package/dist/{cjs/is → is}/index.js +0 -0
- /package/dist/{types/is → is}/nodeEnv.d.ts +0 -0
- /package/dist/{cjs/is → is}/nodeEnv.js +0 -0
- /package/dist/{types/is → is}/platform.d.ts +0 -0
- /package/dist/{cjs/is → is}/platform.js +0 -0
- /package/dist/{types/is → is}/type.d.ts +0 -0
- /package/dist/{cjs/is → is}/type.js +0 -0
- /package/dist/{types/monorepo.d.ts → monorepo.d.ts} +0 -0
- /package/dist/{types/nodeEnv.d.ts → nodeEnv.d.ts} +0 -0
- /package/dist/{types/path.d.ts → path.d.ts} +0 -0
- /package/dist/{types/pathSerializer.d.ts → pathSerializer.d.ts} +0 -0
- /package/dist/{types/plugin.d.ts → plugin.d.ts} +0 -0
- /package/dist/{cjs/plugin.js → plugin.js} +0 -0
- /package/dist/{types/prettyInstructions.d.ts → prettyInstructions.d.ts} +0 -0
- /package/dist/{cjs/prettyInstructions.js → prettyInstructions.js} +0 -0
- /package/dist/{types/printBuildError.d.ts → printBuildError.d.ts} +0 -0
- /package/dist/{cjs/printBuildError.js → printBuildError.js} +0 -0
- /package/dist/{types/react.d.ts → react.d.ts} +0 -0
- /package/dist/{types/readTsConfig.d.ts → readTsConfig.d.ts} +0 -0
- /package/dist/{cjs/readTsConfig.js → readTsConfig.js} +0 -0
- /package/dist/{types/removeSlash.d.ts → removeSlash.d.ts} +0 -0
- /package/dist/{cjs/removeSlash.js → removeSlash.js} +0 -0
- /package/dist/{types/resolve.d.ts → resolve.d.ts} +0 -0
- /package/dist/{cjs/resolve.js → resolve.js} +0 -0
- /package/dist/{types/routes.d.ts → routes.d.ts} +0 -0
- /package/dist/{cjs/routes.js → routes.js} +0 -0
- /package/dist/{types/runtimeExports.d.ts → runtimeExports.d.ts} +0 -0
- /package/dist/{types/ssr.d.ts → ssr.d.ts} +0 -0
- /package/dist/{cjs/ssr.js → ssr.js} +0 -0
- /package/dist/{types/storage.d.ts → storage.d.ts} +0 -0
- /package/dist/{cjs/storage.js → storage.js} +0 -0
- /package/dist/{types/testUtils.d.ts → testUtils.d.ts} +0 -0
- /package/dist/{cjs/testUtils.js → testUtils.js} +0 -0
- /package/dist/{types/types.d.ts → types.d.ts} +0 -0
- /package/dist/{cjs/types.js → types.js} +0 -0
- /package/dist/{types/universal → universal}/constants.d.ts +0 -0
- /package/dist/{cjs/universal → universal}/constants.js +0 -0
- /package/dist/{types/universal → universal}/formatWebpack.d.ts +0 -0
- /package/dist/{cjs/universal → universal}/formatWebpack.js +0 -0
- /package/dist/{types/universal → universal}/nestedRoutes.d.ts +0 -0
- /package/dist/{types/universal → universal}/remixRouter.d.ts +0 -0
- /package/dist/{cjs/universal → universal}/remixRouter.js +0 -0
- /package/dist/{types/universal → universal}/serialize.d.ts +0 -0
- /package/dist/{cjs/universal → universal}/serialize.js +0 -0
- /package/dist/{types/version.d.ts → version.d.ts} +0 -0
- /package/dist/{types/wait.d.ts → wait.d.ts} +0 -0
- /package/dist/{cjs/wait.js → wait.js} +0 -0
- /package/dist/{types/watch.d.ts → watch.d.ts} +0 -0
@@ -1,563 +0,0 @@
|
|
1
|
-
// Type definitions for fs-extra 9.0
|
2
|
-
// Project: https://github.com/jprichardson/node-fs-extra
|
3
|
-
// Definitions by: Alan Agius <https://github.com/alan-agius4>,
|
4
|
-
// midknight41 <https://github.com/midknight41>,
|
5
|
-
// Brendan Forster <https://github.com/shiftkey>,
|
6
|
-
// Mees van Dijk <https://github.com/mees->,
|
7
|
-
// Justin Rockwood <https://github.com/jrockwood>,
|
8
|
-
// Sang Dang <https://github.com/sangdth>,
|
9
|
-
// Florian Keller <https://github.com/ffflorian>
|
10
|
-
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
11
|
-
// Tiger Oakes <https://github.com/NotWoods>
|
12
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
13
|
-
// Minimum TypeScript Version: 3.9
|
14
|
-
|
15
|
-
/// <reference types="node" />
|
16
|
-
|
17
|
-
import * as fs from 'fs';
|
18
|
-
import Stats = fs.Stats;
|
19
|
-
import PathLike = fs.PathLike;
|
20
|
-
|
21
|
-
export * from 'fs';
|
22
|
-
|
23
|
-
export function copy(src: string, dest: string, options?: CopyOptions): Promise<void>;
|
24
|
-
export function copy(src: string, dest: string, callback: (err: Error) => void): void;
|
25
|
-
export function copy(src: string, dest: string, options: CopyOptions, callback: (err: Error) => void): void;
|
26
|
-
export function copySync(src: string, dest: string, options?: CopyOptionsSync): void;
|
27
|
-
|
28
|
-
export function copyFile(src: string, dest: string, flags?: number): Promise<void>;
|
29
|
-
export function copyFile(src: string, dest: string, callback: (err: Error) => void): void;
|
30
|
-
export function copyFile(src: string, dest: string, flags: number, callback: (err: Error) => void): void;
|
31
|
-
|
32
|
-
export function move(src: string, dest: string, options?: MoveOptions): Promise<void>;
|
33
|
-
export function move(src: string, dest: string, callback: (err: Error) => void): void;
|
34
|
-
export function move(src: string, dest: string, options: MoveOptions, callback: (err: Error) => void): void;
|
35
|
-
export function moveSync(src: string, dest: string, options?: MoveOptions): void;
|
36
|
-
|
37
|
-
export function createFile(file: string): Promise<void>;
|
38
|
-
export function createFile(file: string, callback: (err: Error) => void): void;
|
39
|
-
export function createFileSync(file: string): void;
|
40
|
-
|
41
|
-
export function createSymlink(src: string, dest: string, type: SymlinkType): Promise<void>;
|
42
|
-
export function createSymlink(src: string, dest: string, type: SymlinkType, callback?: (err: Error) => void): void;
|
43
|
-
export function createSymlinkSync(src: string, dest: string, type: SymlinkType): void;
|
44
|
-
|
45
|
-
export function ensureDir(path: string, options?: EnsureOptions | number): Promise<void>;
|
46
|
-
export function ensureDir(path: string, callback?: (err: Error) => void): void;
|
47
|
-
export function ensureDir(path: string, options?: EnsureOptions | number, callback?: (err: Error) => void): void;
|
48
|
-
export function ensureDirSync(path: string, options?: EnsureOptions | number): void;
|
49
|
-
|
50
|
-
export function mkdirs(dir: string): Promise<void>;
|
51
|
-
export function mkdirs(dir: string, callback: (err: Error) => void): void;
|
52
|
-
export function mkdirp(dir: string): Promise<void>;
|
53
|
-
export function mkdirp(dir: string, callback: (err: Error) => void): void;
|
54
|
-
export function mkdirsSync(dir: string): void;
|
55
|
-
export function mkdirpSync(dir: string): void;
|
56
|
-
|
57
|
-
export function outputFile(
|
58
|
-
file: string,
|
59
|
-
data: any,
|
60
|
-
options?: WriteFileOptions | BufferEncoding | string,
|
61
|
-
): Promise<void>;
|
62
|
-
export function outputFile(file: string, data: any, callback: (err: Error) => void): void;
|
63
|
-
export function outputFile(
|
64
|
-
file: string,
|
65
|
-
data: any,
|
66
|
-
options: WriteFileOptions | string,
|
67
|
-
callback: (err: Error) => void,
|
68
|
-
): void;
|
69
|
-
export function outputFileSync(file: string, data: any, options?: WriteFileOptions | BufferEncoding | string): void;
|
70
|
-
|
71
|
-
export function readJson(file: string, options?: ReadOptions | BufferEncoding | string): Promise<any>;
|
72
|
-
export function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void;
|
73
|
-
export function readJson(
|
74
|
-
file: string,
|
75
|
-
options: ReadOptions | BufferEncoding | string,
|
76
|
-
callback: (err: Error, jsonObject: any) => void,
|
77
|
-
): void;
|
78
|
-
export function readJSON(file: string, options?: ReadOptions | BufferEncoding | string): Promise<any>;
|
79
|
-
export function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void;
|
80
|
-
export function readJSON(
|
81
|
-
file: string,
|
82
|
-
options: ReadOptions | BufferEncoding | string,
|
83
|
-
callback: (err: Error, jsonObject: any) => void,
|
84
|
-
): void;
|
85
|
-
|
86
|
-
export function readJsonSync(file: string, options?: ReadOptions | BufferEncoding | string): any;
|
87
|
-
export function readJSONSync(file: string, options?: ReadOptions | BufferEncoding | string): any;
|
88
|
-
|
89
|
-
export function remove(dir: string, callback: (err: Error) => void): void;
|
90
|
-
export function remove(dir: string, callback?: (err: Error) => void): Promise<void>;
|
91
|
-
export function removeSync(dir: string): void;
|
92
|
-
|
93
|
-
export function outputJSON(file: string, data: any, options?: WriteOptions | BufferEncoding | string): Promise<void>;
|
94
|
-
export function outputJSON(
|
95
|
-
file: string,
|
96
|
-
data: any,
|
97
|
-
options: WriteOptions | BufferEncoding | string,
|
98
|
-
callback: (err: Error) => void,
|
99
|
-
): void;
|
100
|
-
export function outputJSON(file: string, data: any, callback: (err: Error) => void): void;
|
101
|
-
export function outputJson(file: string, data: any, options?: WriteOptions | BufferEncoding | string): Promise<void>;
|
102
|
-
export function outputJson(
|
103
|
-
file: string,
|
104
|
-
data: any,
|
105
|
-
options: WriteOptions | BufferEncoding | string,
|
106
|
-
callback: (err: Error) => void,
|
107
|
-
): void;
|
108
|
-
export function outputJson(file: string, data: any, callback: (err: Error) => void): void;
|
109
|
-
export function outputJsonSync(file: string, data: any, options?: WriteOptions | BufferEncoding | string): void;
|
110
|
-
export function outputJSONSync(file: string, data: any, options?: WriteOptions | BufferEncoding | string): void;
|
111
|
-
|
112
|
-
export function writeJSON(file: string, object: any, options?: WriteOptions | BufferEncoding | string): Promise<void>;
|
113
|
-
export function writeJSON(file: string, object: any, callback: (err: Error) => void): void;
|
114
|
-
export function writeJSON(
|
115
|
-
file: string,
|
116
|
-
object: any,
|
117
|
-
options: WriteOptions | BufferEncoding | string,
|
118
|
-
callback: (err: Error) => void,
|
119
|
-
): void;
|
120
|
-
export function writeJson(file: string, object: any, options?: WriteOptions | BufferEncoding | string): Promise<void>;
|
121
|
-
export function writeJson(file: string, object: any, callback: (err: Error) => void): void;
|
122
|
-
export function writeJson(
|
123
|
-
file: string,
|
124
|
-
object: any,
|
125
|
-
options: WriteOptions | BufferEncoding | string,
|
126
|
-
callback: (err: Error) => void,
|
127
|
-
): void;
|
128
|
-
|
129
|
-
export function writeJsonSync(file: string, object: any, options?: WriteOptions | BufferEncoding | string): void;
|
130
|
-
export function writeJSONSync(file: string, object: any, options?: WriteOptions | BufferEncoding | string): void;
|
131
|
-
|
132
|
-
export function ensureFile(path: string): Promise<void>;
|
133
|
-
export function ensureFile(path: string, callback: (err: Error) => void): void;
|
134
|
-
export function ensureFileSync(path: string): void;
|
135
|
-
|
136
|
-
export function ensureLink(src: string, dest: string): Promise<void>;
|
137
|
-
export function ensureLink(src: string, dest: string, callback: (err: Error) => void): void;
|
138
|
-
// alias for ensureLink
|
139
|
-
export const createLink: typeof ensureLink;
|
140
|
-
export function ensureLinkSync(src: string, dest: string): void;
|
141
|
-
// aliased as
|
142
|
-
export const createLinkSync: typeof ensureLinkSync;
|
143
|
-
|
144
|
-
export function ensureSymlink(src: string, dest: string, type?: SymlinkType): Promise<void>;
|
145
|
-
export function ensureSymlink(src: string, dest: string, type: SymlinkType, callback: (err: Error) => void): void;
|
146
|
-
export function ensureSymlink(src: string, dest: string, callback: (err: Error) => void): void;
|
147
|
-
export function ensureSymlinkSync(src: string, dest: string, type?: SymlinkType): void;
|
148
|
-
|
149
|
-
export function emptyDir(path: string): Promise<void>;
|
150
|
-
export function emptyDir(path: string, callback: (err: Error) => void): void;
|
151
|
-
export const emptydir: typeof emptyDir;
|
152
|
-
|
153
|
-
export function emptyDirSync(path: string): void;
|
154
|
-
export const emptydirSync: typeof emptyDirSync;
|
155
|
-
|
156
|
-
export function pathExists(path: string): Promise<boolean>;
|
157
|
-
export function pathExists(path: string, callback: (err: Error, exists: boolean) => void): void;
|
158
|
-
export function pathExistsSync(path: string): boolean;
|
159
|
-
|
160
|
-
// fs async methods
|
161
|
-
// copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/v6/index.d.ts
|
162
|
-
|
163
|
-
export function access(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
164
|
-
export function access(path: PathLike, mode: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
165
|
-
export function access(path: PathLike, mode?: number): Promise<void>;
|
166
|
-
|
167
|
-
export function appendFile(
|
168
|
-
file: PathLike | number,
|
169
|
-
data: any,
|
170
|
-
options: {
|
171
|
-
encoding?: BufferEncoding | string | undefined;
|
172
|
-
mode?: number | string | undefined;
|
173
|
-
flag?: string | undefined;
|
174
|
-
},
|
175
|
-
callback: (err: NodeJS.ErrnoException) => void,
|
176
|
-
): void;
|
177
|
-
export function appendFile(file: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
|
178
|
-
export function appendFile(
|
179
|
-
file: PathLike | number,
|
180
|
-
data: any,
|
181
|
-
options?:
|
182
|
-
| {
|
183
|
-
encoding?: BufferEncoding | string | undefined;
|
184
|
-
mode?: number | string | undefined;
|
185
|
-
flag?: string | undefined;
|
186
|
-
}
|
187
|
-
| BufferEncoding
|
188
|
-
| string,
|
189
|
-
): Promise<void>;
|
190
|
-
|
191
|
-
export function chmod(path: PathLike, mode: Mode, callback: (err: NodeJS.ErrnoException) => void): void;
|
192
|
-
export function chmod(path: PathLike, mode: Mode): Promise<void>;
|
193
|
-
|
194
|
-
export function chown(path: PathLike, uid: number, gid: number): Promise<void>;
|
195
|
-
export function chown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
196
|
-
|
197
|
-
export function close(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
198
|
-
export function close(fd: number): Promise<void>;
|
199
|
-
|
200
|
-
export function fchmod(fd: number, mode: Mode, callback: (err: NodeJS.ErrnoException) => void): void;
|
201
|
-
export function fchmod(fd: number, mode: Mode): Promise<void>;
|
202
|
-
|
203
|
-
export function fchown(fd: number, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
204
|
-
export function fchown(fd: number, uid: number, gid: number): Promise<void>;
|
205
|
-
|
206
|
-
export function fdatasync(fd: number, callback: () => void): void;
|
207
|
-
export function fdatasync(fd: number): Promise<void>;
|
208
|
-
|
209
|
-
export function fstat(fd: number, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
|
210
|
-
export function fstat(fd: number): Promise<Stats>;
|
211
|
-
|
212
|
-
export function fsync(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
213
|
-
export function fsync(fd: number): Promise<void>;
|
214
|
-
|
215
|
-
export function ftruncate(fd: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
216
|
-
export function ftruncate(fd: number, len: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
217
|
-
export function ftruncate(fd: number, len?: number): Promise<void>;
|
218
|
-
|
219
|
-
export function futimes(fd: number, atime: number, mtime: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
220
|
-
export function futimes(fd: number, atime: Date, mtime: Date, callback: (err: NodeJS.ErrnoException) => void): void;
|
221
|
-
export function futimes(fd: number, atime: number, mtime: number): Promise<void>;
|
222
|
-
export function futimes(fd: number, atime: Date, mtime: Date): Promise<void>;
|
223
|
-
|
224
|
-
export function lchown(path: PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
225
|
-
export function lchown(path: PathLike, uid: number, gid: number): Promise<void>;
|
226
|
-
|
227
|
-
export function link(existingPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
228
|
-
export function link(existingPath: PathLike, newPath: PathLike): Promise<void>;
|
229
|
-
|
230
|
-
export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
|
231
|
-
export function lstat(path: PathLike): Promise<Stats>;
|
232
|
-
|
233
|
-
/**
|
234
|
-
* Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
|
235
|
-
*
|
236
|
-
* @param callback No arguments other than a possible exception are given to the completion callback.
|
237
|
-
*/
|
238
|
-
export function mkdir(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
239
|
-
/**
|
240
|
-
* Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
|
241
|
-
*
|
242
|
-
* @param callback No arguments other than a possible exception are given to the completion callback.
|
243
|
-
*/
|
244
|
-
export function mkdir(
|
245
|
-
path: PathLike,
|
246
|
-
options: Mode | fs.MakeDirectoryOptions | null,
|
247
|
-
callback: (err: NodeJS.ErrnoException) => void,
|
248
|
-
): void;
|
249
|
-
export function mkdir(path: PathLike, options?: Mode | fs.MakeDirectoryOptions | null): Promise<void>;
|
250
|
-
export function mkdirSync(path: PathLike, options?: Mode | fs.MakeDirectoryOptions | null): void;
|
251
|
-
|
252
|
-
export function open(
|
253
|
-
path: PathLike,
|
254
|
-
flags: string | number,
|
255
|
-
callback: (err: NodeJS.ErrnoException, fd: number) => void,
|
256
|
-
): void;
|
257
|
-
export function open(
|
258
|
-
path: PathLike,
|
259
|
-
flags: string | number,
|
260
|
-
mode: Mode,
|
261
|
-
callback: (err: NodeJS.ErrnoException, fd: number) => void,
|
262
|
-
): void;
|
263
|
-
export function open(path: PathLike, flags: string | number, mode?: Mode | null): Promise<number>;
|
264
|
-
|
265
|
-
export function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: fs.Dir) => void): void;
|
266
|
-
export function opendir(
|
267
|
-
path: string,
|
268
|
-
options: fs.OpenDirOptions,
|
269
|
-
cb: (err: NodeJS.ErrnoException | null, dir: fs.Dir) => void,
|
270
|
-
): void;
|
271
|
-
export function opendir(path: string, options?: fs.OpenDirOptions): Promise<fs.Dir>;
|
272
|
-
|
273
|
-
export function read<TBuffer extends ArrayBufferView>(
|
274
|
-
fd: number,
|
275
|
-
buffer: TBuffer,
|
276
|
-
offset: number,
|
277
|
-
length: number,
|
278
|
-
position: number | null,
|
279
|
-
callback: (err: NodeJS.ErrnoException, bytesRead: number, buffer: TBuffer) => void,
|
280
|
-
): void;
|
281
|
-
export function read<TBuffer extends ArrayBufferView>(
|
282
|
-
fd: number,
|
283
|
-
buffer: TBuffer,
|
284
|
-
offset: number,
|
285
|
-
length: number,
|
286
|
-
position: number | null,
|
287
|
-
): Promise<{ bytesRead: number; buffer: TBuffer }>;
|
288
|
-
|
289
|
-
export function readFile(file: PathLike | number, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
|
290
|
-
export function readFile(
|
291
|
-
file: PathLike | number,
|
292
|
-
encoding: BufferEncoding | string,
|
293
|
-
callback: (err: NodeJS.ErrnoException, data: string) => void,
|
294
|
-
): void;
|
295
|
-
export function readFile(
|
296
|
-
file: PathLike | number,
|
297
|
-
options: { flag?: string | undefined } | { encoding: BufferEncoding | string; flag?: string | undefined },
|
298
|
-
callback: (err: NodeJS.ErrnoException, data: Buffer) => void,
|
299
|
-
): void;
|
300
|
-
export function readFile(
|
301
|
-
file: PathLike | number,
|
302
|
-
options: { flag?: string | undefined } | { encoding: BufferEncoding | string; flag?: string | undefined },
|
303
|
-
): Promise<string>;
|
304
|
-
// tslint:disable-next-line:unified-signatures
|
305
|
-
export function readFile(file: PathLike | number, encoding: BufferEncoding | string): Promise<string>;
|
306
|
-
export function readFile(file: PathLike | number): Promise<Buffer>;
|
307
|
-
|
308
|
-
export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
|
309
|
-
export function readdir(
|
310
|
-
path: PathLike,
|
311
|
-
options: 'buffer' | { encoding: 'buffer'; withFileTypes?: false | undefined },
|
312
|
-
): Promise<Buffer[]>;
|
313
|
-
export function readdir(
|
314
|
-
path: PathLike,
|
315
|
-
options?:
|
316
|
-
| { encoding: BufferEncoding | string | null; withFileTypes?: false | undefined }
|
317
|
-
| BufferEncoding
|
318
|
-
| string
|
319
|
-
| null,
|
320
|
-
): Promise<string[]>;
|
321
|
-
export function readdir(
|
322
|
-
path: PathLike,
|
323
|
-
options?: { encoding?: BufferEncoding | string | null | undefined; withFileTypes?: false | undefined },
|
324
|
-
): Promise<string[] | Buffer[]>;
|
325
|
-
export function readdir(
|
326
|
-
path: PathLike,
|
327
|
-
options: { encoding?: BufferEncoding | string | null | undefined; withFileTypes: true },
|
328
|
-
): Promise<fs.Dirent[]>;
|
329
|
-
|
330
|
-
export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException, linkString: string) => any): void;
|
331
|
-
export function readlink(path: PathLike): Promise<string>;
|
332
|
-
|
333
|
-
export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
|
334
|
-
export function realpath(
|
335
|
-
path: PathLike,
|
336
|
-
cache: { [path: string]: string },
|
337
|
-
callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any,
|
338
|
-
): void;
|
339
|
-
export function realpath(path: PathLike, cache?: { [path: string]: string }): Promise<string>;
|
340
|
-
|
341
|
-
/* tslint:disable:unified-signatures */
|
342
|
-
export namespace realpath {
|
343
|
-
const native: {
|
344
|
-
(path: PathLike, options: { encoding: 'buffer' } | 'buffer'): Promise<Buffer>;
|
345
|
-
(
|
346
|
-
path: PathLike,
|
347
|
-
options: { encoding: BufferEncoding | string | null } | BufferEncoding | string | undefined | null,
|
348
|
-
): Promise<string>;
|
349
|
-
(path: PathLike, options: { encoding: BufferEncoding | string | null } | string | undefined | null): Promise<
|
350
|
-
string | Buffer
|
351
|
-
>;
|
352
|
-
(path: PathLike): Promise<string>;
|
353
|
-
} & typeof fs.realpath.native;
|
354
|
-
}
|
355
|
-
/* tslint:enable:unified-signatures */
|
356
|
-
|
357
|
-
export function rename(oldPath: PathLike, newPath: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
358
|
-
export function rename(oldPath: PathLike, newPath: PathLike): Promise<void>;
|
359
|
-
|
360
|
-
/**
|
361
|
-
* Asynchronously removes files and directories (modeled on the standard POSIX
|
362
|
-
* `rm` utility).
|
363
|
-
*
|
364
|
-
* Only available in node >= v14.14.0
|
365
|
-
*/
|
366
|
-
export function rm(
|
367
|
-
path: PathLike,
|
368
|
-
options?: {
|
369
|
-
force?: boolean | undefined;
|
370
|
-
maxRetries?: number | undefined;
|
371
|
-
recursive?: boolean | undefined;
|
372
|
-
retryDelay?: number | undefined;
|
373
|
-
},
|
374
|
-
): Promise<void>;
|
375
|
-
|
376
|
-
/**
|
377
|
-
* Asynchronous rmdir - removes the directory specified in {path}
|
378
|
-
*
|
379
|
-
* @param callback No arguments other than a possible exception are given to the completion callback.
|
380
|
-
*/
|
381
|
-
export function rmdir(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
382
|
-
export function rmdir(path: PathLike, options?: fs.RmDirOptions): Promise<void>;
|
383
|
-
|
384
|
-
export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
|
385
|
-
export function stat(path: PathLike): Promise<Stats>;
|
386
|
-
|
387
|
-
export function symlink(
|
388
|
-
target: PathLike,
|
389
|
-
path: PathLike,
|
390
|
-
type: SymlinkType | undefined,
|
391
|
-
callback: (err: NodeJS.ErrnoException) => void,
|
392
|
-
): void;
|
393
|
-
export function symlink(target: PathLike, path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
394
|
-
export function symlink(target: PathLike, path: PathLike, type?: SymlinkType): Promise<void>;
|
395
|
-
|
396
|
-
export function truncate(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
397
|
-
export function truncate(path: PathLike, len: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
398
|
-
export function truncate(path: PathLike, len?: number): Promise<void>;
|
399
|
-
|
400
|
-
/**
|
401
|
-
* Asynchronous unlink - deletes the file specified in {path}
|
402
|
-
*
|
403
|
-
* @param callback No arguments other than a possible exception are given to the completion callback.
|
404
|
-
*/
|
405
|
-
export function unlink(path: PathLike, callback: (err: NodeJS.ErrnoException) => void): void;
|
406
|
-
export function unlink(path: PathLike): Promise<void>;
|
407
|
-
|
408
|
-
export function utimes(
|
409
|
-
path: PathLike,
|
410
|
-
atime: number,
|
411
|
-
mtime: number,
|
412
|
-
callback: (err: NodeJS.ErrnoException) => void,
|
413
|
-
): void;
|
414
|
-
export function utimes(path: PathLike, atime: Date, mtime: Date, callback: (err: NodeJS.ErrnoException) => void): void;
|
415
|
-
export function utimes(path: PathLike, atime: number, mtime: number): Promise<void>;
|
416
|
-
export function utimes(path: PathLike, atime: Date, mtime: Date): Promise<void>;
|
417
|
-
|
418
|
-
export function write<TBuffer extends ArrayBufferView>(
|
419
|
-
fd: number,
|
420
|
-
buffer: TBuffer,
|
421
|
-
offset: number,
|
422
|
-
length: number,
|
423
|
-
position: number | null,
|
424
|
-
callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void,
|
425
|
-
): void;
|
426
|
-
export function write<TBuffer extends ArrayBufferView>(
|
427
|
-
fd: number,
|
428
|
-
buffer: TBuffer,
|
429
|
-
offset: number,
|
430
|
-
length: number,
|
431
|
-
callback: (err: NodeJS.ErrnoException, written: number, buffer: TBuffer) => void,
|
432
|
-
): void;
|
433
|
-
export function write(
|
434
|
-
fd: number,
|
435
|
-
data: any,
|
436
|
-
callback: (err: NodeJS.ErrnoException, written: number, str: string) => void,
|
437
|
-
): void;
|
438
|
-
export function write(
|
439
|
-
fd: number,
|
440
|
-
data: any,
|
441
|
-
offset: number,
|
442
|
-
callback: (err: NodeJS.ErrnoException, written: number, str: string) => void,
|
443
|
-
): void;
|
444
|
-
export function write(
|
445
|
-
fd: number,
|
446
|
-
data: any,
|
447
|
-
offset: number,
|
448
|
-
encoding: BufferEncoding | string,
|
449
|
-
callback: (err: NodeJS.ErrnoException, written: number, str: string) => void,
|
450
|
-
): void;
|
451
|
-
export function write<TBuffer extends ArrayBufferView>(
|
452
|
-
fd: number,
|
453
|
-
buffer: TBuffer,
|
454
|
-
offset?: number,
|
455
|
-
length?: number,
|
456
|
-
position?: number | null,
|
457
|
-
): Promise<{ bytesWritten: number; buffer: TBuffer }>;
|
458
|
-
export function write(
|
459
|
-
fd: number,
|
460
|
-
data: any,
|
461
|
-
offset?: number,
|
462
|
-
encoding?: BufferEncoding | string,
|
463
|
-
): Promise<{ bytesWritten: number; buffer: string }>;
|
464
|
-
|
465
|
-
export function writeFile(file: PathLike | number, data: any, callback: (err: NodeJS.ErrnoException) => void): void;
|
466
|
-
export function writeFile(
|
467
|
-
file: PathLike | number,
|
468
|
-
data: any,
|
469
|
-
options?: WriteFileOptions | BufferEncoding | string,
|
470
|
-
): Promise<void>;
|
471
|
-
export function writeFile(
|
472
|
-
file: PathLike | number,
|
473
|
-
data: any,
|
474
|
-
options: WriteFileOptions | BufferEncoding | string,
|
475
|
-
callback: (err: NodeJS.ErrnoException) => void,
|
476
|
-
): void;
|
477
|
-
|
478
|
-
export function writev(
|
479
|
-
fd: number,
|
480
|
-
buffers: NodeJS.ArrayBufferView[],
|
481
|
-
position: number,
|
482
|
-
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
483
|
-
): void;
|
484
|
-
export function writev(
|
485
|
-
fd: number,
|
486
|
-
buffers: NodeJS.ArrayBufferView[],
|
487
|
-
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
488
|
-
): void;
|
489
|
-
export function writev(fd: number, buffers: NodeJS.ArrayBufferView[], position?: number): Promise<WritevResult>;
|
490
|
-
|
491
|
-
/**
|
492
|
-
* Asynchronous mkdtemp - Creates a unique temporary directory. Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
|
493
|
-
*
|
494
|
-
* @param callback The created folder path is passed as a string to the callback's second parameter.
|
495
|
-
*/
|
496
|
-
export function mkdtemp(prefix: string): Promise<string>;
|
497
|
-
export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException, folder: string) => void): void;
|
498
|
-
|
499
|
-
export interface PathEntry {
|
500
|
-
path: string;
|
501
|
-
stats: Stats;
|
502
|
-
}
|
503
|
-
|
504
|
-
export interface PathEntryStream {
|
505
|
-
read(): PathEntry | null;
|
506
|
-
}
|
507
|
-
|
508
|
-
export type CopyFilterSync = (src: string, dest: string) => boolean;
|
509
|
-
export type CopyFilterAsync = (src: string, dest: string) => Promise<boolean>;
|
510
|
-
|
511
|
-
export type SymlinkType = 'dir' | 'file' | 'junction';
|
512
|
-
|
513
|
-
export type Mode = string | number;
|
514
|
-
|
515
|
-
export type ArrayBufferView = NodeJS.TypedArray | DataView;
|
516
|
-
|
517
|
-
export interface CopyOptions {
|
518
|
-
dereference?: boolean | undefined;
|
519
|
-
overwrite?: boolean | undefined;
|
520
|
-
preserveTimestamps?: boolean | undefined;
|
521
|
-
errorOnExist?: boolean | undefined;
|
522
|
-
filter?: CopyFilterSync | CopyFilterAsync | undefined;
|
523
|
-
recursive?: boolean | undefined;
|
524
|
-
}
|
525
|
-
|
526
|
-
export interface CopyOptionsSync extends CopyOptions {
|
527
|
-
filter?: CopyFilterSync | undefined;
|
528
|
-
}
|
529
|
-
|
530
|
-
export interface EnsureOptions {
|
531
|
-
mode?: number | undefined;
|
532
|
-
}
|
533
|
-
|
534
|
-
export interface MoveOptions {
|
535
|
-
overwrite?: boolean | undefined;
|
536
|
-
limit?: number | undefined;
|
537
|
-
}
|
538
|
-
|
539
|
-
export interface ReadOptions {
|
540
|
-
throws?: boolean | undefined;
|
541
|
-
fs?: object | undefined;
|
542
|
-
reviver?: any;
|
543
|
-
encoding?: BufferEncoding | string | undefined;
|
544
|
-
flag?: string | undefined;
|
545
|
-
}
|
546
|
-
|
547
|
-
export interface WriteFileOptions {
|
548
|
-
encoding?: BufferEncoding | string | null | undefined;
|
549
|
-
flag?: string | undefined;
|
550
|
-
mode?: number | undefined;
|
551
|
-
}
|
552
|
-
|
553
|
-
export interface WriteOptions extends WriteFileOptions {
|
554
|
-
fs?: object | undefined;
|
555
|
-
replacer?: any;
|
556
|
-
spaces?: number | string | undefined;
|
557
|
-
EOL?: string | undefined;
|
558
|
-
}
|
559
|
-
|
560
|
-
export interface WritevResult {
|
561
|
-
bytesWritten: number;
|
562
|
-
buffers: ArrayBufferView[];
|
563
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
(()=>{var e={571:(e,t,r)=>{"use strict";const n=r(127);const i=r(17);const o=r(971).mkdirsSync;const c=r(309).utimesMillisSync;const s=r(883);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:i}=s.checkPathsSync(e,t,"copy",r);s.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(i,e,t,r)}function handleFilterAndCopy(e,t,r,c){if(c.filter&&!c.filter(t,r))return;const s=i.dirname(r);if(!n.existsSync(s))o(s);return getStats(e,t,r,c)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,i){const o=i.dereference?n.statSync:n.lstatSync;const c=o(t);if(c.isDirectory())return onDir(c,e,t,r,i);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i);else if(c.isSymbolicLink())return onLink(e,t,r,i);else if(c.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);else if(c.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function onFile(e,t,r,n,i){if(!t)return copyFile(e,r,n,i);return mayCopyFile(e,r,n,i)}function mayCopyFile(e,t,r,i){if(i.overwrite){n.unlinkSync(r);return copyFile(e,t,r,i)}else if(i.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,i){n.copyFileSync(t,r);if(i.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return c(t,r.atime,r.mtime)}function onDir(e,t,r,n,i){if(!t)return mkDirAndCopy(e.mode,r,n,i);return copyDir(r,n,i)}function mkDirAndCopy(e,t,r,i){n.mkdirSync(r);copyDir(t,r,i);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach((n=>copyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const o=i.join(t,e);const c=i.join(r,e);const{destStat:a}=s.checkPathsSync(o,c,"copy",n);return startCopy(a,o,c,n)}function onLink(e,t,r,o){let c=n.readlinkSync(t);if(o.dereference){c=i.resolve(process.cwd(),c)}if(!e){return n.symlinkSync(c,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(c,r);throw e}if(o.dereference){e=i.resolve(process.cwd(),e)}if(s.isSrcSubdir(c,e)){throw new Error(`Cannot copy '${c}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&s.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},987:(e,t,r)=>{"use strict";const n=r(127);const i=r(17);const o=r(971).mkdirs;const c=r(725).pathExists;const s=r(309).utimesMillis;const a=r(883);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}a.checkPaths(e,t,"copy",r,((i,o)=>{if(i)return n(i);const{srcStat:c,destStat:s}=o;a.checkParentPaths(e,c,t,"copy",(i=>{if(i)return n(i);if(r.filter)return handleFilter(checkParentDir,s,e,t,r,n);return checkParentDir(s,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,s){const a=i.dirname(r);c(a,((i,c)=>{if(i)return s(i);if(c)return getStats(e,t,r,n,s);o(a,(i=>{if(i)return s(i);return getStats(e,t,r,n,s)}))}))}function handleFilter(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then((c=>{if(c)return e(t,r,n,i,o);return o()}),(e=>o(e)))}function startCopy(e,t,r,n,i){if(n.filter)return handleFilter(getStats,e,t,r,n,i);return getStats(e,t,r,n,i)}function getStats(e,t,r,i,o){const c=i.dereference?n.stat:n.lstat;c(t,((n,c)=>{if(n)return o(n);if(c.isDirectory())return onDir(c,e,t,r,i,o);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i,o);else if(c.isSymbolicLink())return onLink(e,t,r,i,o);else if(c.isSocket())return o(new Error(`Cannot copy a socket file: ${t}`));else if(c.isFIFO())return o(new Error(`Cannot copy a FIFO pipe: ${t}`));return o(new Error(`Unknown file: ${t}`))}))}function onFile(e,t,r,n,i,o){if(!t)return copyFile(e,r,n,i,o);return mayCopyFile(e,r,n,i,o)}function mayCopyFile(e,t,r,i,o){if(i.overwrite){n.unlink(r,(n=>{if(n)return o(n);return copyFile(e,t,r,i,o)}))}else if(i.errorOnExist){return o(new Error(`'${r}' already exists`))}else return o()}function copyFile(e,t,r,i,o){n.copyFile(t,r,(n=>{if(n)return o(n);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,o);return setDestMode(r,e.mode,o)}))}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,(i=>{if(i)return n(i);return setDestTimestampsAndMode(e,t,r,n)}))}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,(t=>{if(t)return n(t);return setDestMode(r,e,n)}))}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,((e,n)=>{if(e)return r(e);return s(t,n.atime,n.mtime,r)}))}function onDir(e,t,r,n,i,o){if(!t)return mkDirAndCopy(e.mode,r,n,i,o);return copyDir(r,n,i,o)}function mkDirAndCopy(e,t,r,i,o){n.mkdir(r,(n=>{if(n)return o(n);copyDir(t,r,i,(t=>{if(t)return o(t);return setDestMode(r,e,o)}))}))}function copyDir(e,t,r,i){n.readdir(e,((n,o)=>{if(n)return i(n);return copyDirItems(o,e,t,r,i)}))}function copyDirItems(e,t,r,n,i){const o=e.pop();if(!o)return i();return copyDirItem(e,o,t,r,n,i)}function copyDirItem(e,t,r,n,o,c){const s=i.join(r,t);const u=i.join(n,t);a.checkPaths(s,u,"copy",o,((t,i)=>{if(t)return c(t);const{destStat:a}=i;startCopy(a,s,u,o,(t=>{if(t)return c(t);return copyDirItems(e,r,n,o,c)}))}))}function onLink(e,t,r,o,c){n.readlink(t,((t,s)=>{if(t)return c(t);if(o.dereference){s=i.resolve(process.cwd(),s)}if(!e){return n.symlink(s,r,c)}else{n.readlink(r,((t,u)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(s,r,c);return c(t)}if(o.dereference){u=i.resolve(process.cwd(),u)}if(a.isSrcSubdir(s,u)){return c(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&a.isSrcSubdir(u,s)){return c(new Error(`Cannot overwrite '${u}' with '${s}'.`))}return copyLink(s,r,c)}))}}))}function copyLink(e,t,r){n.unlink(t,(i=>{if(i)return r(i);return n.symlink(e,t,r)}))}e.exports=copy},2:(e,t,r)=>{"use strict";const n=r(5).fromCallback;e.exports={copy:n(r(987)),copySync:r(571)}},708:(e,t,r)=>{"use strict";const n=r(5).fromPromise;const i=r(812);const o=r(17);const c=r(971);const s=r(95);const a=n((async function emptyDir(e){let t;try{t=await i.readdir(e)}catch{return c.mkdirs(e)}return Promise.all(t.map((t=>s.remove(o.join(e,t)))))}));function emptyDirSync(e){let t;try{t=i.readdirSync(e)}catch{return c.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t);s.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:a,emptydir:a}},102:(e,t,r)=>{"use strict";const n=r(5).fromCallback;const i=r(17);const o=r(127);const c=r(971);function createFile(e,t){function makeFile(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const s=i.dirname(e);o.stat(s,((e,r)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(r.isDirectory())makeFile();else{o.readdir(s,(e=>{if(e)return t(e)}))}}))}))}function createFileSync(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{if(!o.statSync(r).isDirectory()){o.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(r);else throw e}o.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},726:(e,t,r)=>{"use strict";const{createFile:n,createFileSync:i}=r(102);const{createLink:o,createLinkSync:c}=r(161);const{createSymlink:s,createSymlinkSync:a}=r(294);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:o,createLinkSync:c,ensureLink:o,ensureLinkSync:c,createSymlink:s,createSymlinkSync:a,ensureSymlink:s,ensureSymlinkSync:a}},161:(e,t,r)=>{"use strict";const n=r(5).fromCallback;const i=r(17);const o=r(127);const c=r(971);const s=r(725).pathExists;const{areIdentical:a}=r(883);function createLink(e,t,r){function makeLink(e,t){o.link(e,t,(e=>{if(e)return r(e);r(null)}))}o.lstat(t,((n,u)=>{o.lstat(e,((n,o)=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}if(u&&a(o,u))return r(null);const f=i.dirname(t);s(f,((n,i)=>{if(n)return r(n);if(i)return makeLink(e,t);c.mkdirs(f,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){let r;try{r=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(r&&a(t,r))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=i.dirname(t);const s=o.existsSync(n);if(s)return o.linkSync(e,t);c.mkdirsSync(n);return o.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},332:(e,t,r)=>{"use strict";const n=r(17);const i=r(127);const o=r(725).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const c=n.dirname(t);const s=n.join(c,e);return o(s,((t,o)=>{if(t)return r(t);if(o){return r(null,{toCwd:s,toDst:e})}else{return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(c,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=i.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const o=n.dirname(t);const c=n.join(o,e);r=i.existsSync(c);if(r){return{toCwd:c,toDst:e}}else{r=i.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(o,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},894:(e,t,r)=>{"use strict";const n=r(127);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},294:(e,t,r)=>{"use strict";const n=r(5).fromCallback;const i=r(17);const o=r(812);const c=r(971);const s=c.mkdirs;const a=c.mkdirsSync;const u=r(332);const f=u.symlinkPaths;const l=u.symlinkPathsSync;const y=r(894);const d=y.symlinkType;const m=y.symlinkTypeSync;const p=r(725).pathExists;const{areIdentical:h}=r(883);function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;o.lstat(t,((i,c)=>{if(!i&&c.isSymbolicLink()){Promise.all([o.stat(e),o.stat(t)]).then((([i,o])=>{if(h(i,o))return n(null);_createSymlink(e,t,r,n)}))}else _createSymlink(e,t,r,n)}))}function _createSymlink(e,t,r,n){f(e,t,((c,a)=>{if(c)return n(c);e=a.toDst;d(a.toCwd,r,((r,c)=>{if(r)return n(r);const a=i.dirname(t);p(a,((r,i)=>{if(r)return n(r);if(i)return o.symlink(e,t,c,n);s(a,(r=>{if(r)return n(r);o.symlink(e,t,c,n)}))}))}))}))}function createSymlinkSync(e,t,r){let n;try{n=o.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=o.statSync(e);const n=o.statSync(t);if(h(r,n))return}const c=l(e,t);e=c.toDst;r=m(c.toCwd,r);const s=i.dirname(t);const u=o.existsSync(s);if(u)return o.symlinkSync(e,t,r);a(s);return o.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},812:(e,t,r)=>{"use strict";const n=r(5).fromCallback;const i=r(127);const o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof i[e]==="function"));Object.assign(t,i);o.forEach((e=>{t[e]=n(i[e])}));t.realpath.native=n(i.realpath.native);t.exists=function(e,t){if(typeof t==="function"){return i.exists(e,t)}return new Promise((t=>i.exists(e,t)))};t.read=function(e,t,r,n,o,c){if(typeof c==="function"){return i.read(e,t,r,n,o,c)}return new Promise(((c,s)=>{i.read(e,t,r,n,o,((e,t,r)=>{if(e)return s(e);c({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.write(e,t,...r)}return new Promise(((n,o)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof i.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.writev(e,t,...r)}return new Promise(((n,o)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffers:r})}))}))}}},81:(e,t,r)=>{"use strict";e.exports={...r(812),...r(2),...r(708),...r(726),...r(779),...r(971),...r(511),...r(701),...r(725),...r(95)}},779:(e,t,r)=>{"use strict";const n=r(5).fromPromise;const i=r(901);i.outputJson=n(r(410));i.outputJsonSync=r(925);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},901:(e,t,r)=>{"use strict";const n=r(654);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},925:(e,t,r)=>{"use strict";const{stringify:n}=r(208);const{outputFileSync:i}=r(701);function outputJsonSync(e,t,r){const o=n(t,r);i(e,o,r)}e.exports=outputJsonSync},410:(e,t,r)=>{"use strict";const{stringify:n}=r(208);const{outputFile:i}=r(701);async function outputJson(e,t,r={}){const o=n(t,r);await i(e,o,r)}e.exports=outputJson},971:(e,t,r)=>{"use strict";const n=r(5).fromPromise;const{makeDir:i,makeDirSync:o}=r(284);const c=n(i);e.exports={mkdirs:c,mkdirsSync:o,mkdirp:c,mkdirpSync:o,ensureDir:c,ensureDirSync:o}},284:(e,t,r)=>{"use strict";const n=r(812);const{checkPath:i}=r(216);const getMode=e=>{const t={mode:511};if(typeof e==="number")return e;return{...t,...e}.mode};e.exports.makeDir=async(e,t)=>{i(e);return n.mkdir(e,{mode:getMode(t),recursive:true})};e.exports.makeDirSync=(e,t)=>{i(e);return n.mkdirSync(e,{mode:getMode(t),recursive:true})}},216:(e,t,r)=>{"use strict";const n=r(17);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(n.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}}},511:(e,t,r)=>{"use strict";const n=r(5).fromCallback;e.exports={move:n(r(795)),moveSync:r(429)}},429:(e,t,r)=>{"use strict";const n=r(127);const i=r(17);const o=r(2).copySync;const c=r(95).removeSync;const s=r(971).mkdirpSync;const a=r(883);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:o,isChangingCase:c=false}=a.checkPathsSync(e,t,"move",r);a.checkParentPathsSync(e,o,t,"move");if(!isParentRoot(t))s(i.dirname(t));return doRename(e,t,n,c)}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,i){if(i)return rename(e,t,r);if(r){c(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};o(e,t,n);return c(e)}e.exports=moveSync},795:(e,t,r)=>{"use strict";const n=r(127);const i=r(17);const o=r(2).copy;const c=r(95).remove;const s=r(971).mkdirp;const a=r(725).pathExists;const u=r(883);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const o=r.overwrite||r.clobber||false;u.checkPaths(e,t,"move",r,((r,c)=>{if(r)return n(r);const{srcStat:a,isChangingCase:f=false}=c;u.checkParentPaths(e,a,t,"move",(r=>{if(r)return n(r);if(isParentRoot(t))return doRename(e,t,o,f,n);s(i.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,o,f,n)}))}))}))}function isParentRoot(e){const t=i.dirname(e);const r=i.parse(t);return r.root===t}function doRename(e,t,r,n,i){if(n)return rename(e,t,r,i);if(r){return c(t,(n=>{if(n)return i(n);return rename(e,t,r,i)}))}a(t,((n,o)=>{if(n)return i(n);if(o)return i(new Error("dest already exists."));return rename(e,t,r,i)}))}function rename(e,t,r,i){n.rename(e,t,(n=>{if(!n)return i();if(n.code!=="EXDEV")return i(n);return moveAcrossDevice(e,t,r,i)}))}function moveAcrossDevice(e,t,r,n){const i={overwrite:r,errorOnExist:true};o(e,t,i,(t=>{if(t)return n(t);return c(e,n)}))}e.exports=move},701:(e,t,r)=>{"use strict";const n=r(5).fromCallback;const i=r(127);const o=r(17);const c=r(971);const s=r(725).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const a=o.dirname(e);s(a,((o,s)=>{if(o)return n(o);if(s)return i.writeFile(e,t,r,n);c.mkdirs(a,(o=>{if(o)return n(o);i.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=o.dirname(e);if(i.existsSync(r)){return i.writeFileSync(e,...t)}c.mkdirsSync(r);i.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},725:(e,t,r)=>{"use strict";const n=r(5).fromPromise;const i=r(812);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:i.existsSync}},95:(e,t,r)=>{"use strict";const n=r(127);const i=r(5).fromCallback;const o=r(193);function remove(e,t){if(n.rm)return n.rm(e,{recursive:true,force:true},t);o(e,t)}function removeSync(e){if(n.rmSync)return n.rmSync(e,{recursive:true,force:true});o.sync(e)}e.exports={remove:i(remove),removeSync:removeSync}},193:(e,t,r)=>{"use strict";const n=r(127);const i=r(17);const o=r(491);const c=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o.strictEqual(typeof r,"function","rimraf: callback function required");o(t,"rimraf: invalid options argument provided");o.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&n<t.maxBusyTries){n++;const r=n*100;return setTimeout((()=>rimraf_(e,t,CB)),r)}if(i.code==="ENOENT")i=null}r(i)}))}function rimraf_(e,t,r){o(e);o(t);o(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&c){return fixWinEPERM(e,t,n,r)}if(i&&i.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return c?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){o(e);o(t);o(typeof n==="function");t.chmod(e,438,(i=>{if(i){n(i.code==="ENOENT"?null:r)}else{t.stat(e,((i,o)=>{if(i){n(i.code==="ENOENT"?null:r)}else if(o.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;o(e);o(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){o(e);o(t);o(typeof n==="function");t.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,t,n)}else if(i&&i.code==="ENOTDIR"){n(r)}else{n(i)}}))}function rmkids(e,t,r){o(e);o(t);o(typeof r==="function");t.readdir(e,((n,o)=>{if(n)return r(n);let c=o.length;let s;if(c===0)return t.rmdir(e,r);o.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(s){return}if(n)return r(s=n);if(--c===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o(t,"rimraf: missing options");o.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&c){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return c?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){o(e);o(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){o(e);o(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));if(c){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},883:(e,t,r)=>{"use strict";const n=r(812);const i=r(17);const o=r(837);function getStats(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:true}):e=>n.lstat(e,{bigint:true});return Promise.all([i(e),i(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t,r){let i;const o=r.dereference?e=>n.statSync(e,{bigint:true}):e=>n.lstatSync(e,{bigint:true});const c=o(e);try{i=o(t)}catch(e){if(e.code==="ENOENT")return{srcStat:c,destStat:null};throw e}return{srcStat:c,destStat:i}}function checkPaths(e,t,r,n,c){o.callbackify(getStats)(e,t,n,((n,o)=>{if(n)return c(n);const{srcStat:s,destStat:a}=o;if(a){if(areIdentical(s,a)){const n=i.basename(e);const o=i.basename(t);if(r==="move"&&n!==o&&n.toLowerCase()===o.toLowerCase()){return c(null,{srcStat:s,destStat:a,isChangingCase:true})}return c(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&!a.isDirectory()){return c(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`))}if(!s.isDirectory()&&a.isDirectory()){return c(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}}if(s.isDirectory()&&isSrcSubdir(e,t)){return c(new Error(errMsg(e,t,r)))}return c(null,{srcStat:s,destStat:a})}))}function checkPathsSync(e,t,r,n){const{srcStat:o,destStat:c}=getStatsSync(e,t,n);if(c){if(areIdentical(o,c)){const n=i.basename(e);const s=i.basename(t);if(r==="move"&&n!==s&&n.toLowerCase()===s.toLowerCase()){return{srcStat:o,destStat:c,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!c.isDirectory()){throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`)}if(!o.isDirectory()&&c.isDirectory()){throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}}if(o.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:o,destStat:c}}function checkParentPaths(e,t,r,o,c){const s=i.resolve(i.dirname(e));const a=i.resolve(i.dirname(r));if(a===s||a===i.parse(a).root)return c();n.stat(a,{bigint:true},((n,i)=>{if(n){if(n.code==="ENOENT")return c();return c(n)}if(areIdentical(t,i)){return c(new Error(errMsg(e,r,o)))}return checkParentPaths(e,t,a,o,c)}))}function checkParentPathsSync(e,t,r,o){const c=i.resolve(i.dirname(e));const s=i.resolve(i.dirname(r));if(s===c||s===i.parse(s).root)return;let a;try{a=n.statSync(s,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,a)){throw new Error(errMsg(e,r,o))}return checkParentPathsSync(e,t,s,o)}function areIdentical(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function isSrcSubdir(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e));const n=i.resolve(t).split(i.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},309:(e,t,r)=>{"use strict";const n=r(127);function utimesMillis(e,t,r,i){n.open(e,"r+",((e,o)=>{if(e)return i(e);n.futimes(o,t,r,(e=>{n.close(o,(t=>{if(i)i(e||t)}))}))}))}function utimesMillisSync(e,t,r){const i=n.openSync(e,"r+");n.futimesSync(i,t,r);return n.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},132:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},127:(e,t,r)=>{var n=r(147);var i=r(367);var o=r(876);var c=r(132);var s=r(837);var a;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){a=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{a="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,a,{get:function(){return t}})}var f=noop;if(s.debuglog)f=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[a]){var l=global[a]||[];publishQueue(n,l);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(n[a]);r(491).equal(n[a].length,0)}))}}if(!global[a]){publishQueue(global,n[a])}e.exports=patch(c(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,o){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,o){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var c=e.copyFile;if(c)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return c(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;var a=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=a.test(process.version)?function go$readdir(e,t,r,n){return s(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return s(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([n,[e,t,r],o,i||Date.now(),Date.now()]);else{if(c&&c.sort)c.sort();if(typeof r==="function")r.call(this,o,c)}}}}if(process.version.substr(0,4)==="v0.8"){var u=o(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var f=e.ReadStream;if(f){ReadStream.prototype=Object.create(f.prototype);ReadStream.prototype.open=ReadStream$open}var l=e.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var y=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return f.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var m=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return m(e,t,r,(function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);n[a].push(e);retry()}var y;function resetQueue(){var e=Date.now();for(var t=0;t<n[a].length;++t){if(n[a][t].length>2){n[a][t][3]=e;n[a][t][4]=e}}retry()}function retry(){clearTimeout(y);y=undefined;if(n[a].length===0)return;var e=n[a].shift();var t=e[0];var r=e[1];var i=e[2];var o=e[3];var c=e[4];if(o===undefined){f("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,r);var s=r.pop();if(typeof s==="function")s.call(null,i)}else{var u=Date.now()-c;var l=Math.max(c-o,1);var d=Math.min(l*1.2,100);if(u>=d){f("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{n[a].push(e)}}if(y===undefined){y=setTimeout(retry,0)}}},876:(e,t,r)=>{var n=r(781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var c=0,s=o.length;c<s;c++){var a=o[c];this[a]=r[a]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var o=0,c=i.length;o<c;o++){var s=i[o];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},367:(e,t,r)=>{var n=r(57);var i=process.cwd;var o=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=i.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){o=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(c==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,i){var o=Date.now();var c=0;t(r,n,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM")&&Date.now()-o<6e4){setTimeout((function(){e.stat(n,(function(e,o){if(e&&e.code==="ENOENT")t(r,n,CB);else i(s)}))}),c);if(c<100)c+=10;return}if(i)i(s)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,i,o,c,s){var a;if(s&&typeof s==="function"){var u=0;a=function(f,l,y){if(f&&f.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,i,o,c,a)}s.apply(this,arguments)}}return t.call(e,r,n,i,o,c,a)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,i,o,c){var s=0;while(true){try{return t.call(e,r,n,i,o,c)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var o=true;var c;try{c=e.fchmodSync(i,r);o=false}finally{if(o){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return c}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(o)o(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var o=e.openSync(t,n.O_SYMLINK);var c;var s=true;try{c=e.futimesSync(o,r,i);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return c}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,o){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},654:(e,t,r)=>{let n;try{n=r(127)}catch(e){n=r(147)}const i=r(5);const{stringify:o,stripBom:c}=r(208);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const o="throws"in t?t.throws:true;let s=await i.fromCallback(r.readFile)(e,t);s=c(s);let a;try{a=JSON.parse(s,t?t.reviver:null)}catch(t){if(o){t.message=`${e}: ${t.message}`;throw t}else{return null}}return a}const s=i.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const i="throws"in t?t.throws:true;try{let n=r.readFileSync(e,t);n=c(n);return JSON.parse(n,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const c=r.fs||n;const s=o(t,r);await i.fromCallback(c.writeFile)(e,s,r)}const a=i.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const i=r.fs||n;const c=o(t,r);return i.writeFileSync(e,c,r)}const u={readFile:s,readFileSync:readFileSync,writeFile:a,writeFileSync:writeFileSync};e.exports=u},208:e=>{function stringify(e,{EOL:t="\n",finalEOL:r=true,replacer:n=null,spaces:i}={}){const o=r?t:"";const c=JSON.stringify(e,n,i);return c.replace(/\n/g,t)+o}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},5:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((r,n)=>{e.call(this,...t,((e,t)=>e!=null?n(e):r(t)))}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then((e=>r(null,e)),r)}),"name",{value:e.name})}},491:e=>{"use strict";e.exports=require("assert")},57:e=>{"use strict";e.exports=require("constants")},147:e=>{"use strict";e.exports=require("fs")},17:e=>{"use strict";e.exports=require("path")},781:e=>{"use strict";e.exports=require("stream")},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(81);module.exports=r})();
|