cloudstructs 0.9.36 → 0.9.38
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-app/provider.lambda/index.js +26 -26
- package/assets/slack-textract/detect.lambda/index.js +140 -122
- package/assets/ssl-server-test/analyze.lambda/index.js +26 -26
- 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/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/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +3 -2
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +7 -9
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +7 -9
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +63 -1
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +25 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +9 -89
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +2025 -2009
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@slack/logger/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +5 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.d.ts +3 -3
- package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.js +1 -1
- package/node_modules/@slack/types/dist/events/index.js.map +1 -1
- package/node_modules/@slack/types/dist/events/message.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/message.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/team.d.ts +2 -2
- package/node_modules/@slack/types/dist/events/team.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.d.ts +5 -5
- package/node_modules/@slack/types/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.js +5 -5
- package/node_modules/@slack/types/dist/index.js.map +1 -1
- package/node_modules/@slack/types/package.json +16 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +63 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +25 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +9 -89
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +2025 -2009
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +63 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +25 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +9 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +2025 -2009
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +63 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +25 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +9 -89
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +2025 -2009
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +63 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +25 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +9 -89
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +2025 -2009
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/axios/CHANGELOG.md +17 -0
- package/node_modules/axios/README.md +1 -4
- package/node_modules/axios/dist/axios.js +39 -5
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +46 -9
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +46 -9
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +46 -9
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +13 -2
- package/node_modules/axios/lib/core/Axios.js +2 -2
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/utils.js +36 -0
- package/node_modules/axios/package.json +5 -5
- package/node_modules/css-select/lib/attributes.d.ts.map +1 -1
- package/node_modules/css-select/lib/attributes.js.map +1 -1
- package/node_modules/css-select/lib/compile.d.ts.map +1 -1
- package/node_modules/css-select/lib/compile.js.map +1 -1
- package/node_modules/css-select/lib/esm/attributes.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/attributes.js.map +1 -1
- package/node_modules/css-select/lib/esm/compile.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/compile.js.map +1 -1
- package/node_modules/css-select/lib/esm/general.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/general.js.map +1 -1
- package/node_modules/css-select/lib/esm/helpers/cache.d.ts +12 -0
- package/node_modules/css-select/lib/esm/helpers/cache.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/cache.js +41 -0
- package/node_modules/css-select/lib/esm/helpers/cache.js.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/querying.d.ts +24 -0
- package/node_modules/css-select/lib/esm/helpers/querying.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/querying.js +105 -0
- package/node_modules/css-select/lib/esm/helpers/querying.js.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.d.ts +20 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.js +103 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.js.map +1 -0
- package/node_modules/css-select/lib/esm/index.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/index.js.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +1 -1
- package/node_modules/css-select/lib/esm/sort.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/sort.js.map +1 -1
- package/node_modules/css-select/lib/esm/types.d.ts.map +1 -1
- package/node_modules/css-select/lib/esm/types.js.map +1 -1
- package/node_modules/css-select/lib/general.d.ts.map +1 -1
- package/node_modules/css-select/lib/general.js.map +1 -1
- package/node_modules/css-select/lib/helpers/cache.d.ts +12 -0
- package/node_modules/css-select/lib/helpers/cache.d.ts.map +1 -0
- package/node_modules/css-select/lib/helpers/cache.js +45 -0
- package/node_modules/css-select/lib/helpers/cache.js.map +1 -0
- package/node_modules/css-select/lib/helpers/querying.d.ts +24 -0
- package/node_modules/css-select/lib/helpers/querying.d.ts.map +1 -0
- package/node_modules/css-select/lib/helpers/querying.js +111 -0
- package/node_modules/css-select/lib/helpers/querying.js.map +1 -0
- package/node_modules/css-select/lib/helpers/selectors.d.ts +20 -0
- package/node_modules/css-select/lib/helpers/selectors.d.ts.map +1 -0
- package/node_modules/css-select/lib/helpers/selectors.js +111 -0
- package/node_modules/css-select/lib/helpers/selectors.js.map +1 -0
- package/node_modules/css-select/lib/index.d.ts.map +1 -1
- package/node_modules/css-select/lib/index.js.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/aliases.js.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/filters.js.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/index.d.ts.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/index.js.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.js.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts.map +1 -1
- package/node_modules/css-select/lib/pseudo-selectors/subselects.js.map +1 -1
- package/node_modules/css-select/lib/sort.d.ts.map +1 -1
- package/node_modules/css-select/lib/sort.js.map +1 -1
- package/node_modules/css-select/lib/types.d.ts.map +1 -1
- package/node_modules/css-select/lib/types.js.map +1 -1
- package/node_modules/css-select/package.json +1 -1
- package/node_modules/css-what/package.json +1 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/{README.md.bak → README.md} +4 -4
- package/node_modules/form-data/lib/form_data.js +2 -6
- package/node_modules/form-data/package.json +22 -6
- package/package.json +18 -18
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/form-data/Readme.md +0 -355
|
@@ -6,7 +6,7 @@ type MethodsHeaders = Partial<{
|
|
|
6
6
|
[Key in axios.Method as Lowercase<Key>]: AxiosHeaders;
|
|
7
7
|
} & {common: AxiosHeaders}>;
|
|
8
8
|
|
|
9
|
-
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string
|
|
9
|
+
type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean);
|
|
10
10
|
|
|
11
11
|
type AxiosHeaderParser = (this: AxiosHeaders, value: axios.AxiosHeaderValue, header: string) => any;
|
|
12
12
|
|
|
@@ -77,6 +77,8 @@ declare class AxiosHeaders {
|
|
|
77
77
|
getAuthorization(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue;
|
|
78
78
|
hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
|
|
79
79
|
|
|
80
|
+
getSetCookie(): string[];
|
|
81
|
+
|
|
80
82
|
[Symbol.iterator](): IterableIterator<[string, axios.AxiosHeaderValue]>;
|
|
81
83
|
}
|
|
82
84
|
|
|
@@ -97,6 +99,14 @@ declare class AxiosError<T = unknown, D = any> extends Error {
|
|
|
97
99
|
status?: number;
|
|
98
100
|
toJSON: () => object;
|
|
99
101
|
cause?: Error;
|
|
102
|
+
static from<T = unknown, D = any>(
|
|
103
|
+
error: Error | unknown,
|
|
104
|
+
code?: string,
|
|
105
|
+
config?: axios.InternalAxiosRequestConfig<D>,
|
|
106
|
+
request?: any,
|
|
107
|
+
response?: axios.AxiosResponse<T, D>,
|
|
108
|
+
customProps?: object,
|
|
109
|
+
): AxiosError<T, D>;
|
|
100
110
|
static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
101
111
|
static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
102
112
|
static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
@@ -424,7 +434,7 @@ declare namespace axios {
|
|
|
424
434
|
// Alias
|
|
425
435
|
type RawAxiosRequestConfig<D = any> = AxiosRequestConfig<D>;
|
|
426
436
|
|
|
427
|
-
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig {
|
|
437
|
+
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
|
|
428
438
|
headers: AxiosRequestHeaders;
|
|
429
439
|
}
|
|
430
440
|
|
|
@@ -542,6 +552,7 @@ declare namespace axios {
|
|
|
542
552
|
formToJSON(form: GenericFormData|GenericHTMLFormElement): object;
|
|
543
553
|
getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter;
|
|
544
554
|
AxiosHeaders: typeof AxiosHeaders;
|
|
555
|
+
mergeConfig<D = any>(config1: AxiosRequestConfig<D>, config2: AxiosRequestConfig<D>): AxiosRequestConfig<D>;
|
|
545
556
|
}
|
|
546
557
|
}
|
|
547
558
|
|
|
@@ -153,8 +153,8 @@ class Axios {
|
|
|
153
153
|
|
|
154
154
|
if (!synchronousRequestInterceptors) {
|
|
155
155
|
const chain = [dispatchRequest.bind(this), undefined];
|
|
156
|
-
chain.unshift
|
|
157
|
-
chain.push
|
|
156
|
+
chain.unshift(...requestInterceptorChain);
|
|
157
|
+
chain.push(...responseInterceptorChain);
|
|
158
158
|
len = chain.length;
|
|
159
159
|
|
|
160
160
|
promise = Promise.resolve(config);
|
|
@@ -96,7 +96,7 @@ export default function mergeConfig(config1, config2) {
|
|
|
96
96
|
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
utils.forEach(Object.keys(
|
|
99
|
+
utils.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
100
100
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
101
101
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
102
102
|
(utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.11.0";
|
|
@@ -5,7 +5,7 @@ import toFormData from './toFormData.js';
|
|
|
5
5
|
import platform from '../platform/index.js';
|
|
6
6
|
|
|
7
7
|
export default function toURLEncodedForm(data, options) {
|
|
8
|
-
return toFormData(data, new platform.classes.URLSearchParams(),
|
|
8
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
9
9
|
visitor: function(value, key, path, helpers) {
|
|
10
10
|
if (platform.isNode && utils.isBuffer(value)) {
|
|
11
11
|
this.append(key, value.toString('base64'));
|
|
@@ -13,6 +13,7 @@ export default function toURLEncodedForm(data, options) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
},
|
|
17
|
+
...options
|
|
18
|
+
});
|
|
18
19
|
}
|
|
@@ -136,6 +136,27 @@ const isPlainObject = (val) => {
|
|
|
136
136
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
141
|
+
*
|
|
142
|
+
* @param {*} val The value to test
|
|
143
|
+
*
|
|
144
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
145
|
+
*/
|
|
146
|
+
const isEmptyObject = (val) => {
|
|
147
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
148
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
try {
|
|
153
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
154
|
+
} catch (e) {
|
|
155
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
139
160
|
/**
|
|
140
161
|
* Determine if a value is a Date
|
|
141
162
|
*
|
|
@@ -258,6 +279,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
258
279
|
fn.call(null, obj[i], i, obj);
|
|
259
280
|
}
|
|
260
281
|
} else {
|
|
282
|
+
// Buffer check
|
|
283
|
+
if (isBuffer(obj)) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
|
|
261
287
|
// Iterate over object keys
|
|
262
288
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
263
289
|
const len = keys.length;
|
|
@@ -271,6 +297,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
271
297
|
}
|
|
272
298
|
|
|
273
299
|
function findKey(obj, key) {
|
|
300
|
+
if (isBuffer(obj)){
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
|
|
274
304
|
key = key.toLowerCase();
|
|
275
305
|
const keys = Object.keys(obj);
|
|
276
306
|
let i = keys.length;
|
|
@@ -624,6 +654,11 @@ const toJSONObject = (obj) => {
|
|
|
624
654
|
return;
|
|
625
655
|
}
|
|
626
656
|
|
|
657
|
+
//Buffer check
|
|
658
|
+
if (isBuffer(source)) {
|
|
659
|
+
return source;
|
|
660
|
+
}
|
|
661
|
+
|
|
627
662
|
if(!('toJSON' in source)) {
|
|
628
663
|
stack[i] = source;
|
|
629
664
|
const target = isArray(source) ? [] : {};
|
|
@@ -695,6 +730,7 @@ export default {
|
|
|
695
730
|
isBoolean,
|
|
696
731
|
isObject,
|
|
697
732
|
isPlainObject,
|
|
733
|
+
isEmptyObject,
|
|
698
734
|
isReadableStream,
|
|
699
735
|
isRequest,
|
|
700
736
|
isResponse,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"typings": "./index.d.ts",
|
|
158
158
|
"dependencies": {
|
|
159
159
|
"follow-redirects": "^1.15.6",
|
|
160
|
-
"form-data": "^4.0.
|
|
160
|
+
"form-data": "^4.0.4",
|
|
161
161
|
"proxy-from-env": "^1.1.0"
|
|
162
162
|
},
|
|
163
163
|
"bundlesize": [
|
|
@@ -176,10 +176,10 @@
|
|
|
176
176
|
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
177
177
|
"Martti Laine (https://github.com/codeclown)",
|
|
178
178
|
"Xianming Zhong (https://github.com/chinesedfan)",
|
|
179
|
-
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
180
179
|
"Remco Haszing (https://github.com/remcohaszing)",
|
|
181
|
-
"
|
|
182
|
-
"Ben Carp (https://github.com/carpben)"
|
|
180
|
+
"Rikki Gibson (https://github.com/RikkiGibson)",
|
|
181
|
+
"Ben Carp (https://github.com/carpben)",
|
|
182
|
+
"Yasu Flores (https://github.com/yasuf)"
|
|
183
183
|
],
|
|
184
184
|
"sideEffects": false,
|
|
185
185
|
"release-it": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["attributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AA+EnE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAC/B,eAAe,EACf,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAC3B,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,EAChC,IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,KAC1C,aAAa,CAAC,WAAW,CAAC,CAsLlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"attributes.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["attributes.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAgC;AAIhC;;;;;GAKG;AACH,IAAM,OAAO,GAAG,0BAA0B,CAAC;AAC3C,SAAS,WAAW,CAAC,KAAa;IAC9B,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;GAKG;AACH,IAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC;IACtC,QAAQ;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AC;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,QAAQ,EAAgB,MAAM,UAAU,CAAC;AAQzD,OAAO,KAAK,EACR,aAAa,EACb,eAAe,EACf,gBAAgB,EACnB,MAAM,YAAY,CAAC;AAEpB;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAClD,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,EAAE,EAC/B,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC3C,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,GACxB,aAAa,CAAC,IAAI,CAAC,CAGrB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EACxD,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,EAAE,EAC/B,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC3C,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,GACxB,aAAa,CAAC,WAAW,CAAC,CAG5B;AAqDD,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EACvD,KAAK,EAAE,gBAAgB,EAAE,EAAE,EAC3B,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC3C,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,GACxB,aAAa,CAAC,WAAW,CAAC,CAsD5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"compile.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["compile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyD;AACzD,sDAAgC;AAChC,mDAAmD;AACnD,2CAAsD;AACtD,kEAG0C;AAO1C;;;;;;GAMG;AACH,SAAgB,OAAO,CACnB,QAA+B,EAC/B,OAA2C,EAC3C,OAAuB;IAEvB,IAAM,IAAI,GAAG,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,IAAA,2BAAW,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9C,CAAC;AAPD,0BAOC;AAED,SAAgB,aAAa,CACzB,QAA+B,EAC/B,OAA2C,EAC3C,OAAuB;IAEvB,IAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,gBAAK,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IACxE,OAAO,YAAY,CAAoB,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACpE,CAAC;AAPD,sCAOC;AAED,SAAS,mBAAmB,CAAC,CAAmB;IAC5C,OAAO,CACH,CAAC,CAAC,IAAI,KAAK,uBAAY,CAAC,MAAM;QAC9B,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO;YACf,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;gBAClB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAA9B,CAA8B,CAAC,CAAC,CAAC,CAClE,CAAC;AACN,CAAC;AAED,IAAM,gBAAgB,GAAa,EAAE,IAAI,EAAE,uBAAY,CAAC,UAAU,EAAE,CAAC;AACrE,IAAM,yBAAyB,GAAqB;IAChD,IAAI,E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;QAED,OAAO,YAAY,CACf,KAAK,EACL,OAAO,EACP,YAAY,CACf,CAAC;IACN,CAAC,CAAC;SACD,MAAM,CAAC,WAAW,EAAE,kBAAQ,CAAC,SAAS,CAAC,CAAC;IAE7C,KAAK,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;IAEtD,OAAO,KAAK,CAAC;AACjB,CAAC;AA1DD,oCA0DC;AAED,SAAS,YAAY,CACjB,KAAyB,EACzB,OAA2C,EAC3C,OAAgB;;IAEhB,OAAO,KAAK,CAAC,MAAM,CACf,UAAC,QAAQ,EAAE,IAAI;QACX,OAAA,QAAQ,KAAK,kBAAQ,CAAC,SAAS;YAC3B,CAAC,CAAC,kBAAQ,CAAC,SAAS;YACpB,CAAC,CAAC,IAAA,mCAAsB,EAClB,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,OAAO,EACP,YAAY,CACf;IARP,CAQO,EACX,MAAA,OAAO,CAAC,QAAQ,mCAAI,kBAAQ,CAAC,QAAQ,CACxC,CAAC;AACN,CAAC;AAED,SAAS,WAAW,CAChB,CAA6B,EAC7B,CAA6B;IAE7B,IAAI,CAAC,KAAK,kBAAQ,CAAC,SAAS,IAAI,CAAC,KAAK,kBAAQ,CAAC,QAAQ,EAAE;QACrD,OAAO,CAAC,CAAC;KACZ;IACD,IAAI,CAAC,KAAK,kBAAQ,CAAC,SAAS,IAAI,CAAC,KAAK,kBAAQ,CAAC,QAAQ,EAAE;QACrD,OAAO,CAAC,CAAC;KACZ;IAED,OAAO,SAAS,OAAO,CAAC,IAAI;QACxB,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["attributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AA+EnE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAC/B,eAAe,EACf,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAC3B,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,EAChC,IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,KAC1C,aAAa,CAAC,WAAW,CAAC,CAsLlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"attributes.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["attributes.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAIhC;;;;;GAKG;AACH,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAC3C,SAAS,WAAW,CAAC,KAAa;IAC9B,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;GAKG;AACH,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC;IACtC,QAAQ;IACR,gBAAgB;IAChB,OAAO;IACP,OAAO;IACP,MAAM;IACN,SAAS;IACT,SAAS;IACT,SAAS;IACT,OAAO;IACP,UAAU;IACV,OAAO;IACP,SAAS;IACT,SAAS;IACT,OAAO;IACP,KAAK;IACL,WAAW;IACX,UAAU;IACV,SAAS;IACT,MAAM;IACN,OAAO;IACP,UAAU;IACV,YAAY;IACZ,MAAM;IACN,UAAU;IACV,MAAM;IACN,OAAO;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.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,QAAQ,EAAgB,MAAM,UAAU,CAAC;AAQzD,OAAO,KAAK,EACR,aAAa,EACb,eAAe,EACf,gBAAgB,EACnB,MAAM,YAAY,CAAC;AAEpB;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAClD,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,EAAE,EAC/B,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC3C,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,GACxB,aAAa,CAAC,IAAI,CAAC,CAGrB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EACxD,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,EAAE,EAC/B,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC3C,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,GACxB,aAAa,CAAC,WAAW,CAAC,CAG5B;AAqDD,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EACvD,KAAK,EAAE,gBAAgB,EAAE,EAAE,EAC3B,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC3C,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,GACxB,aAAa,CAAC,WAAW,CAAC,CAsD5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"compile.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAY,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;SACD,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE7C,KAAK,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;IAEtD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,YAAY,CACjB,KAAyB,EACzB,OAA2C,EAC3C,OAAgB;;IAEhB,OAAO,KAAK,CAAC,MAAM,CACf,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CACf,QAAQ,KAAK,QAAQ,CAAC,SAAS;QAC3B,CAAC,CAAC,QAAQ,CAAC,SAAS;QACpB,CAAC,CAAC,sBAAsB,CAClB,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,OAAO,EACP,YAAY,CACf,EACX,MAAA,OAAO,CAAC,QAAQ,mCAAI,QAAQ,CAAC,QAAQ,CACxC,CAAC;AACN,CAAC;AAED,SAAS,WAAW,CAChB,CAA6B,EAC7B,CAA6B;IAE7B,IAAI,CAAC,KAAK,QAAQ,CAAC,SAAS,IAAI,CAAC,KAAK,QAAQ,CAAC,QAAQ,EAAE;QACrD,OAAO,CAAC,CAAC;KACZ;IACD,IAAI,CAAC,KAAK,QAAQ,CAAC,SAAS,IAAI,CAAC,KAAK,QAAQ,CAAC,QAAQ,EAAE;QACrD,OAAO,CAAC,CAAC;KACZ;IAED,OAAO,SAAS,OAAO,CAAC,IAAI;QACxB,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["general.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAER,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,YAAY,EACf,MAAM,YAAY,CAAC;AAkBpB,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EACjE,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,EAChC,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC3C,OAAO,EAAE,IAAI,EAAE,GAAG,SAAS,EAC3B,YAAY,EAAE,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC,GAC9C,aAAa,CAAC,WAAW,CAAC,CAiK5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/
|
|
1
|
+
{"version":3,"file":"general.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/93caad96c807da1d48f08166ef14cf26916b9364/src/","sources":["general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAQpE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,SAAS,gBAAgB,CACrB,IAAiB,EACjB,OAAmC;IAEnC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACvC,IAAI,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QACjC,OAAO,MAAM,CAAC;KACjB;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;GAEG;AAEH,MAAM,UAAU,sBAAsB,CAClC,IAAgC,EAChC,QAA0B,EAC1B,OAA2C,EAC3C,OAA2B,EAC3B,YAA6C;IAE7C,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEpC,QAAQ,QAAQ,CAAC,IAAI,EAAE;QACnB,KAAK,YAAY,CAAC,aAAa,CAAC,CAAC;YAC7B,MAAM,IAAI,KAAK,C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CAAC,CAAC;oBACnD,OAAO,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC9C,CAAC,CAAC;aACL;YAED,OAAO,SAAS,QAAQ,CAAC,IAAiB;gBACtC,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC3C,IAAI,WAAW,CAAC;gBAEhB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBACtC,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACnC,IAAI,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC;wBAAE,MAAM;oBACxC,IAAI,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE;wBAC/B,WAAW,GAAG,cAAc,CAAC;qBAChC;iBACJ;gBAED,OAAO,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC;YAC9C,CAAC,CAAC;SACL;QACD,KAAK,YAAY,CAAC,SAAS,CAAC,CAAC;YACzB,IAAI,QAAQ,CAAC,SAAS,IAAI,IAAI,IAAI,QAAQ,CAAC,SAAS,KAAK,GAAG,EAAE;gBAC1D,MAAM,IAAI,KAAK,CACX,oEAAoE,CACvE,CAAC;aACL;YAED,OAAO,IAAI,CAAC;SACf;KACJ;AACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CompiledQuery, InternalOptions } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Some selectors such as `:contains` and (non-relative) `:has` will only be
|
|
4
|
+
* able to match elements if their parents match the selector (as they contain
|
|
5
|
+
* a subset of the elements that the parent contains).
|
|
6
|
+
*
|
|
7
|
+
* This function wraps the given `matches` function in a function that caches
|
|
8
|
+
* the results of the parent elements, so that the `matches` function only
|
|
9
|
+
* needs to be called once for each subtree.
|
|
10
|
+
*/
|
|
11
|
+
export declare function cacheParentResults<Node, ElementNode extends Node>(next: CompiledQuery<ElementNode>, { adapter, cacheResults }: InternalOptions<Node, ElementNode>, matches: (elem: ElementNode) => boolean): CompiledQuery<ElementNode>;
|
|
12
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/b3f14ecdb644827d0a7ea8f441abe2063c7ce2e7/src/","sources":["helpers/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGlE;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAC7D,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,EAChC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,EAC7D,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,GACxC,aAAa,CAAC,WAAW,CAAC,CAsC5B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getElementParent } from "./querying.js";
|
|
2
|
+
/**
|
|
3
|
+
* Some selectors such as `:contains` and (non-relative) `:has` will only be
|
|
4
|
+
* able to match elements if their parents match the selector (as they contain
|
|
5
|
+
* a subset of the elements that the parent contains).
|
|
6
|
+
*
|
|
7
|
+
* This function wraps the given `matches` function in a function that caches
|
|
8
|
+
* the results of the parent elements, so that the `matches` function only
|
|
9
|
+
* needs to be called once for each subtree.
|
|
10
|
+
*/
|
|
11
|
+
export function cacheParentResults(next, { adapter, cacheResults }, matches) {
|
|
12
|
+
if (cacheResults === false || typeof WeakMap === "undefined") {
|
|
13
|
+
return (elem) => next(elem) && matches(elem);
|
|
14
|
+
}
|
|
15
|
+
// Use a cache to avoid re-checking children of an element.
|
|
16
|
+
// @ts-expect-error `Node` is not extending object
|
|
17
|
+
const resultCache = new WeakMap();
|
|
18
|
+
function addResultToCache(elem) {
|
|
19
|
+
const result = matches(elem);
|
|
20
|
+
resultCache.set(elem, result);
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
return function cachedMatcher(elem) {
|
|
24
|
+
if (!next(elem))
|
|
25
|
+
return false;
|
|
26
|
+
if (resultCache.has(elem)) {
|
|
27
|
+
return resultCache.get(elem);
|
|
28
|
+
}
|
|
29
|
+
// Check all of the element's parents.
|
|
30
|
+
let node = elem;
|
|
31
|
+
do {
|
|
32
|
+
const parent = getElementParent(node, adapter);
|
|
33
|
+
if (parent === null) {
|
|
34
|
+
return addResultToCache(elem);
|
|
35
|
+
}
|
|
36
|
+
node = parent;
|
|
37
|
+
} while (!resultCache.has(node));
|
|
38
|
+
return resultCache.get(node) && addResultToCache(elem);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=cache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/b3f14ecdb644827d0a7ea8f441abe2063c7ce2e7/src/","sources":["helpers/cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAC9B,IAAgC,EAChC,EAAE,OAAO,EAAE,YAAY,EAAsC,EAC7D,OAAuC;IAEvC,IAAI,YAAY,KAAK,KAAK,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;QAC3D,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,2DAA2D;IAE3D,kDAAkD;IAClD,MAAM,WAAW,GAAG,IAAI,OAAO,EAAiB,CAAC;IAEjD,SAAS,gBAAgB,CAAC,IAAiB;QACvC,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAE7B,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,OAAO,SAAS,aAAa,CAAC,IAAI;QAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,OAAO,KAAK,CAAC;QAC9B,IAAI,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC;QAClC,CAAC;QAED,sCAAsC;QACtC,IAAI,IAAI,GAAG,IAAI,CAAC;QAEhB,GAAG,CAAC;YACA,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE/C,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;gBAClB,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;YAED,IAAI,GAAG,MAAM,CAAC;QAClB,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QAEjC,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAE,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { InternalOptions, Predicate, Adapter } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Find all elements matching the query. If not in XML mode, the query will ignore
|
|
4
|
+
* the contents of `<template>` elements.
|
|
5
|
+
*
|
|
6
|
+
* @param query - Function that returns true if the element matches the query.
|
|
7
|
+
* @param elems - Nodes to query. If a node is an element, its children will be queried.
|
|
8
|
+
* @param options - Options for querying the document.
|
|
9
|
+
* @returns All matching elements.
|
|
10
|
+
*/
|
|
11
|
+
export declare function findAll<Node, ElementNode extends Node>(query: Predicate<ElementNode>, elems: Node[], options: InternalOptions<Node, ElementNode>): ElementNode[];
|
|
12
|
+
/**
|
|
13
|
+
* Find the first element matching the query. If not in XML mode, the query will ignore
|
|
14
|
+
* the contents of `<template>` elements.
|
|
15
|
+
*
|
|
16
|
+
* @param query - Function that returns true if the element matches the query.
|
|
17
|
+
* @param elems - Nodes to query. If a node is an element, its children will be queried.
|
|
18
|
+
* @param options - Options for querying the document.
|
|
19
|
+
* @returns The first matching element, or null if there was no match.
|
|
20
|
+
*/
|
|
21
|
+
export declare function findOne<Node, ElementNode extends Node>(query: Predicate<ElementNode>, elems: Node[], options: InternalOptions<Node, ElementNode>): ElementNode | null;
|
|
22
|
+
export declare function getNextSiblings<Node, ElementNode extends Node>(elem: Node, adapter: Adapter<Node, ElementNode>): ElementNode[];
|
|
23
|
+
export declare function getElementParent<Node, ElementNode extends Node>(node: ElementNode, adapter: Adapter<Node, ElementNode>): ElementNode | null;
|
|
24
|
+
//# sourceMappingURL=querying.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"querying.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/b3f14ecdb644827d0a7ea8f441abe2063c7ce2e7/src/","sources":["helpers/querying.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEvE;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAClD,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,EACb,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,GAC5C,WAAW,EAAE,CAyCf;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAClD,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,EACb,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,GAC5C,WAAW,GAAG,IAAI,CAwCpB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAC1D,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,GACpC,WAAW,EAAE,CAMf;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,SAAS,IAAI,EAC3D,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,GACpC,WAAW,GAAG,IAAI,CAGpB"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Find all elements matching the query. If not in XML mode, the query will ignore
|
|
3
|
+
* the contents of `<template>` elements.
|
|
4
|
+
*
|
|
5
|
+
* @param query - Function that returns true if the element matches the query.
|
|
6
|
+
* @param elems - Nodes to query. If a node is an element, its children will be queried.
|
|
7
|
+
* @param options - Options for querying the document.
|
|
8
|
+
* @returns All matching elements.
|
|
9
|
+
*/
|
|
10
|
+
export function findAll(query, elems, options) {
|
|
11
|
+
const { adapter, xmlMode = false } = options;
|
|
12
|
+
const result = [];
|
|
13
|
+
/** Stack of the arrays we are looking at. */
|
|
14
|
+
const nodeStack = [elems];
|
|
15
|
+
/** Stack of the indices within the arrays. */
|
|
16
|
+
const indexStack = [0];
|
|
17
|
+
for (;;) {
|
|
18
|
+
// First, check if the current array has any more elements to look at.
|
|
19
|
+
if (indexStack[0] >= nodeStack[0].length) {
|
|
20
|
+
// If we have no more arrays to look at, we are done.
|
|
21
|
+
if (nodeStack.length === 1) {
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
nodeStack.shift();
|
|
25
|
+
indexStack.shift();
|
|
26
|
+
// Loop back to the start to continue with the next array.
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const elem = nodeStack[0][indexStack[0]++];
|
|
30
|
+
if (!adapter.isTag(elem))
|
|
31
|
+
continue;
|
|
32
|
+
if (query(elem))
|
|
33
|
+
result.push(elem);
|
|
34
|
+
if (xmlMode || adapter.getName(elem) !== "template") {
|
|
35
|
+
/*
|
|
36
|
+
* Add the children to the stack. We are depth-first, so this is
|
|
37
|
+
* the next array we look at.
|
|
38
|
+
*/
|
|
39
|
+
const children = adapter.getChildren(elem);
|
|
40
|
+
if (children.length > 0) {
|
|
41
|
+
nodeStack.unshift(children);
|
|
42
|
+
indexStack.unshift(0);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Find the first element matching the query. If not in XML mode, the query will ignore
|
|
49
|
+
* the contents of `<template>` elements.
|
|
50
|
+
*
|
|
51
|
+
* @param query - Function that returns true if the element matches the query.
|
|
52
|
+
* @param elems - Nodes to query. If a node is an element, its children will be queried.
|
|
53
|
+
* @param options - Options for querying the document.
|
|
54
|
+
* @returns The first matching element, or null if there was no match.
|
|
55
|
+
*/
|
|
56
|
+
export function findOne(query, elems, options) {
|
|
57
|
+
const { adapter, xmlMode = false } = options;
|
|
58
|
+
/** Stack of the arrays we are looking at. */
|
|
59
|
+
const nodeStack = [elems];
|
|
60
|
+
/** Stack of the indices within the arrays. */
|
|
61
|
+
const indexStack = [0];
|
|
62
|
+
for (;;) {
|
|
63
|
+
// First, check if the current array has any more elements to look at.
|
|
64
|
+
if (indexStack[0] >= nodeStack[0].length) {
|
|
65
|
+
// If we have no more arrays to look at, we are done.
|
|
66
|
+
if (nodeStack.length === 1) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
nodeStack.shift();
|
|
70
|
+
indexStack.shift();
|
|
71
|
+
// Loop back to the start to continue with the next array.
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
const elem = nodeStack[0][indexStack[0]++];
|
|
75
|
+
if (!adapter.isTag(elem))
|
|
76
|
+
continue;
|
|
77
|
+
if (query(elem))
|
|
78
|
+
return elem;
|
|
79
|
+
if (xmlMode || adapter.getName(elem) !== "template") {
|
|
80
|
+
/*
|
|
81
|
+
* Add the children to the stack. We are depth-first, so this is
|
|
82
|
+
* the next array we look at.
|
|
83
|
+
*/
|
|
84
|
+
const children = adapter.getChildren(elem);
|
|
85
|
+
if (children.length > 0) {
|
|
86
|
+
nodeStack.unshift(children);
|
|
87
|
+
indexStack.unshift(0);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export function getNextSiblings(elem, adapter) {
|
|
93
|
+
const siblings = adapter.getSiblings(elem);
|
|
94
|
+
if (siblings.length <= 1)
|
|
95
|
+
return [];
|
|
96
|
+
const elemIndex = siblings.indexOf(elem);
|
|
97
|
+
if (elemIndex < 0 || elemIndex === siblings.length - 1)
|
|
98
|
+
return [];
|
|
99
|
+
return siblings.slice(elemIndex + 1).filter(adapter.isTag);
|
|
100
|
+
}
|
|
101
|
+
export function getElementParent(node, adapter) {
|
|
102
|
+
const parent = adapter.getParent(node);
|
|
103
|
+
return parent != null && adapter.isTag(parent) ? parent : null;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=querying.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"querying.js","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/b3f14ecdb644827d0a7ea8f441abe2063c7ce2e7/src/","sources":["helpers/querying.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,UAAU,OAAO,CACnB,KAA6B,EAC7B,KAAa,EACb,OAA2C;IAE3C,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IAC7C,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,6CAA6C;IAC7C,MAAM,SAAS,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1B,8CAA8C;IAC9C,MAAM,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IAEvB,SAAS,CAAC;QACN,sEAAsE;QACtE,IA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AE,OAAO,EAAE,CAAC;IAClE,OAAO,QAAQ,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC5B,IAAiB,EACjB,OAAmC;IAEnC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,MAAM,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InternalSelector } from "../types.js";
|
|
2
|
+
import { type Traversal } from "css-what";
|
|
3
|
+
export declare function isTraversal(token: InternalSelector): token is Traversal;
|
|
4
|
+
/**
|
|
5
|
+
* Sort the parts of the passed selector, as there is potential for
|
|
6
|
+
* optimization (some types of selectors are faster than others).
|
|
7
|
+
*
|
|
8
|
+
* @param arr Selector to sort
|
|
9
|
+
*/
|
|
10
|
+
export declare function sortRules(arr: InternalSelector[]): void;
|
|
11
|
+
/**
|
|
12
|
+
* Determine the quality of the passed token. The higher the number, the
|
|
13
|
+
* faster the token is to execute.
|
|
14
|
+
*
|
|
15
|
+
* @param token Token to get the quality of.
|
|
16
|
+
* @returns The token's quality.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getQuality(token: InternalSelector): number;
|
|
19
|
+
export declare function includesScopePseudo(t: InternalSelector): boolean;
|
|
20
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/css-select/b3f14ecdb644827d0a7ea8f441abe2063c7ce2e7/src/","sources":["helpers/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAKH,KAAK,SAAS,EACjB,MAAM,UAAU,CAAC;AAElB,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,SAAS,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAgBvD;AAgCD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAyC1D;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAOhE"}
|