@corellium/corellium-cli 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.gitlab-ci.yml +32 -1
- package/ci/gitlab-build.sh +1 -1
- package/coverage/cobertura-coverage.xml +9 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +101 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov.info +0 -0
- package/index.js +2 -0
- package/package.json +62 -64
- package/src/clients/Instance.js +4 -0
- package/src/commands/extensions/delete.js +2 -1
- package/src/commands/extensions/list.js +3 -2
- package/src/commands/firmware/list.js +3 -2
- package/src/commands/images/create.js +2 -2
- package/src/commands/images/delete.js +1 -0
- package/src/commands/images/list.js +3 -2
- package/src/commands/index.js +0 -2
- package/src/commands/{agent → instances}/apps/index.js +3 -3
- package/src/commands/instances/create.js +9 -3
- package/src/commands/{agent → instances}/file.js +2 -2
- package/src/commands/instances/index.js +6 -1
- package/src/commands/instances/input.js +52 -0
- package/src/commands/instances/list.js +3 -2
- package/src/commands/instances/upgrade.js +2 -2
- package/src/commands/projects/create.js +2 -2
- package/src/commands/projects/delete.js +2 -1
- package/src/commands/projects/list.js +3 -2
- package/src/commands/webplayer/create.js +2 -2
- package/src/commands/webplayer/list.js +2 -2
- package/src/error.js +12 -6
- package/src/table.js +1 -1
- package/src/utils.js +19 -40
- package/node_modules/@babel/cli/LICENSE +0 -22
- package/node_modules/@babel/cli/README.md +0 -19
- package/node_modules/@babel/cli/bin/babel-external-helpers.js +0 -3
- package/node_modules/@babel/cli/bin/babel.js +0 -3
- package/node_modules/@babel/cli/index.js +0 -1
- package/node_modules/@babel/cli/lib/babel/dir.js +0 -285
- package/node_modules/@babel/cli/lib/babel/file.js +0 -273
- package/node_modules/@babel/cli/lib/babel/index.js +0 -20
- package/node_modules/@babel/cli/lib/babel/options.js +0 -285
- package/node_modules/@babel/cli/lib/babel/util.js +0 -181
- package/node_modules/@babel/cli/lib/babel/watcher.js +0 -162
- package/node_modules/@babel/cli/lib/babel-external-helpers.js +0 -43
- package/node_modules/@babel/cli/node_modules/commander/CHANGELOG.md +0 -436
- package/node_modules/@babel/cli/node_modules/commander/LICENSE +0 -22
- package/node_modules/@babel/cli/node_modules/commander/Readme.md +0 -713
- package/node_modules/@babel/cli/node_modules/commander/index.js +0 -1649
- package/node_modules/@babel/cli/node_modules/commander/package.json +0 -76
- package/node_modules/@babel/cli/node_modules/commander/typings/index.d.ts +0 -311
- package/node_modules/@babel/cli/node_modules/make-dir/index.d.ts +0 -39
- package/node_modules/@babel/cli/node_modules/make-dir/index.js +0 -139
- package/node_modules/@babel/cli/node_modules/make-dir/license +0 -9
- package/node_modules/@babel/cli/node_modules/make-dir/package.json +0 -94
- package/node_modules/@babel/cli/node_modules/make-dir/readme.md +0 -123
- package/node_modules/@babel/cli/node_modules/pify/index.js +0 -68
- package/node_modules/@babel/cli/node_modules/pify/license +0 -9
- package/node_modules/@babel/cli/node_modules/pify/package.json +0 -86
- package/node_modules/@babel/cli/node_modules/pify/readme.md +0 -145
- package/node_modules/@babel/cli/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/@babel/cli/node_modules/semver/LICENSE +0 -15
- package/node_modules/@babel/cli/node_modules/semver/README.md +0 -412
- package/node_modules/@babel/cli/node_modules/semver/bin/semver +0 -160
- package/node_modules/@babel/cli/node_modules/semver/package.json +0 -63
- package/node_modules/@babel/cli/node_modules/semver/range.bnf +0 -16
- package/node_modules/@babel/cli/node_modules/semver/semver.js +0 -1483
- package/node_modules/@babel/cli/node_modules/slash/index.js +0 -11
- package/node_modules/@babel/cli/node_modules/slash/license +0 -9
- package/node_modules/@babel/cli/node_modules/slash/package.json +0 -69
- package/node_modules/@babel/cli/node_modules/slash/readme.md +0 -44
- package/node_modules/@babel/cli/package.json +0 -91
- package/node_modules/@corellium/client-api/README.md +0 -209
- package/node_modules/@corellium/client-api/dist/ApiClient.js +0 -780
- package/node_modules/@corellium/client-api/dist/api/CorelliumApi.js +0 -1744
- package/node_modules/@corellium/client-api/dist/index.js +0 -295
- package/node_modules/@corellium/client-api/dist/model/ApiConflictError.js +0 -114
- package/node_modules/@corellium/client-api/dist/model/ApiError.js +0 -101
- package/node_modules/@corellium/client-api/dist/model/ApiNotFoundError.js +0 -111
- package/node_modules/@corellium/client-api/dist/model/ApiToken.js +0 -78
- package/node_modules/@corellium/client-api/dist/model/Bit.js +0 -50
- package/node_modules/@corellium/client-api/dist/model/Credentials.js +0 -91
- package/node_modules/@corellium/client-api/dist/model/Firmware.js +0 -208
- package/node_modules/@corellium/client-api/dist/model/GpioStateDefinition.js +0 -93
- package/node_modules/@corellium/client-api/dist/model/Image.js +0 -249
- package/node_modules/@corellium/client-api/dist/model/Instance.js +0 -313
- package/node_modules/@corellium/client-api/dist/model/InstanceBootOptions.js +0 -134
- package/node_modules/@corellium/client-api/dist/model/InstanceConsoleEndpoint.js +0 -76
- package/node_modules/@corellium/client-api/dist/model/InstanceCreateOptions.js +0 -224
- package/node_modules/@corellium/client-api/dist/model/InstanceNetmonState.js +0 -75
- package/node_modules/@corellium/client-api/dist/model/InstanceReturn.js +0 -92
- package/node_modules/@corellium/client-api/dist/model/InstanceServices.js +0 -77
- package/node_modules/@corellium/client-api/dist/model/InstanceStartOptions.js +0 -76
- package/node_modules/@corellium/client-api/dist/model/InstanceState.js +0 -64
- package/node_modules/@corellium/client-api/dist/model/InstanceStopOptions.js +0 -76
- package/node_modules/@corellium/client-api/dist/model/Model.js +0 -165
- package/node_modules/@corellium/client-api/dist/model/ModelSoftware.js +0 -122
- package/node_modules/@corellium/client-api/dist/model/PeripheralsData.js +0 -147
- package/node_modules/@corellium/client-api/dist/model/Project.js +0 -122
- package/node_modules/@corellium/client-api/dist/model/ProjectQuota.js +0 -93
- package/node_modules/@corellium/client-api/dist/model/ProjectSettings.js +0 -93
- package/node_modules/@corellium/client-api/dist/model/ProjectUsage.js +0 -102
- package/node_modules/@corellium/client-api/dist/model/Snapshot.js +0 -145
- package/node_modules/@corellium/client-api/dist/model/SnapshotCreationOptions.js +0 -79
- package/node_modules/@corellium/client-api/dist/model/SnapshotStatus.js +0 -84
- package/node_modules/@corellium/client-api/dist/model/Token.js +0 -88
- package/node_modules/@corellium/client-api/dist/model/UserError.js +0 -114
- package/node_modules/@corellium/client-api/dist/model/V1SetStateBody.js +0 -80
- package/node_modules/@corellium/client-api/dist/model/VolumeOptions.js +0 -94
- package/node_modules/@corellium/client-api/dist/model/VpnDefinition.js +0 -84
- package/node_modules/@corellium/client-api/package.json +0 -75
- package/node_modules/@jridgewell/resolve-uri/LICENSE +0 -19
- package/node_modules/@jridgewell/resolve-uri/README.md +0 -40
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +0 -242
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +0 -1
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +0 -250
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +0 -1
- package/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +0 -4
- package/node_modules/@jridgewell/resolve-uri/package.json +0 -108
- package/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -21
- package/node_modules/@jridgewell/sourcemap-codec/README.md +0 -200
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -164
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -175
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +0 -1
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +0 -6
- package/node_modules/@jridgewell/sourcemap-codec/package.json +0 -110
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +0 -198
- package/node_modules/@jridgewell/trace-mapping/LICENSE +0 -19
- package/node_modules/@jridgewell/trace-mapping/README.md +0 -252
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +0 -518
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +0 -1
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +0 -532
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +0 -1
- package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +0 -8
- package/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +0 -32
- package/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +0 -7
- package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +0 -1
- package/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +0 -2
- package/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +0 -16
- package/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +0 -4
- package/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +0 -74
- package/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +0 -85
- package/node_modules/@jridgewell/trace-mapping/package.json +0 -112
- package/node_modules/@jridgewell/trace-mapping/src/any-map.ts +0 -166
- package/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +0 -115
- package/node_modules/@jridgewell/trace-mapping/src/by-source.ts +0 -64
- package/node_modules/@jridgewell/trace-mapping/src/resolve.ts +0 -10
- package/node_modules/@jridgewell/trace-mapping/src/sort.ts +0 -45
- package/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +0 -23
- package/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +0 -8
- package/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +0 -405
- package/node_modules/@jridgewell/trace-mapping/src/types.ts +0 -90
- package/node_modules/@nicolo-ribaudo/chokidar-2/README.md +0 -3
- package/node_modules/@nicolo-ribaudo/chokidar-2/build-chokidar.sh +0 -30
- package/node_modules/@nicolo-ribaudo/chokidar-2/dist/main.js +0 -2086
- package/node_modules/@nicolo-ribaudo/chokidar-2/package.json +0 -73
- package/node_modules/@nicolo-ribaudo/chokidar-2/types.d.ts +0 -191
- package/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/package.json +0 -90
- package/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/ansi-styles/index.d.ts +0 -345
- package/node_modules/ansi-styles/index.js +0 -163
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/package.json +0 -96
- package/node_modules/ansi-styles/readme.md +0 -152
- package/node_modules/anymatch/LICENSE +0 -15
- package/node_modules/anymatch/README.md +0 -87
- package/node_modules/anymatch/index.d.ts +0 -19
- package/node_modules/anymatch/index.js +0 -104
- package/node_modules/anymatch/package.json +0 -80
- package/node_modules/asynckit/LICENSE +0 -21
- package/node_modules/asynckit/README.md +0 -233
- package/node_modules/asynckit/bench.js +0 -76
- package/node_modules/asynckit/index.js +0 -6
- package/node_modules/asynckit/lib/abort.js +0 -29
- package/node_modules/asynckit/lib/async.js +0 -34
- package/node_modules/asynckit/lib/defer.js +0 -26
- package/node_modules/asynckit/lib/iterate.js +0 -75
- package/node_modules/asynckit/lib/readable_asynckit.js +0 -91
- package/node_modules/asynckit/lib/readable_parallel.js +0 -25
- package/node_modules/asynckit/lib/readable_serial.js +0 -25
- package/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
- package/node_modules/asynckit/lib/state.js +0 -37
- package/node_modules/asynckit/lib/streamify.js +0 -141
- package/node_modules/asynckit/lib/terminator.js +0 -29
- package/node_modules/asynckit/package.json +0 -96
- package/node_modules/asynckit/parallel.js +0 -43
- package/node_modules/asynckit/serial.js +0 -17
- package/node_modules/asynckit/serialOrdered.js +0 -75
- package/node_modules/asynckit/stream.js +0 -21
- package/node_modules/axios/CHANGELOG.md +0 -943
- package/node_modules/axios/LICENSE +0 -19
- package/node_modules/axios/README.md +0 -991
- package/node_modules/axios/SECURITY.md +0 -5
- package/node_modules/axios/UPGRADE_GUIDE.md +0 -168
- package/node_modules/axios/dist/axios.js +0 -2595
- package/node_modules/axios/dist/axios.map +0 -1
- package/node_modules/axios/dist/axios.min.js +0 -3
- package/node_modules/axios/dist/axios.min.map +0 -1
- package/node_modules/axios/index.d.ts +0 -254
- package/node_modules/axios/index.js +0 -1
- package/node_modules/axios/lib/adapters/README.md +0 -37
- package/node_modules/axios/lib/adapters/http.js +0 -424
- package/node_modules/axios/lib/adapters/xhr.js +0 -222
- package/node_modules/axios/lib/axios.js +0 -64
- package/node_modules/axios/lib/cancel/CancelToken.js +0 -119
- package/node_modules/axios/lib/cancel/CanceledError.js +0 -22
- package/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/axios/lib/core/Axios.js +0 -160
- package/node_modules/axios/lib/core/AxiosError.js +0 -86
- package/node_modules/axios/lib/core/InterceptorManager.js +0 -54
- package/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/node_modules/axios/lib/core/dispatchRequest.js +0 -87
- package/node_modules/axios/lib/core/mergeConfig.js +0 -100
- package/node_modules/axios/lib/core/settle.js +0 -25
- package/node_modules/axios/lib/core/transformData.js +0 -22
- package/node_modules/axios/lib/defaults/env/FormData.js +0 -2
- package/node_modules/axios/lib/defaults/index.js +0 -146
- package/node_modules/axios/lib/defaults/transitional.js +0 -7
- package/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/axios/lib/env/data.js +0 -3
- package/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/axios/lib/helpers/bind.js +0 -11
- package/node_modules/axios/lib/helpers/buildURL.js +0 -70
- package/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/node_modules/axios/lib/helpers/cookies.js +0 -53
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/node_modules/axios/lib/helpers/isAxiosError.js +0 -13
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/node_modules/axios/lib/helpers/null.js +0 -2
- package/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/node_modules/axios/lib/helpers/spread.js +0 -27
- package/node_modules/axios/lib/helpers/toFormData.js +0 -72
- package/node_modules/axios/lib/helpers/validator.js +0 -86
- package/node_modules/axios/lib/utils.js +0 -470
- package/node_modules/axios/package.json +0 -117
- package/node_modules/axios/tsconfig.json +0 -14
- package/node_modules/axios/tslint.json +0 -6
- package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/balanced-match/README.md +0 -97
- package/node_modules/balanced-match/index.js +0 -62
- package/node_modules/balanced-match/package.json +0 -79
- package/node_modules/binary-extensions/binary-extensions.json +0 -260
- package/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
- package/node_modules/binary-extensions/index.d.ts +0 -14
- package/node_modules/binary-extensions/index.js +0 -1
- package/node_modules/binary-extensions/license +0 -9
- package/node_modules/binary-extensions/package.json +0 -74
- package/node_modules/binary-extensions/readme.md +0 -41
- package/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/brace-expansion/README.md +0 -129
- package/node_modules/brace-expansion/index.js +0 -201
- package/node_modules/brace-expansion/package.json +0 -78
- package/node_modules/braces/CHANGELOG.md +0 -184
- package/node_modules/braces/LICENSE +0 -21
- package/node_modules/braces/README.md +0 -593
- package/node_modules/braces/index.js +0 -170
- package/node_modules/braces/lib/compile.js +0 -57
- package/node_modules/braces/lib/constants.js +0 -57
- package/node_modules/braces/lib/expand.js +0 -113
- package/node_modules/braces/lib/parse.js +0 -333
- package/node_modules/braces/lib/stringify.js +0 -32
- package/node_modules/braces/lib/utils.js +0 -112
- package/node_modules/braces/package.json +0 -127
- package/node_modules/call-bind/.eslintignore +0 -1
- package/node_modules/call-bind/.eslintrc +0 -17
- package/node_modules/call-bind/.github/FUNDING.yml +0 -12
- package/node_modules/call-bind/.nycrc +0 -13
- package/node_modules/call-bind/CHANGELOG.md +0 -42
- package/node_modules/call-bind/LICENSE +0 -21
- package/node_modules/call-bind/README.md +0 -2
- package/node_modules/call-bind/callBound.js +0 -15
- package/node_modules/call-bind/index.js +0 -47
- package/node_modules/call-bind/package.json +0 -126
- package/node_modules/call-bind/test/callBound.js +0 -55
- package/node_modules/call-bind/test/index.js +0 -66
- package/node_modules/chokidar/LICENSE +0 -21
- package/node_modules/chokidar/README.md +0 -308
- package/node_modules/chokidar/index.js +0 -973
- package/node_modules/chokidar/lib/constants.js +0 -65
- package/node_modules/chokidar/lib/fsevents-handler.js +0 -524
- package/node_modules/chokidar/lib/nodefs-handler.js +0 -654
- package/node_modules/chokidar/package.json +0 -123
- package/node_modules/chokidar/types/index.d.ts +0 -188
- package/node_modules/cliui/CHANGELOG.md +0 -121
- package/node_modules/cliui/LICENSE.txt +0 -14
- package/node_modules/cliui/README.md +0 -141
- package/node_modules/cliui/build/index.cjs +0 -302
- package/node_modules/cliui/build/lib/index.js +0 -287
- package/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/node_modules/cliui/index.mjs +0 -13
- package/node_modules/cliui/package.json +0 -121
- package/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color-convert/README.md +0 -68
- package/node_modules/color-convert/conversions.js +0 -839
- package/node_modules/color-convert/index.js +0 -81
- package/node_modules/color-convert/package.json +0 -86
- package/node_modules/color-convert/route.js +0 -97
- package/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color-name/README.md +0 -11
- package/node_modules/color-name/index.js +0 -152
- package/node_modules/color-name/package.json +0 -60
- package/node_modules/combined-stream/License +0 -19
- package/node_modules/combined-stream/Readme.md +0 -138
- package/node_modules/combined-stream/lib/combined_stream.js +0 -208
- package/node_modules/combined-stream/package.json +0 -62
- package/node_modules/combined-stream/yarn.lock +0 -17
- package/node_modules/component-emitter/History.md +0 -75
- package/node_modules/component-emitter/LICENSE +0 -24
- package/node_modules/component-emitter/Readme.md +0 -74
- package/node_modules/component-emitter/index.js +0 -175
- package/node_modules/component-emitter/package.json +0 -59
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/concat-map/index.js +0 -13
- package/node_modules/concat-map/package.json +0 -91
- package/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/convert-source-map/LICENSE +0 -23
- package/node_modules/convert-source-map/README.md +0 -120
- package/node_modules/convert-source-map/index.js +0 -136
- package/node_modules/convert-source-map/package.json +0 -75
- package/node_modules/cookiejar/LICENSE +0 -9
- package/node_modules/cookiejar/cookiejar.js +0 -276
- package/node_modules/cookiejar/package.json +0 -58
- package/node_modules/cookiejar/readme.md +0 -60
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -113
- package/node_modules/debug/src/browser.js +0 -269
- package/node_modules/debug/src/common.js +0 -274
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/delayed-stream/.npmignore +0 -1
- package/node_modules/delayed-stream/License +0 -19
- package/node_modules/delayed-stream/Makefile +0 -7
- package/node_modules/delayed-stream/Readme.md +0 -141
- package/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
- package/node_modules/delayed-stream/package.json +0 -65
- package/node_modules/dotenv/CHANGELOG.md +0 -356
- package/node_modules/dotenv/LICENSE +0 -23
- package/node_modules/dotenv/README.md +0 -408
- package/node_modules/dotenv/config.d.ts +0 -1
- package/node_modules/dotenv/config.js +0 -9
- package/node_modules/dotenv/lib/cli-options.js +0 -11
- package/node_modules/dotenv/lib/env-options.js +0 -20
- package/node_modules/dotenv/lib/main.d.ts +0 -73
- package/node_modules/dotenv/lib/main.js +0 -109
- package/node_modules/dotenv/package.json +0 -87
- package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/emoji-regex/README.md +0 -73
- package/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/emoji-regex/index.d.ts +0 -23
- package/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/emoji-regex/package.json +0 -80
- package/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/escalade/dist/index.js +0 -22
- package/node_modules/escalade/dist/index.mjs +0 -22
- package/node_modules/escalade/index.d.ts +0 -3
- package/node_modules/escalade/license +0 -9
- package/node_modules/escalade/package.json +0 -96
- package/node_modules/escalade/readme.md +0 -211
- package/node_modules/escalade/sync/index.d.ts +0 -2
- package/node_modules/escalade/sync/index.js +0 -18
- package/node_modules/escalade/sync/index.mjs +0 -18
- package/node_modules/fast-safe-stringify/.travis.yml +0 -8
- package/node_modules/fast-safe-stringify/CHANGELOG.md +0 -17
- package/node_modules/fast-safe-stringify/LICENSE +0 -23
- package/node_modules/fast-safe-stringify/benchmark.js +0 -137
- package/node_modules/fast-safe-stringify/index.d.ts +0 -23
- package/node_modules/fast-safe-stringify/index.js +0 -229
- package/node_modules/fast-safe-stringify/package.json +0 -90
- package/node_modules/fast-safe-stringify/readme.md +0 -170
- package/node_modules/fast-safe-stringify/test-stable.js +0 -404
- package/node_modules/fast-safe-stringify/test.js +0 -397
- package/node_modules/fill-range/LICENSE +0 -21
- package/node_modules/fill-range/README.md +0 -237
- package/node_modules/fill-range/index.js +0 -249
- package/node_modules/fill-range/package.json +0 -117
- package/node_modules/follow-redirects/LICENSE +0 -18
- package/node_modules/follow-redirects/README.md +0 -155
- package/node_modules/follow-redirects/debug.js +0 -15
- package/node_modules/follow-redirects/http.js +0 -1
- package/node_modules/follow-redirects/https.js +0 -1
- package/node_modules/follow-redirects/index.js +0 -598
- package/node_modules/follow-redirects/package.json +0 -98
- package/node_modules/form-data/License +0 -19
- package/node_modules/form-data/README.md.bak +0 -358
- package/node_modules/form-data/Readme.md +0 -358
- package/node_modules/form-data/index.d.ts +0 -62
- package/node_modules/form-data/lib/browser.js +0 -2
- package/node_modules/form-data/lib/form_data.js +0 -501
- package/node_modules/form-data/lib/populate.js +0 -10
- package/node_modules/form-data/package.json +0 -104
- package/node_modules/formidable/LICENSE +0 -7
- package/node_modules/formidable/Readme.md +0 -448
- package/node_modules/formidable/lib/file.js +0 -81
- package/node_modules/formidable/lib/incoming_form.js +0 -564
- package/node_modules/formidable/lib/index.js +0 -3
- package/node_modules/formidable/lib/json_parser.js +0 -30
- package/node_modules/formidable/lib/multipart_parser.js +0 -332
- package/node_modules/formidable/lib/octet_parser.js +0 -20
- package/node_modules/formidable/lib/querystring_parser.js +0 -27
- package/node_modules/formidable/package.json +0 -63
- package/node_modules/fs-readdir-recursive/LICENSE +0 -22
- package/node_modules/fs-readdir-recursive/README.md +0 -61
- package/node_modules/fs-readdir-recursive/index.js +0 -29
- package/node_modules/fs-readdir-recursive/package.json +0 -60
- package/node_modules/fs.realpath/LICENSE +0 -43
- package/node_modules/fs.realpath/README.md +0 -33
- package/node_modules/fs.realpath/index.js +0 -66
- package/node_modules/fs.realpath/old.js +0 -303
- package/node_modules/fs.realpath/package.json +0 -62
- package/node_modules/function-bind/.editorconfig +0 -20
- package/node_modules/function-bind/.eslintrc +0 -15
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/function-bind/LICENSE +0 -20
- package/node_modules/function-bind/README.md +0 -48
- package/node_modules/function-bind/implementation.js +0 -52
- package/node_modules/function-bind/index.js +0 -5
- package/node_modules/function-bind/package.json +0 -100
- package/node_modules/function-bind/test/.eslintrc +0 -9
- package/node_modules/function-bind/test/index.js +0 -252
- package/node_modules/generate-password/.eslintrc.yml +0 -18
- package/node_modules/generate-password/.github/workflows/nodejs.yml +0 -33
- package/node_modules/generate-password/CHANGELOG.md +0 -79
- package/node_modules/generate-password/LICENSE +0 -21
- package/node_modules/generate-password/README.md +0 -61
- package/node_modules/generate-password/example.js +0 -28
- package/node_modules/generate-password/main.js +0 -1
- package/node_modules/generate-password/package.json +0 -68
- package/node_modules/generate-password/src/generate.d.ts +0 -51
- package/node_modules/generate-password/src/generate.js +0 -152
- package/node_modules/generate-password/test/coverage.sh +0 -17
- package/node_modules/generate-password/test/esm.mjs +0 -13
- package/node_modules/generate-password/test/generator.js +0 -164
- package/node_modules/get-caller-file/LICENSE.md +0 -6
- package/node_modules/get-caller-file/README.md +0 -41
- package/node_modules/get-caller-file/index.d.ts +0 -2
- package/node_modules/get-caller-file/index.js +0 -22
- package/node_modules/get-caller-file/index.js.map +0 -1
- package/node_modules/get-caller-file/package.json +0 -72
- package/node_modules/get-intrinsic/.eslintrc +0 -37
- package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/node_modules/get-intrinsic/.nycrc +0 -9
- package/node_modules/get-intrinsic/CHANGELOG.md +0 -91
- package/node_modules/get-intrinsic/LICENSE +0 -21
- package/node_modules/get-intrinsic/README.md +0 -71
- package/node_modules/get-intrinsic/index.js +0 -334
- package/node_modules/get-intrinsic/package.json +0 -125
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/node_modules/glob/LICENSE +0 -21
- package/node_modules/glob/README.md +0 -378
- package/node_modules/glob/common.js +0 -238
- package/node_modules/glob/glob.js +0 -790
- package/node_modules/glob/package.json +0 -93
- package/node_modules/glob/sync.js +0 -486
- package/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/node_modules/glob-parent/LICENSE +0 -15
- package/node_modules/glob-parent/README.md +0 -137
- package/node_modules/glob-parent/index.js +0 -42
- package/node_modules/glob-parent/package.json +0 -95
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -81
- package/node_modules/has/src/index.js +0 -5
- package/node_modules/has/test/index.js +0 -10
- package/node_modules/has-symbols/.eslintrc +0 -11
- package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/node_modules/has-symbols/.nycrc +0 -9
- package/node_modules/has-symbols/CHANGELOG.md +0 -75
- package/node_modules/has-symbols/LICENSE +0 -21
- package/node_modules/has-symbols/README.md +0 -46
- package/node_modules/has-symbols/index.js +0 -13
- package/node_modules/has-symbols/package.json +0 -134
- package/node_modules/has-symbols/shams.js +0 -42
- package/node_modules/has-symbols/test/index.js +0 -22
- package/node_modules/has-symbols/test/shams/core-js.js +0 -28
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
- package/node_modules/has-symbols/test/tests.js +0 -56
- package/node_modules/inflight/LICENSE +0 -15
- package/node_modules/inflight/README.md +0 -37
- package/node_modules/inflight/inflight.js +0 -54
- package/node_modules/inflight/package.json +0 -61
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -70
- package/node_modules/is-binary-path/index.d.ts +0 -17
- package/node_modules/is-binary-path/index.js +0 -7
- package/node_modules/is-binary-path/license +0 -9
- package/node_modules/is-binary-path/package.json +0 -76
- package/node_modules/is-binary-path/readme.md +0 -34
- package/node_modules/is-extglob/LICENSE +0 -21
- package/node_modules/is-extglob/README.md +0 -107
- package/node_modules/is-extglob/index.js +0 -20
- package/node_modules/is-extglob/package.json +0 -103
- package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/package.json +0 -80
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/is-glob/LICENSE +0 -21
- package/node_modules/is-glob/README.md +0 -206
- package/node_modules/is-glob/index.js +0 -150
- package/node_modules/is-glob/package.json +0 -127
- package/node_modules/is-number/LICENSE +0 -21
- package/node_modules/is-number/README.md +0 -187
- package/node_modules/is-number/index.js +0 -18
- package/node_modules/is-number/package.json +0 -125
- package/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/lru-cache/README.md +0 -166
- package/node_modules/lru-cache/index.js +0 -334
- package/node_modules/lru-cache/package.json +0 -72
- package/node_modules/methods/HISTORY.md +0 -29
- package/node_modules/methods/LICENSE +0 -24
- package/node_modules/methods/README.md +0 -51
- package/node_modules/methods/index.js +0 -69
- package/node_modules/methods/package.json +0 -82
- package/node_modules/mime/CHANGELOG.md +0 -296
- package/node_modules/mime/LICENSE +0 -21
- package/node_modules/mime/Mime.js +0 -97
- package/node_modules/mime/README.md +0 -187
- package/node_modules/mime/cli.js +0 -46
- package/node_modules/mime/index.js +0 -4
- package/node_modules/mime/lite.js +0 -4
- package/node_modules/mime/package.json +0 -84
- package/node_modules/mime/types/other.js +0 -1
- package/node_modules/mime/types/standard.js +0 -1
- package/node_modules/mime-db/HISTORY.md +0 -507
- package/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/mime-db/README.md +0 -100
- package/node_modules/mime-db/db.json +0 -8519
- package/node_modules/mime-db/index.js +0 -12
- package/node_modules/mime-db/package.json +0 -106
- package/node_modules/mime-types/HISTORY.md +0 -397
- package/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/mime-types/README.md +0 -113
- package/node_modules/mime-types/index.js +0 -188
- package/node_modules/mime-types/package.json +0 -92
- package/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/minimatch/README.md +0 -230
- package/node_modules/minimatch/minimatch.js +0 -947
- package/node_modules/minimatch/package.json +0 -73
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -75
- package/node_modules/ms/readme.md +0 -60
- package/node_modules/multi-progress/.gitattributes +0 -17
- package/node_modules/multi-progress/CHANGELOG.md +0 -56
- package/node_modules/multi-progress/LICENSE.txt +0 -21
- package/node_modules/multi-progress/multi-progress.js +0 -98
- package/node_modules/multi-progress/package.json +0 -58
- package/node_modules/multi-progress/readme.md +0 -33
- package/node_modules/normalize-path/LICENSE +0 -21
- package/node_modules/normalize-path/README.md +0 -127
- package/node_modules/normalize-path/index.js +0 -35
- package/node_modules/normalize-path/package.json +0 -119
- package/node_modules/object-inspect/.eslintrc +0 -53
- package/node_modules/object-inspect/.github/FUNDING.yml +0 -12
- package/node_modules/object-inspect/.nycrc +0 -13
- package/node_modules/object-inspect/CHANGELOG.md +0 -360
- package/node_modules/object-inspect/LICENSE +0 -21
- package/node_modules/object-inspect/example/all.js +0 -23
- package/node_modules/object-inspect/example/circular.js +0 -6
- package/node_modules/object-inspect/example/fn.js +0 -5
- package/node_modules/object-inspect/example/inspect.js +0 -10
- package/node_modules/object-inspect/index.js +0 -512
- package/node_modules/object-inspect/package-support.json +0 -20
- package/node_modules/object-inspect/package.json +0 -126
- package/node_modules/object-inspect/readme.markdown +0 -86
- package/node_modules/object-inspect/test/bigint.js +0 -58
- package/node_modules/object-inspect/test/browser/dom.js +0 -15
- package/node_modules/object-inspect/test/circular.js +0 -16
- package/node_modules/object-inspect/test/deep.js +0 -12
- package/node_modules/object-inspect/test/element.js +0 -53
- package/node_modules/object-inspect/test/err.js +0 -48
- package/node_modules/object-inspect/test/fakes.js +0 -29
- package/node_modules/object-inspect/test/fn.js +0 -76
- package/node_modules/object-inspect/test/has.js +0 -15
- package/node_modules/object-inspect/test/holes.js +0 -15
- package/node_modules/object-inspect/test/indent-option.js +0 -271
- package/node_modules/object-inspect/test/inspect.js +0 -139
- package/node_modules/object-inspect/test/lowbyte.js +0 -12
- package/node_modules/object-inspect/test/number.js +0 -58
- package/node_modules/object-inspect/test/quoteStyle.js +0 -17
- package/node_modules/object-inspect/test/toStringTag.js +0 -40
- package/node_modules/object-inspect/test/undef.js +0 -12
- package/node_modules/object-inspect/test/values.js +0 -211
- package/node_modules/object-inspect/test-core-js.js +0 -26
- package/node_modules/object-inspect/util.inspect.js +0 -1
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -74
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/license +0 -21
- package/node_modules/path-is-absolute/package.json +0 -78
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/picomatch/CHANGELOG.md +0 -136
- package/node_modules/picomatch/LICENSE +0 -21
- package/node_modules/picomatch/README.md +0 -708
- package/node_modules/picomatch/index.js +0 -3
- package/node_modules/picomatch/lib/constants.js +0 -179
- package/node_modules/picomatch/lib/parse.js +0 -1091
- package/node_modules/picomatch/lib/picomatch.js +0 -342
- package/node_modules/picomatch/lib/scan.js +0 -391
- package/node_modules/picomatch/lib/utils.js +0 -64
- package/node_modules/picomatch/package.json +0 -117
- package/node_modules/progress/CHANGELOG.md +0 -115
- package/node_modules/progress/LICENSE +0 -22
- package/node_modules/progress/Makefile +0 -8
- package/node_modules/progress/Readme.md +0 -146
- package/node_modules/progress/index.js +0 -1
- package/node_modules/progress/lib/node-progress.js +0 -236
- package/node_modules/progress/package.json +0 -74
- package/node_modules/qs/.editorconfig +0 -43
- package/node_modules/qs/.eslintrc +0 -38
- package/node_modules/qs/.github/FUNDING.yml +0 -12
- package/node_modules/qs/.nycrc +0 -13
- package/node_modules/qs/CHANGELOG.md +0 -546
- package/node_modules/qs/LICENSE.md +0 -29
- package/node_modules/qs/README.md +0 -625
- package/node_modules/qs/dist/qs.js +0 -2054
- package/node_modules/qs/lib/formats.js +0 -23
- package/node_modules/qs/lib/index.js +0 -11
- package/node_modules/qs/lib/parse.js +0 -263
- package/node_modules/qs/lib/stringify.js +0 -326
- package/node_modules/qs/lib/utils.js +0 -252
- package/node_modules/qs/package.json +0 -108
- package/node_modules/qs/test/parse.js +0 -855
- package/node_modules/qs/test/stringify.js +0 -909
- package/node_modules/qs/test/utils.js +0 -136
- package/node_modules/readdirp/LICENSE +0 -21
- package/node_modules/readdirp/README.md +0 -122
- package/node_modules/readdirp/index.d.ts +0 -43
- package/node_modules/readdirp/index.js +0 -287
- package/node_modules/readdirp/package.json +0 -162
- package/node_modules/require-directory/.jshintrc +0 -67
- package/node_modules/require-directory/.npmignore +0 -1
- package/node_modules/require-directory/.travis.yml +0 -3
- package/node_modules/require-directory/LICENSE +0 -22
- package/node_modules/require-directory/README.markdown +0 -184
- package/node_modules/require-directory/index.js +0 -86
- package/node_modules/require-directory/package.json +0 -72
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/safe-buffer/package.json +0 -69
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -568
- package/node_modules/semver/bin/semver.js +0 -183
- package/node_modules/semver/classes/comparator.js +0 -136
- package/node_modules/semver/classes/index.js +0 -5
- package/node_modules/semver/classes/range.js +0 -519
- package/node_modules/semver/classes/semver.js +0 -287
- package/node_modules/semver/functions/clean.js +0 -6
- package/node_modules/semver/functions/cmp.js +0 -52
- package/node_modules/semver/functions/coerce.js +0 -52
- package/node_modules/semver/functions/compare-build.js +0 -7
- package/node_modules/semver/functions/compare-loose.js +0 -3
- package/node_modules/semver/functions/compare.js +0 -5
- package/node_modules/semver/functions/diff.js +0 -23
- package/node_modules/semver/functions/eq.js +0 -3
- package/node_modules/semver/functions/gt.js +0 -3
- package/node_modules/semver/functions/gte.js +0 -3
- package/node_modules/semver/functions/inc.js +0 -18
- package/node_modules/semver/functions/lt.js +0 -3
- package/node_modules/semver/functions/lte.js +0 -3
- package/node_modules/semver/functions/major.js +0 -3
- package/node_modules/semver/functions/minor.js +0 -3
- package/node_modules/semver/functions/neq.js +0 -3
- package/node_modules/semver/functions/parse.js +0 -33
- package/node_modules/semver/functions/patch.js +0 -3
- package/node_modules/semver/functions/prerelease.js +0 -6
- package/node_modules/semver/functions/rcompare.js +0 -3
- package/node_modules/semver/functions/rsort.js +0 -3
- package/node_modules/semver/functions/satisfies.js +0 -10
- package/node_modules/semver/functions/sort.js +0 -3
- package/node_modules/semver/functions/valid.js +0 -6
- package/node_modules/semver/index.js +0 -48
- package/node_modules/semver/internal/constants.js +0 -17
- package/node_modules/semver/internal/debug.js +0 -9
- package/node_modules/semver/internal/identifiers.js +0 -23
- package/node_modules/semver/internal/parse-options.js +0 -11
- package/node_modules/semver/internal/re.js +0 -182
- package/node_modules/semver/package.json +0 -113
- package/node_modules/semver/preload.js +0 -2
- package/node_modules/semver/range.bnf +0 -16
- package/node_modules/semver/ranges/gtr.js +0 -4
- package/node_modules/semver/ranges/intersects.js +0 -7
- package/node_modules/semver/ranges/ltr.js +0 -4
- package/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/node_modules/semver/ranges/min-version.js +0 -61
- package/node_modules/semver/ranges/outside.js +0 -80
- package/node_modules/semver/ranges/simplify.js +0 -47
- package/node_modules/semver/ranges/subset.js +0 -244
- package/node_modules/semver/ranges/to-comparators.js +0 -8
- package/node_modules/semver/ranges/valid.js +0 -11
- package/node_modules/side-channel/.eslintignore +0 -1
- package/node_modules/side-channel/.eslintrc +0 -11
- package/node_modules/side-channel/.github/FUNDING.yml +0 -12
- package/node_modules/side-channel/.nycrc +0 -13
- package/node_modules/side-channel/CHANGELOG.md +0 -65
- package/node_modules/side-channel/LICENSE +0 -21
- package/node_modules/side-channel/README.md +0 -2
- package/node_modules/side-channel/index.js +0 -124
- package/node_modules/side-channel/package.json +0 -99
- package/node_modules/side-channel/test/index.js +0 -78
- package/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/string-width/index.js +0 -47
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/package.json +0 -98
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -64
- package/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/package.json +0 -95
- package/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/superagent/.browserslistrc +0 -5
- package/node_modules/superagent/.dist.babelrc +0 -10
- package/node_modules/superagent/.dist.eslintrc +0 -35
- package/node_modules/superagent/.editorconfig +0 -9
- package/node_modules/superagent/.gitattributes +0 -1
- package/node_modules/superagent/.lib.babelrc +0 -11
- package/node_modules/superagent/.lib.eslintrc +0 -24
- package/node_modules/superagent/.remarkignore +0 -3
- package/node_modules/superagent/.zuul.yml +0 -16
- package/node_modules/superagent/CONTRIBUTING.md +0 -7
- package/node_modules/superagent/HISTORY.md +0 -692
- package/node_modules/superagent/LICENSE +0 -22
- package/node_modules/superagent/Makefile +0 -60
- package/node_modules/superagent/README.md +0 -266
- package/node_modules/superagent/dist/superagent.js +0 -2418
- package/node_modules/superagent/dist/superagent.min.js +0 -1
- package/node_modules/superagent/docs/head.html +0 -11
- package/node_modules/superagent/docs/images/bg.png +0 -0
- package/node_modules/superagent/docs/index.md +0 -736
- package/node_modules/superagent/docs/style.css +0 -87
- package/node_modules/superagent/docs/tail.html +0 -36
- package/node_modules/superagent/docs/test.html +0 -5072
- package/node_modules/superagent/index.html +0 -47
- package/node_modules/superagent/lib/agent-base.js +0 -42
- package/node_modules/superagent/lib/client.js +0 -1020
- package/node_modules/superagent/lib/is-object.js +0 -17
- package/node_modules/superagent/lib/node/agent.js +0 -113
- package/node_modules/superagent/lib/node/http2wrapper.js +0 -218
- package/node_modules/superagent/lib/node/index.js +0 -1376
- package/node_modules/superagent/lib/node/parsers/image.js +0 -13
- package/node_modules/superagent/lib/node/parsers/index.js +0 -12
- package/node_modules/superagent/lib/node/parsers/json.js +0 -26
- package/node_modules/superagent/lib/node/parsers/text.js +0 -11
- package/node_modules/superagent/lib/node/parsers/urlencoded.js +0 -22
- package/node_modules/superagent/lib/node/response.js +0 -126
- package/node_modules/superagent/lib/node/unzip.js +0 -72
- package/node_modules/superagent/lib/request-base.js +0 -757
- package/node_modules/superagent/lib/response-base.js +0 -131
- package/node_modules/superagent/lib/utils.js +0 -71
- package/node_modules/superagent/node_modules/form-data/License +0 -19
- package/node_modules/superagent/node_modules/form-data/README.md.bak +0 -356
- package/node_modules/superagent/node_modules/form-data/Readme.md +0 -356
- package/node_modules/superagent/node_modules/form-data/index.d.ts +0 -62
- package/node_modules/superagent/node_modules/form-data/lib/browser.js +0 -2
- package/node_modules/superagent/node_modules/form-data/lib/form_data.js +0 -498
- package/node_modules/superagent/node_modules/form-data/lib/populate.js +0 -10
- package/node_modules/superagent/node_modules/form-data/package.json +0 -104
- package/node_modules/superagent/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/superagent/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/superagent/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/superagent/node_modules/readable-stream/README.md +0 -106
- package/node_modules/superagent/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/superagent/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/superagent/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_writable.js +0 -697
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/superagent/node_modules/readable-stream/package.json +0 -100
- package/node_modules/superagent/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/superagent/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/superagent/package.json +0 -272
- package/node_modules/to-regex-range/LICENSE +0 -21
- package/node_modules/to-regex-range/README.md +0 -305
- package/node_modules/to-regex-range/index.js +0 -288
- package/node_modules/to-regex-range/package.json +0 -128
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -61
- package/node_modules/uuid/CHANGELOG.md +0 -229
- package/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -505
- package/node_modules/uuid/dist/bin/uuid +0 -2
- package/node_modules/uuid/dist/esm-browser/index.js +0 -9
- package/node_modules/uuid/dist/esm-browser/md5.js +0 -215
- package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +0 -35
- package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +0 -19
- package/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
- package/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
- package/node_modules/uuid/dist/esm-browser/v1.js +0 -95
- package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
- package/node_modules/uuid/dist/esm-browser/v35.js +0 -64
- package/node_modules/uuid/dist/esm-browser/v4.js +0 -24
- package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -7
- package/node_modules/uuid/dist/esm-browser/version.js +0 -11
- package/node_modules/uuid/dist/esm-node/index.js +0 -9
- package/node_modules/uuid/dist/esm-node/md5.js +0 -13
- package/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/node_modules/uuid/dist/esm-node/parse.js +0 -35
- package/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/node_modules/uuid/dist/esm-node/rng.js +0 -12
- package/node_modules/uuid/dist/esm-node/sha1.js +0 -13
- package/node_modules/uuid/dist/esm-node/stringify.js +0 -29
- package/node_modules/uuid/dist/esm-node/v1.js +0 -95
- package/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/node_modules/uuid/dist/esm-node/v35.js +0 -64
- package/node_modules/uuid/dist/esm-node/v4.js +0 -24
- package/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/node_modules/uuid/dist/esm-node/validate.js +0 -7
- package/node_modules/uuid/dist/esm-node/version.js +0 -11
- package/node_modules/uuid/dist/index.js +0 -79
- package/node_modules/uuid/dist/md5-browser.js +0 -223
- package/node_modules/uuid/dist/md5.js +0 -23
- package/node_modules/uuid/dist/nil.js +0 -8
- package/node_modules/uuid/dist/parse.js +0 -45
- package/node_modules/uuid/dist/regex.js +0 -8
- package/node_modules/uuid/dist/rng-browser.js +0 -26
- package/node_modules/uuid/dist/rng.js +0 -24
- package/node_modules/uuid/dist/sha1-browser.js +0 -104
- package/node_modules/uuid/dist/sha1.js +0 -23
- package/node_modules/uuid/dist/stringify.js +0 -39
- package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- package/node_modules/uuid/dist/uuid-bin.js +0 -85
- package/node_modules/uuid/dist/v1.js +0 -107
- package/node_modules/uuid/dist/v3.js +0 -16
- package/node_modules/uuid/dist/v35.js +0 -78
- package/node_modules/uuid/dist/v4.js +0 -37
- package/node_modules/uuid/dist/v5.js +0 -16
- package/node_modules/uuid/dist/validate.js +0 -17
- package/node_modules/uuid/dist/version.js +0 -21
- package/node_modules/uuid/package.json +0 -167
- package/node_modules/uuid/wrapper.mjs +0 -10
- package/node_modules/wrap-ansi/index.js +0 -216
- package/node_modules/wrap-ansi/license +0 -9
- package/node_modules/wrap-ansi/package.json +0 -98
- package/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -62
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/y18n/CHANGELOG.md +0 -100
- package/node_modules/y18n/LICENSE +0 -13
- package/node_modules/y18n/README.md +0 -127
- package/node_modules/y18n/build/index.cjs +0 -203
- package/node_modules/y18n/build/lib/cjs.js +0 -6
- package/node_modules/y18n/build/lib/index.js +0 -174
- package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
- package/node_modules/y18n/index.mjs +0 -8
- package/node_modules/y18n/package.json +0 -104
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/README.md +0 -204
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/package.json +0 -68
- package/node_modules/yallist/yallist.js +0 -426
- package/node_modules/yargs/LICENSE +0 -21
- package/node_modules/yargs/README.md +0 -204
- package/node_modules/yargs/browser.mjs +0 -7
- package/node_modules/yargs/build/index.cjs +0 -1
- package/node_modules/yargs/build/lib/argsert.js +0 -62
- package/node_modules/yargs/build/lib/command.js +0 -447
- package/node_modules/yargs/build/lib/completion-templates.js +0 -48
- package/node_modules/yargs/build/lib/completion.js +0 -236
- package/node_modules/yargs/build/lib/middleware.js +0 -88
- package/node_modules/yargs/build/lib/parse-command.js +0 -32
- package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
- package/node_modules/yargs/build/lib/usage.js +0 -579
- package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
- package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
- package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
- package/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
- package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
- package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
- package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
- package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
- package/node_modules/yargs/build/lib/validation.js +0 -305
- package/node_modules/yargs/build/lib/yargs-factory.js +0 -1497
- package/node_modules/yargs/build/lib/yerror.js +0 -9
- package/node_modules/yargs/helpers/helpers.mjs +0 -10
- package/node_modules/yargs/helpers/index.js +0 -14
- package/node_modules/yargs/helpers/package.json +0 -3
- package/node_modules/yargs/index.cjs +0 -53
- package/node_modules/yargs/index.mjs +0 -8
- package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -95
- package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
- package/node_modules/yargs/locales/be.json +0 -46
- package/node_modules/yargs/locales/de.json +0 -46
- package/node_modules/yargs/locales/en.json +0 -51
- package/node_modules/yargs/locales/es.json +0 -46
- package/node_modules/yargs/locales/fi.json +0 -49
- package/node_modules/yargs/locales/fr.json +0 -53
- package/node_modules/yargs/locales/hi.json +0 -49
- package/node_modules/yargs/locales/hu.json +0 -46
- package/node_modules/yargs/locales/id.json +0 -50
- package/node_modules/yargs/locales/it.json +0 -46
- package/node_modules/yargs/locales/ja.json +0 -51
- package/node_modules/yargs/locales/ko.json +0 -49
- package/node_modules/yargs/locales/nb.json +0 -44
- package/node_modules/yargs/locales/nl.json +0 -49
- package/node_modules/yargs/locales/nn.json +0 -44
- package/node_modules/yargs/locales/pirate.json +0 -13
- package/node_modules/yargs/locales/pl.json +0 -49
- package/node_modules/yargs/locales/pt.json +0 -45
- package/node_modules/yargs/locales/pt_BR.json +0 -48
- package/node_modules/yargs/locales/ru.json +0 -51
- package/node_modules/yargs/locales/th.json +0 -46
- package/node_modules/yargs/locales/tr.json +0 -48
- package/node_modules/yargs/locales/uk_UA.json +0 -51
- package/node_modules/yargs/locales/uz.json +0 -52
- package/node_modules/yargs/locales/zh_CN.json +0 -48
- package/node_modules/yargs/locales/zh_TW.json +0 -51
- package/node_modules/yargs/package.json +0 -154
- package/node_modules/yargs/yargs +0 -9
- package/node_modules/yargs/yargs.mjs +0 -10
- package/node_modules/yargs-parser/CHANGELOG.md +0 -287
- package/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/yargs-parser/README.md +0 -518
- package/node_modules/yargs-parser/browser.js +0 -29
- package/node_modules/yargs-parser/build/index.cjs +0 -1048
- package/node_modules/yargs-parser/build/lib/index.js +0 -60
- package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
- package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
- package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
- package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
- package/node_modules/yargs-parser/package.json +0 -123
- package/src/clients/TrialAccount.js +0 -76
- package/src/commands/agent/index.js +0 -27
- package/src/commands/signup.js +0 -104
- package/test.sh +0 -2
- /package/src/commands/{agent → instances}/apps/install.js +0 -0
- /package/src/commands/{agent → instances}/ready.js +0 -0
@@ -1,274 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var GetIntrinsic = require('../');
|
4
|
-
|
5
|
-
var test = require('tape');
|
6
|
-
var forEach = require('for-each');
|
7
|
-
var debug = require('object-inspect');
|
8
|
-
var generatorFns = require('make-generator-function')();
|
9
|
-
var asyncFns = require('make-async-function').list();
|
10
|
-
var asyncGenFns = require('make-async-generator-function')();
|
11
|
-
var mockProperty = require('mock-property');
|
12
|
-
|
13
|
-
var callBound = require('call-bind/callBound');
|
14
|
-
var v = require('es-value-fixtures');
|
15
|
-
var $gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
|
16
|
-
var DefinePropertyOrThrow = require('es-abstract/2021/DefinePropertyOrThrow');
|
17
|
-
|
18
|
-
var $isProto = callBound('%Object.prototype.isPrototypeOf%');
|
19
|
-
|
20
|
-
test('export', function (t) {
|
21
|
-
t.equal(typeof GetIntrinsic, 'function', 'it is a function');
|
22
|
-
t.equal(GetIntrinsic.length, 2, 'function has length of 2');
|
23
|
-
|
24
|
-
t.end();
|
25
|
-
});
|
26
|
-
|
27
|
-
test('throws', function (t) {
|
28
|
-
t['throws'](
|
29
|
-
function () { GetIntrinsic('not an intrinsic'); },
|
30
|
-
SyntaxError,
|
31
|
-
'nonexistent intrinsic throws a syntax error'
|
32
|
-
);
|
33
|
-
|
34
|
-
t['throws'](
|
35
|
-
function () { GetIntrinsic(''); },
|
36
|
-
TypeError,
|
37
|
-
'empty string intrinsic throws a type error'
|
38
|
-
);
|
39
|
-
|
40
|
-
t['throws'](
|
41
|
-
function () { GetIntrinsic('.'); },
|
42
|
-
SyntaxError,
|
43
|
-
'"just a dot" intrinsic throws a syntax error'
|
44
|
-
);
|
45
|
-
|
46
|
-
t['throws'](
|
47
|
-
function () { GetIntrinsic('%String'); },
|
48
|
-
SyntaxError,
|
49
|
-
'Leading % without trailing % throws a syntax error'
|
50
|
-
);
|
51
|
-
|
52
|
-
t['throws'](
|
53
|
-
function () { GetIntrinsic('String%'); },
|
54
|
-
SyntaxError,
|
55
|
-
'Trailing % without leading % throws a syntax error'
|
56
|
-
);
|
57
|
-
|
58
|
-
t['throws'](
|
59
|
-
function () { GetIntrinsic("String['prototype]"); },
|
60
|
-
SyntaxError,
|
61
|
-
'Dynamic property access is disallowed for intrinsics (unterminated string)'
|
62
|
-
);
|
63
|
-
|
64
|
-
t['throws'](
|
65
|
-
function () { GetIntrinsic('%Proxy.prototype.undefined%'); },
|
66
|
-
TypeError,
|
67
|
-
"Throws when middle part doesn't exist (%Proxy.prototype.undefined%)"
|
68
|
-
);
|
69
|
-
|
70
|
-
t['throws'](
|
71
|
-
function () { GetIntrinsic('%Array.prototype%garbage%'); },
|
72
|
-
SyntaxError,
|
73
|
-
'Throws with extra percent signs'
|
74
|
-
);
|
75
|
-
|
76
|
-
t['throws'](
|
77
|
-
function () { GetIntrinsic('%Array.prototype%push%'); },
|
78
|
-
SyntaxError,
|
79
|
-
'Throws with extra percent signs, even on an existing intrinsic'
|
80
|
-
);
|
81
|
-
|
82
|
-
forEach(v.nonStrings, function (nonString) {
|
83
|
-
t['throws'](
|
84
|
-
function () { GetIntrinsic(nonString); },
|
85
|
-
TypeError,
|
86
|
-
debug(nonString) + ' is not a String'
|
87
|
-
);
|
88
|
-
});
|
89
|
-
|
90
|
-
forEach(v.nonBooleans, function (nonBoolean) {
|
91
|
-
t['throws'](
|
92
|
-
function () { GetIntrinsic('%', nonBoolean); },
|
93
|
-
TypeError,
|
94
|
-
debug(nonBoolean) + ' is not a Boolean'
|
95
|
-
);
|
96
|
-
});
|
97
|
-
|
98
|
-
forEach([
|
99
|
-
'toString',
|
100
|
-
'propertyIsEnumerable',
|
101
|
-
'hasOwnProperty'
|
102
|
-
], function (objectProtoMember) {
|
103
|
-
t['throws'](
|
104
|
-
function () { GetIntrinsic(objectProtoMember); },
|
105
|
-
SyntaxError,
|
106
|
-
debug(objectProtoMember) + ' is not an intrinsic'
|
107
|
-
);
|
108
|
-
});
|
109
|
-
|
110
|
-
t.end();
|
111
|
-
});
|
112
|
-
|
113
|
-
test('base intrinsics', function (t) {
|
114
|
-
t.equal(GetIntrinsic('%Object%'), Object, '%Object% yields Object');
|
115
|
-
t.equal(GetIntrinsic('Object'), Object, 'Object yields Object');
|
116
|
-
t.equal(GetIntrinsic('%Array%'), Array, '%Array% yields Array');
|
117
|
-
t.equal(GetIntrinsic('Array'), Array, 'Array yields Array');
|
118
|
-
|
119
|
-
t.end();
|
120
|
-
});
|
121
|
-
|
122
|
-
test('dotted paths', function (t) {
|
123
|
-
t.equal(GetIntrinsic('%Object.prototype.toString%'), Object.prototype.toString, '%Object.prototype.toString% yields Object.prototype.toString');
|
124
|
-
t.equal(GetIntrinsic('Object.prototype.toString'), Object.prototype.toString, 'Object.prototype.toString yields Object.prototype.toString');
|
125
|
-
t.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push, '%Array.prototype.push% yields Array.prototype.push');
|
126
|
-
t.equal(GetIntrinsic('Array.prototype.push'), Array.prototype.push, 'Array.prototype.push yields Array.prototype.push');
|
127
|
-
|
128
|
-
test('underscore paths are aliases for dotted paths', { skip: !Object.isFrozen || Object.isFrozen(Object.prototype) }, function (st) {
|
129
|
-
var original = GetIntrinsic('%ObjProto_toString%');
|
130
|
-
|
131
|
-
forEach([
|
132
|
-
'%Object.prototype.toString%',
|
133
|
-
'Object.prototype.toString',
|
134
|
-
'%ObjectPrototype.toString%',
|
135
|
-
'ObjectPrototype.toString',
|
136
|
-
'%ObjProto_toString%',
|
137
|
-
'ObjProto_toString'
|
138
|
-
], function (name) {
|
139
|
-
DefinePropertyOrThrow(Object.prototype, 'toString', {
|
140
|
-
'[[Value]]': function toString() {
|
141
|
-
return original.apply(this, arguments);
|
142
|
-
}
|
143
|
-
});
|
144
|
-
st.equal(GetIntrinsic(name), original, name + ' yields original Object.prototype.toString');
|
145
|
-
});
|
146
|
-
|
147
|
-
DefinePropertyOrThrow(Object.prototype, 'toString', { '[[Value]]': original });
|
148
|
-
st.end();
|
149
|
-
});
|
150
|
-
|
151
|
-
test('dotted paths cache', { skip: !Object.isFrozen || Object.isFrozen(Object.prototype) }, function (st) {
|
152
|
-
var original = GetIntrinsic('%Object.prototype.propertyIsEnumerable%');
|
153
|
-
|
154
|
-
forEach([
|
155
|
-
'%Object.prototype.propertyIsEnumerable%',
|
156
|
-
'Object.prototype.propertyIsEnumerable',
|
157
|
-
'%ObjectPrototype.propertyIsEnumerable%',
|
158
|
-
'ObjectPrototype.propertyIsEnumerable'
|
159
|
-
], function (name) {
|
160
|
-
var restore = mockProperty(Object.prototype, 'propertyIsEnumerable', {
|
161
|
-
value: function propertyIsEnumerable() {
|
162
|
-
return original.apply(this, arguments);
|
163
|
-
}
|
164
|
-
});
|
165
|
-
st.equal(GetIntrinsic(name), original, name + ' yields cached Object.prototype.propertyIsEnumerable');
|
166
|
-
|
167
|
-
restore();
|
168
|
-
});
|
169
|
-
|
170
|
-
st.end();
|
171
|
-
});
|
172
|
-
|
173
|
-
test('dotted path reports correct error', function (st) {
|
174
|
-
st['throws'](function () {
|
175
|
-
GetIntrinsic('%NonExistentIntrinsic.prototype.property%');
|
176
|
-
}, /%NonExistentIntrinsic%/, 'The base intrinsic of %NonExistentIntrinsic.prototype.property% is %NonExistentIntrinsic%');
|
177
|
-
|
178
|
-
st['throws'](function () {
|
179
|
-
GetIntrinsic('%NonExistentIntrinsicPrototype.property%');
|
180
|
-
}, /%NonExistentIntrinsicPrototype%/, 'The base intrinsic of %NonExistentIntrinsicPrototype.property% is %NonExistentIntrinsicPrototype%');
|
181
|
-
|
182
|
-
st.end();
|
183
|
-
});
|
184
|
-
|
185
|
-
t.end();
|
186
|
-
});
|
187
|
-
|
188
|
-
test('accessors', { skip: !$gOPD || typeof Map !== 'function' }, function (t) {
|
189
|
-
var actual = $gOPD(Map.prototype, 'size');
|
190
|
-
t.ok(actual, 'Map.prototype.size has a descriptor');
|
191
|
-
t.equal(typeof actual.get, 'function', 'Map.prototype.size has a getter function');
|
192
|
-
t.equal(GetIntrinsic('%Map.prototype.size%'), actual.get, '%Map.prototype.size% yields the getter for it');
|
193
|
-
t.equal(GetIntrinsic('Map.prototype.size'), actual.get, 'Map.prototype.size yields the getter for it');
|
194
|
-
|
195
|
-
t.end();
|
196
|
-
});
|
197
|
-
|
198
|
-
test('generator functions', { skip: !generatorFns.length }, function (t) {
|
199
|
-
var $GeneratorFunction = GetIntrinsic('%GeneratorFunction%');
|
200
|
-
var $GeneratorFunctionPrototype = GetIntrinsic('%Generator%');
|
201
|
-
var $GeneratorPrototype = GetIntrinsic('%GeneratorPrototype%');
|
202
|
-
|
203
|
-
forEach(generatorFns, function (genFn) {
|
204
|
-
var fnName = genFn.name;
|
205
|
-
fnName = fnName ? "'" + fnName + "'" : 'genFn';
|
206
|
-
|
207
|
-
t.ok(genFn instanceof $GeneratorFunction, fnName + ' instanceof %GeneratorFunction%');
|
208
|
-
t.ok($isProto($GeneratorFunctionPrototype, genFn), '%Generator% is prototype of ' + fnName);
|
209
|
-
t.ok($isProto($GeneratorPrototype, genFn.prototype), '%GeneratorPrototype% is prototype of ' + fnName + '.prototype');
|
210
|
-
});
|
211
|
-
|
212
|
-
t.end();
|
213
|
-
});
|
214
|
-
|
215
|
-
test('async functions', { skip: !asyncFns.length }, function (t) {
|
216
|
-
var $AsyncFunction = GetIntrinsic('%AsyncFunction%');
|
217
|
-
var $AsyncFunctionPrototype = GetIntrinsic('%AsyncFunctionPrototype%');
|
218
|
-
|
219
|
-
forEach(asyncFns, function (asyncFn) {
|
220
|
-
var fnName = asyncFn.name;
|
221
|
-
fnName = fnName ? "'" + fnName + "'" : 'asyncFn';
|
222
|
-
|
223
|
-
t.ok(asyncFn instanceof $AsyncFunction, fnName + ' instanceof %AsyncFunction%');
|
224
|
-
t.ok($isProto($AsyncFunctionPrototype, asyncFn), '%AsyncFunctionPrototype% is prototype of ' + fnName);
|
225
|
-
});
|
226
|
-
|
227
|
-
t.end();
|
228
|
-
});
|
229
|
-
|
230
|
-
test('async generator functions', { skip: asyncGenFns.length === 0 }, function (t) {
|
231
|
-
var $AsyncGeneratorFunction = GetIntrinsic('%AsyncGeneratorFunction%');
|
232
|
-
var $AsyncGeneratorFunctionPrototype = GetIntrinsic('%AsyncGenerator%');
|
233
|
-
var $AsyncGeneratorPrototype = GetIntrinsic('%AsyncGeneratorPrototype%');
|
234
|
-
|
235
|
-
forEach(asyncGenFns, function (asyncGenFn) {
|
236
|
-
var fnName = asyncGenFn.name;
|
237
|
-
fnName = fnName ? "'" + fnName + "'" : 'asyncGenFn';
|
238
|
-
|
239
|
-
t.ok(asyncGenFn instanceof $AsyncGeneratorFunction, fnName + ' instanceof %AsyncGeneratorFunction%');
|
240
|
-
t.ok($isProto($AsyncGeneratorFunctionPrototype, asyncGenFn), '%AsyncGenerator% is prototype of ' + fnName);
|
241
|
-
t.ok($isProto($AsyncGeneratorPrototype, asyncGenFn.prototype), '%AsyncGeneratorPrototype% is prototype of ' + fnName + '.prototype');
|
242
|
-
});
|
243
|
-
|
244
|
-
t.end();
|
245
|
-
});
|
246
|
-
|
247
|
-
test('%ThrowTypeError%', function (t) {
|
248
|
-
var $ThrowTypeError = GetIntrinsic('%ThrowTypeError%');
|
249
|
-
|
250
|
-
t.equal(typeof $ThrowTypeError, 'function', 'is a function');
|
251
|
-
t['throws'](
|
252
|
-
$ThrowTypeError,
|
253
|
-
TypeError,
|
254
|
-
'%ThrowTypeError% throws a TypeError'
|
255
|
-
);
|
256
|
-
|
257
|
-
t.end();
|
258
|
-
});
|
259
|
-
|
260
|
-
test('allowMissing', { skip: asyncGenFns.length > 0 }, function (t) {
|
261
|
-
t['throws'](
|
262
|
-
function () { GetIntrinsic('%AsyncGeneratorPrototype%'); },
|
263
|
-
TypeError,
|
264
|
-
'throws when missing'
|
265
|
-
);
|
266
|
-
|
267
|
-
t.equal(
|
268
|
-
GetIntrinsic('%AsyncGeneratorPrototype%', true),
|
269
|
-
undefined,
|
270
|
-
'does not throw when allowMissing'
|
271
|
-
);
|
272
|
-
|
273
|
-
t.end();
|
274
|
-
});
|
@@ -1,21 +0,0 @@
|
|
1
|
-
The ISC License
|
2
|
-
|
3
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
4
|
-
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
8
|
-
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
16
|
-
|
17
|
-
## Glob Logo
|
18
|
-
|
19
|
-
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
|
20
|
-
under a Creative Commons Attribution-ShareAlike 4.0 International License
|
21
|
-
https://creativecommons.org/licenses/by-sa/4.0/
|
@@ -1,378 +0,0 @@
|
|
1
|
-
# Glob
|
2
|
-
|
3
|
-
Match files using the patterns the shell uses, like stars and stuff.
|
4
|
-
|
5
|
-
[![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Build Status](https://ci.appveyor.com/api/projects/status/kd7f3yftf7unxlsx?svg=true)](https://ci.appveyor.com/project/isaacs/node-glob) [![Coverage Status](https://coveralls.io/repos/isaacs/node-glob/badge.svg?branch=master&service=github)](https://coveralls.io/github/isaacs/node-glob?branch=master)
|
6
|
-
|
7
|
-
This is a glob implementation in JavaScript. It uses the `minimatch`
|
8
|
-
library to do its matching.
|
9
|
-
|
10
|
-
![a fun cartoon logo made of glob characters](logo/glob.png)
|
11
|
-
|
12
|
-
## Usage
|
13
|
-
|
14
|
-
Install with npm
|
15
|
-
|
16
|
-
```
|
17
|
-
npm i glob
|
18
|
-
```
|
19
|
-
|
20
|
-
```javascript
|
21
|
-
var glob = require("glob")
|
22
|
-
|
23
|
-
// options is optional
|
24
|
-
glob("**/*.js", options, function (er, files) {
|
25
|
-
// files is an array of filenames.
|
26
|
-
// If the `nonull` option is set, and nothing
|
27
|
-
// was found, then files is ["**/*.js"]
|
28
|
-
// er is an error object or null.
|
29
|
-
})
|
30
|
-
```
|
31
|
-
|
32
|
-
## Glob Primer
|
33
|
-
|
34
|
-
"Globs" are the patterns you type when you do stuff like `ls *.js` on
|
35
|
-
the command line, or put `build/*` in a `.gitignore` file.
|
36
|
-
|
37
|
-
Before parsing the path part patterns, braced sections are expanded
|
38
|
-
into a set. Braced sections start with `{` and end with `}`, with any
|
39
|
-
number of comma-delimited sections within. Braced sections may contain
|
40
|
-
slash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`.
|
41
|
-
|
42
|
-
The following characters have special magic meaning when used in a
|
43
|
-
path portion:
|
44
|
-
|
45
|
-
* `*` Matches 0 or more characters in a single path portion
|
46
|
-
* `?` Matches 1 character
|
47
|
-
* `[...]` Matches a range of characters, similar to a RegExp range.
|
48
|
-
If the first character of the range is `!` or `^` then it matches
|
49
|
-
any character not in the range.
|
50
|
-
* `!(pattern|pattern|pattern)` Matches anything that does not match
|
51
|
-
any of the patterns provided.
|
52
|
-
* `?(pattern|pattern|pattern)` Matches zero or one occurrence of the
|
53
|
-
patterns provided.
|
54
|
-
* `+(pattern|pattern|pattern)` Matches one or more occurrences of the
|
55
|
-
patterns provided.
|
56
|
-
* `*(a|b|c)` Matches zero or more occurrences of the patterns provided
|
57
|
-
* `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns
|
58
|
-
provided
|
59
|
-
* `**` If a "globstar" is alone in a path portion, then it matches
|
60
|
-
zero or more directories and subdirectories searching for matches.
|
61
|
-
It does not crawl symlinked directories.
|
62
|
-
|
63
|
-
### Dots
|
64
|
-
|
65
|
-
If a file or directory path portion has a `.` as the first character,
|
66
|
-
then it will not match any glob pattern unless that pattern's
|
67
|
-
corresponding path part also has a `.` as its first character.
|
68
|
-
|
69
|
-
For example, the pattern `a/.*/c` would match the file at `a/.b/c`.
|
70
|
-
However the pattern `a/*/c` would not, because `*` does not start with
|
71
|
-
a dot character.
|
72
|
-
|
73
|
-
You can make glob treat dots as normal characters by setting
|
74
|
-
`dot:true` in the options.
|
75
|
-
|
76
|
-
### Basename Matching
|
77
|
-
|
78
|
-
If you set `matchBase:true` in the options, and the pattern has no
|
79
|
-
slashes in it, then it will seek for any file anywhere in the tree
|
80
|
-
with a matching basename. For example, `*.js` would match
|
81
|
-
`test/simple/basic.js`.
|
82
|
-
|
83
|
-
### Empty Sets
|
84
|
-
|
85
|
-
If no matching files are found, then an empty array is returned. This
|
86
|
-
differs from the shell, where the pattern itself is returned. For
|
87
|
-
example:
|
88
|
-
|
89
|
-
$ echo a*s*d*f
|
90
|
-
a*s*d*f
|
91
|
-
|
92
|
-
To get the bash-style behavior, set the `nonull:true` in the options.
|
93
|
-
|
94
|
-
### See Also:
|
95
|
-
|
96
|
-
* `man sh`
|
97
|
-
* `man bash` (Search for "Pattern Matching")
|
98
|
-
* `man 3 fnmatch`
|
99
|
-
* `man 5 gitignore`
|
100
|
-
* [minimatch documentation](https://github.com/isaacs/minimatch)
|
101
|
-
|
102
|
-
## glob.hasMagic(pattern, [options])
|
103
|
-
|
104
|
-
Returns `true` if there are any special characters in the pattern, and
|
105
|
-
`false` otherwise.
|
106
|
-
|
107
|
-
Note that the options affect the results. If `noext:true` is set in
|
108
|
-
the options object, then `+(a|b)` will not be considered a magic
|
109
|
-
pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`
|
110
|
-
then that is considered magical, unless `nobrace:true` is set in the
|
111
|
-
options.
|
112
|
-
|
113
|
-
## glob(pattern, [options], cb)
|
114
|
-
|
115
|
-
* `pattern` `{String}` Pattern to be matched
|
116
|
-
* `options` `{Object}`
|
117
|
-
* `cb` `{Function}`
|
118
|
-
* `err` `{Error | null}`
|
119
|
-
* `matches` `{Array<String>}` filenames found matching the pattern
|
120
|
-
|
121
|
-
Perform an asynchronous glob search.
|
122
|
-
|
123
|
-
## glob.sync(pattern, [options])
|
124
|
-
|
125
|
-
* `pattern` `{String}` Pattern to be matched
|
126
|
-
* `options` `{Object}`
|
127
|
-
* return: `{Array<String>}` filenames found matching the pattern
|
128
|
-
|
129
|
-
Perform a synchronous glob search.
|
130
|
-
|
131
|
-
## Class: glob.Glob
|
132
|
-
|
133
|
-
Create a Glob object by instantiating the `glob.Glob` class.
|
134
|
-
|
135
|
-
```javascript
|
136
|
-
var Glob = require("glob").Glob
|
137
|
-
var mg = new Glob(pattern, options, cb)
|
138
|
-
```
|
139
|
-
|
140
|
-
It's an EventEmitter, and starts walking the filesystem to find matches
|
141
|
-
immediately.
|
142
|
-
|
143
|
-
### new glob.Glob(pattern, [options], [cb])
|
144
|
-
|
145
|
-
* `pattern` `{String}` pattern to search for
|
146
|
-
* `options` `{Object}`
|
147
|
-
* `cb` `{Function}` Called when an error occurs, or matches are found
|
148
|
-
* `err` `{Error | null}`
|
149
|
-
* `matches` `{Array<String>}` filenames found matching the pattern
|
150
|
-
|
151
|
-
Note that if the `sync` flag is set in the options, then matches will
|
152
|
-
be immediately available on the `g.found` member.
|
153
|
-
|
154
|
-
### Properties
|
155
|
-
|
156
|
-
* `minimatch` The minimatch object that the glob uses.
|
157
|
-
* `options` The options object passed in.
|
158
|
-
* `aborted` Boolean which is set to true when calling `abort()`. There
|
159
|
-
is no way at this time to continue a glob search after aborting, but
|
160
|
-
you can re-use the statCache to avoid having to duplicate syscalls.
|
161
|
-
* `cache` Convenience object. Each field has the following possible
|
162
|
-
values:
|
163
|
-
* `false` - Path does not exist
|
164
|
-
* `true` - Path exists
|
165
|
-
* `'FILE'` - Path exists, and is not a directory
|
166
|
-
* `'DIR'` - Path exists, and is a directory
|
167
|
-
* `[file, entries, ...]` - Path exists, is a directory, and the
|
168
|
-
array value is the results of `fs.readdir`
|
169
|
-
* `statCache` Cache of `fs.stat` results, to prevent statting the same
|
170
|
-
path multiple times.
|
171
|
-
* `symlinks` A record of which paths are symbolic links, which is
|
172
|
-
relevant in resolving `**` patterns.
|
173
|
-
* `realpathCache` An optional object which is passed to `fs.realpath`
|
174
|
-
to minimize unnecessary syscalls. It is stored on the instantiated
|
175
|
-
Glob object, and may be re-used.
|
176
|
-
|
177
|
-
### Events
|
178
|
-
|
179
|
-
* `end` When the matching is finished, this is emitted with all the
|
180
|
-
matches found. If the `nonull` option is set, and no match was found,
|
181
|
-
then the `matches` list contains the original pattern. The matches
|
182
|
-
are sorted, unless the `nosort` flag is set.
|
183
|
-
* `match` Every time a match is found, this is emitted with the specific
|
184
|
-
thing that matched. It is not deduplicated or resolved to a realpath.
|
185
|
-
* `error` Emitted when an unexpected error is encountered, or whenever
|
186
|
-
any fs error occurs if `options.strict` is set.
|
187
|
-
* `abort` When `abort()` is called, this event is raised.
|
188
|
-
|
189
|
-
### Methods
|
190
|
-
|
191
|
-
* `pause` Temporarily stop the search
|
192
|
-
* `resume` Resume the search
|
193
|
-
* `abort` Stop the search forever
|
194
|
-
|
195
|
-
### Options
|
196
|
-
|
197
|
-
All the options that can be passed to Minimatch can also be passed to
|
198
|
-
Glob to change pattern matching behavior. Also, some have been added,
|
199
|
-
or have glob-specific ramifications.
|
200
|
-
|
201
|
-
All options are false by default, unless otherwise noted.
|
202
|
-
|
203
|
-
All options are added to the Glob object, as well.
|
204
|
-
|
205
|
-
If you are running many `glob` operations, you can pass a Glob object
|
206
|
-
as the `options` argument to a subsequent operation to shortcut some
|
207
|
-
`stat` and `readdir` calls. At the very least, you may pass in shared
|
208
|
-
`symlinks`, `statCache`, `realpathCache`, and `cache` options, so that
|
209
|
-
parallel glob operations will be sped up by sharing information about
|
210
|
-
the filesystem.
|
211
|
-
|
212
|
-
* `cwd` The current working directory in which to search. Defaults
|
213
|
-
to `process.cwd()`.
|
214
|
-
* `root` The place where patterns starting with `/` will be mounted
|
215
|
-
onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix
|
216
|
-
systems, and `C:\` or some such on Windows.)
|
217
|
-
* `dot` Include `.dot` files in normal matches and `globstar` matches.
|
218
|
-
Note that an explicit dot in a portion of the pattern will always
|
219
|
-
match dot files.
|
220
|
-
* `nomount` By default, a pattern starting with a forward-slash will be
|
221
|
-
"mounted" onto the root setting, so that a valid filesystem path is
|
222
|
-
returned. Set this flag to disable that behavior.
|
223
|
-
* `mark` Add a `/` character to directory matches. Note that this
|
224
|
-
requires additional stat calls.
|
225
|
-
* `nosort` Don't sort the results.
|
226
|
-
* `stat` Set to true to stat *all* results. This reduces performance
|
227
|
-
somewhat, and is completely unnecessary, unless `readdir` is presumed
|
228
|
-
to be an untrustworthy indicator of file existence.
|
229
|
-
* `silent` When an unusual error is encountered when attempting to
|
230
|
-
read a directory, a warning will be printed to stderr. Set the
|
231
|
-
`silent` option to true to suppress these warnings.
|
232
|
-
* `strict` When an unusual error is encountered when attempting to
|
233
|
-
read a directory, the process will just continue on in search of
|
234
|
-
other matches. Set the `strict` option to raise an error in these
|
235
|
-
cases.
|
236
|
-
* `cache` See `cache` property above. Pass in a previously generated
|
237
|
-
cache object to save some fs calls.
|
238
|
-
* `statCache` A cache of results of filesystem information, to prevent
|
239
|
-
unnecessary stat calls. While it should not normally be necessary
|
240
|
-
to set this, you may pass the statCache from one glob() call to the
|
241
|
-
options object of another, if you know that the filesystem will not
|
242
|
-
change between calls. (See "Race Conditions" below.)
|
243
|
-
* `symlinks` A cache of known symbolic links. You may pass in a
|
244
|
-
previously generated `symlinks` object to save `lstat` calls when
|
245
|
-
resolving `**` matches.
|
246
|
-
* `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead.
|
247
|
-
* `nounique` In some cases, brace-expanded patterns can result in the
|
248
|
-
same file showing up multiple times in the result set. By default,
|
249
|
-
this implementation prevents duplicates in the result set. Set this
|
250
|
-
flag to disable that behavior.
|
251
|
-
* `nonull` Set to never return an empty set, instead returning a set
|
252
|
-
containing the pattern itself. This is the default in glob(3).
|
253
|
-
* `debug` Set to enable debug logging in minimatch and glob.
|
254
|
-
* `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets.
|
255
|
-
* `noglobstar` Do not match `**` against multiple filenames. (Ie,
|
256
|
-
treat it as a normal `*` instead.)
|
257
|
-
* `noext` Do not match `+(a|b)` "extglob" patterns.
|
258
|
-
* `nocase` Perform a case-insensitive match. Note: on
|
259
|
-
case-insensitive filesystems, non-magic patterns will match by
|
260
|
-
default, since `stat` and `readdir` will not raise errors.
|
261
|
-
* `matchBase` Perform a basename-only match if the pattern does not
|
262
|
-
contain any slash characters. That is, `*.js` would be treated as
|
263
|
-
equivalent to `**/*.js`, matching all js files in all directories.
|
264
|
-
* `nodir` Do not match directories, only files. (Note: to match
|
265
|
-
*only* directories, simply put a `/` at the end of the pattern.)
|
266
|
-
* `ignore` Add a pattern or an array of glob patterns to exclude matches.
|
267
|
-
Note: `ignore` patterns are *always* in `dot:true` mode, regardless
|
268
|
-
of any other settings.
|
269
|
-
* `follow` Follow symlinked directories when expanding `**` patterns.
|
270
|
-
Note that this can result in a lot of duplicate references in the
|
271
|
-
presence of cyclic links.
|
272
|
-
* `realpath` Set to true to call `fs.realpath` on all of the results.
|
273
|
-
In the case of a symlink that cannot be resolved, the full absolute
|
274
|
-
path to the matched entry is returned (though it will usually be a
|
275
|
-
broken symlink)
|
276
|
-
* `absolute` Set to true to always receive absolute paths for matched
|
277
|
-
files. Unlike `realpath`, this also affects the values returned in
|
278
|
-
the `match` event.
|
279
|
-
* `fs` File-system object with Node's `fs` API. By default, the built-in
|
280
|
-
`fs` module will be used. Set to a volume provided by a library like
|
281
|
-
`memfs` to avoid using the "real" file-system.
|
282
|
-
|
283
|
-
## Comparisons to other fnmatch/glob implementations
|
284
|
-
|
285
|
-
While strict compliance with the existing standards is a worthwhile
|
286
|
-
goal, some discrepancies exist between node-glob and other
|
287
|
-
implementations, and are intentional.
|
288
|
-
|
289
|
-
The double-star character `**` is supported by default, unless the
|
290
|
-
`noglobstar` flag is set. This is supported in the manner of bsdglob
|
291
|
-
and bash 4.3, where `**` only has special significance if it is the only
|
292
|
-
thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
|
293
|
-
`a/**b` will not.
|
294
|
-
|
295
|
-
Note that symlinked directories are not crawled as part of a `**`,
|
296
|
-
though their contents may match against subsequent portions of the
|
297
|
-
pattern. This prevents infinite loops and duplicates and the like.
|
298
|
-
|
299
|
-
If an escaped pattern has no matches, and the `nonull` flag is set,
|
300
|
-
then glob returns the pattern as-provided, rather than
|
301
|
-
interpreting the character escapes. For example,
|
302
|
-
`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
|
303
|
-
`"*a?"`. This is akin to setting the `nullglob` option in bash, except
|
304
|
-
that it does not resolve escaped pattern characters.
|
305
|
-
|
306
|
-
If brace expansion is not disabled, then it is performed before any
|
307
|
-
other interpretation of the glob pattern. Thus, a pattern like
|
308
|
-
`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
|
309
|
-
**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
|
310
|
-
checked for validity. Since those two are valid, matching proceeds.
|
311
|
-
|
312
|
-
### Comments and Negation
|
313
|
-
|
314
|
-
Previously, this module let you mark a pattern as a "comment" if it
|
315
|
-
started with a `#` character, or a "negated" pattern if it started
|
316
|
-
with a `!` character.
|
317
|
-
|
318
|
-
These options were deprecated in version 5, and removed in version 6.
|
319
|
-
|
320
|
-
To specify things that should not match, use the `ignore` option.
|
321
|
-
|
322
|
-
## Windows
|
323
|
-
|
324
|
-
**Please only use forward-slashes in glob expressions.**
|
325
|
-
|
326
|
-
Though windows uses either `/` or `\` as its path separator, only `/`
|
327
|
-
characters are used by this glob implementation. You must use
|
328
|
-
forward-slashes **only** in glob expressions. Back-slashes will always
|
329
|
-
be interpreted as escape characters, not path separators.
|
330
|
-
|
331
|
-
Results from absolute patterns such as `/foo/*` are mounted onto the
|
332
|
-
root setting using `path.join`. On windows, this will by default result
|
333
|
-
in `/foo/*` matching `C:\foo\bar.txt`.
|
334
|
-
|
335
|
-
## Race Conditions
|
336
|
-
|
337
|
-
Glob searching, by its very nature, is susceptible to race conditions,
|
338
|
-
since it relies on directory walking and such.
|
339
|
-
|
340
|
-
As a result, it is possible that a file that exists when glob looks for
|
341
|
-
it may have been deleted or modified by the time it returns the result.
|
342
|
-
|
343
|
-
As part of its internal implementation, this program caches all stat
|
344
|
-
and readdir calls that it makes, in order to cut down on system
|
345
|
-
overhead. However, this also makes it even more susceptible to races,
|
346
|
-
especially if the cache or statCache objects are reused between glob
|
347
|
-
calls.
|
348
|
-
|
349
|
-
Users are thus advised not to use a glob result as a guarantee of
|
350
|
-
filesystem state in the face of rapid changes. For the vast majority
|
351
|
-
of operations, this is never a problem.
|
352
|
-
|
353
|
-
## Glob Logo
|
354
|
-
Glob's logo was created by [Tanya Brassie](http://tanyabrassie.com/). Logo files can be found [here](https://github.com/isaacs/node-glob/tree/master/logo).
|
355
|
-
|
356
|
-
The logo is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
|
357
|
-
|
358
|
-
## Contributing
|
359
|
-
|
360
|
-
Any change to behavior (including bugfixes) must come with a test.
|
361
|
-
|
362
|
-
Patches that fail tests or reduce performance will be rejected.
|
363
|
-
|
364
|
-
```
|
365
|
-
# to run tests
|
366
|
-
npm test
|
367
|
-
|
368
|
-
# to re-generate test fixtures
|
369
|
-
npm run test-regen
|
370
|
-
|
371
|
-
# to benchmark against bash/zsh
|
372
|
-
npm run bench
|
373
|
-
|
374
|
-
# to profile javascript
|
375
|
-
npm run prof
|
376
|
-
```
|
377
|
-
|
378
|
-
![](oh-my-glob.gif)
|