pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
464 stars 78 forks source link

Bump terser from 4.8.0 to 4.8.1 #181

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps terser from 4.8.0 to 4.8.1.

Changelog

Sourced from terser's changelog.

v4.8.1 (backport)

  • Security fix for RegExps that should not be evaluated (regexp DDOS)
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/pstanoev/simple-svelte-autocomplete/network/alerts).
github-actions[bot] commented 2 years ago

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/usr/local/bin/npx' failed with exit code 1
St.:grey_question:
Category Percentage Covered / Total
πŸ”΄ Statements 57.33% 266/464
🟑 Branches 68.6% 177/258
πŸ”΄ Functions 35.29% 6/17
πŸ”΄ Lines 57.38% 241/420

Test suite run failed

Failed tests: 8/16. Failed suites: 3/4.
``` ● on focus, menu is shown with all the elements TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at resetListToAllItemsAndOpen (src/SimpleAutocomplete.svelte:2666:3) at HTMLInputElement.onFocusInternal (src/SimpleAutocomplete.svelte:2640:3) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as focus] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as focus] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:21:19) ● on focus, menu is shown with all the elements expect(element).toBeVisible() Received element is not visible:
22 | 23 | expect(await screen.queryByText('White')).toBeInTheDocument() > 24 | expect(await screen.queryByText('White')).toBeVisible() | ^ 25 | expect(await screen.queryByText('Red')).toBeInTheDocument() 26 | expect(await screen.queryByText('Red')).toBeVisible() 27 | }) at Object. (src/tests/sync.test.ts:24:45) ● when something is queried, only the matching items are shown TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:33:19) ● when something is queried, only the matching items are shown expect(element).toBeVisible() Received element is not visible: 34 | 35 | expect(await screen.queryByText('White')).toBeInTheDocument() > 36 | expect(await screen.queryByText('White')).toBeVisible() | ^ 37 | expect(await screen.queryByText('Red')).not.toBeInTheDocument() 38 | }) 39 | at Object. (src/tests/sync.test.ts:36:45) ● when nothing matches the query, no item is show TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:44:19) ● when something is queried, the query is highlighted TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/sync.test.ts:55:19) ``` --- ``` ● when something is queried, only the matching items are shown TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/async.test.ts:31:19) ● when something is queried, only the matching items are shown expect(element).toBeVisible() Received element is not visible: 32 | 33 | expect(await screen.queryByText('White')).toBeInTheDocument() > 34 | expect(await screen.queryByText('White')).toBeVisible() | ^ 35 | expect(await screen.queryByText('Red')).not.toBeInTheDocument() 36 | }) 37 | at Object. (src/tests/async.test.ts:34:45) ● when nothing matches the query, no item is show TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/async.test.ts:42:19) ● when something is queried, the query is highlighted TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/async.test.ts:53:19) ``` --- ``` ● when selection is multiple, selectedItem is a list TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/multiple.test.ts:14:19) ● when selection is multiple, selectedItem is a list TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at resetListToAllItemsAndOpen (src/SimpleAutocomplete.svelte:2666:3) at HTMLInputElement.onFocusInternal (src/SimpleAutocomplete.svelte:2640:3) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at Object.exports.fireFocusEventWithTargetAdjustment (node_modules/jsdom/lib/jsdom/living/helpers/focusing.js:103:10) at HTMLInputElementImpl.focus (node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js:68:14) at HTMLInputElement.focus (node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js:119:34) at onListItemClick (src/SimpleAutocomplete.svelte:2501:11) at Array.click_handler (src/SimpleAutocomplete.svelte:2932:36) at HTMLDivElement.click_handler (src/SimpleAutocomplete.svelte:1065:28) at HTMLDivElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as click] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as click] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/multiple.test.ts:15:19) ● when selection is multiple, selectedItem is a list TypeError: Cannot destructure property 'height' of '((cov_1wwwktp4ug(...).s[1303]++) , window.visualViewport)' as it is undefined. at setScrollAwareListPosition (src/SimpleAutocomplete.svelte:2737:19) at open (src/SimpleAutocomplete.svelte:2732:3) at processInput (src/SimpleAutocomplete.svelte:2600:4) at HTMLInputElement.onInput (src/SimpleAutocomplete.svelte:2584:4) at HTMLInputElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30) at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:338:25) at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3) at HTMLInputElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:221:9) at HTMLInputElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17) at HTMLInputElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:231:34) at node_modules/@testing-library/dom/dist/events.js:25:20 at Object.eventWrapper (node_modules/@testing-library/dom/dist/config.js:27:23) at fireEvent (node_modules/@testing-library/dom/dist/events.js:16:35) at Function.fireEvent. [as input] (node_modules/@testing-library/dom/dist/events.js:125:36) at AsyncFunction.fireEvent. [as input] (node_modules/@testing-library/svelte/dist/pure.js:162:38) at Object. (src/tests/multiple.test.ts:19:19) ```

Report generated by πŸ§ͺjest coverage report action from 5aea129e9a7d088f40d9894d1914a131497577c8