@modern-js/utils 2.12.1-alpha.3 → 2.13.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -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,23 +0,0 @@
|
|
1
|
-
(The MIT License)
|
2
|
-
|
3
|
-
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
|
4
|
-
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
|
5
|
-
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
-
a copy of this software and associated documentation files (the
|
8
|
-
'Software'), to deal in the Software without restriction, including
|
9
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
-
permit persons to whom the Software is furnished to do so, subject to
|
12
|
-
the following conditions:
|
13
|
-
|
14
|
-
The above copyright notice and this permission notice shall be
|
15
|
-
included in all copies or substantial portions of the Software.
|
16
|
-
|
17
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
18
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
20
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
21
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
22
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
23
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1 +0,0 @@
|
|
1
|
-
{"name":"mime-types","version":"2.1.35","license":"MIT"}
|
@@ -1,95 +0,0 @@
|
|
1
|
-
// Type definitions for minimist 1.2
|
2
|
-
// Project: https://github.com/substack/minimist
|
3
|
-
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
4
|
-
// Necroskillz <https://github.com/Necroskillz>
|
5
|
-
// kamranayub <https://github.com/kamranayub>
|
6
|
-
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
7
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Return an argument object populated with the array arguments from args
|
11
|
-
*
|
12
|
-
* @param [args] An optional argument array (typically `process.argv.slice(2)`)
|
13
|
-
* @param [opts] An optional options object to customize the parsing
|
14
|
-
*/
|
15
|
-
declare function minimist(args?: string[], opts?: minimist.Opts): minimist.ParsedArgs;
|
16
|
-
|
17
|
-
/**
|
18
|
-
* Return an argument object populated with the array arguments from args. Strongly-typed
|
19
|
-
* to be the intersect of type T with minimist.ParsedArgs.
|
20
|
-
*
|
21
|
-
* `T` The type that will be intersected with minimist.ParsedArgs to represent the argument object
|
22
|
-
*
|
23
|
-
* @param [args] An optional argument array (typically `process.argv.slice(2)`)
|
24
|
-
* @param [opts] An optional options object to customize the parsing
|
25
|
-
*/
|
26
|
-
declare function minimist<T>(args?: string[], opts?: minimist.Opts): T & minimist.ParsedArgs;
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Return an argument object populated with the array arguments from args. Strongly-typed
|
30
|
-
* to be the the type T which should extend minimist.ParsedArgs
|
31
|
-
*
|
32
|
-
* `T` The type that extends minimist.ParsedArgs and represents the argument object
|
33
|
-
*
|
34
|
-
* @param [args] An optional argument array (typically `process.argv.slice(2)`)
|
35
|
-
* @param [opts] An optional options object to customize the parsing
|
36
|
-
*/
|
37
|
-
declare function minimist<T extends minimist.ParsedArgs>(args?: string[], opts?: minimist.Opts): T;
|
38
|
-
|
39
|
-
declare namespace minimist {
|
40
|
-
interface Opts {
|
41
|
-
/**
|
42
|
-
* A string or array of strings argument names to always treat as strings
|
43
|
-
*/
|
44
|
-
string?: string | string[] | undefined;
|
45
|
-
|
46
|
-
/**
|
47
|
-
* A boolean, string or array of strings to always treat as booleans. If true will treat
|
48
|
-
* all double hyphenated arguments without equals signs as boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`)
|
49
|
-
*/
|
50
|
-
boolean?: boolean | string | string[] | undefined;
|
51
|
-
|
52
|
-
/**
|
53
|
-
* An object mapping string names to strings or arrays of string argument names to use as aliases
|
54
|
-
*/
|
55
|
-
alias?: { [key: string]: string | string[] } | undefined;
|
56
|
-
|
57
|
-
/**
|
58
|
-
* An object mapping string argument names to default values
|
59
|
-
*/
|
60
|
-
default?: { [key: string]: any } | undefined;
|
61
|
-
|
62
|
-
/**
|
63
|
-
* When true, populate argv._ with everything after the first non-option
|
64
|
-
*/
|
65
|
-
stopEarly?: boolean | undefined;
|
66
|
-
|
67
|
-
/**
|
68
|
-
* A function which is invoked with a command line parameter not defined in the opts
|
69
|
-
* configuration object. If the function returns false, the unknown option is not added to argv
|
70
|
-
*/
|
71
|
-
unknown?: ((arg: string) => boolean) | undefined;
|
72
|
-
|
73
|
-
/**
|
74
|
-
* When true, populate argv._ with everything before the -- and argv['--'] with everything after the --.
|
75
|
-
* Note that with -- set, parsing for arguments still stops after the `--`.
|
76
|
-
*/
|
77
|
-
'--'?: boolean | undefined;
|
78
|
-
}
|
79
|
-
|
80
|
-
interface ParsedArgs {
|
81
|
-
[arg: string]: any;
|
82
|
-
|
83
|
-
/**
|
84
|
-
* If opts['--'] is true, populated with everything after the --
|
85
|
-
*/
|
86
|
-
'--'?: string[] | undefined;
|
87
|
-
|
88
|
-
/**
|
89
|
-
* Contains all the arguments that didn't have an option associated with them
|
90
|
-
*/
|
91
|
-
_: string[];
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
export = minimist;
|
@@ -1 +0,0 @@
|
|
1
|
-
(()=>{var e={319:e=>{e.exports=function(e,t){if(!t)t={};var r={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){r.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){r.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach((function(e){r.bools[e]=true}))}var n={};Object.keys(t.alias||{}).forEach((function(e){n[e]=[].concat(t.alias[e]);n[e].forEach((function(t){n[t]=[e].concat(n[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){r.strings[e]=true;if(n[e]){r.strings[n[e]]=true}}));var o=t["default"]||{};var s={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,o[e]===undefined?false:o[e])}));var i=[];if(e.indexOf("--")!==-1){i=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setArg(e,t,o){if(o&&r.unknownFn&&!argDefined(e,o)){if(r.unknownFn(o)===false)return}var i=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(s,e.split("."),i);(n[e]||[]).forEach((function(e){setKey(s,e.split("."),i)}))}function setKey(e,t,n){var o=e;for(var s=0;s<t.length-1;s++){var i=t[s];if(isConstructorOrProto(o,i))return;if(o[i]===undefined)o[i]={};if(o[i]===Object.prototype||o[i]===Number.prototype||o[i]===String.prototype)o[i]={};if(o[i]===Array.prototype)o[i]=[];o=o[i]}var i=t[t.length-1];if(isConstructorOrProto(o,i))return;if(o===Object.prototype||o===Number.prototype||o===String.prototype)o={};if(o===Array.prototype)o=[];if(o[i]===undefined||r.bools[i]||typeof o[i]==="boolean"){o[i]=n}else if(Array.isArray(o[i])){o[i].push(n)}else{o[i]=[o[i],n]}}function aliasIsBoolean(e){return n[e].some((function(e){return r.bools[e]}))}for(var a=0;a<e.length;a++){var f=e[a];if(/^--.+=/.test(f)){var u=f.match(/^--([^=]+)=([\s\S]*)$/);var l=u[1];var c=u[2];if(r.bools[l]){c=c!=="false"}setArg(l,c,f)}else if(/^--no-.+/.test(f)){var l=f.match(/^--no-(.+)/)[1];setArg(l,false,f)}else if(/^--.+/.test(f)){var l=f.match(/^--(.+)/)[1];var p=e[a+1];if(p!==undefined&&!/^-/.test(p)&&!r.bools[l]&&!r.allBools&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,p,f);a++}else if(/^(true|false)$/.test(p)){setArg(l,p==="true",f);a++}else{setArg(l,r.strings[l]?"":true,f)}}else if(/^-[^-]+/.test(f)){var b=f.slice(1,-1).split("");var _=false;for(var g=0;g<b.length;g++){var p=f.slice(g+2);if(p==="-"){setArg(b[g],p,f);continue}if(/[A-Za-z]/.test(b[g])&&/=/.test(p)){setArg(b[g],p.split("=")[1],f);_=true;break}if(/[A-Za-z]/.test(b[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){setArg(b[g],p,f);_=true;break}if(b[g+1]&&b[g+1].match(/\W/)){setArg(b[g],f.slice(g+2),f);_=true;break}else{setArg(b[g],r.strings[b[g]]?"":true,f)}}var l=f.slice(-1)[0];if(!_&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[l]&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],f);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",f);a++}else{setArg(l,r.strings[l]?"":true,f)}}}else{if(!r.unknownFn||r.unknownFn(f)!==false){s._.push(r.strings["_"]||!isNumber(f)?f:Number(f))}if(t.stopEarly){s._.push.apply(s._,e.slice(a+1));break}}}Object.keys(o).forEach((function(e){if(!hasKey(s,e.split("."))){setKey(s,e.split("."),o[e]);(n[e]||[]).forEach((function(t){setKey(s,t.split("."),o[e])}))}}));if(t["--"]){s["--"]=new Array;i.forEach((function(e){s["--"].push(e)}))}else{i.forEach((function(e){s._.push(e)}))}return s};function hasKey(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var s=true;try{e[r](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(319);module.exports=r})();
|
@@ -1,18 +0,0 @@
|
|
1
|
-
This software is released under the MIT license:
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
5
|
-
the Software without restriction, including without limitation the rights to
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
-
subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1 +0,0 @@
|
|
1
|
-
{"name":"minimist","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"version":"1.2.6","license":"MIT"}
|
@@ -1,91 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Generate secure URL-friendly unique ID.
|
3
|
-
*
|
4
|
-
* By default, the ID will have 21 symbols to have a collision probability
|
5
|
-
* similar to UUID v4.
|
6
|
-
*
|
7
|
-
* ```js
|
8
|
-
* import { nanoid } from './nanoid'
|
9
|
-
* model.id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqL"
|
10
|
-
* ```
|
11
|
-
*
|
12
|
-
* @param size Size of the ID. The default size is 21.
|
13
|
-
* @returns A random string.
|
14
|
-
*/
|
15
|
-
export function nanoid(size?: number): string
|
16
|
-
|
17
|
-
/**
|
18
|
-
* Generate secure unique ID with custom alphabet.
|
19
|
-
*
|
20
|
-
* Alphabet must contain 256 symbols or less. Otherwise, the generator
|
21
|
-
* will not be secure.
|
22
|
-
*
|
23
|
-
* @param alphabet Alphabet used to generate the ID.
|
24
|
-
* @param defaultSize Size of the ID. The default size is 21.
|
25
|
-
* @returns A random string generator.
|
26
|
-
*
|
27
|
-
* ```js
|
28
|
-
* const { customAlphabet } = require('nanoid')
|
29
|
-
* const nanoid = customAlphabet('0123456789абвгдеё', 5)
|
30
|
-
* nanoid() //=> "8ё56а"
|
31
|
-
* ```
|
32
|
-
*/
|
33
|
-
export function customAlphabet(
|
34
|
-
alphabet: string,
|
35
|
-
defaultSize?: number
|
36
|
-
): (size?: number) => string
|
37
|
-
|
38
|
-
/**
|
39
|
-
* Generate unique ID with custom random generator and alphabet.
|
40
|
-
*
|
41
|
-
* Alphabet must contain 256 symbols or less. Otherwise, the generator
|
42
|
-
* will not be secure.
|
43
|
-
*
|
44
|
-
* ```js
|
45
|
-
* import { customRandom } from './nanoid/format'
|
46
|
-
*
|
47
|
-
* const nanoid = customRandom('abcdef', 5, size => {
|
48
|
-
* const random = []
|
49
|
-
* for (let i = 0; i < size; i++) {
|
50
|
-
* random.push(randomByte())
|
51
|
-
* }
|
52
|
-
* return random
|
53
|
-
* })
|
54
|
-
*
|
55
|
-
* nanoid() //=> "fbaef"
|
56
|
-
* ```
|
57
|
-
*
|
58
|
-
* @param alphabet Alphabet used to generate a random string.
|
59
|
-
* @param size Size of the random string.
|
60
|
-
* @param random A random bytes generator.
|
61
|
-
* @returns A random string generator.
|
62
|
-
*/
|
63
|
-
export function customRandom(
|
64
|
-
alphabet: string,
|
65
|
-
size: number,
|
66
|
-
random: (bytes: number) => Uint8Array
|
67
|
-
): () => string
|
68
|
-
|
69
|
-
/**
|
70
|
-
* URL safe symbols.
|
71
|
-
*
|
72
|
-
* ```js
|
73
|
-
* import { urlAlphabet } from './nanoid'
|
74
|
-
* const nanoid = customAlphabet(urlAlphabet, 10)
|
75
|
-
* nanoid() //=> "Uakgb_J5m9"
|
76
|
-
* ```
|
77
|
-
*/
|
78
|
-
export const urlAlphabet: string
|
79
|
-
|
80
|
-
/**
|
81
|
-
* Generate an array of random bytes collected from hardware noise.
|
82
|
-
*
|
83
|
-
* ```js
|
84
|
-
* import { customRandom, random } from './nanoid'
|
85
|
-
* const nanoid = customRandom("abcdef", 5, random)
|
86
|
-
* ```
|
87
|
-
*
|
88
|
-
* @param bytes Size of the array.
|
89
|
-
* @returns An array of random bytes.
|
90
|
-
*/
|
91
|
-
export function random(bytes: number): Uint8Array
|
@@ -1 +0,0 @@
|
|
1
|
-
(()=>{var e={113:e=>{"use strict";e.exports=require("crypto")},495:(e,r,t)=>{let l=t(113);let{urlAlphabet:a}=t(240);const n=128;let _,u;let fillPool=e=>{if(!_||_.length<e){_=Buffer.allocUnsafe(e*n);l.randomFillSync(_);u=0}else if(u+e>_.length){l.randomFillSync(_);u=0}u+=e};let random=e=>{fillPool(e-=0);return _.subarray(u-e,u)};let customRandom=(e,r,t)=>{let l=(2<<31-Math.clz32(e.length-1|1))-1;let a=Math.ceil(1.6*l*r/e.length);return(n=r)=>{let _="";while(true){let r=t(a);let u=a;while(u--){_+=e[r[u]&l]||"";if(_.length===n)return _}}}};let customAlphabet=(e,r=21)=>customRandom(e,r,random);let nanoid=(e=21)=>{fillPool(e-=0);let r="";for(let t=u-e;t<u;t++){r+=a[_[t]&63]}return r};e.exports={nanoid:nanoid,customAlphabet:customAlphabet,customRandom:customRandom,urlAlphabet:a,random:random}},240:e=>{let r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";e.exports={urlAlphabet:r}}};var r={};function __nccwpck_require__(t){var l=r[t];if(l!==undefined){return l.exports}var a=r[t]={exports:{}};var n=true;try{e[t](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete r[t]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(495);module.exports=t})();
|
@@ -1,20 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
7
|
-
the Software without restriction, including without limitation the rights to
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
-
subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1 +0,0 @@
|
|
1
|
-
{"name":"nanoid","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"3.3.4","license":"MIT","types":"./index.d.ts"}
|
@@ -1,125 +0,0 @@
|
|
1
|
-
declare namespace cliSpinners {
|
2
|
-
type SpinnerName =
|
3
|
-
| 'dots'
|
4
|
-
| 'dots2'
|
5
|
-
| 'dots3'
|
6
|
-
| 'dots4'
|
7
|
-
| 'dots5'
|
8
|
-
| 'dots6'
|
9
|
-
| 'dots7'
|
10
|
-
| 'dots8'
|
11
|
-
| 'dots9'
|
12
|
-
| 'dots10'
|
13
|
-
| 'dots11'
|
14
|
-
| 'dots12'
|
15
|
-
| 'dots8Bit'
|
16
|
-
| 'line'
|
17
|
-
| 'line2'
|
18
|
-
| 'pipe'
|
19
|
-
| 'simpleDots'
|
20
|
-
| 'simpleDotsScrolling'
|
21
|
-
| 'star'
|
22
|
-
| 'star2'
|
23
|
-
| 'flip'
|
24
|
-
| 'hamburger'
|
25
|
-
| 'growVertical'
|
26
|
-
| 'growHorizontal'
|
27
|
-
| 'balloon'
|
28
|
-
| 'balloon2'
|
29
|
-
| 'noise'
|
30
|
-
| 'bounce'
|
31
|
-
| 'boxBounce'
|
32
|
-
| 'boxBounce2'
|
33
|
-
| 'triangle'
|
34
|
-
| 'arc'
|
35
|
-
| 'circle'
|
36
|
-
| 'squareCorners'
|
37
|
-
| 'circleQuarters'
|
38
|
-
| 'circleHalves'
|
39
|
-
| 'squish'
|
40
|
-
| 'toggle'
|
41
|
-
| 'toggle2'
|
42
|
-
| 'toggle3'
|
43
|
-
| 'toggle4'
|
44
|
-
| 'toggle5'
|
45
|
-
| 'toggle6'
|
46
|
-
| 'toggle7'
|
47
|
-
| 'toggle8'
|
48
|
-
| 'toggle9'
|
49
|
-
| 'toggle10'
|
50
|
-
| 'toggle11'
|
51
|
-
| 'toggle12'
|
52
|
-
| 'toggle13'
|
53
|
-
| 'arrow'
|
54
|
-
| 'arrow2'
|
55
|
-
| 'arrow3'
|
56
|
-
| 'bouncingBar'
|
57
|
-
| 'bouncingBall'
|
58
|
-
| 'smiley'
|
59
|
-
| 'monkey'
|
60
|
-
| 'hearts'
|
61
|
-
| 'clock'
|
62
|
-
| 'earth'
|
63
|
-
| 'material'
|
64
|
-
| 'moon'
|
65
|
-
| 'runner'
|
66
|
-
| 'pong'
|
67
|
-
| 'shark'
|
68
|
-
| 'dqpb'
|
69
|
-
| 'weather'
|
70
|
-
| 'christmas'
|
71
|
-
| 'grenade'
|
72
|
-
| 'point'
|
73
|
-
| 'layer'
|
74
|
-
| 'betaWave'
|
75
|
-
| 'fingerDance'
|
76
|
-
| 'fistBump'
|
77
|
-
| 'soccerHeader'
|
78
|
-
| 'mindblown'
|
79
|
-
| 'speaker'
|
80
|
-
| 'orangePulse'
|
81
|
-
| 'bluePulse'
|
82
|
-
| 'orangeBluePulse'
|
83
|
-
| 'timeTravel'
|
84
|
-
| 'aesthetic';
|
85
|
-
|
86
|
-
interface Spinner {
|
87
|
-
/**
|
88
|
-
Recommended interval.
|
89
|
-
*/
|
90
|
-
readonly interval: number;
|
91
|
-
|
92
|
-
/**
|
93
|
-
A list of frames to show for the spinner.
|
94
|
-
*/
|
95
|
-
readonly frames: string[];
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
/**
|
100
|
-
70+ spinners for use in the terminal.
|
101
|
-
|
102
|
-
@example
|
103
|
-
```
|
104
|
-
import cliSpinners = require('../cli-spinners');
|
105
|
-
|
106
|
-
console.log(cliSpinners.dots);
|
107
|
-
// {
|
108
|
-
// interval: 80,
|
109
|
-
// frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
|
110
|
-
// }
|
111
|
-
```
|
112
|
-
*/
|
113
|
-
declare const cliSpinners: {
|
114
|
-
readonly [spinnerName in cliSpinners.SpinnerName]: cliSpinners.Spinner;
|
115
|
-
} & {
|
116
|
-
/**
|
117
|
-
Returns a random spinner each time it's called.
|
118
|
-
*/
|
119
|
-
readonly random: cliSpinners.Spinner;
|
120
|
-
|
121
|
-
// TODO: Remove this for the next major release
|
122
|
-
default: typeof cliSpinners;
|
123
|
-
};
|
124
|
-
|
125
|
-
export = cliSpinners;
|
@@ -1,277 +0,0 @@
|
|
1
|
-
import {SpinnerName} from './cli-spinners';
|
2
|
-
|
3
|
-
declare namespace ora {
|
4
|
-
interface Spinner {
|
5
|
-
readonly interval?: number;
|
6
|
-
readonly frames: string[];
|
7
|
-
}
|
8
|
-
|
9
|
-
type Color =
|
10
|
-
| 'black'
|
11
|
-
| 'red'
|
12
|
-
| 'green'
|
13
|
-
| 'yellow'
|
14
|
-
| 'blue'
|
15
|
-
| 'magenta'
|
16
|
-
| 'cyan'
|
17
|
-
| 'white'
|
18
|
-
| 'gray';
|
19
|
-
|
20
|
-
type PrefixTextGenerator = () => string;
|
21
|
-
|
22
|
-
interface Options {
|
23
|
-
/**
|
24
|
-
Text to display after the spinner.
|
25
|
-
*/
|
26
|
-
readonly text?: string;
|
27
|
-
|
28
|
-
/**
|
29
|
-
Text or a function that returns text to display before the spinner. No prefix text will be displayed if set to an empty string.
|
30
|
-
*/
|
31
|
-
readonly prefixText?: string | PrefixTextGenerator;
|
32
|
-
|
33
|
-
/**
|
34
|
-
Name of one of the provided spinners. See [`example.js`](https://github.com/BendingBender/ora/blob/main/example.js) in this repo if you want to test out different spinners. On Windows, it will always use the line spinner as the Windows command-line doesn't have proper Unicode support.
|
35
|
-
|
36
|
-
@default 'dots'
|
37
|
-
|
38
|
-
Or an object like:
|
39
|
-
|
40
|
-
@example
|
41
|
-
```
|
42
|
-
{
|
43
|
-
interval: 80, // Optional
|
44
|
-
frames: ['-', '+', '-']
|
45
|
-
}
|
46
|
-
```
|
47
|
-
*/
|
48
|
-
readonly spinner?: SpinnerName | Spinner;
|
49
|
-
|
50
|
-
/**
|
51
|
-
Color of the spinner.
|
52
|
-
|
53
|
-
@default 'cyan'
|
54
|
-
*/
|
55
|
-
readonly color?: Color;
|
56
|
-
|
57
|
-
/**
|
58
|
-
Set to `false` to stop Ora from hiding the cursor.
|
59
|
-
|
60
|
-
@default true
|
61
|
-
*/
|
62
|
-
readonly hideCursor?: boolean;
|
63
|
-
|
64
|
-
/**
|
65
|
-
Indent the spinner with the given number of spaces.
|
66
|
-
|
67
|
-
@default 0
|
68
|
-
*/
|
69
|
-
readonly indent?: number;
|
70
|
-
|
71
|
-
/**
|
72
|
-
Interval between each frame.
|
73
|
-
|
74
|
-
Spinners provide their own recommended interval, so you don't really need to specify this.
|
75
|
-
|
76
|
-
Default: Provided by the spinner or `100`.
|
77
|
-
*/
|
78
|
-
readonly interval?: number;
|
79
|
-
|
80
|
-
/**
|
81
|
-
Stream to write the output.
|
82
|
-
|
83
|
-
You could for example set this to `process.stdout` instead.
|
84
|
-
|
85
|
-
@default process.stderr
|
86
|
-
*/
|
87
|
-
readonly stream?: NodeJS.WritableStream;
|
88
|
-
|
89
|
-
/**
|
90
|
-
Force enable/disable the spinner. If not specified, the spinner will be enabled if the `stream` is being run inside a TTY context (not spawned or piped) and/or not in a CI environment.
|
91
|
-
|
92
|
-
Note that `{isEnabled: false}` doesn't mean it won't output anything. It just means it won't output the spinner, colors, and other ansi escape codes. It will still log text.
|
93
|
-
*/
|
94
|
-
readonly isEnabled?: boolean;
|
95
|
-
|
96
|
-
/**
|
97
|
-
Disable the spinner and all log text. All output is suppressed and `isEnabled` will be considered `false`.
|
98
|
-
|
99
|
-
@default false
|
100
|
-
*/
|
101
|
-
readonly isSilent?: boolean;
|
102
|
-
|
103
|
-
/**
|
104
|
-
Discard stdin input (except Ctrl+C) while running if it's TTY. This prevents the spinner from twitching on input, outputting broken lines on `Enter` key presses, and prevents buffering of input while the spinner is running.
|
105
|
-
|
106
|
-
This has no effect on Windows as there's no good way to implement discarding stdin properly there.
|
107
|
-
|
108
|
-
@default true
|
109
|
-
*/
|
110
|
-
readonly discardStdin?: boolean;
|
111
|
-
}
|
112
|
-
|
113
|
-
interface PersistOptions {
|
114
|
-
/**
|
115
|
-
Symbol to replace the spinner with.
|
116
|
-
|
117
|
-
@default ' '
|
118
|
-
*/
|
119
|
-
readonly symbol?: string;
|
120
|
-
|
121
|
-
/**
|
122
|
-
Text to be persisted after the symbol.
|
123
|
-
|
124
|
-
Default: Current `text`.
|
125
|
-
*/
|
126
|
-
readonly text?: string;
|
127
|
-
|
128
|
-
/**
|
129
|
-
Text or a function that returns text to be persisted before the symbol. No prefix text will be displayed if set to an empty string.
|
130
|
-
|
131
|
-
Default: Current `prefixText`.
|
132
|
-
*/
|
133
|
-
readonly prefixText?: string | PrefixTextGenerator;
|
134
|
-
}
|
135
|
-
|
136
|
-
interface Ora {
|
137
|
-
/**
|
138
|
-
A boolean of whether the instance is currently spinning.
|
139
|
-
*/
|
140
|
-
readonly isSpinning: boolean;
|
141
|
-
|
142
|
-
/**
|
143
|
-
Change the text after the spinner.
|
144
|
-
*/
|
145
|
-
text: string;
|
146
|
-
|
147
|
-
/**
|
148
|
-
Change the text or function that returns text before the spinner. No prefix text will be displayed if set to an empty string.
|
149
|
-
*/
|
150
|
-
prefixText: string | PrefixTextGenerator;
|
151
|
-
|
152
|
-
/**
|
153
|
-
Change the spinner color.
|
154
|
-
*/
|
155
|
-
color: Color;
|
156
|
-
|
157
|
-
/**
|
158
|
-
Change the spinner.
|
159
|
-
*/
|
160
|
-
spinner: SpinnerName | Spinner;
|
161
|
-
|
162
|
-
/**
|
163
|
-
Change the spinner indent.
|
164
|
-
*/
|
165
|
-
indent: number;
|
166
|
-
|
167
|
-
/**
|
168
|
-
Start the spinner.
|
169
|
-
|
170
|
-
@param text - Set the current text.
|
171
|
-
@returns The spinner instance.
|
172
|
-
*/
|
173
|
-
start(text?: string): Ora;
|
174
|
-
|
175
|
-
/**
|
176
|
-
Stop and clear the spinner.
|
177
|
-
|
178
|
-
@returns The spinner instance.
|
179
|
-
*/
|
180
|
-
stop(): Ora;
|
181
|
-
|
182
|
-
/**
|
183
|
-
Stop the spinner, change it to a green `✔` and persist the current text, or `text` if provided.
|
184
|
-
|
185
|
-
@param text - Will persist text if provided.
|
186
|
-
@returns The spinner instance.
|
187
|
-
*/
|
188
|
-
succeed(text?: string): Ora;
|
189
|
-
|
190
|
-
/**
|
191
|
-
Stop the spinner, change it to a red `✖` and persist the current text, or `text` if provided.
|
192
|
-
|
193
|
-
@param text - Will persist text if provided.
|
194
|
-
@returns The spinner instance.
|
195
|
-
*/
|
196
|
-
fail(text?: string): Ora;
|
197
|
-
|
198
|
-
/**
|
199
|
-
Stop the spinner, change it to a yellow `⚠` and persist the current text, or `text` if provided.
|
200
|
-
|
201
|
-
@param text - Will persist text if provided.
|
202
|
-
@returns The spinner instance.
|
203
|
-
*/
|
204
|
-
warn(text?: string): Ora;
|
205
|
-
|
206
|
-
/**
|
207
|
-
Stop the spinner, change it to a blue `ℹ` and persist the current text, or `text` if provided.
|
208
|
-
|
209
|
-
@param text - Will persist text if provided.
|
210
|
-
@returns The spinner instance.
|
211
|
-
*/
|
212
|
-
info(text?: string): Ora;
|
213
|
-
|
214
|
-
/**
|
215
|
-
Stop the spinner and change the symbol or text.
|
216
|
-
|
217
|
-
@returns The spinner instance.
|
218
|
-
*/
|
219
|
-
stopAndPersist(options?: PersistOptions): Ora;
|
220
|
-
|
221
|
-
/**
|
222
|
-
Clear the spinner.
|
223
|
-
|
224
|
-
@returns The spinner instance.
|
225
|
-
*/
|
226
|
-
clear(): Ora;
|
227
|
-
|
228
|
-
/**
|
229
|
-
Manually render a new frame.
|
230
|
-
|
231
|
-
@returns The spinner instance.
|
232
|
-
*/
|
233
|
-
render(): Ora;
|
234
|
-
|
235
|
-
/**
|
236
|
-
Get a new frame.
|
237
|
-
|
238
|
-
@returns The spinner instance text.
|
239
|
-
*/
|
240
|
-
frame(): string;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
|
244
|
-
declare const ora: {
|
245
|
-
/**
|
246
|
-
Elegant terminal spinner.
|
247
|
-
|
248
|
-
@param options - If a string is provided, it is treated as a shortcut for `options.text`.
|
249
|
-
|
250
|
-
@example
|
251
|
-
```
|
252
|
-
import ora = require('./ora');
|
253
|
-
|
254
|
-
const spinner = ora('Loading unicorns').start();
|
255
|
-
|
256
|
-
setTimeout(() => {
|
257
|
-
spinner.color = 'yellow';
|
258
|
-
spinner.text = 'Loading rainbows';
|
259
|
-
}, 1000);
|
260
|
-
```
|
261
|
-
*/
|
262
|
-
(options?: ora.Options | string): ora.Ora;
|
263
|
-
|
264
|
-
/**
|
265
|
-
Starts a spinner for a promise. The spinner is stopped with `.succeed()` if the promise fulfills or with `.fail()` if it rejects.
|
266
|
-
|
267
|
-
@param action - The promise to start the spinner for.
|
268
|
-
@param options - If a string is provided, it is treated as a shortcut for `options.text`.
|
269
|
-
@returns The spinner instance.
|
270
|
-
*/
|
271
|
-
promise(
|
272
|
-
action: PromiseLike<unknown>,
|
273
|
-
options?: ora.Options | string
|
274
|
-
): ora.Ora;
|
275
|
-
};
|
276
|
-
|
277
|
-
export = ora;
|