update extension deps
This commit is contained in:
+930
-6238
File diff suppressed because it is too large
Load Diff
@@ -32,23 +32,20 @@
|
||||
"homepage": "https://addons.mozilla.org/en-US/firefox/addon/container-proxy/",
|
||||
"devDependencies": {
|
||||
"@types/chai": "^5.0.1",
|
||||
"@types/firefox-webext-browser": "^120.0.4",
|
||||
"@types/firefox-webext-browser": "^143.0.0",
|
||||
"@types/mocha": "^10.0.10",
|
||||
"addons-linter": "^7.8.0",
|
||||
"chai": "^5.1.2",
|
||||
"copy-webpack-plugin": "^12.0.2",
|
||||
"esm": "^3.2.25",
|
||||
"mocha": "^10.8.2",
|
||||
"sinon": "^8.1.1",
|
||||
"sinon-chrome": "^3.0.1",
|
||||
"standardx": "^7.0.0",
|
||||
"ts-loader": "^9.2.6",
|
||||
"ts-mocha": "^10.0.0",
|
||||
"ts-mocha": "^11.1.0",
|
||||
"ts-standard": "^12.0.2",
|
||||
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
||||
"typescript": "^5.7.3",
|
||||
"web-ext": "^8.4.0",
|
||||
"webextensions-api-fake": "^1.3.0",
|
||||
"webextensions-geckodriver": "^0.7.0",
|
||||
"webpack": "^5.59.1",
|
||||
"webpack-cli": "^6.0.1"
|
||||
},
|
||||
|
||||
+3
-3
@@ -1,6 +1,5 @@
|
||||
import BackgroundMain, { doNotProxy } from '../../src/background/BackgroundMain'
|
||||
import { Store } from '../../src/store/Store'
|
||||
import webExtensionsApiFake from 'webextensions-api-fake'
|
||||
|
||||
import { expect } from 'chai'
|
||||
import { ProxySettings } from '../../src/domain/ProxySettings'
|
||||
@@ -8,12 +7,13 @@ const tryFromDao = ProxySettings.tryFromDao
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||
|
||||
const chrome = require('sinon-chrome/extensions');
|
||||
|
||||
const store = new Store()
|
||||
|
||||
describe('BackgroundMain', function () {
|
||||
beforeEach(() => {
|
||||
// @ts-expect-error
|
||||
global.browser = webExtensionsApiFake()
|
||||
global.browser = chrome
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
import { ProxyDao, Store } from '../../src/store/Store'
|
||||
import webExtensionsApiFake from 'webextensions-api-fake'
|
||||
|
||||
import { expect } from 'chai'
|
||||
import { ProxySettings } from '../../src/domain/ProxySettings'
|
||||
const tryFromDao = ProxySettings.tryFromDao
|
||||
const chrome = require('sinon-chrome/extensions');
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||
|
||||
@@ -11,7 +11,7 @@ describe('Store', () => {
|
||||
const store = new Store()
|
||||
|
||||
beforeEach(() => {
|
||||
(global as any).browser = webExtensionsApiFake()
|
||||
(global as any).browser = chrome
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user