From 69e9a44ca7d8655dc7f0d0980ae2faf6e6e0db0e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:31:07 +0000 Subject: [PATCH 1/2] fix(deps): update dependency awilix to v12 --- package.json | 2 +- pnpm-lock.yaml | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bbd8777a..a5c796f0 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@noble/ed25519": "^2.1.0", "@noble/hashes": "^1.5.0", "@radix-ui/react-tabs": "^1.1.1", - "awilix": "^11.0.0", + "awilix": "^12.0.3", "class-variance-authority": "^0.7.0", "crypto-browserify": "^3.12.0", "date-fns": "^3.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b6a212a8..6cf57dd9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,8 +28,8 @@ importers: specifier: ^1.1.1 version: 1.1.1(@types/react-dom@18.3.0)(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) awilix: - specifier: ^11.0.0 - version: 11.0.0 + specifier: ^12.0.3 + version: 12.0.3 class-variance-authority: specifier: ^0.7.0 version: 0.7.0 @@ -1618,8 +1618,8 @@ packages: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} - awilix@11.0.0: - resolution: {integrity: sha512-lnEm2TZu1OUWO1twi/3JrjSYu3RYjiOMiMQgfpwXj6uG4NSDtPSAWwTvqbpV7B8iWsXiC8GoMBKg1YsrUxPJhg==} + awilix@12.0.3: + resolution: {integrity: sha512-UBFALNvqVOj4V4s6yPW9JYTwg3Bih4w9kQRoD/J/z0iskMBRiCUkakmgPmSHRzjxEcJac7FiQhSpvD5JvSoLew==} engines: {node: '>=16.3.0'} axe-core@4.10.0: @@ -2262,6 +2262,7 @@ packages: eslint@8.57.1: resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true espree@9.6.1: @@ -5788,7 +5789,7 @@ snapshots: dependencies: possible-typed-array-names: 1.0.0 - awilix@11.0.0: + awilix@12.0.3: dependencies: camel-case: 4.1.2 fast-glob: 3.3.2 From b94b71f9d3a854a4721ac2338824b276aa095680 Mon Sep 17 00:00:00 2001 From: Radu-Cristian Popa Date: Tue, 12 Nov 2024 08:12:08 +0200 Subject: [PATCH 2/2] Update imports to awilix/browser --- src/background/container.ts | 7 ++++++- src/content/container.ts | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/background/container.ts b/src/background/container.ts index 5c3e89c8..9e79f3c5 100644 --- a/src/background/container.ts +++ b/src/background/container.ts @@ -1,4 +1,9 @@ -import { asClass, asValue, createContainer, InjectionMode } from 'awilix'; +import { + asClass, + asValue, + createContainer, + InjectionMode, +} from 'awilix/browser'; import browser, { type Browser } from 'webextension-polyfill'; import { OpenPaymentsService, diff --git a/src/content/container.ts b/src/content/container.ts index c5eaf2d8..39e7495c 100644 --- a/src/content/container.ts +++ b/src/content/container.ts @@ -1,4 +1,9 @@ -import { asClass, asValue, createContainer, InjectionMode } from 'awilix'; +import { + asClass, + asValue, + createContainer, + InjectionMode, +} from 'awilix/browser'; import browser, { type Browser } from 'webextension-polyfill'; import { createLogger, Logger } from '@/shared/logger'; import { ContentScript } from './services/contentScript';