@psnext/slingcli 3.5.20261007-2 → 3.5.20261019-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/bin/sling-startup-output.js +47 -0
- package/bin/sling.js +29 -2
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +2 -0
- package/node_modules/@earendil-works/pi-codemode/dist/runtime/host.js +21 -86
- package/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.js +3 -103
- package/node_modules/@earendil-works/pi-codemode/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-JPNA2XH6.js → chunk-23QDZLZG.js} +22 -16
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-4RGLMKVY.js → chunk-QPFSTNX5.js} +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{virtual-modules-SXTR3NIO.js → virtual-modules-GRXGP6ZA.js} +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/pi-logo.js +8 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +6 -3
- package/node_modules/@earendil-works/pi-coding-agent/docs/mcp.md +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Agent.md +8 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +11 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Dispatcher.md +12 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Errors.md +101 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +17 -9
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/index.md +22 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/type-map.json +66 -66
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +10 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/constants.js +12 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/errors.js +38 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/request.js +39 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/util.js +26 -40
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +127 -84
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +97 -21
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +10 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool-base.js +117 -19
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool.js +99 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +34 -11
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +153 -15
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +126 -52
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +31 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +116 -24
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +15 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +253 -73
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +11 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/response-error.js +72 -28
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/LICENSE.md +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/no-simd.js +1002 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/simd.js +1002 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +11 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +11 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/util.js +21 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +50 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/body.js +69 -53
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/headers.js +36 -33
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +54 -29
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +74 -79
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +7 -7
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +2 -14
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +33 -12
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/receiver.js +27 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +7 -5
- package/node_modules/@earendil-works/pi-coding-agent/package.json +2 -2
- package/node_modules/@hono/node-server/README.md +2 -0
- package/node_modules/@hono/node-server/dist/index.cjs +1 -1
- package/node_modules/@hono/node-server/dist/index.mjs +1 -1
- package/node_modules/@hono/node-server/dist/serve-static.cjs +2 -1
- package/node_modules/@hono/node-server/dist/serve-static.mjs +2 -1
- package/node_modules/@hono/node-server/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +8 -1
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +8 -1
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +13 -2
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -1
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -11
- package/node_modules/{@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → @smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -9
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@smithy/core/package.json +2 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/content-disposition/README.md +105 -35
- package/node_modules/content-disposition/dist/index.d.ts +72 -0
- package/node_modules/content-disposition/dist/index.js +388 -0
- package/node_modules/content-disposition/dist/index.js.map +1 -0
- package/node_modules/content-disposition/package.json +31 -19
- package/node_modules/express/Readme.md +15 -9
- package/node_modules/express/lib/application.js +2 -2
- package/node_modules/express/lib/request.js +32 -19
- package/node_modules/express/lib/response.js +27 -30
- package/node_modules/express/node_modules/content-type/LICENSE +22 -0
- package/node_modules/express/node_modules/content-type/README.md +71 -0
- package/node_modules/express/node_modules/content-type/dist/index.d.ts +46 -0
- package/node_modules/express/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/express/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/express/node_modules/content-type/package.json +52 -0
- package/node_modules/express/package.json +10 -10
- package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
- package/node_modules/fast-uri/README.md +8 -0
- package/node_modules/fast-uri/index.js +98 -18
- package/node_modules/fast-uri/lib/utils.js +52 -0
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
- package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +32 -4
- package/node_modules/fast-uri/test/scheme-validation.test.js +53 -14
- package/node_modules/ip-address/README.md +70 -70
- package/node_modules/ip-address/dist/ipv6.js +7 -4
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts +3 -0
- package/node_modules/ip-address/dist/v6/constants.js +3 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
- package/node_modules/ip-address/package.json +2 -1
- package/node_modules/jose/README.md +2 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
- package/node_modules/jose/dist/types/key/export.d.ts +1 -1
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
- package/node_modules/jose/dist/types/key/import.d.ts +2 -2
- package/node_modules/jose/dist/types/types.d.ts +165 -107
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
- package/node_modules/jose/dist/types/util/errors.d.ts +1 -1
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
- package/node_modules/jose/dist/webapi/jwks/local.js +2 -1
- package/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
- package/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
- package/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
- package/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
- package/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
- package/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
- package/node_modules/jose/dist/webapi/lib/key.js +4 -4
- package/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
- package/node_modules/jose/dist/webapi/lib/validate.js +10 -10
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
- package/node_modules/jose/package.json +1 -1
- package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
- package/node_modules/qs/CHANGELOG.md +38 -14
- package/node_modules/qs/README.md +31 -3
- package/node_modules/qs/dist/qs.js +20 -20
- package/node_modules/qs/lib/parse.js +94 -4
- package/node_modules/qs/lib/stringify.js +4 -4
- package/node_modules/qs/lib/utils.js +130 -6
- package/node_modules/qs/package.json +4 -4
- package/node_modules/qs/test/parse.js +174 -0
- package/node_modules/qs/test/stringify.js +263 -33
- package/node_modules/qs/test/utils.js +184 -0
- package/node_modules/undici/docs/docs/api/Client.md +2 -0
- package/node_modules/undici/lib/core/connect.js +10 -4
- package/node_modules/undici/lib/core/symbols.js +1 -0
- package/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +0 -2
- package/node_modules/undici/lib/dispatcher/client-h2.js +0 -4
- package/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
- package/node_modules/undici/lib/handler/cache-handler.js +48 -0
- package/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
- package/node_modules/undici/lib/handler/redirect-handler.js +8 -1
- package/node_modules/undici/lib/interceptor/decompress.js +15 -5
- package/node_modules/undici/lib/web/cookies/index.js +3 -1
- package/node_modules/undici/lib/web/cookies/parse.js +138 -137
- package/node_modules/undici/lib/web/cookies/util.js +21 -2
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +90 -9
- package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
- package/node_modules/undici/lib/web/fetch/index.js +3 -3
- package/node_modules/undici/lib/web/infra/index.js +14 -0
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/undici/lib/web/websocket/receiver.js +13 -0
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/client.d.ts +14 -0
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
- package/node_modules/zod/src/v4/core/compile.ts +9 -0
- package/node_modules/zod/src/v4/core/schemas.ts +35 -1
- package/node_modules/zod/src/v4/core/util.ts +13 -0
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/v4/core/compile.cjs +8 -0
- package/node_modules/zod/v4/core/compile.js +8 -0
- package/node_modules/zod/v4/core/schemas.cjs +30 -0
- package/node_modules/zod/v4/core/schemas.d.cts +3 -1
- package/node_modules/zod/v4/core/schemas.d.ts +3 -1
- package/node_modules/zod/v4/core/schemas.js +30 -0
- package/node_modules/zod/v4/core/util.cjs +15 -0
- package/node_modules/zod/v4/core/util.d.cts +2 -0
- package/node_modules/zod/v4/core/util.d.ts +2 -0
- package/node_modules/zod/v4/core/util.js +14 -0
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/package.json +5 -4
- package/slingshot/index.js +214 -214
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- package/node_modules/@esbuild/linux-x64/README.md +0 -3
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +0 -20
- package/node_modules/content-disposition/index.js +0 -536
- package/node_modules/esbuild/LICENSE.md +0 -21
- package/node_modules/esbuild/README.md +0 -3
- package/node_modules/esbuild/bin/esbuild +0 -0
- package/node_modules/esbuild/install.js +0 -300
- package/node_modules/esbuild/lib/main.d.ts +0 -720
- package/node_modules/esbuild/lib/main.js +0 -2536
- package/node_modules/esbuild/package.json +0 -74
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
- /package/node_modules/{@aws-sdk/core/dist-types/submodules/protocols/json → @smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
|
@@ -1,720 +0,0 @@
|
|
|
1
|
-
export type Platform = 'browser' | 'node' | 'neutral'
|
|
2
|
-
export type Format = 'iife' | 'cjs' | 'esm'
|
|
3
|
-
export type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'local-css' | 'text' | 'ts' | 'tsx'
|
|
4
|
-
export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent'
|
|
5
|
-
export type LogStyle = 'default' | 'visualstudio'
|
|
6
|
-
export type Charset = 'ascii' | 'utf8'
|
|
7
|
-
export type Drop = 'console' | 'debugger'
|
|
8
|
-
export type AbsPaths = 'code' | 'log' | 'metafile'
|
|
9
|
-
|
|
10
|
-
interface CommonOptions {
|
|
11
|
-
/** Documentation: https://esbuild.github.io/api/#sourcemap */
|
|
12
|
-
sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both'
|
|
13
|
-
/** Documentation: https://esbuild.github.io/api/#legal-comments */
|
|
14
|
-
legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external'
|
|
15
|
-
/** Documentation: https://esbuild.github.io/api/#source-root */
|
|
16
|
-
sourceRoot?: string
|
|
17
|
-
/** Documentation: https://esbuild.github.io/api/#sources-content */
|
|
18
|
-
sourcesContent?: boolean
|
|
19
|
-
|
|
20
|
-
/** Documentation: https://esbuild.github.io/api/#format */
|
|
21
|
-
format?: Format
|
|
22
|
-
/** Documentation: https://esbuild.github.io/api/#global-name */
|
|
23
|
-
globalName?: string
|
|
24
|
-
/** Documentation: https://esbuild.github.io/api/#target */
|
|
25
|
-
target?: string | string[]
|
|
26
|
-
/** Documentation: https://esbuild.github.io/api/#supported */
|
|
27
|
-
supported?: Record<string, boolean>
|
|
28
|
-
/** Documentation: https://esbuild.github.io/api/#platform */
|
|
29
|
-
platform?: Platform
|
|
30
|
-
|
|
31
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
32
|
-
mangleProps?: RegExp
|
|
33
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
34
|
-
reserveProps?: RegExp
|
|
35
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
36
|
-
mangleQuoted?: boolean
|
|
37
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
38
|
-
mangleCache?: Record<string, string | false>
|
|
39
|
-
/** Documentation: https://esbuild.github.io/api/#drop */
|
|
40
|
-
drop?: Drop[]
|
|
41
|
-
/** Documentation: https://esbuild.github.io/api/#drop-labels */
|
|
42
|
-
dropLabels?: string[]
|
|
43
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
44
|
-
minify?: boolean
|
|
45
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
46
|
-
minifyWhitespace?: boolean
|
|
47
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
48
|
-
minifyIdentifiers?: boolean
|
|
49
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
50
|
-
minifySyntax?: boolean
|
|
51
|
-
/** Documentation: https://esbuild.github.io/api/#line-limit */
|
|
52
|
-
lineLimit?: number
|
|
53
|
-
/** Documentation: https://esbuild.github.io/api/#charset */
|
|
54
|
-
charset?: Charset
|
|
55
|
-
/** Documentation: https://esbuild.github.io/api/#tree-shaking */
|
|
56
|
-
treeShaking?: boolean
|
|
57
|
-
/** Documentation: https://esbuild.github.io/api/#ignore-annotations */
|
|
58
|
-
ignoreAnnotations?: boolean
|
|
59
|
-
|
|
60
|
-
/** Documentation: https://esbuild.github.io/api/#jsx */
|
|
61
|
-
jsx?: 'transform' | 'preserve' | 'automatic'
|
|
62
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-factory */
|
|
63
|
-
jsxFactory?: string
|
|
64
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-fragment */
|
|
65
|
-
jsxFragment?: string
|
|
66
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-import-source */
|
|
67
|
-
jsxImportSource?: string
|
|
68
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-development */
|
|
69
|
-
jsxDev?: boolean
|
|
70
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-side-effects */
|
|
71
|
-
jsxSideEffects?: boolean
|
|
72
|
-
|
|
73
|
-
/** Documentation: https://esbuild.github.io/api/#define */
|
|
74
|
-
define?: { [key: string]: string }
|
|
75
|
-
/** Documentation: https://esbuild.github.io/api/#pure */
|
|
76
|
-
pure?: string[]
|
|
77
|
-
/** Documentation: https://esbuild.github.io/api/#keep-names */
|
|
78
|
-
keepNames?: boolean
|
|
79
|
-
|
|
80
|
-
/** Documentation: https://esbuild.github.io/api/#abs-paths */
|
|
81
|
-
absPaths?: AbsPaths[]
|
|
82
|
-
/** Documentation: https://esbuild.github.io/api/#color */
|
|
83
|
-
color?: boolean
|
|
84
|
-
/** Documentation: https://esbuild.github.io/api/#log-level */
|
|
85
|
-
logLevel?: LogLevel
|
|
86
|
-
/** Documentation: https://esbuild.github.io/api/#log-limit */
|
|
87
|
-
logLimit?: number
|
|
88
|
-
/** Documentation: https://esbuild.github.io/api/#log-override */
|
|
89
|
-
logOverride?: Record<string, LogLevel>
|
|
90
|
-
/** Documentation: https://esbuild.github.io/api/#log-style */
|
|
91
|
-
logStyle?: LogStyle
|
|
92
|
-
|
|
93
|
-
/** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
|
|
94
|
-
tsconfigRaw?: string | TsconfigRaw
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface TsconfigRaw {
|
|
98
|
-
compilerOptions?: {
|
|
99
|
-
alwaysStrict?: boolean
|
|
100
|
-
baseUrl?: string
|
|
101
|
-
experimentalDecorators?: boolean
|
|
102
|
-
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
|
|
103
|
-
jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
|
|
104
|
-
jsxFactory?: string
|
|
105
|
-
jsxFragmentFactory?: string
|
|
106
|
-
jsxImportSource?: string
|
|
107
|
-
paths?: Record<string, string[]>
|
|
108
|
-
preserveValueImports?: boolean
|
|
109
|
-
strict?: boolean
|
|
110
|
-
target?: string
|
|
111
|
-
useDefineForClassFields?: boolean
|
|
112
|
-
verbatimModuleSyntax?: boolean
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface BuildOptions extends CommonOptions {
|
|
117
|
-
/** Documentation: https://esbuild.github.io/api/#bundle */
|
|
118
|
-
bundle?: boolean
|
|
119
|
-
/** Documentation: https://esbuild.github.io/api/#splitting */
|
|
120
|
-
splitting?: boolean
|
|
121
|
-
/** Documentation: https://esbuild.github.io/api/#preserve-symlinks */
|
|
122
|
-
preserveSymlinks?: boolean
|
|
123
|
-
/** Documentation: https://esbuild.github.io/api/#outfile */
|
|
124
|
-
outfile?: string
|
|
125
|
-
/** Documentation: https://esbuild.github.io/api/#metafile */
|
|
126
|
-
metafile?: boolean
|
|
127
|
-
/** Documentation: https://esbuild.github.io/api/#outdir */
|
|
128
|
-
outdir?: string
|
|
129
|
-
/** Documentation: https://esbuild.github.io/api/#outbase */
|
|
130
|
-
outbase?: string
|
|
131
|
-
/** Documentation: https://esbuild.github.io/api/#external */
|
|
132
|
-
external?: string[]
|
|
133
|
-
/** Documentation: https://esbuild.github.io/api/#packages */
|
|
134
|
-
packages?: 'bundle' | 'external'
|
|
135
|
-
/** Documentation: https://esbuild.github.io/api/#alias */
|
|
136
|
-
alias?: Record<string, string>
|
|
137
|
-
/** Documentation: https://esbuild.github.io/api/#loader */
|
|
138
|
-
loader?: { [ext: string]: Loader }
|
|
139
|
-
/** Documentation: https://esbuild.github.io/api/#resolve-extensions */
|
|
140
|
-
resolveExtensions?: string[]
|
|
141
|
-
/** Documentation: https://esbuild.github.io/api/#main-fields */
|
|
142
|
-
mainFields?: string[]
|
|
143
|
-
/** Documentation: https://esbuild.github.io/api/#conditions */
|
|
144
|
-
conditions?: string[]
|
|
145
|
-
/** Documentation: https://esbuild.github.io/api/#write */
|
|
146
|
-
write?: boolean
|
|
147
|
-
/** Documentation: https://esbuild.github.io/api/#allow-overwrite */
|
|
148
|
-
allowOverwrite?: boolean
|
|
149
|
-
/** Documentation: https://esbuild.github.io/api/#tsconfig */
|
|
150
|
-
tsconfig?: string
|
|
151
|
-
/** Documentation: https://esbuild.github.io/api/#out-extension */
|
|
152
|
-
outExtension?: { [ext: string]: string }
|
|
153
|
-
/** Documentation: https://esbuild.github.io/api/#public-path */
|
|
154
|
-
publicPath?: string
|
|
155
|
-
/** Documentation: https://esbuild.github.io/api/#entry-names */
|
|
156
|
-
entryNames?: string
|
|
157
|
-
/** Documentation: https://esbuild.github.io/api/#chunk-names */
|
|
158
|
-
chunkNames?: string
|
|
159
|
-
/** Documentation: https://esbuild.github.io/api/#asset-names */
|
|
160
|
-
assetNames?: string
|
|
161
|
-
/** Documentation: https://esbuild.github.io/api/#inject */
|
|
162
|
-
inject?: string[]
|
|
163
|
-
/** Documentation: https://esbuild.github.io/api/#banner */
|
|
164
|
-
banner?: { [type: string]: string }
|
|
165
|
-
/** Documentation: https://esbuild.github.io/api/#footer */
|
|
166
|
-
footer?: { [type: string]: string }
|
|
167
|
-
/** Documentation: https://esbuild.github.io/api/#entry-points */
|
|
168
|
-
entryPoints?: (string | { in: string, out: string })[] | Record<string, string>
|
|
169
|
-
/** Documentation: https://esbuild.github.io/api/#stdin */
|
|
170
|
-
stdin?: StdinOptions
|
|
171
|
-
/** Documentation: https://esbuild.github.io/plugins/ */
|
|
172
|
-
plugins?: Plugin[]
|
|
173
|
-
/** Documentation: https://esbuild.github.io/api/#working-directory */
|
|
174
|
-
absWorkingDir?: string
|
|
175
|
-
/** Documentation: https://esbuild.github.io/api/#node-paths */
|
|
176
|
-
nodePaths?: string[]; // The "NODE_PATH" variable from Node.js
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface StdinOptions {
|
|
180
|
-
contents: string | Uint8Array
|
|
181
|
-
resolveDir?: string
|
|
182
|
-
sourcefile?: string
|
|
183
|
-
loader?: Loader
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface Message {
|
|
187
|
-
id: string
|
|
188
|
-
pluginName: string
|
|
189
|
-
text: string
|
|
190
|
-
location: Location | null
|
|
191
|
-
notes: Note[]
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Optional user-specified data that is passed through unmodified. You can
|
|
195
|
-
* use this to stash the original error, for example.
|
|
196
|
-
*/
|
|
197
|
-
detail: any
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export interface Note {
|
|
201
|
-
text: string
|
|
202
|
-
location: Location | null
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export interface Location {
|
|
206
|
-
file: string
|
|
207
|
-
namespace: string
|
|
208
|
-
/** 1-based */
|
|
209
|
-
line: number
|
|
210
|
-
/** 0-based, in bytes */
|
|
211
|
-
column: number
|
|
212
|
-
/** in bytes */
|
|
213
|
-
length: number
|
|
214
|
-
lineText: string
|
|
215
|
-
suggestion: string
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface OutputFile {
|
|
219
|
-
path: string
|
|
220
|
-
contents: Uint8Array
|
|
221
|
-
hash: string
|
|
222
|
-
/** "contents" as text (changes automatically with "contents") */
|
|
223
|
-
readonly text: string
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export interface BuildResult<ProvidedOptions extends BuildOptions = BuildOptions> {
|
|
227
|
-
errors: Message[]
|
|
228
|
-
warnings: Message[]
|
|
229
|
-
/** Only when "write: false" */
|
|
230
|
-
outputFiles: OutputFile[] | (ProvidedOptions['write'] extends false ? never : undefined)
|
|
231
|
-
/** Only when "metafile: true" */
|
|
232
|
-
metafile: Metafile | (ProvidedOptions['metafile'] extends true ? never : undefined)
|
|
233
|
-
/** Only when "mangleCache" is present */
|
|
234
|
-
mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface BuildFailure extends Error {
|
|
238
|
-
errors: Message[]
|
|
239
|
-
warnings: Message[]
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/** Documentation: https://esbuild.github.io/api/#serve-arguments */
|
|
243
|
-
export interface ServeOptions {
|
|
244
|
-
port?: number
|
|
245
|
-
host?: string
|
|
246
|
-
servedir?: string
|
|
247
|
-
keyfile?: string
|
|
248
|
-
certfile?: string
|
|
249
|
-
fallback?: string
|
|
250
|
-
cors?: CORSOptions
|
|
251
|
-
onRequest?: (args: ServeOnRequestArgs) => void
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/** Documentation: https://esbuild.github.io/api/#cors */
|
|
255
|
-
export interface CORSOptions {
|
|
256
|
-
origin?: string | string[]
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export interface ServeOnRequestArgs {
|
|
260
|
-
remoteAddress: string
|
|
261
|
-
method: string
|
|
262
|
-
path: string
|
|
263
|
-
status: number
|
|
264
|
-
/** The time to generate the response, not to send it */
|
|
265
|
-
timeInMS: number
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/** Documentation: https://esbuild.github.io/api/#serve-return-values */
|
|
269
|
-
export interface ServeResult {
|
|
270
|
-
port: number
|
|
271
|
-
hosts: string[]
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export interface TransformOptions extends CommonOptions {
|
|
275
|
-
/** Documentation: https://esbuild.github.io/api/#sourcefile */
|
|
276
|
-
sourcefile?: string
|
|
277
|
-
/** Documentation: https://esbuild.github.io/api/#loader */
|
|
278
|
-
loader?: Loader
|
|
279
|
-
/** Documentation: https://esbuild.github.io/api/#banner */
|
|
280
|
-
banner?: string
|
|
281
|
-
/** Documentation: https://esbuild.github.io/api/#footer */
|
|
282
|
-
footer?: string
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
|
|
286
|
-
code: string
|
|
287
|
-
map: string
|
|
288
|
-
warnings: Message[]
|
|
289
|
-
/** Only when "mangleCache" is present */
|
|
290
|
-
mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
|
|
291
|
-
/** Only when "legalComments" is "external" */
|
|
292
|
-
legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export interface TransformFailure extends Error {
|
|
296
|
-
errors: Message[]
|
|
297
|
-
warnings: Message[]
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export interface Plugin {
|
|
301
|
-
name: string
|
|
302
|
-
setup: (build: PluginBuild) => (void | Promise<void>)
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export interface PluginBuild {
|
|
306
|
-
/** Documentation: https://esbuild.github.io/plugins/#build-options */
|
|
307
|
-
initialOptions: BuildOptions
|
|
308
|
-
|
|
309
|
-
/** Documentation: https://esbuild.github.io/plugins/#resolve */
|
|
310
|
-
resolve(path: string, options?: ResolveOptions): Promise<ResolveResult>
|
|
311
|
-
|
|
312
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-start */
|
|
313
|
-
onStart(callback: () =>
|
|
314
|
-
(OnStartResult | null | void | Promise<OnStartResult | null | void>)): void
|
|
315
|
-
|
|
316
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-end */
|
|
317
|
-
onEnd(callback: (result: BuildResult) =>
|
|
318
|
-
(OnEndResult | null | void | Promise<OnEndResult | null | void>)): void
|
|
319
|
-
|
|
320
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-resolve */
|
|
321
|
-
onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) =>
|
|
322
|
-
(OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>)): void
|
|
323
|
-
|
|
324
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-load */
|
|
325
|
-
onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) =>
|
|
326
|
-
(OnLoadResult | null | undefined | Promise<OnLoadResult | null | undefined>)): void
|
|
327
|
-
|
|
328
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-dispose */
|
|
329
|
-
onDispose(callback: () => void): void
|
|
330
|
-
|
|
331
|
-
// This is a full copy of the esbuild library in case you need it
|
|
332
|
-
esbuild: {
|
|
333
|
-
context: typeof context,
|
|
334
|
-
build: typeof build,
|
|
335
|
-
buildSync: typeof buildSync,
|
|
336
|
-
transform: typeof transform,
|
|
337
|
-
transformSync: typeof transformSync,
|
|
338
|
-
formatMessages: typeof formatMessages,
|
|
339
|
-
formatMessagesSync: typeof formatMessagesSync,
|
|
340
|
-
analyzeMetafile: typeof analyzeMetafile,
|
|
341
|
-
analyzeMetafileSync: typeof analyzeMetafileSync,
|
|
342
|
-
initialize: typeof initialize,
|
|
343
|
-
version: typeof version,
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/** Documentation: https://esbuild.github.io/plugins/#resolve-options */
|
|
348
|
-
export interface ResolveOptions {
|
|
349
|
-
pluginName?: string
|
|
350
|
-
importer?: string
|
|
351
|
-
namespace?: string
|
|
352
|
-
resolveDir?: string
|
|
353
|
-
kind?: ImportKind
|
|
354
|
-
pluginData?: any
|
|
355
|
-
with?: Record<string, string>
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/** Documentation: https://esbuild.github.io/plugins/#resolve-results */
|
|
359
|
-
export interface ResolveResult {
|
|
360
|
-
errors: Message[]
|
|
361
|
-
warnings: Message[]
|
|
362
|
-
|
|
363
|
-
path: string
|
|
364
|
-
external: boolean
|
|
365
|
-
sideEffects: boolean
|
|
366
|
-
namespace: string
|
|
367
|
-
suffix: string
|
|
368
|
-
pluginData: any
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
export interface OnStartResult {
|
|
372
|
-
errors?: PartialMessage[]
|
|
373
|
-
warnings?: PartialMessage[]
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export interface OnEndResult {
|
|
377
|
-
errors?: PartialMessage[]
|
|
378
|
-
warnings?: PartialMessage[]
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-resolve-options */
|
|
382
|
-
export interface OnResolveOptions {
|
|
383
|
-
filter: RegExp
|
|
384
|
-
namespace?: string
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-resolve-arguments */
|
|
388
|
-
export interface OnResolveArgs {
|
|
389
|
-
path: string
|
|
390
|
-
importer: string
|
|
391
|
-
namespace: string
|
|
392
|
-
resolveDir: string
|
|
393
|
-
kind: ImportKind
|
|
394
|
-
pluginData: any
|
|
395
|
-
with: Record<string, string>
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export type ImportKind =
|
|
399
|
-
| 'entry-point'
|
|
400
|
-
|
|
401
|
-
// JS
|
|
402
|
-
| 'import-statement'
|
|
403
|
-
| 'require-call'
|
|
404
|
-
| 'dynamic-import'
|
|
405
|
-
| 'require-resolve'
|
|
406
|
-
|
|
407
|
-
// CSS
|
|
408
|
-
| 'import-rule'
|
|
409
|
-
| 'composes-from'
|
|
410
|
-
| 'url-token'
|
|
411
|
-
|
|
412
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-resolve-results */
|
|
413
|
-
export interface OnResolveResult {
|
|
414
|
-
pluginName?: string
|
|
415
|
-
|
|
416
|
-
errors?: PartialMessage[]
|
|
417
|
-
warnings?: PartialMessage[]
|
|
418
|
-
|
|
419
|
-
path?: string
|
|
420
|
-
external?: boolean
|
|
421
|
-
sideEffects?: boolean
|
|
422
|
-
namespace?: string
|
|
423
|
-
suffix?: string
|
|
424
|
-
pluginData?: any
|
|
425
|
-
|
|
426
|
-
watchFiles?: string[]
|
|
427
|
-
watchDirs?: string[]
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-load-options */
|
|
431
|
-
export interface OnLoadOptions {
|
|
432
|
-
filter: RegExp
|
|
433
|
-
namespace?: string
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-load-arguments */
|
|
437
|
-
export interface OnLoadArgs {
|
|
438
|
-
path: string
|
|
439
|
-
namespace: string
|
|
440
|
-
suffix: string
|
|
441
|
-
pluginData: any
|
|
442
|
-
with: Record<string, string>
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/** Documentation: https://esbuild.github.io/plugins/#on-load-results */
|
|
446
|
-
export interface OnLoadResult {
|
|
447
|
-
pluginName?: string
|
|
448
|
-
|
|
449
|
-
errors?: PartialMessage[]
|
|
450
|
-
warnings?: PartialMessage[]
|
|
451
|
-
|
|
452
|
-
contents?: string | Uint8Array
|
|
453
|
-
resolveDir?: string
|
|
454
|
-
loader?: Loader
|
|
455
|
-
pluginData?: any
|
|
456
|
-
|
|
457
|
-
watchFiles?: string[]
|
|
458
|
-
watchDirs?: string[]
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
export interface PartialMessage {
|
|
462
|
-
id?: string
|
|
463
|
-
pluginName?: string
|
|
464
|
-
text?: string
|
|
465
|
-
location?: Partial<Location> | null
|
|
466
|
-
notes?: PartialNote[]
|
|
467
|
-
detail?: any
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export interface PartialNote {
|
|
471
|
-
text?: string
|
|
472
|
-
location?: Partial<Location> | null
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/** Documentation: https://esbuild.github.io/api/#metafile */
|
|
476
|
-
export interface Metafile {
|
|
477
|
-
inputs: {
|
|
478
|
-
[path: string]: {
|
|
479
|
-
bytes: number
|
|
480
|
-
imports: {
|
|
481
|
-
path: string
|
|
482
|
-
kind: ImportKind
|
|
483
|
-
external?: boolean
|
|
484
|
-
original?: string
|
|
485
|
-
with?: Record<string, string>
|
|
486
|
-
}[]
|
|
487
|
-
format?: 'cjs' | 'esm'
|
|
488
|
-
with?: Record<string, string>
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
outputs: {
|
|
492
|
-
[path: string]: {
|
|
493
|
-
bytes: number
|
|
494
|
-
inputs: {
|
|
495
|
-
[path: string]: {
|
|
496
|
-
bytesInOutput: number
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
imports: {
|
|
500
|
-
path: string
|
|
501
|
-
kind: ImportKind | 'file-loader'
|
|
502
|
-
external?: boolean
|
|
503
|
-
}[]
|
|
504
|
-
exports: string[]
|
|
505
|
-
entryPoint?: string
|
|
506
|
-
cssBundle?: string
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export interface FormatMessagesOptions {
|
|
512
|
-
kind: 'error' | 'warning'
|
|
513
|
-
color?: boolean
|
|
514
|
-
terminalWidth?: number
|
|
515
|
-
logStyle?: LogStyle
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export interface AnalyzeMetafileOptions {
|
|
519
|
-
color?: boolean
|
|
520
|
-
verbose?: boolean
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/** Documentation: https://esbuild.github.io/api/#watch-arguments */
|
|
524
|
-
export interface WatchOptions {
|
|
525
|
-
delay?: number // In milliseconds
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export interface BuildContext<ProvidedOptions extends BuildOptions = BuildOptions> {
|
|
529
|
-
/** Documentation: https://esbuild.github.io/api/#rebuild */
|
|
530
|
-
rebuild(): Promise<BuildResult<ProvidedOptions>>
|
|
531
|
-
|
|
532
|
-
/** Documentation: https://esbuild.github.io/api/#watch */
|
|
533
|
-
watch(options?: WatchOptions): Promise<void>
|
|
534
|
-
|
|
535
|
-
/** Documentation: https://esbuild.github.io/api/#serve */
|
|
536
|
-
serve(options?: ServeOptions): Promise<ServeResult>
|
|
537
|
-
|
|
538
|
-
cancel(): Promise<void>
|
|
539
|
-
dispose(): Promise<void>
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
// This is a TypeScript type-level function which replaces any keys in "In"
|
|
543
|
-
// that aren't in "Out" with "never". We use this to reject properties with
|
|
544
|
-
// typos in object literals. See: https://stackoverflow.com/questions/49580725
|
|
545
|
-
type SameShape<Out, In extends Out> = In & { [Key in Exclude<keyof In, keyof Out>]: never }
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* This function invokes the "esbuild" command-line tool for you. It returns a
|
|
549
|
-
* promise that either resolves with a "BuildResult" object or rejects with a
|
|
550
|
-
* "BuildFailure" object.
|
|
551
|
-
*
|
|
552
|
-
* - Works in node: yes
|
|
553
|
-
* - Works in browser: yes
|
|
554
|
-
*
|
|
555
|
-
* Documentation: https://esbuild.github.io/api/#build
|
|
556
|
-
*/
|
|
557
|
-
export declare function build<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildResult<T>>
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* This is the advanced long-running form of "build" that supports additional
|
|
561
|
-
* features such as watch mode and a local development server.
|
|
562
|
-
*
|
|
563
|
-
* - Works in node: yes
|
|
564
|
-
* - Works in browser: no
|
|
565
|
-
*
|
|
566
|
-
* Documentation: https://esbuild.github.io/api/#build
|
|
567
|
-
*/
|
|
568
|
-
export declare function context<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildContext<T>>
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* This function transforms a single JavaScript file. It can be used to minify
|
|
572
|
-
* JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript
|
|
573
|
-
* to older JavaScript. It returns a promise that is either resolved with a
|
|
574
|
-
* "TransformResult" object or rejected with a "TransformFailure" object.
|
|
575
|
-
*
|
|
576
|
-
* - Works in node: yes
|
|
577
|
-
* - Works in browser: yes
|
|
578
|
-
*
|
|
579
|
-
* Documentation: https://esbuild.github.io/api/#transform
|
|
580
|
-
*/
|
|
581
|
-
export declare function transform<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): Promise<TransformResult<T>>
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Converts log messages to formatted message strings suitable for printing in
|
|
585
|
-
* the terminal. This allows you to reuse the built-in behavior of esbuild's
|
|
586
|
-
* log message formatter. This is a batch-oriented API for efficiency.
|
|
587
|
-
*
|
|
588
|
-
* - Works in node: yes
|
|
589
|
-
* - Works in browser: yes
|
|
590
|
-
*/
|
|
591
|
-
export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* Pretty-prints an analysis of the metafile JSON to a string. This is just for
|
|
595
|
-
* convenience to be able to match esbuild's pretty-printing exactly. If you want
|
|
596
|
-
* to customize it, you can just inspect the data in the metafile yourself.
|
|
597
|
-
*
|
|
598
|
-
* - Works in node: yes
|
|
599
|
-
* - Works in browser: yes
|
|
600
|
-
*
|
|
601
|
-
* Documentation: https://esbuild.github.io/api/#analyze
|
|
602
|
-
*/
|
|
603
|
-
export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* A synchronous version of "build".
|
|
607
|
-
*
|
|
608
|
-
* - Works in node: yes
|
|
609
|
-
* - Works in browser: no
|
|
610
|
-
*
|
|
611
|
-
* Documentation: https://esbuild.github.io/api/#build
|
|
612
|
-
*/
|
|
613
|
-
export declare function buildSync<T extends BuildOptions>(options: SameShape<BuildOptions, T>): BuildResult<T>
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* A synchronous version of "transform".
|
|
617
|
-
*
|
|
618
|
-
* - Works in node: yes
|
|
619
|
-
* - Works in browser: no
|
|
620
|
-
*
|
|
621
|
-
* Documentation: https://esbuild.github.io/api/#transform
|
|
622
|
-
*/
|
|
623
|
-
export declare function transformSync<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): TransformResult<T>
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* A synchronous version of "formatMessages".
|
|
627
|
-
*
|
|
628
|
-
* - Works in node: yes
|
|
629
|
-
* - Works in browser: no
|
|
630
|
-
*/
|
|
631
|
-
export declare function formatMessagesSync(messages: PartialMessage[], options: FormatMessagesOptions): string[]
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* A synchronous version of "analyzeMetafile".
|
|
635
|
-
*
|
|
636
|
-
* - Works in node: yes
|
|
637
|
-
* - Works in browser: no
|
|
638
|
-
*
|
|
639
|
-
* Documentation: https://esbuild.github.io/api/#analyze
|
|
640
|
-
*/
|
|
641
|
-
export declare function analyzeMetafileSync(metafile: Metafile | string, options?: AnalyzeMetafileOptions): string
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* This configures the browser-based version of esbuild. It is necessary to
|
|
645
|
-
* call this first and wait for the returned promise to be resolved before
|
|
646
|
-
* making other API calls when using esbuild in the browser.
|
|
647
|
-
*
|
|
648
|
-
* - Works in node: yes
|
|
649
|
-
* - Works in browser: yes ("options" is required)
|
|
650
|
-
*
|
|
651
|
-
* Documentation: https://esbuild.github.io/api/#browser
|
|
652
|
-
*/
|
|
653
|
-
export declare function initialize(options: InitializeOptions): Promise<void>
|
|
654
|
-
|
|
655
|
-
export interface InitializeOptions {
|
|
656
|
-
/**
|
|
657
|
-
* The URL of the "esbuild.wasm" file. This must be provided when running
|
|
658
|
-
* esbuild in the browser.
|
|
659
|
-
*/
|
|
660
|
-
wasmURL?: string | URL
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* The result of calling "new WebAssembly.Module(buffer)" where "buffer"
|
|
664
|
-
* is a typed array or ArrayBuffer containing the binary code of the
|
|
665
|
-
* "esbuild.wasm" file.
|
|
666
|
-
*
|
|
667
|
-
* You can use this as an alternative to "wasmURL" for environments where it's
|
|
668
|
-
* not possible to download the WebAssembly module.
|
|
669
|
-
*/
|
|
670
|
-
wasmModule?: WebAssembly.Module
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* By default esbuild runs the WebAssembly-based browser API in a web worker
|
|
674
|
-
* to avoid blocking the UI thread. This can be disabled by setting "worker"
|
|
675
|
-
* to false.
|
|
676
|
-
*/
|
|
677
|
-
worker?: boolean
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
export let version: string
|
|
681
|
-
|
|
682
|
-
// Call this function to terminate esbuild's child process. The child process
|
|
683
|
-
// is not terminated and re-created after each API call because it's more
|
|
684
|
-
// efficient to keep it around when there are multiple API calls.
|
|
685
|
-
//
|
|
686
|
-
// In node this happens automatically before the parent node process exits. So
|
|
687
|
-
// you only need to call this if you know you will not make any more esbuild
|
|
688
|
-
// API calls and you want to clean up resources.
|
|
689
|
-
//
|
|
690
|
-
// Unlike node, Deno lacks the necessary APIs to clean up child processes
|
|
691
|
-
// automatically. You must manually call stop() in Deno when you're done
|
|
692
|
-
// using esbuild or Deno will continue running forever.
|
|
693
|
-
//
|
|
694
|
-
// Another reason you might want to call this is if you are using esbuild from
|
|
695
|
-
// within a Deno test. Deno fails tests that create a child process without
|
|
696
|
-
// killing it before the test ends, so you have to call this function (and
|
|
697
|
-
// await the returned promise) in every Deno test that uses esbuild.
|
|
698
|
-
export declare function stop(): Promise<void>
|
|
699
|
-
|
|
700
|
-
// Note: These declarations exist to avoid type errors when you omit "dom" from
|
|
701
|
-
// "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
|
|
702
|
-
// global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
|
|
703
|
-
// with the browser DOM and is present in many non-browser JavaScript runtimes
|
|
704
|
-
// (e.g. node and deno). Declaring it here allows esbuild's API to be used in
|
|
705
|
-
// these scenarios.
|
|
706
|
-
//
|
|
707
|
-
// There's an open issue about getting this problem corrected (although these
|
|
708
|
-
// declarations will need to remain even if this is fixed for backward
|
|
709
|
-
// compatibility with older TypeScript versions):
|
|
710
|
-
//
|
|
711
|
-
// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
|
|
712
|
-
//
|
|
713
|
-
declare global {
|
|
714
|
-
namespace WebAssembly {
|
|
715
|
-
interface Module {
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
interface URL {
|
|
719
|
-
}
|
|
720
|
-
}
|