@wxt-dev/browser
Advanced tools
+6
-6
| { | ||
| "name": "@wxt-dev/browser", | ||
| "description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome", | ||
| "version": "0.1.36", | ||
| "version": "0.1.37", | ||
| "type": "module", | ||
@@ -22,7 +22,7 @@ "main": "src/index.mjs", | ||
| "devDependencies": { | ||
| "@types/chrome": "0.1.36", | ||
| "fs-extra": "^11.3.1", | ||
| "nano-spawn": "^1.0.2", | ||
| "typescript": "^5.9.2", | ||
| "vitest": "^4.0.16" | ||
| "@types/chrome": "0.1.37", | ||
| "fs-extra": "^11.3.3", | ||
| "nano-spawn": "^2.0.0", | ||
| "typescript": "^5.9.3", | ||
| "vitest": "^4.0.18" | ||
| }, | ||
@@ -29,0 +29,0 @@ "dependencies": { |
@@ -8,17 +8,17 @@ /// <reference types="chrome" /> | ||
| it('should provide types via the Browser import', () => { | ||
| expectTypeOf<Browser.runtime.MessageSender>().toMatchTypeOf<chrome.runtime.MessageSender>(); | ||
| expectTypeOf<Browser.storage.AreaName>().toMatchTypeOf<chrome.storage.AreaName>(); | ||
| expectTypeOf<Browser.i18n.LanguageDetectionResult>().toMatchTypeOf<chrome.i18n.LanguageDetectionResult>(); | ||
| expectTypeOf<Browser.runtime.MessageSender>().toEqualTypeOf<chrome.runtime.MessageSender>(); | ||
| expectTypeOf<Browser.storage.AreaName>().toEqualTypeOf<chrome.storage.AreaName>(); | ||
| expectTypeOf<Browser.i18n.LanguageDetectionResult>().toEqualTypeOf<chrome.i18n.LanguageDetectionResult>(); | ||
| }); | ||
| it('should provide values via the browser import', () => { | ||
| expectTypeOf(browser.runtime.id).toMatchTypeOf<string>(); | ||
| expectTypeOf(browser.runtime.id).toEqualTypeOf<string>(); | ||
| expectTypeOf( | ||
| browser.storage.local, | ||
| ).toMatchTypeOf<Browser.storage.StorageArea>(); | ||
| ).toEqualTypeOf<Browser.storage.LocalStorageArea>(); | ||
| expectTypeOf( | ||
| browser.i18n.detectLanguage('Hello, world!'), | ||
| ).resolves.toMatchTypeOf<chrome.i18n.LanguageDetectionResult>(); | ||
| browser.i18n.detectLanguage, | ||
| ).returns.resolves.toEqualTypeOf<chrome.i18n.LanguageDetectionResult>(); | ||
| }); | ||
| }); | ||
| }); |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
806535
0.22%14763
0.29%