@veecode-platform/backstage-plugin-about-backend-dynamic 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/.config-schema.json +1 -0
- package/dist/api/AboutApi.cjs.js +47 -0
- package/dist/api/AboutApi.cjs.js.map +1 -0
- package/dist/configSchema.json +1 -0
- package/dist/index.cjs.js +14 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/plugin.cjs.js +23 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/service/router.cjs.js +24 -0
- package/dist/service/router.cjs.js.map +1 -0
- package/node_modules/@colors/colors/LICENSE +26 -0
- package/node_modules/@colors/colors/README.md +219 -0
- package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
- package/node_modules/@colors/colors/examples/safe-string.js +80 -0
- package/node_modules/@colors/colors/index.d.ts +184 -0
- package/node_modules/@colors/colors/lib/colors.js +211 -0
- package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
- package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
- package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
- package/node_modules/@colors/colors/lib/index.js +13 -0
- package/node_modules/@colors/colors/lib/maps/america.js +10 -0
- package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
- package/node_modules/@colors/colors/lib/maps/random.js +11 -0
- package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
- package/node_modules/@colors/colors/lib/styles.js +95 -0
- package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
- package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
- package/node_modules/@colors/colors/package.json +45 -0
- package/node_modules/@colors/colors/safe.d.ts +64 -0
- package/node_modules/@colors/colors/safe.js +10 -0
- package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
- package/node_modules/@dabh/diagnostics/CHANGELOG.md +26 -0
- package/node_modules/@dabh/diagnostics/LICENSE +20 -0
- package/node_modules/@dabh/diagnostics/README.md +473 -0
- package/node_modules/@dabh/diagnostics/adapters/hash.js +11 -0
- package/node_modules/@dabh/diagnostics/adapters/index.js +18 -0
- package/node_modules/@dabh/diagnostics/adapters/localstorage.js +11 -0
- package/node_modules/@dabh/diagnostics/adapters/process.env.js +11 -0
- package/node_modules/@dabh/diagnostics/browser/development.js +35 -0
- package/node_modules/@dabh/diagnostics/browser/index.js +8 -0
- package/node_modules/@dabh/diagnostics/browser/override.js +6 -0
- package/node_modules/@dabh/diagnostics/browser/production.js +24 -0
- package/node_modules/@dabh/diagnostics/diagnostics.js +212 -0
- package/node_modules/@dabh/diagnostics/logger/console.js +19 -0
- package/node_modules/@dabh/diagnostics/modifiers/namespace-ansi.js +20 -0
- package/node_modules/@dabh/diagnostics/modifiers/namespace.js +32 -0
- package/node_modules/@dabh/diagnostics/node/development.js +36 -0
- package/node_modules/@dabh/diagnostics/node/index.js +8 -0
- package/node_modules/@dabh/diagnostics/node/override.js +21 -0
- package/node_modules/@dabh/diagnostics/node/production.js +24 -0
- package/node_modules/@dabh/diagnostics/package.json +64 -0
- package/node_modules/@so-ric/colorspace/CHANGELOG.md +9 -0
- package/node_modules/@so-ric/colorspace/LICENSE.md +20 -0
- package/node_modules/@so-ric/colorspace/README.md +46 -0
- package/node_modules/@so-ric/colorspace/dist/index.cjs.js +2071 -0
- package/node_modules/@so-ric/colorspace/index.js +29 -0
- package/node_modules/@so-ric/colorspace/package.json +45 -0
- package/node_modules/@so-ric/colorspace/rollup.config.js +25 -0
- package/node_modules/@types/body-parser/LICENSE +21 -0
- package/node_modules/@types/body-parser/README.md +15 -0
- package/node_modules/@types/body-parser/index.d.ts +95 -0
- package/node_modules/@types/body-parser/package.json +64 -0
- package/node_modules/@types/connect/LICENSE +21 -0
- package/node_modules/@types/connect/README.md +15 -0
- package/node_modules/@types/connect/index.d.ts +91 -0
- package/node_modules/@types/connect/package.json +32 -0
- package/node_modules/@types/express/LICENSE +21 -0
- package/node_modules/@types/express/README.md +15 -0
- package/node_modules/@types/express/index.d.ts +128 -0
- package/node_modules/@types/express/package.json +46 -0
- package/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/node_modules/@types/express-serve-static-core/README.md +15 -0
- package/node_modules/@types/express-serve-static-core/index.d.ts +1281 -0
- package/node_modules/@types/express-serve-static-core/package.json +51 -0
- package/node_modules/@types/http-errors/LICENSE +21 -0
- package/node_modules/@types/http-errors/README.md +15 -0
- package/node_modules/@types/http-errors/index.d.ts +77 -0
- package/node_modules/@types/http-errors/package.json +36 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +105 -0
- package/node_modules/@types/node/assert.d.ts +955 -0
- package/node_modules/@types/node/async_hooks.d.ts +623 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/node_modules/@types/node/buffer.d.ts +1810 -0
- package/node_modules/@types/node/child_process.d.ts +1428 -0
- package/node_modules/@types/node/cluster.d.ts +486 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/console.d.ts +151 -0
- package/node_modules/@types/node/constants.d.ts +20 -0
- package/node_modules/@types/node/crypto.d.ts +4065 -0
- package/node_modules/@types/node/dgram.d.ts +564 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
- package/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/node_modules/@types/node/dns.d.ts +922 -0
- package/node_modules/@types/node/domain.d.ts +166 -0
- package/node_modules/@types/node/events.d.ts +1054 -0
- package/node_modules/@types/node/fs/promises.d.ts +1329 -0
- package/node_modules/@types/node/fs.d.ts +4676 -0
- package/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@types/node/http.d.ts +2167 -0
- package/node_modules/@types/node/http2.d.ts +2480 -0
- package/node_modules/@types/node/https.d.ts +405 -0
- package/node_modules/@types/node/index.d.ts +115 -0
- package/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/node_modules/@types/node/inspector.d.ts +224 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4226 -0
- package/node_modules/@types/node/module.d.ts +819 -0
- package/node_modules/@types/node/net.d.ts +933 -0
- package/node_modules/@types/node/os.d.ts +507 -0
- package/node_modules/@types/node/package.json +155 -0
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +187 -0
- package/node_modules/@types/node/perf_hooks.d.ts +643 -0
- package/node_modules/@types/node/process.d.ts +2161 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +152 -0
- package/node_modules/@types/node/quic.d.ts +910 -0
- package/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/node_modules/@types/node/readline.d.ts +541 -0
- package/node_modules/@types/node/repl.d.ts +415 -0
- package/node_modules/@types/node/sea.d.ts +162 -0
- package/node_modules/@types/node/sqlite.d.ts +955 -0
- package/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@types/node/stream/web.d.ts +296 -0
- package/node_modules/@types/node/stream.d.ts +1760 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/node_modules/@types/node/test.d.ts +2240 -0
- package/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/node_modules/@types/node/timers.d.ts +159 -0
- package/node_modules/@types/node/tls.d.ts +1198 -0
- package/node_modules/@types/node/trace_events.d.ts +197 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +117 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +117 -0
- package/node_modules/@types/node/tty.d.ts +250 -0
- package/node_modules/@types/node/url.d.ts +519 -0
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +1662 -0
- package/node_modules/@types/node/v8.d.ts +983 -0
- package/node_modules/@types/node/vm.d.ts +1208 -0
- package/node_modules/@types/node/wasi.d.ts +202 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +717 -0
- package/node_modules/@types/node/zlib.d.ts +618 -0
- package/node_modules/@types/qs/LICENSE +21 -0
- package/node_modules/@types/qs/README.md +15 -0
- package/node_modules/@types/qs/index.d.ts +82 -0
- package/node_modules/@types/qs/package.json +66 -0
- package/node_modules/@types/range-parser/LICENSE +21 -0
- package/node_modules/@types/range-parser/README.md +53 -0
- package/node_modules/@types/range-parser/index.d.ts +34 -0
- package/node_modules/@types/range-parser/package.json +25 -0
- package/node_modules/@types/send/LICENSE +21 -0
- package/node_modules/@types/send/README.md +15 -0
- package/node_modules/@types/send/index.d.ts +187 -0
- package/node_modules/@types/send/package.json +38 -0
- package/node_modules/@types/serve-static/LICENSE +21 -0
- package/node_modules/@types/serve-static/README.md +15 -0
- package/node_modules/@types/serve-static/index.d.ts +116 -0
- package/node_modules/@types/serve-static/package.json +44 -0
- package/node_modules/@types/triple-beam/LICENSE +21 -0
- package/node_modules/@types/triple-beam/README.md +36 -0
- package/node_modules/@types/triple-beam/index.d.ts +17 -0
- package/node_modules/@types/triple-beam/package.json +25 -0
- package/node_modules/accepts/HISTORY.md +243 -0
- package/node_modules/accepts/LICENSE +23 -0
- package/node_modules/accepts/README.md +140 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/array-flatten/LICENSE +21 -0
- package/node_modules/array-flatten/README.md +43 -0
- package/node_modules/array-flatten/array-flatten.js +64 -0
- package/node_modules/array-flatten/package.json +39 -0
- package/node_modules/async/CHANGELOG.md +351 -0
- package/node_modules/async/LICENSE +19 -0
- package/node_modules/async/README.md +59 -0
- package/node_modules/async/all.js +119 -0
- package/node_modules/async/allLimit.js +46 -0
- package/node_modules/async/allSeries.js +45 -0
- package/node_modules/async/any.js +122 -0
- package/node_modules/async/anyLimit.js +47 -0
- package/node_modules/async/anySeries.js +46 -0
- package/node_modules/async/apply.js +11 -0
- package/node_modules/async/applyEach.js +57 -0
- package/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/async/asyncify.js +118 -0
- package/node_modules/async/auto.js +333 -0
- package/node_modules/async/autoInject.js +182 -0
- package/node_modules/async/bower.json +17 -0
- package/node_modules/async/cargo.js +63 -0
- package/node_modules/async/cargoQueue.js +71 -0
- package/node_modules/async/compose.js +55 -0
- package/node_modules/async/concat.js +115 -0
- package/node_modules/async/concatLimit.js +60 -0
- package/node_modules/async/concatSeries.js +41 -0
- package/node_modules/async/constant.js +14 -0
- package/node_modules/async/detect.js +96 -0
- package/node_modules/async/detectLimit.js +48 -0
- package/node_modules/async/detectSeries.js +47 -0
- package/node_modules/async/dir.js +43 -0
- package/node_modules/async/dist/async.js +6061 -0
- package/node_modules/async/dist/async.min.js +1 -0
- package/node_modules/async/dist/async.mjs +5948 -0
- package/node_modules/async/doDuring.js +68 -0
- package/node_modules/async/doUntil.js +46 -0
- package/node_modules/async/doWhilst.js +68 -0
- package/node_modules/async/during.js +78 -0
- package/node_modules/async/each.js +129 -0
- package/node_modules/async/eachLimit.js +50 -0
- package/node_modules/async/eachOf.js +185 -0
- package/node_modules/async/eachOfLimit.js +47 -0
- package/node_modules/async/eachOfSeries.js +39 -0
- package/node_modules/async/eachSeries.js +44 -0
- package/node_modules/async/ensureAsync.js +67 -0
- package/node_modules/async/every.js +119 -0
- package/node_modules/async/everyLimit.js +46 -0
- package/node_modules/async/everySeries.js +45 -0
- package/node_modules/async/filter.js +93 -0
- package/node_modules/async/filterLimit.js +45 -0
- package/node_modules/async/filterSeries.js +43 -0
- package/node_modules/async/find.js +96 -0
- package/node_modules/async/findLimit.js +48 -0
- package/node_modules/async/findSeries.js +47 -0
- package/node_modules/async/flatMap.js +115 -0
- package/node_modules/async/flatMapLimit.js +60 -0
- package/node_modules/async/flatMapSeries.js +41 -0
- package/node_modules/async/foldl.js +153 -0
- package/node_modules/async/foldr.js +41 -0
- package/node_modules/async/forEach.js +129 -0
- package/node_modules/async/forEachLimit.js +50 -0
- package/node_modules/async/forEachOf.js +185 -0
- package/node_modules/async/forEachOfLimit.js +47 -0
- package/node_modules/async/forEachOfSeries.js +39 -0
- package/node_modules/async/forEachSeries.js +44 -0
- package/node_modules/async/forever.js +68 -0
- package/node_modules/async/groupBy.js +108 -0
- package/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/async/groupBySeries.js +36 -0
- package/node_modules/async/index.js +588 -0
- package/node_modules/async/inject.js +153 -0
- package/node_modules/async/internal/DoublyLinkedList.js +92 -0
- package/node_modules/async/internal/Heap.js +120 -0
- package/node_modules/async/internal/applyEach.js +29 -0
- package/node_modules/async/internal/asyncEachOfLimit.js +75 -0
- package/node_modules/async/internal/awaitify.js +28 -0
- package/node_modules/async/internal/breakLoop.js +10 -0
- package/node_modules/async/internal/consoleFunc.js +31 -0
- package/node_modules/async/internal/createTester.js +40 -0
- package/node_modules/async/internal/eachOfLimit.js +90 -0
- package/node_modules/async/internal/filter.js +55 -0
- package/node_modules/async/internal/getIterator.js +11 -0
- package/node_modules/async/internal/initialParams.js +14 -0
- package/node_modules/async/internal/isArrayLike.js +10 -0
- package/node_modules/async/internal/iterator.js +57 -0
- package/node_modules/async/internal/map.js +30 -0
- package/node_modules/async/internal/once.js +17 -0
- package/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/async/internal/parallel.js +34 -0
- package/node_modules/async/internal/promiseCallback.js +23 -0
- package/node_modules/async/internal/queue.js +294 -0
- package/node_modules/async/internal/range.js +14 -0
- package/node_modules/async/internal/reject.js +26 -0
- package/node_modules/async/internal/setImmediate.js +34 -0
- package/node_modules/async/internal/withoutIndex.js +10 -0
- package/node_modules/async/internal/wrapAsync.js +34 -0
- package/node_modules/async/log.js +41 -0
- package/node_modules/async/map.js +142 -0
- package/node_modules/async/mapLimit.js +45 -0
- package/node_modules/async/mapSeries.js +44 -0
- package/node_modules/async/mapValues.js +152 -0
- package/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/async/memoize.js +91 -0
- package/node_modules/async/nextTick.js +52 -0
- package/node_modules/async/package.json +75 -0
- package/node_modules/async/parallel.js +180 -0
- package/node_modules/async/parallelLimit.js +41 -0
- package/node_modules/async/priorityQueue.js +60 -0
- package/node_modules/async/queue.js +24 -0
- package/node_modules/async/race.js +67 -0
- package/node_modules/async/reduce.js +153 -0
- package/node_modules/async/reduceRight.js +41 -0
- package/node_modules/async/reflect.js +78 -0
- package/node_modules/async/reflectAll.js +93 -0
- package/node_modules/async/reject.js +87 -0
- package/node_modules/async/rejectLimit.js +45 -0
- package/node_modules/async/rejectSeries.js +43 -0
- package/node_modules/async/retry.js +159 -0
- package/node_modules/async/retryable.js +77 -0
- package/node_modules/async/select.js +93 -0
- package/node_modules/async/selectLimit.js +45 -0
- package/node_modules/async/selectSeries.js +43 -0
- package/node_modules/async/seq.js +79 -0
- package/node_modules/async/series.js +186 -0
- package/node_modules/async/setImmediate.js +45 -0
- package/node_modules/async/some.js +122 -0
- package/node_modules/async/someLimit.js +47 -0
- package/node_modules/async/someSeries.js +46 -0
- package/node_modules/async/sortBy.js +190 -0
- package/node_modules/async/timeout.js +89 -0
- package/node_modules/async/times.js +50 -0
- package/node_modules/async/timesLimit.js +43 -0
- package/node_modules/async/timesSeries.js +32 -0
- package/node_modules/async/transform.js +173 -0
- package/node_modules/async/tryEach.js +78 -0
- package/node_modules/async/unmemoize.js +25 -0
- package/node_modules/async/until.js +61 -0
- package/node_modules/async/waterfall.js +105 -0
- package/node_modules/async/whilst.js +78 -0
- package/node_modules/async/wrapSync.js +118 -0
- package/node_modules/async-function/.eslintrc +16 -0
- package/node_modules/async-function/.github/FUNDING.yml +12 -0
- package/node_modules/async-function/.nycrc +9 -0
- package/node_modules/async-function/CHANGELOG.md +16 -0
- package/node_modules/async-function/LICENSE +21 -0
- package/node_modules/async-function/README.md +51 -0
- package/node_modules/async-function/index.d.mts +3 -0
- package/node_modules/async-function/index.d.ts +13 -0
- package/node_modules/async-function/index.js +8 -0
- package/node_modules/async-function/index.mjs +4 -0
- package/node_modules/async-function/legacy.js +18 -0
- package/node_modules/async-function/package.json +86 -0
- package/node_modules/async-function/require.mjs +5 -0
- package/node_modules/async-function/test/index.js +40 -0
- package/node_modules/async-function/tsconfig.json +9 -0
- package/node_modules/async-generator-function/.eslintrc +26 -0
- package/node_modules/async-generator-function/.github/FUNDING.yml +12 -0
- package/node_modules/async-generator-function/.nycrc +9 -0
- package/node_modules/async-generator-function/CHANGELOG.md +15 -0
- package/node_modules/async-generator-function/LICENSE +21 -0
- package/node_modules/async-generator-function/README.md +52 -0
- package/node_modules/async-generator-function/index.d.mts +3 -0
- package/node_modules/async-generator-function/index.d.ts +22 -0
- package/node_modules/async-generator-function/index.js +8 -0
- package/node_modules/async-generator-function/index.mjs +4 -0
- package/node_modules/async-generator-function/legacy.js +18 -0
- package/node_modules/async-generator-function/package.json +87 -0
- package/node_modules/async-generator-function/require.mjs +5 -0
- package/node_modules/async-generator-function/test/index.js +40 -0
- package/node_modules/async-generator-function/tsconfig.json +9 -0
- package/node_modules/body-parser/HISTORY.md +672 -0
- package/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/body-parser/README.md +476 -0
- package/node_modules/body-parser/SECURITY.md +25 -0
- package/node_modules/body-parser/index.js +156 -0
- package/node_modules/body-parser/lib/read.js +205 -0
- package/node_modules/body-parser/lib/types/json.js +247 -0
- package/node_modules/body-parser/lib/types/raw.js +101 -0
- package/node_modules/body-parser/lib/types/text.js +121 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +307 -0
- package/node_modules/body-parser/package.json +56 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/color/LICENSE +21 -0
- package/node_modules/color/README.md +183 -0
- package/node_modules/color/index.d.ts +135 -0
- package/node_modules/color/index.js +496 -0
- package/node_modules/color/package.json +52 -0
- package/node_modules/color-convert/LICENSE +22 -0
- package/node_modules/color-convert/README.md +165 -0
- package/node_modules/color-convert/conversions.js +980 -0
- package/node_modules/color-convert/index.d.ts +744 -0
- package/node_modules/color-convert/index.js +81 -0
- package/node_modules/color-convert/package.json +58 -0
- package/node_modules/color-convert/route.js +98 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +153 -0
- package/node_modules/color-name/package.json +32 -0
- package/node_modules/color-string/LICENSE +21 -0
- package/node_modules/color-string/README.md +60 -0
- package/node_modules/color-string/index.d.ts +23 -0
- package/node_modules/color-string/index.js +231 -0
- package/node_modules/color-string/package.json +47 -0
- package/node_modules/content-disposition/HISTORY.md +60 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +142 -0
- package/node_modules/content-disposition/index.js +458 -0
- package/node_modules/content-disposition/package.json +44 -0
- package/node_modules/content-type/HISTORY.md +29 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +94 -0
- package/node_modules/content-type/index.js +225 -0
- package/node_modules/content-type/package.json +42 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +317 -0
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +334 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/.npmignore +4 -0
- package/node_modules/cookie-signature/History.md +38 -0
- package/node_modules/cookie-signature/Readme.md +42 -0
- package/node_modules/cookie-signature/index.js +51 -0
- package/node_modules/cookie-signature/package.json +18 -0
- package/node_modules/debug/.coveralls.yml +1 -0
- package/node_modules/debug/.eslintrc +11 -0
- package/node_modules/debug/.npmignore +9 -0
- package/node_modules/debug/.travis.yml +14 -0
- package/node_modules/debug/CHANGELOG.md +362 -0
- package/node_modules/debug/LICENSE +19 -0
- package/node_modules/debug/Makefile +50 -0
- package/node_modules/debug/README.md +312 -0
- package/node_modules/debug/component.json +19 -0
- package/node_modules/debug/karma.conf.js +70 -0
- package/node_modules/debug/node.js +1 -0
- package/node_modules/debug/node_modules/ms/index.js +152 -0
- package/node_modules/debug/node_modules/ms/license.md +21 -0
- package/node_modules/debug/node_modules/ms/package.json +37 -0
- package/node_modules/debug/node_modules/ms/readme.md +51 -0
- package/node_modules/debug/package.json +49 -0
- package/node_modules/debug/src/browser.js +185 -0
- package/node_modules/debug/src/debug.js +202 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/inspector-log.js +15 -0
- package/node_modules/debug/src/node.js +248 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/destroy/LICENSE +23 -0
- package/node_modules/destroy/README.md +63 -0
- package/node_modules/destroy/index.js +209 -0
- package/node_modules/destroy/package.json +48 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/ee-first/LICENSE +22 -0
- package/node_modules/ee-first/README.md +80 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/enabled/.travis.yml +9 -0
- package/node_modules/enabled/LICENSE +20 -0
- package/node_modules/enabled/README.md +68 -0
- package/node_modules/enabled/index.js +34 -0
- package/node_modules/enabled/package.json +33 -0
- package/node_modules/enabled/test.js +39 -0
- package/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/encodeurl/README.md +109 -0
- package/node_modules/encodeurl/index.js +60 -0
- package/node_modules/encodeurl/package.json +40 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/HISTORY.md +83 -0
- package/node_modules/etag/LICENSE +22 -0
- package/node_modules/etag/README.md +159 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/express/History.md +3656 -0
- package/node_modules/express/LICENSE +24 -0
- package/node_modules/express/Readme.md +260 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +661 -0
- package/node_modules/express/lib/express.js +116 -0
- package/node_modules/express/lib/middleware/init.js +43 -0
- package/node_modules/express/lib/middleware/query.js +47 -0
- package/node_modules/express/lib/request.js +525 -0
- package/node_modules/express/lib/response.js +1179 -0
- package/node_modules/express/lib/router/index.js +673 -0
- package/node_modules/express/lib/router/layer.js +181 -0
- package/node_modules/express/lib/router/route.js +230 -0
- package/node_modules/express/lib/utils.js +303 -0
- package/node_modules/express/lib/view.js +182 -0
- package/node_modules/express/package.json +102 -0
- package/node_modules/express-promise-router/.changeset/README.md +8 -0
- package/node_modules/express-promise-router/.changeset/config.json +9 -0
- package/node_modules/express-promise-router/.eslintrc.json +13 -0
- package/node_modules/express-promise-router/.github/renovate.json5 +14 -0
- package/node_modules/express-promise-router/.github/workflows/test.yml +24 -0
- package/node_modules/express-promise-router/.prettierrc.yaml +2 -0
- package/node_modules/express-promise-router/CHANGELOG.md +82 -0
- package/node_modules/express-promise-router/LICENSE +21 -0
- package/node_modules/express-promise-router/README.md +182 -0
- package/node_modules/express-promise-router/index.d.ts +7 -0
- package/node_modules/express-promise-router/lib/express-promise-router.js +131 -0
- package/node_modules/express-promise-router/package.json +86 -0
- package/node_modules/express-promise-router/test/.eslintrc +8 -0
- package/node_modules/express-promise-router/test/babel.test.js +35 -0
- package/node_modules/express-promise-router/test/commonjs.test.js +35 -0
- package/node_modules/express-promise-router/test/express-promise-router.nested-route.test.js +18 -0
- package/node_modules/express-promise-router/test/express-promise-router.route.test.js +353 -0
- package/node_modules/express-promise-router/test/express-promise-router.test.js +401 -0
- package/node_modules/express-promise-router/test/test-resources/.eslintrc +6 -0
- package/node_modules/express-promise-router/test/test-resources/babel-base-case.js +12 -0
- package/node_modules/express-promise-router/test/test-resources/commonjs-base-case.js +12 -0
- package/node_modules/express-promise-router/test/test-resources/typescript-base-case.ts +13 -0
- package/node_modules/express-promise-router/test/tracing.test.js +36 -0
- package/node_modules/express-promise-router/test/typescript.test.js +53 -0
- package/node_modules/express-promise-router/test/util/http-utils.js +14 -0
- package/node_modules/express-promise-router/test/util/launch-utils.js +40 -0
- package/node_modules/fecha/LICENSE +22 -0
- package/node_modules/fecha/README.md +320 -0
- package/node_modules/fecha/dist/fecha.min.js +2 -0
- package/node_modules/fecha/dist/fecha.min.js.map +1 -0
- package/node_modules/fecha/lib/fecha.d.ts +52 -0
- package/node_modules/fecha/lib/fecha.js +403 -0
- package/node_modules/fecha/lib/fecha.js.map +1 -0
- package/node_modules/fecha/lib/fecha.umd.js +418 -0
- package/node_modules/fecha/lib/fecha.umd.js.map +1 -0
- package/node_modules/fecha/package.json +55 -0
- package/node_modules/fecha/src/fecha.ts +524 -0
- package/node_modules/finalhandler/HISTORY.md +210 -0
- package/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/finalhandler/README.md +147 -0
- package/node_modules/finalhandler/SECURITY.md +25 -0
- package/node_modules/finalhandler/index.js +341 -0
- package/node_modules/finalhandler/package.json +47 -0
- package/node_modules/fn.name/.gitattributes +1 -0
- package/node_modules/fn.name/.travis.yml +10 -0
- package/node_modules/fn.name/LICENSE +22 -0
- package/node_modules/fn.name/README.md +42 -0
- package/node_modules/fn.name/index.js +42 -0
- package/node_modules/fn.name/package.json +37 -0
- package/node_modules/fn.name/test.js +73 -0
- package/node_modules/forwarded/HISTORY.md +21 -0
- package/node_modules/forwarded/LICENSE +22 -0
- package/node_modules/forwarded/README.md +57 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/HISTORY.md +70 -0
- package/node_modules/fresh/LICENSE +23 -0
- package/node_modules/fresh/README.md +119 -0
- package/node_modules/fresh/index.js +137 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/fs-extra/LICENSE +15 -0
- package/node_modules/fs-extra/README.md +294 -0
- package/node_modules/fs-extra/lib/copy/copy-sync.js +176 -0
- package/node_modules/fs-extra/lib/copy/copy.js +180 -0
- package/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/node_modules/fs-extra/lib/ensure/file.js +66 -0
- package/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
- package/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
- package/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/node_modules/fs-extra/lib/fs/index.js +146 -0
- package/node_modules/fs-extra/lib/index.js +16 -0
- package/node_modules/fs-extra/lib/json/index.js +16 -0
- package/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/node_modules/fs-extra/lib/move/index.js +7 -0
- package/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/node_modules/fs-extra/lib/move/move.js +59 -0
- package/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/node_modules/fs-extra/lib/util/async.js +29 -0
- package/node_modules/fs-extra/lib/util/stat.js +159 -0
- package/node_modules/fs-extra/lib/util/utimes.js +36 -0
- package/node_modules/fs-extra/package.json +71 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/generator-function/.eslintrc +16 -0
- package/node_modules/generator-function/.github/FUNDING.yml +12 -0
- package/node_modules/generator-function/.nycrc +9 -0
- package/node_modules/generator-function/CHANGELOG.md +27 -0
- package/node_modules/generator-function/LICENSE.md +7 -0
- package/node_modules/generator-function/README.md +51 -0
- package/node_modules/generator-function/index.d.mts +3 -0
- package/node_modules/generator-function/index.d.ts +3 -0
- package/node_modules/generator-function/index.js +8 -0
- package/node_modules/generator-function/index.mjs +4 -0
- package/node_modules/generator-function/legacy.js +18 -0
- package/node_modules/generator-function/package.json +88 -0
- package/node_modules/generator-function/require.mjs +5 -0
- package/node_modules/generator-function/test/index.js +42 -0
- package/node_modules/generator-function/tsconfig.json +9 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +193 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +373 -0
- package/node_modules/get-intrinsic/package.json +100 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +53 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/http-errors/HISTORY.md +180 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +289 -0
- package/node_modules/http-errors/package.json +50 -0
- package/node_modules/iconv-lite/Changelog.md +162 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +156 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/node_modules/iconv-lite/encodings/index.js +22 -0
- package/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/node_modules/iconv-lite/lib/index.js +153 -0
- package/node_modules/iconv-lite/lib/streams.js +121 -0
- package/node_modules/iconv-lite/package.json +46 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +233 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-promise/LICENSE +19 -0
- package/node_modules/is-promise/index.d.ts +2 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/is-promise/readme.md +33 -0
- package/node_modules/is-stream/index.d.ts +79 -0
- package/node_modules/is-stream/index.js +28 -0
- package/node_modules/is-stream/license +9 -0
- package/node_modules/is-stream/package.json +42 -0
- package/node_modules/is-stream/readme.md +60 -0
- package/node_modules/jsonfile/LICENSE +15 -0
- package/node_modules/jsonfile/README.md +230 -0
- package/node_modules/jsonfile/index.js +88 -0
- package/node_modules/jsonfile/package.json +40 -0
- package/node_modules/jsonfile/utils.js +14 -0
- package/node_modules/kuler/.travis.yml +5 -0
- package/node_modules/kuler/LICENSE +7 -0
- package/node_modules/kuler/README.md +40 -0
- package/node_modules/kuler/index.js +118 -0
- package/node_modules/kuler/package.json +34 -0
- package/node_modules/kuler/test.js +23 -0
- package/node_modules/lodash.flattendeep/LICENSE +47 -0
- package/node_modules/lodash.flattendeep/README.md +18 -0
- package/node_modules/lodash.flattendeep/index.js +350 -0
- package/node_modules/lodash.flattendeep/package.json +17 -0
- package/node_modules/logform/.babelrc +3 -0
- package/node_modules/logform/.eslintrc +7 -0
- package/node_modules/logform/.gitattributes +1 -0
- package/node_modules/logform/CHANGELOG.md +309 -0
- package/node_modules/logform/LICENSE +21 -0
- package/node_modules/logform/README.md +653 -0
- package/node_modules/logform/align.js +14 -0
- package/node_modules/logform/browser.js +38 -0
- package/node_modules/logform/cli.js +52 -0
- package/node_modules/logform/colorize.js +122 -0
- package/node_modules/logform/combine.js +66 -0
- package/node_modules/logform/dist/align.js +14 -0
- package/node_modules/logform/dist/browser.js +72 -0
- package/node_modules/logform/dist/cli.js +62 -0
- package/node_modules/logform/dist/colorize.js +131 -0
- package/node_modules/logform/dist/combine.js +62 -0
- package/node_modules/logform/dist/errors.js +44 -0
- package/node_modules/logform/dist/format.js +70 -0
- package/node_modules/logform/dist/index.js +86 -0
- package/node_modules/logform/dist/json.js +30 -0
- package/node_modules/logform/dist/label.js +18 -0
- package/node_modules/logform/dist/levels.js +13 -0
- package/node_modules/logform/dist/logstash.js +28 -0
- package/node_modules/logform/dist/metadata.js +56 -0
- package/node_modules/logform/dist/ms.js +18 -0
- package/node_modules/logform/dist/pad-levels.js +110 -0
- package/node_modules/logform/dist/pretty-print.js +32 -0
- package/node_modules/logform/dist/printf.js +33 -0
- package/node_modules/logform/dist/simple.js +32 -0
- package/node_modules/logform/dist/splat.js +143 -0
- package/node_modules/logform/dist/timestamp.js +26 -0
- package/node_modules/logform/dist/uncolorize.js +25 -0
- package/node_modules/logform/errors.js +41 -0
- package/node_modules/logform/format.js +52 -0
- package/node_modules/logform/index.d.ts +201 -0
- package/node_modules/logform/index.js +52 -0
- package/node_modules/logform/json.js +30 -0
- package/node_modules/logform/label.js +19 -0
- package/node_modules/logform/levels.js +12 -0
- package/node_modules/logform/logstash.js +29 -0
- package/node_modules/logform/metadata.js +61 -0
- package/node_modules/logform/ms.js +18 -0
- package/node_modules/logform/package.json +53 -0
- package/node_modules/logform/pad-levels.js +83 -0
- package/node_modules/logform/pretty-print.js +29 -0
- package/node_modules/logform/printf.js +26 -0
- package/node_modules/logform/simple.js +33 -0
- package/node_modules/logform/splat.js +132 -0
- package/node_modules/logform/timestamp.js +30 -0
- package/node_modules/logform/tsconfig.json +22 -0
- package/node_modules/logform/uncolorize.js +27 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/media-typer/HISTORY.md +22 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +81 -0
- package/node_modules/media-typer/index.js +270 -0
- package/node_modules/media-typer/package.json +26 -0
- package/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/node_modules/merge-descriptors/LICENSE +23 -0
- package/node_modules/merge-descriptors/README.md +49 -0
- package/node_modules/merge-descriptors/index.js +60 -0
- package/node_modules/merge-descriptors/package.json +39 -0
- package/node_modules/methods/HISTORY.md +29 -0
- package/node_modules/methods/LICENSE +24 -0
- package/node_modules/methods/README.md +51 -0
- package/node_modules/methods/index.js +69 -0
- package/node_modules/methods/package.json +36 -0
- package/node_modules/mime/.npmignore +0 -0
- package/node_modules/mime/CHANGELOG.md +164 -0
- package/node_modules/mime/LICENSE +21 -0
- package/node_modules/mime/README.md +90 -0
- package/node_modules/mime/cli.js +8 -0
- package/node_modules/mime/mime.js +108 -0
- package/node_modules/mime/package.json +44 -0
- package/node_modules/mime/src/build.js +53 -0
- package/node_modules/mime/src/test.js +60 -0
- package/node_modules/mime/types.json +1 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/negotiator/HISTORY.md +108 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +203 -0
- package/node_modules/negotiator/index.js +82 -0
- package/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/negotiator/lib/encoding.js +184 -0
- package/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/negotiator/package.json +42 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +634 -0
- package/node_modules/node-fetch/browser.js +25 -0
- package/node_modules/node-fetch/lib/index.es.js +1777 -0
- package/node_modules/node-fetch/lib/index.js +1787 -0
- package/node_modules/node-fetch/lib/index.mjs +1775 -0
- package/node_modules/node-fetch/package.json +89 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/readme.markdown +84 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +261 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/on-finished/HISTORY.md +98 -0
- package/node_modules/on-finished/LICENSE +23 -0
- package/node_modules/on-finished/README.md +162 -0
- package/node_modules/on-finished/index.js +234 -0
- package/node_modules/on-finished/package.json +39 -0
- package/node_modules/one-time/LICENSE +22 -0
- package/node_modules/one-time/README.md +88 -0
- package/node_modules/one-time/async.js +43 -0
- package/node_modules/one-time/index.js +42 -0
- package/node_modules/one-time/package.json +34 -0
- package/node_modules/parseurl/HISTORY.md +58 -0
- package/node_modules/parseurl/LICENSE +24 -0
- package/node_modules/parseurl/README.md +133 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/path-to-regexp/Readme.md +35 -0
- package/node_modules/path-to-regexp/index.js +156 -0
- package/node_modules/path-to-regexp/package.json +30 -0
- package/node_modules/proxy-addr/HISTORY.md +161 -0
- package/node_modules/proxy-addr/LICENSE +22 -0
- package/node_modules/proxy-addr/README.md +139 -0
- package/node_modules/proxy-addr/index.js +327 -0
- package/node_modules/proxy-addr/package.json +47 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.eslintrc +38 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +600 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +709 -0
- package/node_modules/qs/dist/qs.js +90 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +296 -0
- package/node_modules/qs/lib/stringify.js +351 -0
- package/node_modules/qs/lib/utils.js +265 -0
- package/node_modules/qs/package.json +91 -0
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +1170 -0
- package/node_modules/qs/test/stringify.js +1298 -0
- package/node_modules/qs/test/utils.js +136 -0
- package/node_modules/range-parser/HISTORY.md +56 -0
- package/node_modules/range-parser/LICENSE +23 -0
- package/node_modules/range-parser/README.md +84 -0
- package/node_modules/range-parser/index.js +162 -0
- package/node_modules/range-parser/package.json +44 -0
- package/node_modules/raw-body/HISTORY.md +308 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/SECURITY.md +24 -0
- package/node_modules/raw-body/index.d.ts +87 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +49 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +68 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/safe-stable-stringify/LICENSE +21 -0
- package/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/node_modules/safe-stable-stringify/index.d.ts +22 -0
- package/node_modules/safe-stable-stringify/index.js +625 -0
- package/node_modules/safe-stable-stringify/package.json +65 -0
- package/node_modules/safe-stable-stringify/readme.md +179 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/send/HISTORY.md +526 -0
- package/node_modules/send/LICENSE +23 -0
- package/node_modules/send/README.md +327 -0
- package/node_modules/send/SECURITY.md +24 -0
- package/node_modules/send/index.js +1142 -0
- package/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
- package/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/send/node_modules/encodeurl/README.md +128 -0
- package/node_modules/send/node_modules/encodeurl/index.js +60 -0
- package/node_modules/send/node_modules/encodeurl/package.json +40 -0
- package/node_modules/send/package.json +62 -0
- package/node_modules/serve-static/HISTORY.md +487 -0
- package/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/serve-static/README.md +257 -0
- package/node_modules/serve-static/index.js +209 -0
- package/node_modules/serve-static/package.json +42 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +110 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +61 -0
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +43 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/test/index.js +104 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +113 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +104 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/stack-trace/.npmignore +1 -0
- package/node_modules/stack-trace/License +19 -0
- package/node_modules/stack-trace/Makefile +11 -0
- package/node_modules/stack-trace/Readme.md +98 -0
- package/node_modules/stack-trace/lib/stack-trace.js +136 -0
- package/node_modules/stack-trace/package.json +21 -0
- package/node_modules/statuses/HISTORY.md +82 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +136 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +34 -0
- package/node_modules/text-hex/LICENSE +21 -0
- package/node_modules/text-hex/README.md +20 -0
- package/node_modules/text-hex/index.js +24 -0
- package/node_modules/text-hex/package.json +30 -0
- package/node_modules/text-hex/test.js +11 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +31 -0
- package/node_modules/triple-beam/.nyc_output/c579bf8f-6820-47a5-b2da-a11267eb8435.json +1 -0
- package/node_modules/triple-beam/.nyc_output/processinfo/c579bf8f-6820-47a5-b2da-a11267eb8435.json +1 -0
- package/node_modules/triple-beam/.nyc_output/processinfo/index.json +1 -0
- package/node_modules/triple-beam/CHANGELOG.md +22 -0
- package/node_modules/triple-beam/LICENSE +21 -0
- package/node_modules/triple-beam/README.md +34 -0
- package/node_modules/triple-beam/config/cli.js +42 -0
- package/node_modules/triple-beam/config/index.js +32 -0
- package/node_modules/triple-beam/config/npm.js +36 -0
- package/node_modules/triple-beam/config/syslog.js +38 -0
- package/node_modules/triple-beam/index.js +46 -0
- package/node_modules/triple-beam/package.json +40 -0
- package/node_modules/type-is/HISTORY.md +259 -0
- package/node_modules/type-is/LICENSE +23 -0
- package/node_modules/type-is/README.md +170 -0
- package/node_modules/type-is/index.js +266 -0
- package/node_modules/type-is/package.json +45 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +32 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici-types/dispatcher.d.ts +276 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +161 -0
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +211 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/undici-types/header.d.ts +160 -0
- package/node_modules/undici-types/index.d.ts +88 -0
- package/node_modules/undici-types/interceptors.d.ts +73 -0
- package/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +41 -0
- package/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +341 -0
- package/node_modules/undici-types/websocket.d.ts +186 -0
- package/node_modules/universalify/LICENSE +20 -0
- package/node_modules/universalify/README.md +76 -0
- package/node_modules/universalify/index.js +24 -0
- package/node_modules/universalify/package.json +34 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/utils-merge/.npmignore +9 -0
- package/node_modules/utils-merge/LICENSE +20 -0
- package/node_modules/utils-merge/README.md +34 -0
- package/node_modules/utils-merge/index.js +23 -0
- package/node_modules/utils-merge/package.json +40 -0
- package/node_modules/vary/HISTORY.md +39 -0
- package/node_modules/vary/LICENSE +22 -0
- package/node_modules/vary/README.md +101 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +23 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +32 -0
- package/node_modules/winston/LICENSE +19 -0
- package/node_modules/winston/README.md +1273 -0
- package/node_modules/winston/dist/winston/common.js +44 -0
- package/node_modules/winston/dist/winston/config/index.js +36 -0
- package/node_modules/winston/dist/winston/container.js +141 -0
- package/node_modules/winston/dist/winston/create-logger.js +123 -0
- package/node_modules/winston/dist/winston/exception-handler.js +265 -0
- package/node_modules/winston/dist/winston/exception-stream.js +75 -0
- package/node_modules/winston/dist/winston/logger.js +697 -0
- package/node_modules/winston/dist/winston/profiler.js +64 -0
- package/node_modules/winston/dist/winston/rejection-handler.js +265 -0
- package/node_modules/winston/dist/winston/rejection-stream.js +72 -0
- package/node_modules/winston/dist/winston/tail-file.js +113 -0
- package/node_modules/winston/dist/winston/transports/console.js +143 -0
- package/node_modules/winston/dist/winston/transports/file.js +825 -0
- package/node_modules/winston/dist/winston/transports/http.js +288 -0
- package/node_modules/winston/dist/winston/transports/index.js +56 -0
- package/node_modules/winston/dist/winston/transports/stream.js +86 -0
- package/node_modules/winston/dist/winston.js +171 -0
- package/node_modules/winston/index.d.ts +208 -0
- package/node_modules/winston/lib/winston/common.js +46 -0
- package/node_modules/winston/lib/winston/config/index.d.ts +99 -0
- package/node_modules/winston/lib/winston/config/index.js +35 -0
- package/node_modules/winston/lib/winston/container.js +118 -0
- package/node_modules/winston/lib/winston/create-logger.js +104 -0
- package/node_modules/winston/lib/winston/exception-handler.js +245 -0
- package/node_modules/winston/lib/winston/exception-stream.js +54 -0
- package/node_modules/winston/lib/winston/logger.js +700 -0
- package/node_modules/winston/lib/winston/profiler.js +53 -0
- package/node_modules/winston/lib/winston/rejection-handler.js +251 -0
- package/node_modules/winston/lib/winston/rejection-stream.js +52 -0
- package/node_modules/winston/lib/winston/tail-file.js +124 -0
- package/node_modules/winston/lib/winston/transports/console.js +125 -0
- package/node_modules/winston/lib/winston/transports/file.js +795 -0
- package/node_modules/winston/lib/winston/transports/http.js +262 -0
- package/node_modules/winston/lib/winston/transports/index.d.ts +117 -0
- package/node_modules/winston/lib/winston/transports/index.js +56 -0
- package/node_modules/winston/lib/winston/transports/stream.js +63 -0
- package/node_modules/winston/lib/winston.js +191 -0
- package/node_modules/winston/package.json +74 -0
- package/node_modules/winston-transport/.babelrc +3 -0
- package/node_modules/winston-transport/.eslintrc +7 -0
- package/node_modules/winston-transport/.gitattributes +1 -0
- package/node_modules/winston-transport/.nyc_output/68e78020-c804-4f37-a68a-a967c6380da9.json +1 -0
- package/node_modules/winston-transport/.nyc_output/processinfo/68e78020-c804-4f37-a68a-a967c6380da9.json +1 -0
- package/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -0
- package/node_modules/winston-transport/CHANGELOG.md +126 -0
- package/node_modules/winston-transport/LICENSE +22 -0
- package/node_modules/winston-transport/README.md +50 -0
- package/node_modules/winston-transport/dist/index.js +8 -0
- package/node_modules/winston-transport/dist/legacy.js +116 -0
- package/node_modules/winston-transport/dist/modern.js +212 -0
- package/node_modules/winston-transport/index.d.ts +39 -0
- package/node_modules/winston-transport/index.js +7 -0
- package/node_modules/winston-transport/legacy.js +119 -0
- package/node_modules/winston-transport/modern.js +211 -0
- package/node_modules/winston-transport/package.json +52 -0
- package/node_modules/yn/index.d.ts +57 -0
- package/node_modules/yn/index.js +29 -0
- package/node_modules/yn/lenient.js +105 -0
- package/node_modules/yn/license +9 -0
- package/node_modules/yn/package.json +42 -0
- package/node_modules/yn/readme.md +78 -0
- package/package.json +46 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
Node.js: fs-extra
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
`fs-extra` adds file system methods that aren't included in the native `fs` module and adds promise support to the `fs` methods. It also uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs) to prevent `EMFILE` errors. It should be a drop in replacement for `fs`.
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.org/package/fs-extra)
|
|
7
|
+
[](https://github.com/jprichardson/node-fs-extra/blob/master/LICENSE)
|
|
8
|
+
[](https://github.com/jprichardson/node-fs-extra/actions/workflows/ci.yml?query=branch%3Amaster)
|
|
9
|
+
[](https://www.npmjs.org/package/fs-extra)
|
|
10
|
+
[](https://standardjs.com)
|
|
11
|
+
|
|
12
|
+
Why?
|
|
13
|
+
----
|
|
14
|
+
|
|
15
|
+
I got tired of including `mkdirp`, `rimraf`, and `ncp` in most of my projects.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Installation
|
|
21
|
+
------------
|
|
22
|
+
|
|
23
|
+
npm install fs-extra
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Usage
|
|
28
|
+
-----
|
|
29
|
+
|
|
30
|
+
### CommonJS
|
|
31
|
+
|
|
32
|
+
`fs-extra` is a drop in replacement for native `fs`. All methods in `fs` are attached to `fs-extra`. All `fs` methods return promises if the callback isn't passed.
|
|
33
|
+
|
|
34
|
+
You don't ever need to include the original `fs` module again:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
const fs = require('fs') // this is no longer necessary
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
you can now do this:
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
const fs = require('fs-extra')
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
or if you prefer to make it clear that you're using `fs-extra` and not `fs`, you may want
|
|
47
|
+
to name your `fs` variable `fse` like so:
|
|
48
|
+
|
|
49
|
+
```js
|
|
50
|
+
const fse = require('fs-extra')
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
you can also keep both, but it's redundant:
|
|
54
|
+
|
|
55
|
+
```js
|
|
56
|
+
const fs = require('fs')
|
|
57
|
+
const fse = require('fs-extra')
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**NOTE:** The deprecated constants `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, & `fs.X_OK` are not exported on Node.js v24.0.0+; please use their `fs.constants` equivalents.
|
|
61
|
+
|
|
62
|
+
### ESM
|
|
63
|
+
|
|
64
|
+
There is also an `fs-extra/esm` import, that supports both default and named exports. However, note that `fs` methods are not included in `fs-extra/esm`; you still need to import `fs` and/or `fs/promises` seperately:
|
|
65
|
+
|
|
66
|
+
```js
|
|
67
|
+
import { readFileSync } from 'fs'
|
|
68
|
+
import { readFile } from 'fs/promises'
|
|
69
|
+
import { outputFile, outputFileSync } from 'fs-extra/esm'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Default exports are supported:
|
|
73
|
+
|
|
74
|
+
```js
|
|
75
|
+
import fs from 'fs'
|
|
76
|
+
import fse from 'fs-extra/esm'
|
|
77
|
+
// fse.readFileSync is not a function; must use fs.readFileSync
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
but you probably want to just use regular `fs-extra` instead of `fs-extra/esm` for default exports:
|
|
81
|
+
|
|
82
|
+
```js
|
|
83
|
+
import fs from 'fs-extra'
|
|
84
|
+
// both fs and fs-extra methods are defined
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Sync vs Async vs Async/Await
|
|
88
|
+
-------------
|
|
89
|
+
Most methods are async by default. All async methods will return a promise if the callback isn't passed.
|
|
90
|
+
|
|
91
|
+
Sync methods on the other hand will throw if an error occurs.
|
|
92
|
+
|
|
93
|
+
Also Async/Await will throw an error if one occurs.
|
|
94
|
+
|
|
95
|
+
Example:
|
|
96
|
+
|
|
97
|
+
```js
|
|
98
|
+
const fs = require('fs-extra')
|
|
99
|
+
|
|
100
|
+
// Async with promises:
|
|
101
|
+
fs.copy('/tmp/myfile', '/tmp/mynewfile')
|
|
102
|
+
.then(() => console.log('success!'))
|
|
103
|
+
.catch(err => console.error(err))
|
|
104
|
+
|
|
105
|
+
// Async with callbacks:
|
|
106
|
+
fs.copy('/tmp/myfile', '/tmp/mynewfile', err => {
|
|
107
|
+
if (err) return console.error(err)
|
|
108
|
+
console.log('success!')
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
// Sync:
|
|
112
|
+
try {
|
|
113
|
+
fs.copySync('/tmp/myfile', '/tmp/mynewfile')
|
|
114
|
+
console.log('success!')
|
|
115
|
+
} catch (err) {
|
|
116
|
+
console.error(err)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Async/Await:
|
|
120
|
+
async function copyFiles () {
|
|
121
|
+
try {
|
|
122
|
+
await fs.copy('/tmp/myfile', '/tmp/mynewfile')
|
|
123
|
+
console.log('success!')
|
|
124
|
+
} catch (err) {
|
|
125
|
+
console.error(err)
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
copyFiles()
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
Methods
|
|
134
|
+
-------
|
|
135
|
+
|
|
136
|
+
### Async
|
|
137
|
+
|
|
138
|
+
- [copy](docs/copy.md)
|
|
139
|
+
- [emptyDir](docs/emptyDir.md)
|
|
140
|
+
- [ensureFile](docs/ensureFile.md)
|
|
141
|
+
- [ensureDir](docs/ensureDir.md)
|
|
142
|
+
- [ensureLink](docs/ensureLink.md)
|
|
143
|
+
- [ensureSymlink](docs/ensureSymlink.md)
|
|
144
|
+
- [mkdirp](docs/ensureDir.md)
|
|
145
|
+
- [mkdirs](docs/ensureDir.md)
|
|
146
|
+
- [move](docs/move.md)
|
|
147
|
+
- [outputFile](docs/outputFile.md)
|
|
148
|
+
- [outputJson](docs/outputJson.md)
|
|
149
|
+
- [pathExists](docs/pathExists.md)
|
|
150
|
+
- [readJson](docs/readJson.md)
|
|
151
|
+
- [remove](docs/remove.md)
|
|
152
|
+
- [writeJson](docs/writeJson.md)
|
|
153
|
+
|
|
154
|
+
### Sync
|
|
155
|
+
|
|
156
|
+
- [copySync](docs/copy-sync.md)
|
|
157
|
+
- [emptyDirSync](docs/emptyDir-sync.md)
|
|
158
|
+
- [ensureFileSync](docs/ensureFile-sync.md)
|
|
159
|
+
- [ensureDirSync](docs/ensureDir-sync.md)
|
|
160
|
+
- [ensureLinkSync](docs/ensureLink-sync.md)
|
|
161
|
+
- [ensureSymlinkSync](docs/ensureSymlink-sync.md)
|
|
162
|
+
- [mkdirpSync](docs/ensureDir-sync.md)
|
|
163
|
+
- [mkdirsSync](docs/ensureDir-sync.md)
|
|
164
|
+
- [moveSync](docs/move-sync.md)
|
|
165
|
+
- [outputFileSync](docs/outputFile-sync.md)
|
|
166
|
+
- [outputJsonSync](docs/outputJson-sync.md)
|
|
167
|
+
- [pathExistsSync](docs/pathExists-sync.md)
|
|
168
|
+
- [readJsonSync](docs/readJson-sync.md)
|
|
169
|
+
- [removeSync](docs/remove-sync.md)
|
|
170
|
+
- [writeJsonSync](docs/writeJson-sync.md)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
**NOTE:** You can still use the native Node.js methods. They are promisified and copied over to `fs-extra`. See [notes on `fs.read()`, `fs.write()`, & `fs.writev()`](docs/fs-read-write-writev.md)
|
|
174
|
+
|
|
175
|
+
### What happened to `walk()` and `walkSync()`?
|
|
176
|
+
|
|
177
|
+
They were removed from `fs-extra` in v2.0.0. If you need the functionality, `walk` and `walkSync` are available as separate packages, [`klaw`](https://github.com/jprichardson/node-klaw) and [`klaw-sync`](https://github.com/manidlou/node-klaw-sync).
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
Third Party
|
|
181
|
+
-----------
|
|
182
|
+
|
|
183
|
+
### CLI
|
|
184
|
+
|
|
185
|
+
[fse-cli](https://www.npmjs.com/package/@atao60/fse-cli) allows you to run `fs-extra` from a console or from [npm](https://www.npmjs.com) scripts.
|
|
186
|
+
|
|
187
|
+
### TypeScript
|
|
188
|
+
|
|
189
|
+
If you like TypeScript, you can use `fs-extra` with it: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-extra
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### File / Directory Watching
|
|
193
|
+
|
|
194
|
+
If you want to watch for changes to files or directories, then you should use [chokidar](https://github.com/paulmillr/chokidar).
|
|
195
|
+
|
|
196
|
+
### Obtain Filesystem (Devices, Partitions) Information
|
|
197
|
+
|
|
198
|
+
[fs-filesystem](https://github.com/arthurintelligence/node-fs-filesystem) allows you to read the state of the filesystem of the host on which it is run. It returns information about both the devices and the partitions (volumes) of the system.
|
|
199
|
+
|
|
200
|
+
### Misc.
|
|
201
|
+
|
|
202
|
+
- [fs-extra-debug](https://github.com/jdxcode/fs-extra-debug) - Send your fs-extra calls to [debug](https://npmjs.org/package/debug).
|
|
203
|
+
- [mfs](https://github.com/cadorn/mfs) - Monitor your fs-extra calls.
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
Hacking on fs-extra
|
|
208
|
+
-------------------
|
|
209
|
+
|
|
210
|
+
Wanna hack on `fs-extra`? Great! Your help is needed! [fs-extra is one of the most depended upon Node.js packages](http://nodei.co/npm/fs-extra.png?downloads=true&downloadRank=true&stars=true). This project
|
|
211
|
+
uses [JavaScript Standard Style](https://github.com/feross/standard) - if the name or style choices bother you,
|
|
212
|
+
you're gonna have to get over it :) If `standard` is good enough for `npm`, it's good enough for `fs-extra`.
|
|
213
|
+
|
|
214
|
+
[](https://github.com/feross/standard)
|
|
215
|
+
|
|
216
|
+
What's needed?
|
|
217
|
+
- First, take a look at existing issues. Those are probably going to be where the priority lies.
|
|
218
|
+
- More tests for edge cases. Specifically on different platforms. There can never be enough tests.
|
|
219
|
+
- Improve test coverage.
|
|
220
|
+
|
|
221
|
+
Note: If you make any big changes, **you should definitely file an issue for discussion first.**
|
|
222
|
+
|
|
223
|
+
### Running the Test Suite
|
|
224
|
+
|
|
225
|
+
fs-extra contains hundreds of tests.
|
|
226
|
+
|
|
227
|
+
- `npm run lint`: runs the linter ([standard](http://standardjs.com/))
|
|
228
|
+
- `npm run unit`: runs the unit tests
|
|
229
|
+
- `npm run unit-esm`: runs tests for `fs-extra/esm` exports
|
|
230
|
+
- `npm test`: runs the linter and all tests
|
|
231
|
+
|
|
232
|
+
When running unit tests, set the environment variable `CROSS_DEVICE_PATH` to the absolute path of an empty directory on another device (like a thumb drive) to enable cross-device move tests.
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### Windows
|
|
236
|
+
|
|
237
|
+
If you run the tests on the Windows and receive a lot of symbolic link `EPERM` permission errors, it's
|
|
238
|
+
because on Windows you need elevated privilege to create symbolic links. You can add this to your Windows's
|
|
239
|
+
account by following the instructions here: http://superuser.com/questions/104845/permission-to-make-symbolic-links-in-windows-7
|
|
240
|
+
However, I didn't have much luck doing this.
|
|
241
|
+
|
|
242
|
+
Since I develop on Mac OS X, I use VMWare Fusion for Windows testing. I create a shared folder that I map to a drive on Windows.
|
|
243
|
+
I open the `Node.js command prompt` and run as `Administrator`. I then map the network drive running the following command:
|
|
244
|
+
|
|
245
|
+
net use z: "\\vmware-host\Shared Folders"
|
|
246
|
+
|
|
247
|
+
I can then navigate to my `fs-extra` directory and run the tests.
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
Naming
|
|
251
|
+
------
|
|
252
|
+
|
|
253
|
+
I put a lot of thought into the naming of these functions. Inspired by @coolaj86's request. So he deserves much of the credit for raising the issue. See discussion(s) here:
|
|
254
|
+
|
|
255
|
+
* https://github.com/jprichardson/node-fs-extra/issues/2
|
|
256
|
+
* https://github.com/flatiron/utile/issues/11
|
|
257
|
+
* https://github.com/ryanmcgrath/wrench-js/issues/29
|
|
258
|
+
* https://github.com/substack/node-mkdirp/issues/17
|
|
259
|
+
|
|
260
|
+
First, I believe that in as many cases as possible, the [Node.js naming schemes](http://nodejs.org/api/fs.html) should be chosen. However, there are problems with the Node.js own naming schemes.
|
|
261
|
+
|
|
262
|
+
For example, `fs.readFile()` and `fs.readdir()`: the **F** is capitalized in *File* and the **d** is not capitalized in *dir*. Perhaps a bit pedantic, but they should still be consistent. Also, Node.js has chosen a lot of POSIX naming schemes, which I believe is great. See: `fs.mkdir()`, `fs.rmdir()`, `fs.chown()`, etc.
|
|
263
|
+
|
|
264
|
+
We have a dilemma though. How do you consistently name methods that perform the following POSIX commands: `cp`, `cp -r`, `mkdir -p`, and `rm -rf`?
|
|
265
|
+
|
|
266
|
+
My perspective: when in doubt, err on the side of simplicity. A directory is just a hierarchical grouping of directories and files. Consider that for a moment. So when you want to copy it or remove it, in most cases you'll want to copy or remove all of its contents. When you want to create a directory, if the directory that it's suppose to be contained in does not exist, then in most cases you'll want to create that too.
|
|
267
|
+
|
|
268
|
+
So, if you want to remove a file or a directory regardless of whether it has contents, just call `fs.remove(path)`. If you want to copy a file or a directory whether it has contents, just call `fs.copy(source, destination)`. If you want to create a directory regardless of whether its parent directories exist, just call `fs.mkdirs(path)` or `fs.mkdirp(path)`.
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
Credit
|
|
272
|
+
------
|
|
273
|
+
|
|
274
|
+
`fs-extra` wouldn't be possible without using the modules from the following authors:
|
|
275
|
+
|
|
276
|
+
- [Isaac Shlueter](https://github.com/isaacs)
|
|
277
|
+
- [Charlie McConnel](https://github.com/avianflu)
|
|
278
|
+
- [James Halliday](https://github.com/substack)
|
|
279
|
+
- [Andrew Kelley](https://github.com/andrewrk)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
License
|
|
285
|
+
-------
|
|
286
|
+
|
|
287
|
+
Licensed under MIT
|
|
288
|
+
|
|
289
|
+
Copyright (c) 2011-2024 [JP Richardson](https://github.com/jprichardson)
|
|
290
|
+
|
|
291
|
+
[1]: http://nodejs.org/docs/latest/api/fs.html
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
[jsonfile]: https://github.com/jprichardson/node-jsonfile
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const fs = require('graceful-fs')
|
|
4
|
+
const path = require('path')
|
|
5
|
+
const mkdirsSync = require('../mkdirs').mkdirsSync
|
|
6
|
+
const utimesMillisSync = require('../util/utimes').utimesMillisSync
|
|
7
|
+
const stat = require('../util/stat')
|
|
8
|
+
|
|
9
|
+
function copySync (src, dest, opts) {
|
|
10
|
+
if (typeof opts === 'function') {
|
|
11
|
+
opts = { filter: opts }
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
opts = opts || {}
|
|
15
|
+
opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now
|
|
16
|
+
opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber
|
|
17
|
+
|
|
18
|
+
// Warn about using preserveTimestamps on 32-bit node
|
|
19
|
+
if (opts.preserveTimestamps && process.arch === 'ia32') {
|
|
20
|
+
process.emitWarning(
|
|
21
|
+
'Using the preserveTimestamps option in 32-bit node is not recommended;\n\n' +
|
|
22
|
+
'\tsee https://github.com/jprichardson/node-fs-extra/issues/269',
|
|
23
|
+
'Warning', 'fs-extra-WARN0002'
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const { srcStat, destStat } = stat.checkPathsSync(src, dest, 'copy', opts)
|
|
28
|
+
stat.checkParentPathsSync(src, srcStat, dest, 'copy')
|
|
29
|
+
if (opts.filter && !opts.filter(src, dest)) return
|
|
30
|
+
const destParent = path.dirname(dest)
|
|
31
|
+
if (!fs.existsSync(destParent)) mkdirsSync(destParent)
|
|
32
|
+
return getStats(destStat, src, dest, opts)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function getStats (destStat, src, dest, opts) {
|
|
36
|
+
const statSync = opts.dereference ? fs.statSync : fs.lstatSync
|
|
37
|
+
const srcStat = statSync(src)
|
|
38
|
+
|
|
39
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts)
|
|
40
|
+
else if (srcStat.isFile() ||
|
|
41
|
+
srcStat.isCharacterDevice() ||
|
|
42
|
+
srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts)
|
|
43
|
+
else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts)
|
|
44
|
+
else if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`)
|
|
45
|
+
else if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`)
|
|
46
|
+
throw new Error(`Unknown file: ${src}`)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function onFile (srcStat, destStat, src, dest, opts) {
|
|
50
|
+
if (!destStat) return copyFile(srcStat, src, dest, opts)
|
|
51
|
+
return mayCopyFile(srcStat, src, dest, opts)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function mayCopyFile (srcStat, src, dest, opts) {
|
|
55
|
+
if (opts.overwrite) {
|
|
56
|
+
fs.unlinkSync(dest)
|
|
57
|
+
return copyFile(srcStat, src, dest, opts)
|
|
58
|
+
} else if (opts.errorOnExist) {
|
|
59
|
+
throw new Error(`'${dest}' already exists`)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function copyFile (srcStat, src, dest, opts) {
|
|
64
|
+
fs.copyFileSync(src, dest)
|
|
65
|
+
if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest)
|
|
66
|
+
return setDestMode(dest, srcStat.mode)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function handleTimestamps (srcMode, src, dest) {
|
|
70
|
+
// Make sure the file is writable before setting the timestamp
|
|
71
|
+
// otherwise open fails with EPERM when invoked with 'r+'
|
|
72
|
+
// (through utimes call)
|
|
73
|
+
if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode)
|
|
74
|
+
return setDestTimestamps(src, dest)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function fileIsNotWritable (srcMode) {
|
|
78
|
+
return (srcMode & 0o200) === 0
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function makeFileWritable (dest, srcMode) {
|
|
82
|
+
return setDestMode(dest, srcMode | 0o200)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function setDestMode (dest, srcMode) {
|
|
86
|
+
return fs.chmodSync(dest, srcMode)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function setDestTimestamps (src, dest) {
|
|
90
|
+
// The initial srcStat.atime cannot be trusted
|
|
91
|
+
// because it is modified by the read(2) system call
|
|
92
|
+
// (See https://nodejs.org/api/fs.html#fs_stat_time_values)
|
|
93
|
+
const updatedSrcStat = fs.statSync(src)
|
|
94
|
+
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function onDir (srcStat, destStat, src, dest, opts) {
|
|
98
|
+
if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts)
|
|
99
|
+
return copyDir(src, dest, opts)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function mkDirAndCopy (srcMode, src, dest, opts) {
|
|
103
|
+
fs.mkdirSync(dest)
|
|
104
|
+
copyDir(src, dest, opts)
|
|
105
|
+
return setDestMode(dest, srcMode)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function copyDir (src, dest, opts) {
|
|
109
|
+
const dir = fs.opendirSync(src)
|
|
110
|
+
|
|
111
|
+
try {
|
|
112
|
+
let dirent
|
|
113
|
+
|
|
114
|
+
while ((dirent = dir.readSync()) !== null) {
|
|
115
|
+
copyDirItem(dirent.name, src, dest, opts)
|
|
116
|
+
}
|
|
117
|
+
} finally {
|
|
118
|
+
dir.closeSync()
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function copyDirItem (item, src, dest, opts) {
|
|
123
|
+
const srcItem = path.join(src, item)
|
|
124
|
+
const destItem = path.join(dest, item)
|
|
125
|
+
if (opts.filter && !opts.filter(srcItem, destItem)) return
|
|
126
|
+
const { destStat } = stat.checkPathsSync(srcItem, destItem, 'copy', opts)
|
|
127
|
+
return getStats(destStat, srcItem, destItem, opts)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function onLink (destStat, src, dest, opts) {
|
|
131
|
+
let resolvedSrc = fs.readlinkSync(src)
|
|
132
|
+
if (opts.dereference) {
|
|
133
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (!destStat) {
|
|
137
|
+
return fs.symlinkSync(resolvedSrc, dest)
|
|
138
|
+
} else {
|
|
139
|
+
let resolvedDest
|
|
140
|
+
try {
|
|
141
|
+
resolvedDest = fs.readlinkSync(dest)
|
|
142
|
+
} catch (err) {
|
|
143
|
+
// dest exists and is a regular file or directory,
|
|
144
|
+
// Windows may throw UNKNOWN error. If dest already exists,
|
|
145
|
+
// fs throws error anyway, so no need to guard against it here.
|
|
146
|
+
if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlinkSync(resolvedSrc, dest)
|
|
147
|
+
throw err
|
|
148
|
+
}
|
|
149
|
+
if (opts.dereference) {
|
|
150
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest)
|
|
151
|
+
}
|
|
152
|
+
// If both symlinks resolve to the same target, they are still distinct symlinks
|
|
153
|
+
// that can be copied/overwritten. Only check subdirectory constraints when
|
|
154
|
+
// the resolved paths are different.
|
|
155
|
+
if (resolvedSrc !== resolvedDest) {
|
|
156
|
+
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
157
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// prevent copy if src is a subdir of dest since unlinking
|
|
161
|
+
// dest in this case would result in removing src contents
|
|
162
|
+
// and therefore a broken symlink would be created.
|
|
163
|
+
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
164
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return copyLink(resolvedSrc, dest)
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function copyLink (resolvedSrc, dest) {
|
|
172
|
+
fs.unlinkSync(dest)
|
|
173
|
+
return fs.symlinkSync(resolvedSrc, dest)
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
module.exports = copySync
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const fs = require('../fs')
|
|
4
|
+
const path = require('path')
|
|
5
|
+
const { mkdirs } = require('../mkdirs')
|
|
6
|
+
const { pathExists } = require('../path-exists')
|
|
7
|
+
const { utimesMillis } = require('../util/utimes')
|
|
8
|
+
const stat = require('../util/stat')
|
|
9
|
+
const { asyncIteratorConcurrentProcess } = require('../util/async')
|
|
10
|
+
|
|
11
|
+
async function copy (src, dest, opts = {}) {
|
|
12
|
+
if (typeof opts === 'function') {
|
|
13
|
+
opts = { filter: opts }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now
|
|
17
|
+
opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber
|
|
18
|
+
|
|
19
|
+
// Warn about using preserveTimestamps on 32-bit node
|
|
20
|
+
if (opts.preserveTimestamps && process.arch === 'ia32') {
|
|
21
|
+
process.emitWarning(
|
|
22
|
+
'Using the preserveTimestamps option in 32-bit node is not recommended;\n\n' +
|
|
23
|
+
'\tsee https://github.com/jprichardson/node-fs-extra/issues/269',
|
|
24
|
+
'Warning', 'fs-extra-WARN0001'
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const { srcStat, destStat } = await stat.checkPaths(src, dest, 'copy', opts)
|
|
29
|
+
|
|
30
|
+
await stat.checkParentPaths(src, srcStat, dest, 'copy')
|
|
31
|
+
|
|
32
|
+
const include = await runFilter(src, dest, opts)
|
|
33
|
+
|
|
34
|
+
if (!include) return
|
|
35
|
+
|
|
36
|
+
// check if the parent of dest exists, and create it if it doesn't exist
|
|
37
|
+
const destParent = path.dirname(dest)
|
|
38
|
+
const dirExists = await pathExists(destParent)
|
|
39
|
+
if (!dirExists) {
|
|
40
|
+
await mkdirs(destParent)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
await getStatsAndPerformCopy(destStat, src, dest, opts)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async function runFilter (src, dest, opts) {
|
|
47
|
+
if (!opts.filter) return true
|
|
48
|
+
return opts.filter(src, dest)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async function getStatsAndPerformCopy (destStat, src, dest, opts) {
|
|
52
|
+
const statFn = opts.dereference ? fs.stat : fs.lstat
|
|
53
|
+
const srcStat = await statFn(src)
|
|
54
|
+
|
|
55
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts)
|
|
56
|
+
|
|
57
|
+
if (
|
|
58
|
+
srcStat.isFile() ||
|
|
59
|
+
srcStat.isCharacterDevice() ||
|
|
60
|
+
srcStat.isBlockDevice()
|
|
61
|
+
) return onFile(srcStat, destStat, src, dest, opts)
|
|
62
|
+
|
|
63
|
+
if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts)
|
|
64
|
+
if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`)
|
|
65
|
+
if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`)
|
|
66
|
+
throw new Error(`Unknown file: ${src}`)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async function onFile (srcStat, destStat, src, dest, opts) {
|
|
70
|
+
if (!destStat) return copyFile(srcStat, src, dest, opts)
|
|
71
|
+
|
|
72
|
+
if (opts.overwrite) {
|
|
73
|
+
await fs.unlink(dest)
|
|
74
|
+
return copyFile(srcStat, src, dest, opts)
|
|
75
|
+
}
|
|
76
|
+
if (opts.errorOnExist) {
|
|
77
|
+
throw new Error(`'${dest}' already exists`)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async function copyFile (srcStat, src, dest, opts) {
|
|
82
|
+
await fs.copyFile(src, dest)
|
|
83
|
+
if (opts.preserveTimestamps) {
|
|
84
|
+
// Make sure the file is writable before setting the timestamp
|
|
85
|
+
// otherwise open fails with EPERM when invoked with 'r+'
|
|
86
|
+
// (through utimes call)
|
|
87
|
+
if (fileIsNotWritable(srcStat.mode)) {
|
|
88
|
+
await makeFileWritable(dest, srcStat.mode)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Set timestamps and mode correspondingly
|
|
92
|
+
|
|
93
|
+
// Note that The initial srcStat.atime cannot be trusted
|
|
94
|
+
// because it is modified by the read(2) system call
|
|
95
|
+
// (See https://nodejs.org/api/fs.html#fs_stat_time_values)
|
|
96
|
+
const updatedSrcStat = await fs.stat(src)
|
|
97
|
+
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return fs.chmod(dest, srcStat.mode)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function fileIsNotWritable (srcMode) {
|
|
104
|
+
return (srcMode & 0o200) === 0
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function makeFileWritable (dest, srcMode) {
|
|
108
|
+
return fs.chmod(dest, srcMode | 0o200)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async function onDir (srcStat, destStat, src, dest, opts) {
|
|
112
|
+
// the dest directory might not exist, create it
|
|
113
|
+
if (!destStat) {
|
|
114
|
+
await fs.mkdir(dest)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// iterate through the files in the current directory to copy everything
|
|
118
|
+
await asyncIteratorConcurrentProcess(await fs.opendir(src), async (item) => {
|
|
119
|
+
const srcItem = path.join(src, item.name)
|
|
120
|
+
const destItem = path.join(dest, item.name)
|
|
121
|
+
|
|
122
|
+
const include = await runFilter(srcItem, destItem, opts)
|
|
123
|
+
// only copy the item if it matches the filter function
|
|
124
|
+
if (include) {
|
|
125
|
+
const { destStat } = await stat.checkPaths(srcItem, destItem, 'copy', opts)
|
|
126
|
+
// If the item is a copyable file, `getStatsAndPerformCopy` will copy it
|
|
127
|
+
// If the item is a directory, `getStatsAndPerformCopy` will call `onDir` recursively
|
|
128
|
+
await getStatsAndPerformCopy(destStat, srcItem, destItem, opts)
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
if (!destStat) {
|
|
133
|
+
await fs.chmod(dest, srcStat.mode)
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
async function onLink (destStat, src, dest, opts) {
|
|
138
|
+
let resolvedSrc = await fs.readlink(src)
|
|
139
|
+
if (opts.dereference) {
|
|
140
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
|
|
141
|
+
}
|
|
142
|
+
if (!destStat) {
|
|
143
|
+
return fs.symlink(resolvedSrc, dest)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
let resolvedDest = null
|
|
147
|
+
try {
|
|
148
|
+
resolvedDest = await fs.readlink(dest)
|
|
149
|
+
} catch (e) {
|
|
150
|
+
// dest exists and is a regular file or directory,
|
|
151
|
+
// Windows may throw UNKNOWN error. If dest already exists,
|
|
152
|
+
// fs throws error anyway, so no need to guard against it here.
|
|
153
|
+
if (e.code === 'EINVAL' || e.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest)
|
|
154
|
+
throw e
|
|
155
|
+
}
|
|
156
|
+
if (opts.dereference) {
|
|
157
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest)
|
|
158
|
+
}
|
|
159
|
+
// If both symlinks resolve to the same target, they are still distinct symlinks
|
|
160
|
+
// that can be copied/overwritten. Only check subdirectory constraints when
|
|
161
|
+
// the resolved paths are different.
|
|
162
|
+
if (resolvedSrc !== resolvedDest) {
|
|
163
|
+
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
164
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// do not copy if src is a subdir of dest since unlinking
|
|
168
|
+
// dest in this case would result in removing src contents
|
|
169
|
+
// and therefore a broken symlink would be created.
|
|
170
|
+
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
171
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// copy the link
|
|
176
|
+
await fs.unlink(dest)
|
|
177
|
+
return fs.symlink(resolvedSrc, dest)
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
module.exports = copy
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const u = require('universalify').fromPromise
|
|
4
|
+
const fs = require('../fs')
|
|
5
|
+
const path = require('path')
|
|
6
|
+
const mkdir = require('../mkdirs')
|
|
7
|
+
const remove = require('../remove')
|
|
8
|
+
|
|
9
|
+
const emptyDir = u(async function emptyDir (dir) {
|
|
10
|
+
let items
|
|
11
|
+
try {
|
|
12
|
+
items = await fs.readdir(dir)
|
|
13
|
+
} catch {
|
|
14
|
+
return mkdir.mkdirs(dir)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return Promise.all(items.map(item => remove.remove(path.join(dir, item))))
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
function emptyDirSync (dir) {
|
|
21
|
+
let items
|
|
22
|
+
try {
|
|
23
|
+
items = fs.readdirSync(dir)
|
|
24
|
+
} catch {
|
|
25
|
+
return mkdir.mkdirsSync(dir)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
items.forEach(item => {
|
|
29
|
+
item = path.join(dir, item)
|
|
30
|
+
remove.removeSync(item)
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
module.exports = {
|
|
35
|
+
emptyDirSync,
|
|
36
|
+
emptydirSync: emptyDirSync,
|
|
37
|
+
emptyDir,
|
|
38
|
+
emptydir: emptyDir
|
|
39
|
+
}
|