cloudstructs 0.9.13 → 0.9.14
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/.jsii +3 -3
- package/assets/slack-textract/detect.lambda/index.js +14 -9
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/email-receiver/whitelist.lambda.js +2 -3
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/provider.lambda.js +2 -3
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/events.lambda.js +2 -3
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-events/signature.js +2 -3
- package/lib/slack-textract/detect.lambda.js +2 -3
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/analyze.lambda.js +2 -3
- package/lib/ssl-server-test/extract-grade.lambda.js +2 -3
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/state-machine-cr-provider/runtime/http.js +3 -3
- package/lib/state-machine-cr-provider/runtime/index.js +5 -5
- package/lib/static-website/index.js +1 -1
- package/lib/static-website/origin-request.edge-lambda.js +2 -3
- package/lib/toolkit-cleaner/clean-images.lambda.js +2 -3
- package/lib/toolkit-cleaner/clean-objects.lambda.js +2 -3
- package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +2 -3
- package/lib/toolkit-cleaner/get-stack-names.lambda.js +2 -3
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/lib/url-shortener/redirect.edge-lambda.js +2 -3
- package/lib/url-shortener/shortener.lambda.js +2 -3
- package/node_modules/@babel/runtime/helpers/extends.js +2 -2
- package/node_modules/@babel/runtime/helpers/get.js +2 -2
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +2 -2
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +2 -2
- package/node_modules/@babel/runtime/helpers/typeof.js +2 -2
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +2 -2
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +47 -48
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +13 -0
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +35 -0
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +18 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +47 -48
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +13 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +35 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +18 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +178 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +378 -101
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +19 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/balanced-pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/client.d.ts +12 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/diagnostics-channel.d.ts +1 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/dispatcher.d.ts +18 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/errors.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/fetch.d.ts +25 -25
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/formdata.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/index.d.ts +10 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-interceptor.d.ts +4 -4
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/package.json +1 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/proxy-agent.d.ts +0 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/readable.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/webidl.d.ts +10 -8
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/websocket.d.ts +22 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +178 -19
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +378 -101
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -2
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +19 -2
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +222 -0
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +152 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +178 -19
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +378 -101
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -2
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +19 -2
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +222 -0
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +152 -0
- package/node_modules/axios/CHANGELOG.md +16 -0
- package/node_modules/axios/README.md +6 -57
- package/node_modules/axios/dist/axios.js +29 -22
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +17 -10
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +17 -10
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +18 -11
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/lib/adapters/fetch.js +4 -1
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/core/AxiosError.js +5 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/node_modules/axios/lib/platform/common/utils.js +5 -4
- package/node_modules/axios/package.json +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +4 -2
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.js +4 -2
- package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +4 -2
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/esm/index.js +4 -2
- package/node_modules/foreground-child/dist/esm/index.js.map +1 -1
- package/node_modules/foreground-child/package.json +1 -1
- package/node_modules/juice/package.json +3 -3
- package/node_modules/uglify-js/bin/uglifyjs +6 -3
- package/node_modules/uglify-js/lib/compress.js +117 -75
- package/node_modules/uglify-js/lib/minify.js +4 -3
- package/node_modules/uglify-js/lib/output.js +16 -5
- package/node_modules/uglify-js/package.json +1 -1
- package/node_modules/uglify-js/tools/node.js +6 -1
- package/package.json +18 -18
- package/node_modules/undici-types/handlers.d.ts +0 -9
- package/node_modules/undici-types/interceptors.d.ts +0 -5
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/README.md +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/api.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cache.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/connector.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cookies.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/file.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/filereader.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-dispatcher.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-origin.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/header.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-client.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-errors.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-pool.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/patch.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool-stats.d.ts +0 -0
|
@@ -210,10 +210,19 @@ Compressor.prototype = new TreeTransformer(function(node, descend) {
|
|
|
210
210
|
// output and performance.
|
|
211
211
|
descend(node, this);
|
|
212
212
|
var opt = node.optimize(this);
|
|
213
|
-
if (is_scope
|
|
214
|
-
opt.
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
if (is_scope) {
|
|
214
|
+
if (opt === node && !this.has_directive("use asm") && !opt.pinned()) {
|
|
215
|
+
opt.drop_unused(this);
|
|
216
|
+
if (opt.merge_variables(this)) opt.drop_unused(this);
|
|
217
|
+
descend(opt, this);
|
|
218
|
+
}
|
|
219
|
+
if (this.option("arrows") && is_arrow(opt) && opt.body.length == 1) {
|
|
220
|
+
var stat = opt.body[0];
|
|
221
|
+
if (stat instanceof AST_Return) {
|
|
222
|
+
opt.body.length = 0;
|
|
223
|
+
opt.value = stat.value;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
217
226
|
}
|
|
218
227
|
if (opt === node) opt._squeezed = true;
|
|
219
228
|
return opt;
|
|
@@ -637,14 +646,12 @@ Compressor.prototype.compress = function(node) {
|
|
|
637
646
|
scope.may_call_this = undefined;
|
|
638
647
|
}
|
|
639
648
|
|
|
640
|
-
function push(tw, sequential) {
|
|
649
|
+
function push(tw, sequential, conditional) {
|
|
641
650
|
var defined_ids = Object.create(tw.defined_ids);
|
|
642
|
-
|
|
643
|
-
if (!sequential) {
|
|
644
|
-
defined_ids.seq = {};
|
|
645
|
-
safe_ids.seq = {};
|
|
646
|
-
}
|
|
651
|
+
if (!sequential || conditional) defined_ids.seq = Object.create(null);
|
|
647
652
|
tw.defined_ids = defined_ids;
|
|
653
|
+
var safe_ids = Object.create(tw.safe_ids);
|
|
654
|
+
if (!sequential) safe_ids.seq = {};
|
|
648
655
|
tw.safe_ids = safe_ids;
|
|
649
656
|
}
|
|
650
657
|
|
|
@@ -654,18 +661,22 @@ Compressor.prototype.compress = function(node) {
|
|
|
654
661
|
}
|
|
655
662
|
|
|
656
663
|
function access(tw, def) {
|
|
657
|
-
|
|
664
|
+
var seq = tw.defined_ids.seq;
|
|
665
|
+
tw.defined_ids[def.id] = seq;
|
|
666
|
+
seq[def.id] = true;
|
|
658
667
|
}
|
|
659
668
|
|
|
660
669
|
function assign(tw, def) {
|
|
661
|
-
|
|
662
|
-
tw.
|
|
670
|
+
var seq = tw.defined_ids.seq;
|
|
671
|
+
tw.assigned_ids[def.id] = seq;
|
|
672
|
+
seq[def.id] = false;
|
|
663
673
|
}
|
|
664
674
|
|
|
665
675
|
function safe_to_access(tw, def) {
|
|
666
676
|
var seq = tw.defined_ids.seq;
|
|
667
677
|
var defined = tw.defined_ids[def.id];
|
|
668
678
|
if (defined !== seq) return false;
|
|
679
|
+
if (!defined[def.id]) return false;
|
|
669
680
|
var assigned = tw.assigned_ids[def.id];
|
|
670
681
|
return !assigned || assigned === seq;
|
|
671
682
|
}
|
|
@@ -842,7 +853,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
842
853
|
var scanner = new TreeWalker(function(node) {
|
|
843
854
|
if (node instanceof AST_DefaultValue) {
|
|
844
855
|
reset_flags(node);
|
|
845
|
-
push(tw, true);
|
|
856
|
+
push(tw, true, true);
|
|
846
857
|
node.value.walk(tw);
|
|
847
858
|
pop(tw);
|
|
848
859
|
var save = fixed;
|
|
@@ -1029,7 +1040,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
1029
1040
|
return walk_lazy();
|
|
1030
1041
|
}
|
|
1031
1042
|
var safe = safe_to_read(tw, ld);
|
|
1032
|
-
if (lazy) push(tw, true);
|
|
1043
|
+
if (lazy) push(tw, true, true);
|
|
1033
1044
|
right.walk(tw);
|
|
1034
1045
|
if (lazy) pop(tw);
|
|
1035
1046
|
if (safe && !left.in_arg && safe_to_assign(tw, ld)) {
|
|
@@ -1114,7 +1125,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
1114
1125
|
function walk_lazy() {
|
|
1115
1126
|
if (!lazy) return;
|
|
1116
1127
|
left.walk(tw);
|
|
1117
|
-
push(tw, true);
|
|
1128
|
+
push(tw, true, true);
|
|
1118
1129
|
right.walk(tw);
|
|
1119
1130
|
pop(tw);
|
|
1120
1131
|
return true;
|
|
@@ -1123,7 +1134,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
1123
1134
|
def(AST_Binary, function(tw) {
|
|
1124
1135
|
if (!lazy_op[this.operator]) return;
|
|
1125
1136
|
this.left.walk(tw);
|
|
1126
|
-
push(tw, true);
|
|
1137
|
+
push(tw, true, true);
|
|
1127
1138
|
this.right.walk(tw);
|
|
1128
1139
|
pop(tw);
|
|
1129
1140
|
return true;
|
|
@@ -1153,7 +1164,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
1153
1164
|
}
|
|
1154
1165
|
exp.walk(tw);
|
|
1155
1166
|
var optional = node.optional;
|
|
1156
|
-
if (optional) push(tw, true);
|
|
1167
|
+
if (optional) push(tw, true, true);
|
|
1157
1168
|
node.args.forEach(function(arg) {
|
|
1158
1169
|
arg.walk(tw);
|
|
1159
1170
|
});
|
|
@@ -1238,16 +1249,16 @@ Compressor.prototype.compress = function(node) {
|
|
|
1238
1249
|
});
|
|
1239
1250
|
def(AST_Conditional, function(tw) {
|
|
1240
1251
|
this.condition.walk(tw);
|
|
1241
|
-
push(tw, true);
|
|
1252
|
+
push(tw, true, true);
|
|
1242
1253
|
this.consequent.walk(tw);
|
|
1243
1254
|
pop(tw);
|
|
1244
|
-
push(tw, true);
|
|
1255
|
+
push(tw, true, true);
|
|
1245
1256
|
this.alternative.walk(tw);
|
|
1246
1257
|
pop(tw);
|
|
1247
1258
|
return true;
|
|
1248
1259
|
});
|
|
1249
1260
|
def(AST_DefaultValue, function(tw) {
|
|
1250
|
-
push(tw, true);
|
|
1261
|
+
push(tw, true, true);
|
|
1251
1262
|
this.value.walk(tw);
|
|
1252
1263
|
pop(tw);
|
|
1253
1264
|
this.name.walk(tw);
|
|
@@ -1271,7 +1282,14 @@ Compressor.prototype.compress = function(node) {
|
|
|
1271
1282
|
descend();
|
|
1272
1283
|
var node = this;
|
|
1273
1284
|
var expr = node.expression;
|
|
1274
|
-
if (!node.optional
|
|
1285
|
+
if (!node.optional) {
|
|
1286
|
+
while (expr instanceof AST_Assign && expr.operator == "=") {
|
|
1287
|
+
var lhs = expr.left;
|
|
1288
|
+
if (lhs instanceof AST_SymbolRef) access(tw, lhs.definition());
|
|
1289
|
+
expr = expr.right;
|
|
1290
|
+
}
|
|
1291
|
+
if (expr instanceof AST_SymbolRef) access(tw, expr.definition());
|
|
1292
|
+
}
|
|
1275
1293
|
return true;
|
|
1276
1294
|
});
|
|
1277
1295
|
def(AST_For, function(tw, descend, compressor) {
|
|
@@ -1329,11 +1347,11 @@ Compressor.prototype.compress = function(node) {
|
|
|
1329
1347
|
});
|
|
1330
1348
|
def(AST_If, function(tw) {
|
|
1331
1349
|
this.condition.walk(tw);
|
|
1332
|
-
push(tw, true);
|
|
1350
|
+
push(tw, true, true);
|
|
1333
1351
|
this.body.walk(tw);
|
|
1334
1352
|
pop(tw);
|
|
1335
1353
|
if (this.alternative) {
|
|
1336
|
-
push(tw, true);
|
|
1354
|
+
push(tw, true, true);
|
|
1337
1355
|
this.alternative.walk(tw);
|
|
1338
1356
|
pop(tw);
|
|
1339
1357
|
}
|
|
@@ -1376,11 +1394,16 @@ Compressor.prototype.compress = function(node) {
|
|
|
1376
1394
|
var expr = node.expression;
|
|
1377
1395
|
if (node.optional) {
|
|
1378
1396
|
expr.walk(tw);
|
|
1379
|
-
push(tw, true);
|
|
1397
|
+
push(tw, true, true);
|
|
1380
1398
|
node.property.walk(tw);
|
|
1381
1399
|
pop(tw);
|
|
1382
1400
|
} else {
|
|
1383
1401
|
descend();
|
|
1402
|
+
while (expr instanceof AST_Assign && expr.operator == "=") {
|
|
1403
|
+
var lhs = expr.left;
|
|
1404
|
+
if (lhs instanceof AST_SymbolRef) access(tw, lhs.definition());
|
|
1405
|
+
expr = expr.right;
|
|
1406
|
+
}
|
|
1384
1407
|
if (expr instanceof AST_SymbolRef) access(tw, expr.definition());
|
|
1385
1408
|
}
|
|
1386
1409
|
return true;
|
|
@@ -1395,15 +1418,15 @@ Compressor.prototype.compress = function(node) {
|
|
|
1395
1418
|
branch.expression.walk(tw);
|
|
1396
1419
|
if (first) {
|
|
1397
1420
|
first = false;
|
|
1398
|
-
push(tw, true);
|
|
1421
|
+
push(tw, true, true);
|
|
1399
1422
|
}
|
|
1400
|
-
})
|
|
1423
|
+
});
|
|
1401
1424
|
if (!first) pop(tw);
|
|
1402
1425
|
walk_body(node, tw);
|
|
1403
1426
|
return true;
|
|
1404
1427
|
});
|
|
1405
1428
|
def(AST_SwitchBranch, function(tw) {
|
|
1406
|
-
push(tw, true);
|
|
1429
|
+
push(tw, true, true);
|
|
1407
1430
|
walk_body(this, tw);
|
|
1408
1431
|
pop(tw);
|
|
1409
1432
|
return true;
|
|
@@ -1501,7 +1524,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
1501
1524
|
}
|
|
1502
1525
|
mark_fn_def(tw, d, value);
|
|
1503
1526
|
});
|
|
1504
|
-
def(AST_Template, function(tw
|
|
1527
|
+
def(AST_Template, function(tw) {
|
|
1505
1528
|
var node = this;
|
|
1506
1529
|
var tag = node.tag;
|
|
1507
1530
|
if (!tag) return;
|
|
@@ -1542,14 +1565,14 @@ Compressor.prototype.compress = function(node) {
|
|
|
1542
1565
|
walk_body(node, tw);
|
|
1543
1566
|
pop(tw);
|
|
1544
1567
|
if (node.bcatch) {
|
|
1545
|
-
push(tw, true);
|
|
1568
|
+
push(tw, true, true);
|
|
1546
1569
|
node.bcatch.walk(tw);
|
|
1547
1570
|
pop(tw);
|
|
1548
1571
|
}
|
|
1549
1572
|
if (node.bfinally) node.bfinally.walk(tw);
|
|
1550
1573
|
return true;
|
|
1551
1574
|
});
|
|
1552
|
-
def(AST_Unary, function(tw
|
|
1575
|
+
def(AST_Unary, function(tw) {
|
|
1553
1576
|
var node = this;
|
|
1554
1577
|
if (!UNARY_POSTFIX[node.operator]) return;
|
|
1555
1578
|
var exp = node.expression;
|
|
@@ -3281,7 +3304,16 @@ Compressor.prototype.compress = function(node) {
|
|
|
3281
3304
|
if (expr instanceof AST_Assign && expr.right.single_use) return;
|
|
3282
3305
|
var lhs_ids = Object.create(null);
|
|
3283
3306
|
var marker = new TreeWalker(function(node) {
|
|
3284
|
-
if (node instanceof AST_SymbolRef)
|
|
3307
|
+
if (!(node instanceof AST_SymbolRef)) return;
|
|
3308
|
+
for (var level = 0, parent, child = node; parent = marker.parent(level++); child = parent) {
|
|
3309
|
+
if (is_direct_assignment(child, parent)) {
|
|
3310
|
+
if (parent instanceof AST_DestructuredKeyVal) parent = marker.parent(level++);
|
|
3311
|
+
continue;
|
|
3312
|
+
}
|
|
3313
|
+
lhs_ids[node.definition().id] = true;
|
|
3314
|
+
return;
|
|
3315
|
+
}
|
|
3316
|
+
lhs_ids[node.definition().id] = "a";
|
|
3285
3317
|
});
|
|
3286
3318
|
while (expr instanceof AST_Assign && expr.operator == "=") {
|
|
3287
3319
|
expr.left.walk(marker);
|
|
@@ -3289,6 +3321,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
3289
3321
|
}
|
|
3290
3322
|
if (expr instanceof AST_ObjectIdentity) return rhs_exact_match;
|
|
3291
3323
|
if (expr instanceof AST_SymbolRef) {
|
|
3324
|
+
if (lhs_ids[expr.definition().id] === "a") return;
|
|
3292
3325
|
var value = expr.evaluate(compressor);
|
|
3293
3326
|
if (value === expr) return rhs_exact_match;
|
|
3294
3327
|
return rhs_fuzzy_match(value, rhs_exact_match);
|
|
@@ -4090,7 +4123,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
4090
4123
|
changed = true;
|
|
4091
4124
|
}
|
|
4092
4125
|
}
|
|
4093
|
-
var loop = in_loop && in_try
|
|
4126
|
+
var loop = in_loop && in_try ? "try" : in_loop;
|
|
4094
4127
|
for (; index >= 0; index--) {
|
|
4095
4128
|
var inlined = statements[index].try_inline(compressor, block_scope, true, loop);
|
|
4096
4129
|
if (!inlined) continue;
|
|
@@ -6448,29 +6481,6 @@ Compressor.prototype.compress = function(node) {
|
|
|
6448
6481
|
return self;
|
|
6449
6482
|
});
|
|
6450
6483
|
|
|
6451
|
-
function opt_arrow(self, compressor) {
|
|
6452
|
-
if (!compressor.option("arrows")) return self;
|
|
6453
|
-
drop_rest_farg(self, compressor);
|
|
6454
|
-
if (self.value) self.body = [ self.first_statement() ];
|
|
6455
|
-
var body = tighten_body(self.body, compressor);
|
|
6456
|
-
switch (body.length) {
|
|
6457
|
-
case 1:
|
|
6458
|
-
var stat = body[0];
|
|
6459
|
-
if (stat instanceof AST_Return) {
|
|
6460
|
-
self.body.length = 0;
|
|
6461
|
-
self.value = stat.value;
|
|
6462
|
-
break;
|
|
6463
|
-
}
|
|
6464
|
-
default:
|
|
6465
|
-
self.body = body;
|
|
6466
|
-
self.value = null;
|
|
6467
|
-
break;
|
|
6468
|
-
}
|
|
6469
|
-
return self;
|
|
6470
|
-
}
|
|
6471
|
-
OPT(AST_Arrow, opt_arrow);
|
|
6472
|
-
OPT(AST_AsyncArrow, opt_arrow);
|
|
6473
|
-
|
|
6474
6484
|
OPT(AST_Function, function(self, compressor) {
|
|
6475
6485
|
drop_rest_farg(self, compressor);
|
|
6476
6486
|
self.body = tighten_body(self.body, compressor);
|
|
@@ -8042,6 +8052,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
8042
8052
|
if (node.write_only === "p" && node.right.may_throw_on_access(compressor, true)) return;
|
|
8043
8053
|
var assign = props.assign;
|
|
8044
8054
|
if (assign) {
|
|
8055
|
+
initializations.add(node_def.id, assign.left);
|
|
8045
8056
|
assign.write_only = true;
|
|
8046
8057
|
assign.walk(tw);
|
|
8047
8058
|
}
|
|
@@ -9331,14 +9342,22 @@ Compressor.prototype.compress = function(node) {
|
|
|
9331
9342
|
return expressions === this.expressions ? this : make_sequence(this, expressions);
|
|
9332
9343
|
});
|
|
9333
9344
|
def(AST_Sub, function(compressor, first_in_statement) {
|
|
9334
|
-
var
|
|
9335
|
-
|
|
9336
|
-
|
|
9345
|
+
var self = this;
|
|
9346
|
+
var expr = self.expression;
|
|
9347
|
+
if (expr.may_throw_on_access(compressor)) return self;
|
|
9348
|
+
var prop = self.property;
|
|
9349
|
+
if (self.optional) {
|
|
9350
|
+
prop = prop.drop_side_effect_free(compressor);
|
|
9351
|
+
if (!prop) return expr.drop_side_effect_free(compressor, first_in_statement);
|
|
9352
|
+
self = self.clone();
|
|
9353
|
+
self.property = prop;
|
|
9354
|
+
return self;
|
|
9355
|
+
}
|
|
9337
9356
|
expr = expr.drop_side_effect_free(compressor, first_in_statement);
|
|
9338
9357
|
if (!expr) return prop.drop_side_effect_free(compressor, first_in_statement);
|
|
9339
9358
|
prop = prop.drop_side_effect_free(compressor);
|
|
9340
9359
|
if (!prop) return expr;
|
|
9341
|
-
return make_sequence(
|
|
9360
|
+
return make_sequence(self, [ expr, prop ]);
|
|
9342
9361
|
});
|
|
9343
9362
|
def(AST_SymbolRef, function(compressor) {
|
|
9344
9363
|
return this.is_declared(compressor) && can_drop_symbol(this, compressor) ? null : this;
|
|
@@ -11061,6 +11080,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
11061
11080
|
var node = make_sequence(self, exprs).optimize(compressor);
|
|
11062
11081
|
fn.inlined = save_inlined;
|
|
11063
11082
|
node = maintain_this_binding(parent, current, node);
|
|
11083
|
+
self.inlined_node = node;
|
|
11064
11084
|
if (replacing || best_of_expression(node, self) === node) {
|
|
11065
11085
|
refs.forEach(function(ref) {
|
|
11066
11086
|
ref.scope = exp === fn ? fn.parent_scope : exp.scope;
|
|
@@ -11077,6 +11097,12 @@ Compressor.prototype.compress = function(node) {
|
|
|
11077
11097
|
exprs.unshift(self.expression);
|
|
11078
11098
|
return make_sequence(self, exprs).drop_side_effect_free(compressor, first_in_statement);
|
|
11079
11099
|
};
|
|
11100
|
+
self.has_side_effects = function(compressor) {
|
|
11101
|
+
var self = this;
|
|
11102
|
+
var exprs = self.args.slice();
|
|
11103
|
+
exprs.unshift(self.expression);
|
|
11104
|
+
return make_sequence(self, exprs).has_side_effects(compressor);
|
|
11105
|
+
};
|
|
11080
11106
|
}
|
|
11081
11107
|
}
|
|
11082
11108
|
var arg_used, insert, in_loop, scope;
|
|
@@ -11096,6 +11122,19 @@ Compressor.prototype.compress = function(node) {
|
|
|
11096
11122
|
return make_sequence(self, convert_args()).optimize(compressor);
|
|
11097
11123
|
}
|
|
11098
11124
|
}
|
|
11125
|
+
if (compressor.option("arrows")
|
|
11126
|
+
&& compressor.option("module")
|
|
11127
|
+
&& (exp instanceof AST_AsyncFunction || exp instanceof AST_Function)
|
|
11128
|
+
&& !exp.name
|
|
11129
|
+
&& !exp.uses_arguments
|
|
11130
|
+
&& !exp.pinned()
|
|
11131
|
+
&& !exp.contains_this()) {
|
|
11132
|
+
var arrow = make_node(is_async(exp) ? AST_AsyncArrow : AST_Arrow, exp, exp);
|
|
11133
|
+
arrow.init_vars(exp.parent_scope, exp);
|
|
11134
|
+
arrow.variables.del("arguments");
|
|
11135
|
+
self.expression = arrow.transform(compressor);
|
|
11136
|
+
return self;
|
|
11137
|
+
}
|
|
11099
11138
|
if (compressor.option("drop_console")) {
|
|
11100
11139
|
if (exp instanceof AST_PropAccess) {
|
|
11101
11140
|
var name = exp.expression;
|
|
@@ -12079,18 +12118,20 @@ Compressor.prototype.compress = function(node) {
|
|
|
12079
12118
|
case "&&":
|
|
12080
12119
|
case "||":
|
|
12081
12120
|
// void 0 !== x && null !== x ---> null != x
|
|
12082
|
-
// void 0 === x || null === x ---> null == x
|
|
12121
|
+
// void 0 === x.a || null === x.a ---> null == x.a
|
|
12083
12122
|
var left = self.left;
|
|
12123
|
+
if (left.inlined_node) left = left.inlined_node;
|
|
12084
12124
|
if (!(left instanceof AST_Binary)) break;
|
|
12085
12125
|
if (left.operator != (self.operator == "&&" ? "!==" : "===")) break;
|
|
12086
|
-
|
|
12087
|
-
if (
|
|
12088
|
-
if (
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
if (!expr
|
|
12126
|
+
var right = self.right;
|
|
12127
|
+
if (right.inlined_node) right = right.inlined_node;
|
|
12128
|
+
if (!(right instanceof AST_Binary)) break;
|
|
12129
|
+
if (left.operator != right.operator) break;
|
|
12130
|
+
if (is_undefined(left.left, compressor) && right.left instanceof AST_Null
|
|
12131
|
+
|| left.left instanceof AST_Null && is_undefined(right.left, compressor)) {
|
|
12132
|
+
var expr = extract_lhs(left.right, compressor);
|
|
12133
|
+
if (!repeatable(compressor, expr)) break;
|
|
12134
|
+
if (!expr.equals(right.right)) break;
|
|
12094
12135
|
left.operator = left.operator.slice(0, -1);
|
|
12095
12136
|
left.left = make_node(AST_Null, self);
|
|
12096
12137
|
return left;
|
|
@@ -12101,7 +12142,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
12101
12142
|
var parent = compressor.parent();
|
|
12102
12143
|
if (compressor.option("booleans")) {
|
|
12103
12144
|
var lhs = extract_lhs(self.left, compressor);
|
|
12104
|
-
if (lazy_op[self.operator] &&
|
|
12145
|
+
if (lazy_op[self.operator] && repeatable(compressor, lhs)) {
|
|
12105
12146
|
// a || a ---> a
|
|
12106
12147
|
// (a = x) && a --> a = x
|
|
12107
12148
|
if (lhs.equals(self.right)) {
|
|
@@ -12612,6 +12653,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
12612
12653
|
}
|
|
12613
12654
|
|
|
12614
12655
|
function is_indexFn(node) {
|
|
12656
|
+
while (node instanceof AST_Assign && node.operator == "=") node = node.right;
|
|
12615
12657
|
return node.TYPE == "Call"
|
|
12616
12658
|
&& node.expression instanceof AST_Dot
|
|
12617
12659
|
&& indexFns[node.expression.property];
|
|
@@ -14188,8 +14230,8 @@ Compressor.prototype.compress = function(node) {
|
|
|
14188
14230
|
if (fn.pinned()) return;
|
|
14189
14231
|
if (is_generator(fn)) return;
|
|
14190
14232
|
var arrow = is_arrow(fn);
|
|
14191
|
-
|
|
14192
|
-
if (
|
|
14233
|
+
var fn_body = arrow && fn.value ? [ fn.first_statement() ] : fn.body;
|
|
14234
|
+
if (fn_body[0] instanceof AST_Directive) return;
|
|
14193
14235
|
if (fn.contains_this()) return;
|
|
14194
14236
|
if (!scope) scope = find_scope(compressor);
|
|
14195
14237
|
var defined = new Dictionary();
|
|
@@ -14288,7 +14330,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
14288
14330
|
return !abort;
|
|
14289
14331
|
};
|
|
14290
14332
|
}
|
|
14291
|
-
if (verify_body && !all(
|
|
14333
|
+
if (verify_body && !all(fn_body, verify_body)) return;
|
|
14292
14334
|
if (!safe_from_await_yield(fn, avoid_await_yield(compressor, scope))) return;
|
|
14293
14335
|
fn.functions.each(function(def, name) {
|
|
14294
14336
|
scope.functions.set(name, def);
|
|
@@ -14359,7 +14401,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
14359
14401
|
[].unshift.apply(def.orig, orig);
|
|
14360
14402
|
def.eliminated += orig.length;
|
|
14361
14403
|
});
|
|
14362
|
-
[].push.apply(body, in_loop ?
|
|
14404
|
+
[].push.apply(body, in_loop ? fn_body.filter(function(stat) {
|
|
14363
14405
|
if (!(stat instanceof AST_LambdaDefinition)) return true;
|
|
14364
14406
|
var name = make_node(AST_SymbolVar, flatten_var(stat.name));
|
|
14365
14407
|
var def = name.definition();
|
|
@@ -14373,7 +14415,7 @@ Compressor.prototype.compress = function(node) {
|
|
|
14373
14415
|
}) ],
|
|
14374
14416
|
}));
|
|
14375
14417
|
return false;
|
|
14376
|
-
}) :
|
|
14418
|
+
}) : fn_body);
|
|
14377
14419
|
var inlined = make_node(AST_BlockStatement, call, { body: body });
|
|
14378
14420
|
if (!no_return) {
|
|
14379
14421
|
if (async) scan_local_returns(inlined, function(node) {
|
|
@@ -49,8 +49,9 @@ function parse_source_map(content) {
|
|
|
49
49
|
function set_shorthand(name, options, keys) {
|
|
50
50
|
keys.forEach(function(key) {
|
|
51
51
|
if (options[key]) {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
var defs = {};
|
|
53
|
+
defs[name] = options[name];
|
|
54
|
+
options[key] = defaults(options[key], defs);
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
@@ -105,7 +106,7 @@ function minify(files, options) {
|
|
|
105
106
|
if (options.keep_fargs) set_shorthand("keep_fargs", options, [ "compress", "mangle", "rename" ]);
|
|
106
107
|
if (options.keep_fnames) set_shorthand("keep_fnames", options, [ "compress", "mangle", "rename" ]);
|
|
107
108
|
if (options.module === undefined && !options.ie) options.module = true;
|
|
108
|
-
if (options.module) set_shorthand("module", options, [ "compress", "parse" ]);
|
|
109
|
+
if (options.module) set_shorthand("module", options, [ "compress", "output", "parse" ]);
|
|
109
110
|
if (options.toplevel !== undefined) set_shorthand("toplevel", options, [ "compress", "mangle", "rename" ]);
|
|
110
111
|
if (options.v8) set_shorthand("v8", options, [ "mangle", "output", "rename" ]);
|
|
111
112
|
if (options.webkit) set_shorthand("webkit", options, [ "compress", "mangle", "output", "rename" ]);
|
|
@@ -63,6 +63,7 @@ function OutputStream(options) {
|
|
|
63
63
|
inline_script : true,
|
|
64
64
|
keep_quoted_props: false,
|
|
65
65
|
max_line_len : false,
|
|
66
|
+
module : false,
|
|
66
67
|
preamble : null,
|
|
67
68
|
preserve_line : false,
|
|
68
69
|
quote_keys : false,
|
|
@@ -140,12 +141,22 @@ function OutputStream(options) {
|
|
|
140
141
|
|
|
141
142
|
reset();
|
|
142
143
|
var to_utf8 = options.ascii_only ? function(str, identifier) {
|
|
143
|
-
if (identifier) str = str.replace(/[\ud800-\udbff][\udc00-\udfff]/g, function(ch) {
|
|
144
|
+
if (identifier || options.module) str = str.replace(/[\ud800-\udbff][\udc00-\udfff]/g, function(ch) {
|
|
144
145
|
return "\\u{" + (ch.charCodeAt(0) - 0xd7c0 << 10 | ch.charCodeAt(1) - 0xdc00).toString(16) + "}";
|
|
145
146
|
});
|
|
146
|
-
return str.replace(/[\u0000-\u001f\u007f-\uffff]/g, function(
|
|
147
|
-
var code =
|
|
147
|
+
return str.replace(/[\u0000-\u001f\u007f-\uffff]/g, function(s, i) {
|
|
148
|
+
var code = s.charCodeAt(0).toString(16);
|
|
148
149
|
if (code.length <= 2 && !identifier) {
|
|
150
|
+
switch (s) {
|
|
151
|
+
case "\n": return "\\n";
|
|
152
|
+
case "\r": return "\\r";
|
|
153
|
+
case "\t": return "\\t";
|
|
154
|
+
case "\b": return "\\b";
|
|
155
|
+
case "\f": return "\\f";
|
|
156
|
+
case "\x0B": return options.ie ? "\\x0B" : "\\v";
|
|
157
|
+
case "\0":
|
|
158
|
+
return /[0-9]/.test(str.charAt(i+1)) ? "\\x00" : "\\0";
|
|
159
|
+
}
|
|
149
160
|
while (code.length < 2) code = "0" + code;
|
|
150
161
|
return "\\x" + code;
|
|
151
162
|
} else {
|
|
@@ -1788,12 +1799,12 @@ function OutputStream(options) {
|
|
|
1788
1799
|
if (self.tag) self.tag.print(output);
|
|
1789
1800
|
output.print("`");
|
|
1790
1801
|
for (var i = 0; i < self.expressions.length; i++) {
|
|
1791
|
-
output.print(self.strings[i]);
|
|
1802
|
+
output.print(output.to_utf8(self.strings[i]));
|
|
1792
1803
|
output.print("${");
|
|
1793
1804
|
self.expressions[i].print(output);
|
|
1794
1805
|
output.print("}");
|
|
1795
1806
|
}
|
|
1796
|
-
output.print(self.strings[i]);
|
|
1807
|
+
output.print(output.to_utf8(self.strings[i]));
|
|
1797
1808
|
output.print("`");
|
|
1798
1809
|
});
|
|
1799
1810
|
DEFPRINT(AST_BigInt, function(output) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "JavaScript parser, mangler/compressor and beautifier toolkit",
|
|
4
4
|
"author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
|
-
"version": "3.19.
|
|
6
|
+
"version": "3.19.2",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=0.8.0"
|
|
9
9
|
},
|
|
@@ -97,7 +97,12 @@ function infer_options(options) {
|
|
|
97
97
|
return result.error && result.error.defs;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
exports.default_options = function() {
|
|
100
|
+
exports.default_options = function(component) {
|
|
101
|
+
if (component) {
|
|
102
|
+
var options = { module: false };
|
|
103
|
+
options[component] = { 0: 0 };
|
|
104
|
+
return infer_options(options);
|
|
105
|
+
}
|
|
101
106
|
var defs = infer_options({ 0: 0 });
|
|
102
107
|
Object.keys(defs).forEach(function(component) {
|
|
103
108
|
var options = { module: false };
|
package/package.json
CHANGED
|
@@ -91,18 +91,18 @@
|
|
|
91
91
|
"organization": false
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
95
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
96
|
-
"@aws-sdk/client-ecr": "^3.
|
|
97
|
-
"@aws-sdk/client-ecs": "^3.
|
|
98
|
-
"@aws-sdk/client-eventbridge": "^3.
|
|
99
|
-
"@aws-sdk/client-iam": "^3.
|
|
100
|
-
"@aws-sdk/client-s3": "^3.
|
|
101
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
102
|
-
"@aws-sdk/client-sfn": "^3.
|
|
103
|
-
"@aws-sdk/client-textract": "^3.
|
|
104
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
105
|
-
"@types/aws-lambda": "^8.10.
|
|
94
|
+
"@aws-sdk/client-cloudformation": "^3.637.0",
|
|
95
|
+
"@aws-sdk/client-dynamodb": "^3.637.0",
|
|
96
|
+
"@aws-sdk/client-ecr": "^3.637.0",
|
|
97
|
+
"@aws-sdk/client-ecs": "^3.637.0",
|
|
98
|
+
"@aws-sdk/client-eventbridge": "^3.637.0",
|
|
99
|
+
"@aws-sdk/client-iam": "^3.637.0",
|
|
100
|
+
"@aws-sdk/client-s3": "^3.637.0",
|
|
101
|
+
"@aws-sdk/client-secrets-manager": "^3.637.0",
|
|
102
|
+
"@aws-sdk/client-sfn": "^3.637.0",
|
|
103
|
+
"@aws-sdk/client-textract": "^3.637.0",
|
|
104
|
+
"@aws-sdk/lib-dynamodb": "^3.637.0",
|
|
105
|
+
"@types/aws-lambda": "^8.10.143",
|
|
106
106
|
"@types/jest": "^29",
|
|
107
107
|
"@types/mjml": "^4.7.4",
|
|
108
108
|
"@types/node": "^18",
|
|
@@ -114,19 +114,19 @@
|
|
|
114
114
|
"aws-sdk-client-mock": "^2.2.0",
|
|
115
115
|
"aws-sdk-client-mock-jest": "^2.2.0",
|
|
116
116
|
"constructs": "10.0.5",
|
|
117
|
-
"esbuild": "^0.23.
|
|
117
|
+
"esbuild": "^0.23.1",
|
|
118
118
|
"eslint": "^8",
|
|
119
119
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
120
120
|
"eslint-plugin-import": "^2.29.1",
|
|
121
121
|
"jest": "^29",
|
|
122
122
|
"jest-junit": "^15",
|
|
123
123
|
"jsii": "5.x",
|
|
124
|
-
"jsii-diff": "^1.
|
|
124
|
+
"jsii-diff": "^1.102.0",
|
|
125
125
|
"jsii-docgen": "^9.2.2",
|
|
126
|
-
"jsii-pacmak": "^1.
|
|
126
|
+
"jsii-pacmak": "^1.102.0",
|
|
127
127
|
"jsii-rosetta": "5.x",
|
|
128
|
-
"nock": "^13.5.
|
|
129
|
-
"projen": "^0.
|
|
128
|
+
"nock": "^13.5.5",
|
|
129
|
+
"projen": "^0.86.0",
|
|
130
130
|
"standard-version": "^9",
|
|
131
131
|
"ts-jest": "^29",
|
|
132
132
|
"ts-node": "^10.9.2",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"publishConfig": {
|
|
155
155
|
"access": "public"
|
|
156
156
|
},
|
|
157
|
-
"version": "0.9.
|
|
157
|
+
"version": "0.9.14",
|
|
158
158
|
"jest": {
|
|
159
159
|
"coverageProvider": "v8",
|
|
160
160
|
"testMatch": [
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Dispatcher from "./dispatcher";
|
|
2
|
-
|
|
3
|
-
export declare class RedirectHandler implements Dispatcher.DispatchHandlers{
|
|
4
|
-
constructor (dispatch: Dispatcher, maxRedirections: number, opts: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandlers)
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export declare class DecoratorHandler implements Dispatcher.DispatchHandlers{
|
|
8
|
-
constructor (handler: Dispatcher.DispatchHandlers)
|
|
9
|
-
}
|
/package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/README.md
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/agent.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/api.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cache.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/file.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|