From 008eb71380c8837bc3f590872efa0265d8339f27 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Wed, 6 Nov 2024 20:38:04 +0300 Subject: [PATCH] chore: fix chrome csp error in content script by updating crxjs --- package.json | 2 +- pnpm-lock.yaml | 85 ++++++++++++++------------------------------------ 2 files changed, 25 insertions(+), 62 deletions(-) diff --git a/package.json b/package.json index c329855..f34f915 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "devDependencies": { "@antfu/eslint-config": "^2.21.1", - "@crxjs/vite-plugin": "^2.0.0-beta.19", + "@crxjs/vite-plugin": "^2.0.0-beta.28", "@eslint-react/eslint-plugin": "^1.5.15", "@iconify/json": "^2.2.219", "@types/chrome": "^0.0.246", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a3ea27f..9ed53a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,8 +43,8 @@ importers: specifier: ^2.21.1 version: 2.21.1(@eslint-react/eslint-plugin@1.5.15(eslint@8.57.0)(typescript@5.4.5))(@unocss/eslint-plugin@0.60.4(eslint@8.57.0)(typescript@5.4.5))(@vue/compiler-sfc@3.4.29)(eslint-plugin-react-hooks@4.6.2(eslint@8.57.0))(eslint-plugin-react-refresh@0.4.7(eslint@8.57.0))(eslint@8.57.0)(typescript@5.4.5) '@crxjs/vite-plugin': - specifier: ^2.0.0-beta.19 - version: 2.0.0-beta.23 + specifier: ^2.0.0-beta.28 + version: 2.0.0-beta.28 '@eslint-react/eslint-plugin': specifier: ^1.5.15 version: 1.5.15(eslint@8.57.0)(typescript@5.4.5) @@ -365,8 +365,8 @@ packages: bundledDependencies: - is-unicode-supported - '@crxjs/vite-plugin@2.0.0-beta.23': - resolution: {integrity: sha512-AO+VYhtNZ1fITq/sc54FZpTtFvHR+gJwFGiWTGKs07bwYzzZFdF0sYeiFgZiEjaNkddkAzuM4F4lgOmCm69YUw==} + '@crxjs/vite-plugin@2.0.0-beta.28': + resolution: {integrity: sha512-JUoB1431PvruQqVpxvJ5j6qh0NNx5sXafAXo+VltORtJQrS6wprI5QK4k6PLKV+WacsFuPLveM2ydBCEopU49w==} '@cspotcode/source-map-support@0.8.1': resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} @@ -747,6 +747,9 @@ packages: '@jridgewell/sourcemap-codec@1.4.15': resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} @@ -1658,10 +1661,6 @@ packages: confbox@0.1.7: resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} - connect-injector@0.4.4: - resolution: {integrity: sha512-hdBG8nXop42y2gWCqOV8y1O3uVk4cIU+SoxLCPyCUKRImyPiScoNiSulpHjoktRU1BdI0UzoUdxUa87thrcmHw==} - engines: {node: '>= 0.8.0'} - consola@3.2.3: resolution: {integrity: sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==} engines: {node: ^14.18.0 || >=16.10.0} @@ -2405,7 +2404,7 @@ packages: resolution: {integrity: sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==} engines: {node: '>= 4.0'} os: [darwin] - deprecated: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 + deprecated: Upgrade to fsevents v2 to mitigate potential security issues fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} @@ -3106,13 +3105,12 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - magic-string@0.26.7: - resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==} - engines: {node: '>=12'} - magic-string@0.30.10: resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==} + magic-string@0.30.12: + resolution: {integrity: sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==} + make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} @@ -3620,14 +3618,6 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - q@1.5.1: - resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} - engines: {node: '>=0.6.0', teleport: '>=0.2.0'} - deprecated: |- - You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. - - (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) - queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -3800,8 +3790,8 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true - rollup@2.78.1: - resolution: {integrity: sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==} + rollup@2.79.2: + resolution: {integrity: sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==} engines: {node: '>=10.0.0'} hasBin: true @@ -3971,10 +3961,6 @@ packages: resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} engines: {node: '>=0.10.0'} - sourcemap-codec@1.4.8: - resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} - deprecated: Please use @jridgewell/sourcemap-codec instead - sparkles@1.0.1: resolution: {integrity: sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==} engines: {node: '>= 0.10'} @@ -4008,10 +3994,6 @@ packages: resolution: {integrity: sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==} engines: {node: '>=0.10.0'} - stream-buffers@0.2.6: - resolution: {integrity: sha512-ZRpmWyuCdg0TtNKk8bEqvm13oQvXMmzXDsfD4cBgcx5LouborvU5pm3JMkdTP3HcszyUI08AM1dHMXA5r2g6Sg==} - engines: {node: '>= 0.3.0'} - stream-exhaust@1.0.2: resolution: {integrity: sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==} @@ -4272,9 +4254,6 @@ packages: engines: {node: '>=14.17'} hasBin: true - uberproto@1.2.0: - resolution: {integrity: sha512-pGtPAQmLwh+R9w81WVHzui1FfedpQWQpiaIIfPCwhtsBez4q6DYbJFfyXPVHPUTNFnedAvNEnkoFiLuhXIR94w==} - ufo@1.5.3: resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} @@ -4887,23 +4866,22 @@ snapshots: picocolors: 1.0.1 sisteransi: 1.0.5 - '@crxjs/vite-plugin@2.0.0-beta.23': + '@crxjs/vite-plugin@2.0.0-beta.28': dependencies: '@rollup/pluginutils': 4.2.1 '@webcomponents/custom-elements': 1.6.0 acorn-walk: 8.3.3 cheerio: 1.0.0-rc.12 - connect-injector: 0.4.4 convert-source-map: 1.9.0 debug: 4.3.5 es-module-lexer: 0.10.5 fast-glob: 3.3.2 fs-extra: 10.1.0 jsesc: 3.0.2 - magic-string: 0.26.7 + magic-string: 0.30.12 picocolors: 1.0.1 react-refresh: 0.13.0 - rollup: 2.78.1 + rollup: 2.79.2 rxjs: 7.5.7 transitivePeerDependencies: - supports-color @@ -5262,6 +5240,8 @@ snapshots: '@jridgewell/sourcemap-codec@1.4.15': {} + '@jridgewell/sourcemap-codec@1.5.0': {} + '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.2 @@ -6005,7 +5985,7 @@ snapshots: '@vue/compiler-ssr': 3.4.29 '@vue/shared': 3.4.29 estree-walker: 2.0.2 - magic-string: 0.30.10 + magic-string: 0.30.12 postcss: 8.4.38 source-map-js: 1.2.0 @@ -6521,15 +6501,6 @@ snapshots: confbox@0.1.7: {} - connect-injector@0.4.4: - dependencies: - debug: 2.6.9 - q: 1.5.1 - stream-buffers: 0.2.6 - uberproto: 1.2.0 - transitivePeerDependencies: - - supports-color - consola@3.2.3: {} convert-source-map@1.9.0: {} @@ -8234,14 +8205,14 @@ snapshots: dependencies: yallist: 3.1.1 - magic-string@0.26.7: - dependencies: - sourcemap-codec: 1.4.8 - magic-string@0.30.10: dependencies: '@jridgewell/sourcemap-codec': 1.4.15 + magic-string@0.30.12: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + make-error@1.3.6: {} make-iterator@1.0.1: @@ -8796,8 +8767,6 @@ snapshots: punycode@2.3.1: {} - q@1.5.1: {} - queue-microtask@1.2.3: {} queue-tick@1.0.1: {} @@ -8971,7 +8940,7 @@ snapshots: dependencies: glob: 7.2.3 - rollup@2.78.1: + rollup@2.79.2: optionalDependencies: fsevents: 2.3.3 @@ -9163,8 +9132,6 @@ snapshots: source-map@0.5.7: {} - sourcemap-codec@1.4.8: {} - sparkles@1.0.1: {} spdx-correct@3.2.0: @@ -9199,8 +9166,6 @@ snapshots: define-property: 0.2.5 object-copy: 0.1.0 - stream-buffers@0.2.6: {} - stream-exhaust@1.0.2: {} stream-shift@1.0.3: {} @@ -9495,8 +9460,6 @@ snapshots: typescript@5.4.5: {} - uberproto@1.2.0: {} - ufo@1.5.3: {} unbox-primitive@1.0.2: