@teammy/server 0.1.4 → 0.1.6
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/dist/main.js +11646 -7952
- package/dist/native-pi-entry.js +14 -1
- package/dist/project-pi-entry.js +46 -8
- package/dist/runtime/workflows/task-bootstrap/prompt.md +2 -0
- package/dist/web/assets/{Assistant-B3h2yQF3.css → Assistant-4yZWjYm-.css} +1 -1
- package/dist/web/assets/Assistant-BNVXOHQZ.js +1 -0
- package/dist/web/assets/Dashboard-zKTK6EZD.js +1 -0
- package/dist/web/assets/Files-DI98WkdW.js +1 -0
- package/dist/web/assets/{Markdown-Bq8P_NBV.js → Markdown-D3cU0ani.js} +4 -4
- package/dist/web/assets/Materials-CK-mbNmo.css +1 -0
- package/dist/web/assets/Materials-CWptgAHz.js +6 -0
- package/dist/web/assets/Sessions-DiDwqXLI.js +1 -0
- package/dist/web/assets/WorkspaceTree-DeAA1QtV.js +1 -0
- package/dist/web/assets/{file-links-CFCIacLV.js → file-links-GfCXWkEh.js} +1 -1
- package/dist/web/assets/index-BwEl1PIa.js +66 -0
- package/dist/web/assets/{index-B-MqU_88.css → index-CTIAGUGG.css} +1 -1
- package/dist/web/downloads/teammy-skill.zip +0 -0
- package/dist/web/index.html +2 -2
- package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/README.md +333 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +114 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +762 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +114 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +758 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +900 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
- package/node_modules/@wecom/aibot-node-sdk/README.md +786 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/api.d.ts +17 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/client.d.ts +217 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/crypto.d.ts +12 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.cjs.js +1563 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.cjs.js.map +1 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.d.ts +1324 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.esm.js +1544 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/index.esm.js.map +1 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/logger.d.ts +14 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/message-handler.d.ts +29 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/api.d.ts +466 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/common.d.ts +30 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/config.d.ts +34 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/event.d.ts +109 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/index.d.ts +10 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/types/message.d.ts +158 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/utils.d.ts +19 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/wecom-crypto/index.d.ts +46 -0
- package/node_modules/@wecom/aibot-node-sdk/dist/ws.d.ts +161 -0
- package/node_modules/@wecom/aibot-node-sdk/package.json +43 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +63 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/axios/CHANGELOG.md +1934 -0
- package/node_modules/axios/LICENSE +7 -0
- package/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/axios/README.md +2786 -0
- package/node_modules/axios/dist/axios.js +6460 -0
- package/node_modules/axios/dist/axios.min.js +5 -0
- package/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/axios/dist/browser/axios.cjs +6509 -0
- package/node_modules/axios/dist/esm/axios.js +6530 -0
- package/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/axios/dist/node/axios.cjs +7491 -0
- package/node_modules/axios/index.d.cts +785 -0
- package/node_modules/axios/index.d.ts +804 -0
- package/node_modules/axios/index.js +45 -0
- package/node_modules/axios/lib/adapters/README.md +36 -0
- package/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/axios/lib/adapters/fetch.js +749 -0
- package/node_modules/axios/lib/adapters/http.js +1609 -0
- package/node_modules/axios/lib/adapters/xhr.js +384 -0
- package/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/axios/lib/core/Axios.js +361 -0
- package/node_modules/axios/lib/core/AxiosError.js +278 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +487 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +182 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
- package/node_modules/axios/lib/core/buildFullPath.js +76 -0
- package/node_modules/axios/lib/core/createMultipartBody.js +37 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +115 -0
- package/node_modules/axios/lib/core/mergeConfig.js +237 -0
- package/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/axios/lib/defaults/index.js +178 -0
- package/node_modules/axios/lib/defaults/transitional.js +11 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +165 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/node_modules/axios/lib/helpers/Http2Sessions.js +122 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/axios/lib/helpers/bind.js +14 -0
- package/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/node_modules/axios/lib/helpers/composeSignals.js +71 -0
- package/node_modules/axios/lib/helpers/cookies.js +88 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +193 -0
- package/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +149 -0
- package/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +75 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
- package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +72 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +120 -0
- package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +520 -0
- package/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/node_modules/axios/lib/helpers/toFormData.js +279 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/axios/lib/helpers/validator.js +112 -0
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/node/index.js +37 -0
- package/node_modules/axios/lib/utils.js +1201 -0
- package/node_modules/axios/node_modules/agent-base/README.md +145 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.d.ts +78 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.js +203 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.js.map +1 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- package/node_modules/axios/node_modules/agent-base/package.json +64 -0
- package/node_modules/axios/node_modules/agent-base/src/index.ts +345 -0
- package/node_modules/axios/node_modules/agent-base/src/promisify.ts +33 -0
- package/node_modules/axios/node_modules/https-proxy-agent/README.md +137 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/package.json +56 -0
- package/node_modules/axios/package.json +202 -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/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +25 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +27 -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/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 +44 -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 +79 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/eventemitter3/LICENSE +21 -0
- package/node_modules/eventemitter3/README.md +85 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.js +355 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.js +363 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
- package/node_modules/eventemitter3/index.d.ts +135 -0
- package/node_modules/eventemitter3/index.js +336 -0
- package/node_modules/eventemitter3/index.mjs +4 -0
- package/node_modules/eventemitter3/package.json +62 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +183 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +714 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/form-data/CHANGELOG.md +686 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md +355 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +4 -0
- package/node_modules/form-data/lib/form_data.js +506 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +82 -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/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 +186 -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 +378 -0
- package/node_modules/get-intrinsic/package.json +97 -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/glob/README.md +388 -214
- package/node_modules/glob/dist/commonjs/glob.d.ts +20 -11
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/glob.js +22 -29
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -1
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +1 -1
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/has-magic.js +1 -4
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -1
- package/node_modules/glob/dist/commonjs/ignore.d.ts +16 -4
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/ignore.js +24 -4
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -1
- package/node_modules/glob/dist/commonjs/index.d.ts +3 -2
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/index.js.map +1 -1
- package/node_modules/glob/dist/commonjs/index.min.js +2 -3
- package/node_modules/glob/dist/commonjs/index.min.js.map +4 -4
- package/node_modules/glob/dist/commonjs/pattern.d.ts +10 -3
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/pattern.js +27 -15
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -1
- package/node_modules/glob/dist/commonjs/processor.d.ts +23 -10
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/processor.js +36 -23
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -1
- package/node_modules/glob/dist/commonjs/walker.d.ts +19 -17
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/walker.js +50 -35
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -1
- package/node_modules/glob/dist/esm/glob.d.ts +20 -11
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/glob.js +22 -29
- package/node_modules/glob/dist/esm/glob.js.map +1 -1
- package/node_modules/glob/dist/esm/has-magic.d.ts +1 -1
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/has-magic.js +1 -4
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -1
- package/node_modules/glob/dist/esm/ignore.d.ts +16 -4
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/ignore.js +25 -5
- package/node_modules/glob/dist/esm/ignore.js.map +1 -1
- package/node_modules/glob/dist/esm/index.d.ts +3 -2
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/index.js.map +1 -1
- package/node_modules/glob/dist/esm/index.min.js +2 -3
- package/node_modules/glob/dist/esm/index.min.js.map +4 -4
- package/node_modules/glob/dist/esm/pattern.d.ts +10 -3
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/pattern.js +27 -15
- package/node_modules/glob/dist/esm/pattern.js.map +1 -1
- package/node_modules/glob/dist/esm/processor.d.ts +23 -10
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/processor.js +36 -23
- package/node_modules/glob/dist/esm/processor.js.map +1 -1
- package/node_modules/glob/dist/esm/walker.d.ts +19 -17
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/walker.js +51 -36
- package/node_modules/glob/dist/esm/walker.js.map +1 -1
- package/node_modules/glob/package.json +28 -12
- package/node_modules/glob/src/glob.ts +655 -0
- package/node_modules/glob/src/has-magic.ts +23 -0
- package/node_modules/glob/src/ignore.ts +162 -0
- package/node_modules/glob/src/index.ts +225 -0
- package/node_modules/glob/src/pattern.ts +286 -0
- package/node_modules/glob/src/processor.ts +333 -0
- package/node_modules/glob/src/walker.ts +523 -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/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/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +58 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -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/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/minimatch/README.md +125 -107
- package/node_modules/minimatch/dist/commonjs/index.d.ts +49 -38
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/commonjs/index.js +782 -359
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/minimatch/dist/esm/index.d.ts +49 -38
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/esm/index.js +781 -356
- package/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/minimatch/package.json +5 -4
- package/node_modules/path-scurry/README.md +0 -1
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +7 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/path-scurry/dist/commonjs/index.js +59 -21
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -1
- package/node_modules/path-scurry/dist/esm/index.d.ts +7 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -1
- package/node_modules/path-scurry/dist/esm/index.js +42 -14
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -1
- package/node_modules/path-scurry/package.json +4 -4
- package/node_modules/proxy-from-env/LICENSE +20 -0
- package/node_modules/proxy-from-env/README.md +163 -0
- package/node_modules/proxy-from-env/index.cjs +105 -0
- package/node_modules/proxy-from-env/index.js +103 -0
- package/node_modules/proxy-from-env/package.json +43 -0
- package/package.json +3 -1
- package/dist/web/assets/Assistant-DSQAdSiW.js +0 -1
- package/dist/web/assets/Dashboard-dCu2Cdxd.js +0 -1
- package/dist/web/assets/Files-cRhoWviM.js +0 -1
- package/dist/web/assets/Sessions-BxHsX1C5.js +0 -1
- package/dist/web/assets/WorkspaceTree-CD94JsaJ.js +0 -1
- package/dist/web/assets/index-BXpTaAUz.js +0 -66
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.js +0 -845
- package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.js +0 -841
- package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* mime-types
|
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Module dependencies.
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var db = require('mime-db')
|
|
16
|
+
var extname = require('path').extname
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Module variables.
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/
|
|
24
|
+
var TEXT_TYPE_REGEXP = /^text\//i
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Module exports.
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
exports.charset = charset
|
|
32
|
+
exports.charsets = { lookup: charset }
|
|
33
|
+
exports.contentType = contentType
|
|
34
|
+
exports.extension = extension
|
|
35
|
+
exports.extensions = Object.create(null)
|
|
36
|
+
exports.lookup = lookup
|
|
37
|
+
exports.types = Object.create(null)
|
|
38
|
+
|
|
39
|
+
// Populate the extensions/types maps
|
|
40
|
+
populateMaps(exports.extensions, exports.types)
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Get the default charset for a MIME type.
|
|
44
|
+
*
|
|
45
|
+
* @param {string} type
|
|
46
|
+
* @return {boolean|string}
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
function charset (type) {
|
|
50
|
+
if (!type || typeof type !== 'string') {
|
|
51
|
+
return false
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// TODO: use media-typer
|
|
55
|
+
var match = EXTRACT_TYPE_REGEXP.exec(type)
|
|
56
|
+
var mime = match && db[match[1].toLowerCase()]
|
|
57
|
+
|
|
58
|
+
if (mime && mime.charset) {
|
|
59
|
+
return mime.charset
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// default text/* to utf-8
|
|
63
|
+
if (match && TEXT_TYPE_REGEXP.test(match[1])) {
|
|
64
|
+
return 'UTF-8'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return false
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Create a full Content-Type header given a MIME type or extension.
|
|
72
|
+
*
|
|
73
|
+
* @param {string} str
|
|
74
|
+
* @return {boolean|string}
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
function contentType (str) {
|
|
78
|
+
// TODO: should this even be in this module?
|
|
79
|
+
if (!str || typeof str !== 'string') {
|
|
80
|
+
return false
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
var mime = str.indexOf('/') === -1
|
|
84
|
+
? exports.lookup(str)
|
|
85
|
+
: str
|
|
86
|
+
|
|
87
|
+
if (!mime) {
|
|
88
|
+
return false
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// TODO: use content-type or other module
|
|
92
|
+
if (mime.indexOf('charset') === -1) {
|
|
93
|
+
var charset = exports.charset(mime)
|
|
94
|
+
if (charset) mime += '; charset=' + charset.toLowerCase()
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return mime
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Get the default extension for a MIME type.
|
|
102
|
+
*
|
|
103
|
+
* @param {string} type
|
|
104
|
+
* @return {boolean|string}
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
function extension (type) {
|
|
108
|
+
if (!type || typeof type !== 'string') {
|
|
109
|
+
return false
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// TODO: use media-typer
|
|
113
|
+
var match = EXTRACT_TYPE_REGEXP.exec(type)
|
|
114
|
+
|
|
115
|
+
// get extensions
|
|
116
|
+
var exts = match && exports.extensions[match[1].toLowerCase()]
|
|
117
|
+
|
|
118
|
+
if (!exts || !exts.length) {
|
|
119
|
+
return false
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return exts[0]
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Lookup the MIME type for a file path/extension.
|
|
127
|
+
*
|
|
128
|
+
* @param {string} path
|
|
129
|
+
* @return {boolean|string}
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
function lookup (path) {
|
|
133
|
+
if (!path || typeof path !== 'string') {
|
|
134
|
+
return false
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// get the extension ("ext" or ".ext" or full path)
|
|
138
|
+
var extension = extname('x.' + path)
|
|
139
|
+
.toLowerCase()
|
|
140
|
+
.substr(1)
|
|
141
|
+
|
|
142
|
+
if (!extension) {
|
|
143
|
+
return false
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return exports.types[extension] || false
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Populate the extensions and types maps.
|
|
151
|
+
* @private
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
function populateMaps (extensions, types) {
|
|
155
|
+
// source preference (least -> most)
|
|
156
|
+
var preference = ['nginx', 'apache', undefined, 'iana']
|
|
157
|
+
|
|
158
|
+
Object.keys(db).forEach(function forEachMimeType (type) {
|
|
159
|
+
var mime = db[type]
|
|
160
|
+
var exts = mime.extensions
|
|
161
|
+
|
|
162
|
+
if (!exts || !exts.length) {
|
|
163
|
+
return
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// mime -> extensions
|
|
167
|
+
extensions[type] = exts
|
|
168
|
+
|
|
169
|
+
// extension -> mime
|
|
170
|
+
for (var i = 0; i < exts.length; i++) {
|
|
171
|
+
var extension = exts[i]
|
|
172
|
+
|
|
173
|
+
if (types[extension]) {
|
|
174
|
+
var from = preference.indexOf(db[types[extension]].source)
|
|
175
|
+
var to = preference.indexOf(mime.source)
|
|
176
|
+
|
|
177
|
+
if (types[extension] !== 'application/octet-stream' &&
|
|
178
|
+
(from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {
|
|
179
|
+
// skip the remapping
|
|
180
|
+
continue
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// set the extension -> mime
|
|
185
|
+
types[extension] = type
|
|
186
|
+
}
|
|
187
|
+
})
|
|
188
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mime-types",
|
|
3
|
+
"description": "The ultimate javascript content-type utility.",
|
|
4
|
+
"version": "2.1.35",
|
|
5
|
+
"contributors": [
|
|
6
|
+
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
7
|
+
"Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)",
|
|
8
|
+
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"mime",
|
|
13
|
+
"types"
|
|
14
|
+
],
|
|
15
|
+
"repository": "jshttp/mime-types",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"mime-db": "1.52.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"eslint": "7.32.0",
|
|
21
|
+
"eslint-config-standard": "14.1.1",
|
|
22
|
+
"eslint-plugin-import": "2.25.4",
|
|
23
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
24
|
+
"eslint-plugin-node": "11.1.0",
|
|
25
|
+
"eslint-plugin-promise": "5.2.0",
|
|
26
|
+
"eslint-plugin-standard": "4.1.0",
|
|
27
|
+
"mocha": "9.2.2",
|
|
28
|
+
"nyc": "15.1.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"HISTORY.md",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"index.js"
|
|
34
|
+
],
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">= 0.6"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"lint": "eslint .",
|
|
40
|
+
"test": "mocha --reporter spec test/test.js",
|
|
41
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
42
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,60 +1,62 @@
|
|
|
1
1
|
# minimatch
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A glob matching utility.
|
|
4
4
|
|
|
5
|
-
This is the matching library used internally by
|
|
5
|
+
This is the matching library used internally by
|
|
6
|
+
[node-glob](https://npm.im/node-glob).
|
|
6
7
|
|
|
7
|
-
It works by
|
|
8
|
-
|
|
8
|
+
It works by splitting glob expressions on `/`, and testing each
|
|
9
|
+
path portion with a `Matcher` from
|
|
10
|
+
[@isaacs/nonrecursive-glob-match](http://npm.im/@isaacs/nonrecursive-glob-match).
|
|
9
11
|
|
|
10
|
-
##
|
|
12
|
+
## Why Not Regular Expressions?
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
> the following warning carefully, and be thoughtful about what
|
|
15
|
-
> you provide to this library in production systems.
|
|
14
|
+
Regular Expressions are very powerful, and for many applications,
|
|
15
|
+
extremely fast.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
patterns using regular expressions will be subject to
|
|
17
|
+
However, in JavaScript, they are subject to
|
|
19
18
|
[ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)
|
|
20
|
-
|
|
19
|
+
in certain cases. Libraries that assemble Regular Expressions
|
|
20
|
+
from arbitrary input are thus vulnerable to patterns that cause
|
|
21
|
+
pathological behavior. For example, patterns like
|
|
22
|
+
`a*a*a*a*a*a*a*a*a*a*a` when matched against a string like
|
|
23
|
+
`'a'.repeat(50) + 'b'` would have to repeatedly backtrack through
|
|
24
|
+
every failure.
|
|
25
|
+
|
|
26
|
+
Most other glob matchers in JavaScript (including versions up
|
|
27
|
+
through v10 of this library) convert the glob pattern to Regular
|
|
28
|
+
Expressions, and then use that to test the string. This is fine
|
|
29
|
+
for trusted input, but can fall over badly in cases that cause
|
|
30
|
+
recursive backtracking.
|
|
31
|
+
|
|
32
|
+
## Important Security Consideration!
|
|
21
33
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
not malice. A dedicated attacker can _always_ find patterns that
|
|
26
|
-
cannot be defended against by a bash-compatible glob pattern
|
|
27
|
-
matching system that uses JavaScript regular expressions.
|
|
34
|
+
Though this library is _not_ vulnerable to ReDOS, _any_ library
|
|
35
|
+
that performs pattern matching based on arbitrary input will
|
|
36
|
+
potentially have edge cases where it performs suboptimally.
|
|
28
37
|
|
|
29
38
|
To be extremely clear:
|
|
30
39
|
|
|
31
40
|
> [!WARNING]
|
|
32
41
|
> **If you create a system where you take user input, and use
|
|
33
|
-
> that input as the source of a
|
|
34
|
-
>
|
|
35
|
-
> pwned.**
|
|
36
|
-
|
|
37
|
-
A future version of this library _may_ use a different matching
|
|
38
|
-
algorithm which does not exhibit backtracking problems. If and
|
|
39
|
-
when that happens, it will likely be a sweeping change, and those
|
|
40
|
-
improvements will **not** be backported to legacy versions.
|
|
42
|
+
> that input as the source of a pattern matcher, in this or any
|
|
43
|
+
> extant glob matcher in JavaScript, you may be pwned.**
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
entirely by this warning.
|
|
45
|
+
The pattern matching library that Minimatch uses in v11 and above
|
|
46
|
+
will not be backported to earlier versions. It is a much too deep
|
|
47
|
+
of a change to do so.
|
|
46
48
|
|
|
47
49
|
## Usage
|
|
48
50
|
|
|
49
|
-
```
|
|
51
|
+
```ts
|
|
50
52
|
// hybrid module, load with require() or import
|
|
51
53
|
import { minimatch } from 'minimatch'
|
|
52
54
|
// or:
|
|
53
|
-
const { minimatch } = require('minimatch')
|
|
55
|
+
// const { minimatch } = require('minimatch')
|
|
54
56
|
|
|
55
57
|
minimatch('bar.foo', '*.foo') // true!
|
|
56
58
|
minimatch('bar.foo', '*.bar') // false!
|
|
57
|
-
minimatch('bar.foo', '*.+(bar|foo)'
|
|
59
|
+
minimatch('bar.foo', '*.+(bar|foo)') // true!
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
## Features
|
|
@@ -112,6 +114,14 @@ On Windows, UNC paths like `//?/c:/...` or
|
|
|
112
114
|
present when the drive letters are a case-insensitive match to
|
|
113
115
|
one another. The remaining portions of the path/pattern are
|
|
114
116
|
compared case sensitively, unless `nocase:true` is set.
|
|
117
|
+
- The host and share of a pattern starting with
|
|
118
|
+
`//<host>/<share>/...` are compared case-insensitively with
|
|
119
|
+
those of the file path, if neither has magic. For example,
|
|
120
|
+
`//host/share/*` matches `//HOST/SHARE/x`.
|
|
121
|
+
- Patterns starting with `//?/UNC/<host>/<share>/...` will match
|
|
122
|
+
file paths starting with `//<host>/<share>/...`, and vice
|
|
123
|
+
versa, the same as `//?/<drive letter>:`. The `?` is not a
|
|
124
|
+
wildcard character.
|
|
115
125
|
|
|
116
126
|
Note that specifying a UNC path using `\` characters as path
|
|
117
127
|
separators is always allowed in the file path argument, but only
|
|
@@ -123,15 +133,15 @@ is set in the options.
|
|
|
123
133
|
Create a minimatch object by instantiating the `minimatch.Minimatch` class.
|
|
124
134
|
|
|
125
135
|
```javascript
|
|
126
|
-
|
|
127
|
-
|
|
136
|
+
import { Minimatch } from 'minimatch'
|
|
137
|
+
const mm = new Minimatch(pattern, options)
|
|
128
138
|
```
|
|
129
139
|
|
|
130
140
|
### Properties
|
|
131
141
|
|
|
132
142
|
- `pattern` The original pattern the minimatch object represents.
|
|
133
143
|
- `options` The options supplied to the constructor.
|
|
134
|
-
- `set` A 2-dimensional array of
|
|
144
|
+
- `set` A 2-dimensional array of `Matcher` or string expressions.
|
|
135
145
|
Each row in the
|
|
136
146
|
array corresponds to a brace-expanded pattern. Each item in the row
|
|
137
147
|
corresponds to a single path-part. For example, the pattern
|
|
@@ -142,26 +152,16 @@ var mm = new Minimatch(pattern, options)
|
|
|
142
152
|
|
|
143
153
|
If a portion of the pattern doesn't have any "magic" in it
|
|
144
154
|
(that is, it's something like `"foo"` rather than `fo*o?`), then it
|
|
145
|
-
will be left as a string rather than converted to a
|
|
146
|
-
expression.
|
|
155
|
+
will be left as a string rather than converted to a `Matcher`.
|
|
147
156
|
|
|
148
|
-
- `regexp` Created by the `makeRe` method. A single regular expression
|
|
149
|
-
expressing the entire pattern. This is useful in cases where you wish
|
|
150
|
-
to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled.
|
|
151
157
|
- `negate` True if the pattern is negated.
|
|
152
158
|
- `comment` True if the pattern is a comment.
|
|
153
159
|
- `empty` True if the pattern is `""`.
|
|
154
160
|
|
|
155
161
|
### Methods
|
|
156
162
|
|
|
157
|
-
- `makeRe()` Generate the `regexp` member if necessary, and return it.
|
|
158
|
-
Will return `false` if the pattern is invalid.
|
|
159
163
|
- `match(fname)` Return true if the filename matches the pattern, or
|
|
160
164
|
false otherwise.
|
|
161
|
-
- `matchOne(fileArray, patternArray, partial)` Take a `/`-split
|
|
162
|
-
filename, and match it against a single row in the `regExpSet`. This
|
|
163
|
-
method is mainly for internal use, but is exposed so that it can be
|
|
164
|
-
used by a glob-walker that needs to avoid excessive filesystem calls.
|
|
165
165
|
- `hasMagic()` Returns true if the parsed pattern contains any
|
|
166
166
|
magic characters. Returns false if all comparator parts are
|
|
167
167
|
string literals. If the `magicalBraces` option is set on the
|
|
@@ -185,16 +185,21 @@ All other methods are internal, and will be called as necessary.
|
|
|
185
185
|
Main export. Tests a path against the pattern using the options.
|
|
186
186
|
|
|
187
187
|
```javascript
|
|
188
|
-
|
|
188
|
+
const isJS = minimatch(file, '*.js', { matchBase: true })
|
|
189
189
|
```
|
|
190
190
|
|
|
191
|
+
It keeps the 256 `Minimatch` objects that it used most recently,
|
|
192
|
+
so a pattern that it tests again with the same options is not
|
|
193
|
+
compiled again. To test many paths against one pattern, a
|
|
194
|
+
`Minimatch` object or `minimatch.filter()` is still a bit faster.
|
|
195
|
+
|
|
191
196
|
### minimatch.filter(pattern, options)
|
|
192
197
|
|
|
193
198
|
Returns a function that tests its
|
|
194
199
|
supplied argument, suitable for use with `Array.filter`. Example:
|
|
195
200
|
|
|
196
201
|
```javascript
|
|
197
|
-
|
|
202
|
+
const javascripts = fileList.filter(
|
|
198
203
|
minimatch.filter('*.js', { matchBase: true }),
|
|
199
204
|
)
|
|
200
205
|
```
|
|
@@ -234,21 +239,13 @@ files, in the style of fnmatch or glob. If nothing is matched, and
|
|
|
234
239
|
options.nonull is set, then return a list containing the pattern itself.
|
|
235
240
|
|
|
236
241
|
```javascript
|
|
237
|
-
|
|
242
|
+
const javascripts = minimatch.match(fileList, '*.js', { matchBase: true })
|
|
238
243
|
```
|
|
239
244
|
|
|
240
|
-
### minimatch.makeRe(pattern, options)
|
|
241
|
-
|
|
242
|
-
Make a regular expression object from the pattern.
|
|
243
|
-
|
|
244
245
|
## Options
|
|
245
246
|
|
|
246
247
|
All options are `false` by default.
|
|
247
248
|
|
|
248
|
-
### debug
|
|
249
|
-
|
|
250
|
-
Dump a ton of stuff to stderr.
|
|
251
|
-
|
|
252
249
|
### nobrace
|
|
253
250
|
|
|
254
251
|
Do not expand `{a,b}` and `{1..3}` brace sets.
|
|
@@ -271,11 +268,14 @@ Disable "extglob" style patterns like `+(a|b)`.
|
|
|
271
268
|
|
|
272
269
|
### nocase
|
|
273
270
|
|
|
274
|
-
Perform a case-insensitive match.
|
|
271
|
+
Perform a case-insensitive match. Case is folded one code point at
|
|
272
|
+
a time, with Unicode simple case folding. See [Comparisons to other
|
|
273
|
+
fnmatch/glob
|
|
274
|
+
implementations](#comparisons-to-other-fnmatchglob-implementations).
|
|
275
275
|
|
|
276
276
|
### nocaseMagicOnly
|
|
277
277
|
|
|
278
|
-
When used with `{nocase: true}`, create
|
|
278
|
+
When used with `{nocase: true}`, create matchers that
|
|
279
279
|
are case-insensitive, but leave string match portions untouched.
|
|
280
280
|
Has no effect when used without `{nocase: true}`.
|
|
281
281
|
|
|
@@ -283,6 +283,28 @@ Useful when some other form of case-insensitive matching is used,
|
|
|
283
283
|
or if the original string representation is useful in some other
|
|
284
284
|
way.
|
|
285
285
|
|
|
286
|
+
### normalize
|
|
287
|
+
|
|
288
|
+
Normalize unicode in the pattern, and in each portion of the tested
|
|
289
|
+
path, with this form: `'NFC'`, `'NFD'`, `'NFKC'`, or `'NFKD'`. `true`
|
|
290
|
+
means `'NFC'`.
|
|
291
|
+
|
|
292
|
+
A char such as `é` can be one code point, or `e` followed by a
|
|
293
|
+
combining accent. Some file systems, such as on macOS, can give file
|
|
294
|
+
names in the second form. Without this option, the two forms do not
|
|
295
|
+
match.
|
|
296
|
+
|
|
297
|
+
- The path is split on `/` before it is normalized. So with NFKC, a
|
|
298
|
+
full width `/` normalizes to `/`, but it does not split the path.
|
|
299
|
+
It is a char in its portion.
|
|
300
|
+
- The syntax of the pattern is parsed before it is normalized. So
|
|
301
|
+
with NFKC, a full width `*` is a literal, which matches `*`, and
|
|
302
|
+
not a wildcard.
|
|
303
|
+
- With `nocase`, the strings are normalized, and then case is folded.
|
|
304
|
+
|
|
305
|
+
See [@isaacs/nonrecursive-glob-match](http://npm.im/@isaacs/nonrecursive-glob-match#unicode-normalization)
|
|
306
|
+
for how classes and combining marks after wildcards are normalized.
|
|
307
|
+
|
|
286
308
|
### nonull
|
|
287
309
|
|
|
288
310
|
When a match is not found by `minimatch.match`, return a list containing
|
|
@@ -354,7 +376,7 @@ For legacy reasons, this is also set if
|
|
|
354
376
|
|
|
355
377
|
When a pattern starts with a UNC path or drive letter, and in
|
|
356
378
|
`nocase:true` mode, do not convert the root portions of the
|
|
357
|
-
pattern into a case-insensitive
|
|
379
|
+
pattern into a case-insensitive matchers, and instead
|
|
358
380
|
leave them as strings.
|
|
359
381
|
|
|
360
382
|
This is the default when the platform is `win32` and
|
|
@@ -390,11 +412,15 @@ is equivalent in all cases).
|
|
|
390
412
|
example, the pattern `./a/b/../*` is converted to `./a/*`, and
|
|
391
413
|
so it will match the path string `./a/c`, but not the path
|
|
392
414
|
string `./a/b/../c`. Dots and empty path portions in the
|
|
393
|
-
pattern are preserved.
|
|
415
|
+
pattern are preserved. On Windows, a `..` never removes the
|
|
416
|
+
drive letter or the UNC host and share at the start of a
|
|
417
|
+
pattern, the same as it never removes the `/` at the start of
|
|
418
|
+
a posix pattern. So `C:/a/../../x` is converted to `C:/../x`.
|
|
394
419
|
- `2` (or higher) - Much more aggressive optimizations, suitable
|
|
395
420
|
for use with file-walking cases:
|
|
396
421
|
- Remove cases where a double-dot `..` follows a pattern
|
|
397
|
-
portion that is not `**`, `.`, or empty `''
|
|
422
|
+
portion that is not `**`, `.`, or empty `''`, or a Windows
|
|
423
|
+
root as above. Remove empty
|
|
398
424
|
and `.` portions of the pattern, where safe to do so (ie,
|
|
399
425
|
anywhere other than the last position, the first position, or
|
|
400
426
|
the second position in a pattern starting with `/`, as this
|
|
@@ -402,7 +428,8 @@ is equivalent in all cases).
|
|
|
402
428
|
- Convert patterns containing `<pre>/**/../<p>/<rest>` into the
|
|
403
429
|
equivalent `<pre>/{..,**}/<p>/<rest>`, where `<p>` is a
|
|
404
430
|
a pattern portion other than `.`, `..`, `**`, or empty
|
|
405
|
-
`''`.
|
|
431
|
+
`''`. This stops when there are `braceExpandMax`
|
|
432
|
+
patterns.
|
|
406
433
|
- Dedupe patterns where a `**` portion is present in one and
|
|
407
434
|
omitted in another, and it is not the final path portion, and
|
|
408
435
|
they are otherwise equivalent. So `{a/**/b,a/b}` becomes
|
|
@@ -411,6 +438,8 @@ is equivalent in all cases).
|
|
|
411
438
|
non-dot pattern other than `**`, `.`, `..`, or `''` is in the
|
|
412
439
|
same position in the other. So `a/{*,x}/b` becomes `a/*/b`,
|
|
413
440
|
because `*` can match against `x`.
|
|
441
|
+
- Dedupe only sets of 1000 patterns or fewer, because each
|
|
442
|
+
pattern is compared to each other one.
|
|
414
443
|
|
|
415
444
|
While these optimizations improve the performance of
|
|
416
445
|
file-walking use cases such as [glob](http://npm.im/glob) (ie,
|
|
@@ -418,13 +447,6 @@ is equivalent in all cases).
|
|
|
418
447
|
fail to match a literal string that would have been matched in
|
|
419
448
|
optimization level 1 or 0.
|
|
420
449
|
|
|
421
|
-
Specifically, while the `Minimatch.match()` method will
|
|
422
|
-
optimize the file path string in the same ways, resulting in
|
|
423
|
-
the same matches, it will fail when tested with the regular
|
|
424
|
-
expression provided by `Minimatch.makeRe()`, unless the path
|
|
425
|
-
string is first processed with
|
|
426
|
-
`minimatch.levelTwoFileOptimize()` or similar.
|
|
427
|
-
|
|
428
450
|
### platform
|
|
429
451
|
|
|
430
452
|
When set to `win32`, this will trigger all windows-specific
|
|
@@ -449,26 +471,6 @@ match the pattern provided.
|
|
|
449
471
|
That is, this is an intentional false negative, deemed an
|
|
450
472
|
acceptable break in correctness for security and performance.
|
|
451
473
|
|
|
452
|
-
### maxExtglobRecursion
|
|
453
|
-
|
|
454
|
-
Max depth to traverse for nested extglobs like `*(a|b|c)`
|
|
455
|
-
|
|
456
|
-
Default is 2, which is quite low, but any higher value swiftly
|
|
457
|
-
results in punishing performance impacts. Note that this is _not_
|
|
458
|
-
relevant when the globstar types can be safely coalesced into a
|
|
459
|
-
single set.
|
|
460
|
-
|
|
461
|
-
For example, `*(a|@(b|c)|d)` would be flattened into
|
|
462
|
-
`*(a|b|c|d)`. Thus, many common extglobs will retain good
|
|
463
|
-
performance and never hit this limit, even if they are
|
|
464
|
-
excessively deep and complicated.
|
|
465
|
-
|
|
466
|
-
If the limit is hit, then the extglob characters are simply not
|
|
467
|
-
parsed, and the pattern effectively switches into `noextglob:
|
|
468
|
-
true` mode for the contents of that nested sub-pattern. This will
|
|
469
|
-
typically _not_ result in a match, but is considered a valid
|
|
470
|
-
trade-off for security and performance.
|
|
471
|
-
|
|
472
474
|
## Comparisons to other fnmatch/glob implementations
|
|
473
475
|
|
|
474
476
|
While strict compliance with the existing standards is a
|
|
@@ -497,8 +499,8 @@ If an escaped pattern has no matches, and the `nonull` flag is set,
|
|
|
497
499
|
then minimatch.match returns the pattern as-provided, rather than
|
|
498
500
|
interpreting the character escapes. For example,
|
|
499
501
|
`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
|
|
500
|
-
`"*a?"`. This is
|
|
501
|
-
|
|
502
|
+
`"*a?"`. This is like bash with the `nullglob` option off (the
|
|
503
|
+
default), except that bash also removes the escapes.
|
|
502
504
|
|
|
503
505
|
If brace expansion is not disabled, then it is performed before any
|
|
504
506
|
other interpretation of the glob pattern. Thus, a pattern like
|
|
@@ -506,20 +508,36 @@ other interpretation of the glob pattern. Thus, a pattern like
|
|
|
506
508
|
**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
|
|
507
509
|
checked for validity. Since those two are valid, matching proceeds.
|
|
508
510
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
which
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
511
|
+
Each portion of a pattern between `/` characters is matched with
|
|
512
|
+
[@isaacs/nonrecursive-glob-match](http://npm.im/@isaacs/nonrecursive-glob-match),
|
|
513
|
+
which uses Bash 5 as its reference, and does not use regular
|
|
514
|
+
expressions. So negated extglobs such as `<start>!(<pattern>*|)*`
|
|
515
|
+
match the same strings as in Bash. These are the known
|
|
516
|
+
differences:
|
|
517
|
+
|
|
518
|
+
- If `dot` is not set, a portion that starts with `.` only matches
|
|
519
|
+
if a literal `.` in the pattern matches that first character.
|
|
520
|
+
Extglobs before that `.` can match the empty string, so the
|
|
521
|
+
pattern can still match. For example, with `nonegate`,
|
|
522
|
+
`!(.a|js)@(.*)` matches `.a`, `.a.js`, and `.js`, because
|
|
523
|
+
`!(.a|js)` matches the empty string. Bash does not match these
|
|
524
|
+
dotfiles.
|
|
525
|
+
- If an extglob such as `?(a` is not closed, Bash matches the
|
|
526
|
+
whole pattern as a literal string. In this library, only the
|
|
527
|
+
`?(` is literal, and the rest of the pattern is still matched
|
|
528
|
+
as a glob. So `a?(b*` matches `a?(bcc` here, but not in Bash.
|
|
529
|
+
- A pattern is split into portions on every `/`, including a `/`
|
|
530
|
+
inside an extglob. So `@(a|b/c)/*` becomes the portions
|
|
531
|
+
`@(a|b`, `c)`, and `*`, and its extglob is not closed. Bash
|
|
532
|
+
keeps the extglob whole, and drops each alternative with a `/`
|
|
533
|
+
in it, as no portion can contain a `/`. So in Bash, `@(a|b/c)/*`
|
|
534
|
+
is the same as `@(a)/*`. Leave out the alternatives with a `/`
|
|
535
|
+
to get the same result here.
|
|
536
|
+
- With `nocase`, case is folded one code point at a time with
|
|
537
|
+
Unicode simple case folding, the same as a JavaScript RegExp
|
|
538
|
+
with the `iu` flags. Bash uses the case functions of the C
|
|
539
|
+
library for the current locale, so its results can change with
|
|
540
|
+
the locale.
|
|
523
541
|
|
|
524
542
|
Note that `fnmatch(3)` in libc is an extremely naive string comparison
|
|
525
543
|
matcher, which does not do anything special for slashes. This library is
|