Skip to content

Commit

Permalink
fix: missing module types
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Dec 24, 2024
1 parent 7c8eb17 commit c204fff
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/electron-chrome-web-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"typescript": "^5.6.3"
},
"dependencies": {
"@types/chrome": "^0.0.287",
"adm-zip": "^0.5.16",
"debug": "^4.3.7",
"pbf": "^4.0.1"
Expand Down
1 change: 1 addition & 0 deletions packages/electron-chrome-web-store/src/browser/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
WebGlStatus,
} from '../common/constants'
import { installExtension } from './installer'
import { ExtensionId, WebStoreState } from './types'

const d = debug('electron-chrome-web-store:api')

Expand Down
1 change: 1 addition & 0 deletions packages/electron-chrome-web-store/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export { installExtension, downloadExtension } from './installer'
import { initUpdater } from './updater'
export { updateExtensions } from './updater'
import { getDefaultExtensionsPath } from './utils'
import { ExtensionId, WebStoreState } from './types'

interface ElectronChromeWebStoreOptions {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { readCrxFileHeader, readSignedData } from './crx3'
import { convertHexadecimalToIDAlphabet, generateId } from './id'
import { fetch, getChromeVersion, getDefaultExtensionsPath } from './utils'
import { findExtensionInstall } from './loader'
import { ExtensionId } from './types'

const d = debug('electron-chrome-web-store:installer')

Expand Down
1 change: 1 addition & 0 deletions packages/electron-chrome-web-store/src/browser/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import debug from 'debug'

import { generateId } from './id'
import { compareVersions } from './utils'
import { ExtensionId } from './types'

const d = debug('electron-chrome-web-store:loader')

Expand Down
4 changes: 2 additions & 2 deletions packages/electron-chrome-web-store/src/browser/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type ExtensionId = Electron.Extension['id']
export type ExtensionId = Electron.Extension['id']

interface WebStoreState {
export interface WebStoreState {
session: Electron.Session
extensionsPath: string
installing: Set<ExtensionId>
Expand Down
1 change: 1 addition & 0 deletions packages/electron-chrome-web-store/src/browser/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { app, powerMonitor, session as electronSession } from 'electron'

import { compareVersions, fetch, getChromeVersion } from './utils'
import { downloadExtensionFromURL } from './installer'
import { WebStoreState } from './types'

const d = debug('electron-chrome-web-store:updater')

Expand Down
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,14 @@
"@types/filesystem" "*"
"@types/har-format" "*"

"@types/chrome@^0.0.287":
version "0.0.287"
resolved "https://registry.yarnpkg.com/@types/chrome/-/chrome-0.0.287.tgz#239969b1195b441836d2137125543b5241c41157"
integrity sha512-wWhBNPNXZHwycHKNYnexUcpSbrihVZu++0rdp6GEk5ZgAglenLx+RwdEouh6FrHS0XQiOxSd62yaujM1OoQlZQ==
dependencies:
"@types/filesystem" "*"
"@types/har-format" "*"

"@types/connect-history-api-fallback@^1.3.5":
version "1.5.4"
resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz#7de71645a103056b48ac3ce07b3520b819c1d5b3"
Expand Down Expand Up @@ -3379,6 +3387,15 @@ ee-first@1.1.1:
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==

electron-chrome-web-store@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/electron-chrome-web-store/-/electron-chrome-web-store-0.5.0.tgz#70510315c979e88147c1fa7fbbe30a6c6e59c86b"
integrity sha512-i6scuETNOdGxnTP1JBQyLWLxKkJZ0WJsnRzrxrujBEeDzt976X58y2t4p8DwuP9JH72N4S7q6OqqzdwQGZz+Mg==
dependencies:
adm-zip "^0.5.16"
debug "^4.3.7"
pbf "^4.0.1"

electron-installer-dmg@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/electron-installer-dmg/-/electron-installer-dmg-5.0.1.tgz#309662eccce4a8585a79fe4bce79c23976a950f0"
Expand Down

0 comments on commit c204fff

Please sign in to comment.