From bde85e655158e2f522b1c1c19bbda19ae499f9a5 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Sun, 22 Sep 2024 22:02:19 -0700 Subject: [PATCH 1/4] refactor: convert to ESM + update all dependencies BREAKING CHANGE: We now require node 20 or higher --- .circleci/config.yml | 15 +- .husky/pre-commit | 3 - jest.config.js | 13 + package.json | 50 +- src/bin.ts | 39 +- src/dynamic-param-interfaces.ts | 22 +- src/index.ts | 28 +- src/module-declaration.ts | 39 +- src/primary-interfaces.ts | 9 +- src/remap-optionals.ts | 12 +- src/utils.ts | 45 +- test/output.spec.ts | 62 + test/output_spec.js | 48 - test/remap-optionals.spec.ts | 108 + test/remap-optionals_spec.js | 104 - test/{utils_spec.js => utils.spec.ts} | 76 +- tsconfig.json | 14 +- yarn.lock | 2840 ++++++++++++++++++++----- 18 files changed, 2649 insertions(+), 878 deletions(-) create mode 100644 jest.config.js create mode 100644 test/output.spec.ts delete mode 100644 test/output_spec.js create mode 100644 test/remap-optionals.spec.ts delete mode 100644 test/remap-optionals_spec.js rename test/{utils_spec.js => utils.spec.ts} (65%) diff --git a/.circleci/config.yml b/.circleci/config.yml index 126b58a..fe670c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,14 +10,6 @@ workflows: jobs: - node/test: name: test-<< matrix.executor >>-<< matrix.node-version >> - pre-steps: - - when: - condition: - and: - - equal: [ node/macos, << matrix.executor >> ] - - equal: [ '14.16', << matrix.node-version >> ] - steps: - - node/install-rosetta test-steps: - run: yarn prettier:check - run: yarn test @@ -30,11 +22,8 @@ workflows: - node/macos - node/windows node-version: - - '20.10' - - '18.18' - - '16.20' - # Stay below 14.17.0 or nvm tries to download arm64 artifacts which don't exist - - '14.16' + - '22.9' + - '20.11' - cfa/release: requires: - test diff --git a/.husky/pre-commit b/.husky/pre-commit index 5a182ef..3723623 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - yarn lint-staged diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..2840efe --- /dev/null +++ b/jest.config.js @@ -0,0 +1,13 @@ +import path from 'node:path'; +import { createDefaultEsmPreset } from 'ts-jest'; + +/** @type {import('ts-jest').JestConfigWithTsJest} **/ +export default { + moduleNameMapper: { + '^(\\.{1,2}/.*)\\.js$': '$1', + }, + testPathIgnorePatterns: ['node_modules', path.resolve(import.meta.dirname, 'dist')], + ...createDefaultEsmPreset({ + tsconfig: 'tsconfig.json', + }) +}; diff --git a/package.json b/package.json index 3567871..2397efa 100644 --- a/package.json +++ b/package.json @@ -6,16 +6,18 @@ "electron-typescript-definitions": "dist/bin.js" }, "main": "dist/index.js", + "type": "module", "engines": { - "node": ">=14.0.0" + "node": ">=20.9.0" }, "scripts": { "build": "tsc", - "prepare": "husky install", + "prepare": "husky", "prepublishOnly": "yarn build", - "prettier:check": "prettier --list-different \"src/**/*.{ts,tsx}\"", - "prettier:write": "prettier --write \"src/**/*.{ts,tsx}\"", - "test": "yarn build && mocha" + "prettier:check": "prettier --list-different \"{src,test}/**/*.ts\"", + "prettier:write": "prettier --write \"{src,test}/**/*.ts\"", + "pretest": "tsc", + "test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest" }, "author": { "name": "Samuel Attard", @@ -23,29 +25,25 @@ }, "license": "MIT", "devDependencies": { - "@electron/docs-parser": "^1.2.0", - "@types/debug": "^4.1.4", - "@types/fs-extra": "^5.0.5", - "@types/lodash": "^4.14.123", - "@types/minimist": "^1.2.0", - "chai": "^4.2.0", - "husky": "^8.0.2", - "lint-staged": "^13.0.4", - "mocha": "^10.1.0", - "prettier": "^1.17.0", - "typescript": "^3.4.5" + "@electron/docs-parser": "^1.2.2", + "@types/debug": "^4.1.12", + "@types/jest": "^29.5.13", + "@types/lodash": "^4.17.7", + "cross-env": "^7.0.3", + "husky": "^9.1.6", + "jest": "^30.0.0-alpha.6", + "lint-staged": "^15.2.10", + "prettier": "^3.3.3", + "ts-jest": "^29.2.5", + "typescript": "^5.6.2" }, "dependencies": { - "@types/node": "^11.13.7", - "chalk": "^2.4.2", - "colors": "^1.1.2", - "debug": "^4.1.1", - "fs-extra": "^7.0.1", + "@types/node": "^20.11.25", + "chalk": "^5.3.0", + "debug": "^4.3.7", "lodash": "^4.17.11", - "minimist": "^1.2.0", - "mkdirp": "^0.5.1", - "ora": "^3.4.0", - "pretty-ms": "^5.0.0" + "ora": "^8.1.0", + "pretty-ms": "^9.1.0" }, "repository": { "type": "git", @@ -57,6 +55,6 @@ "base" ], "lint-staged": { - "*.{js,ts}": "prettier --write" + "*.ts": "prettier --write" } } diff --git a/src/bin.ts b/src/bin.ts index 958bc80..688bc74 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -1,17 +1,32 @@ #!/usr/bin/env node -import * as fs from 'fs-extra'; -import minimist from 'minimist'; -import ora from 'ora'; -import * as path from 'path'; -import pretty from 'pretty-ms'; +import fs from 'node:fs'; +import path from 'node:path'; +import { parseArgs } from 'node:util'; import chalk from 'chalk'; -import { generateDefinitions } from '.'; +import ora from 'ora'; +import pretty from 'pretty-ms'; -const args = minimist(process.argv); +import { generateDefinitions } from './index.js'; -const { api, outDir, help } = args; +const { + values: { api, outDir, help }, +} = parseArgs({ + options: { + api: { + type: 'string', + }, + outDir: { + type: 'string', + default: process.cwd(), + }, + help: { + type: 'boolean', + default: false, + }, + }, +}); if (help) { console.info( @@ -30,7 +45,7 @@ if (typeof api !== 'string') { } const resolvedApi = path.isAbsolute(api) ? api : path.resolve(process.cwd(), api); -if (!fs.pathExistsSync(resolvedApi)) { +if (!fs.existsSync(resolvedApi)) { runner.fail(`${chalk.red('Resolved directory does not exist:')} ${chalk.cyan(resolvedApi)}`); process.exit(1); } @@ -47,11 +62,11 @@ runner.text = chalk.cyan(`Generating API in directory: ${chalk.yellow(`"${resolv const start = Date.now(); const resolvedFilePath = path.resolve(resolvedOutDir, './electron.d.ts'); -fs.mkdirp(resolvedOutDir).then(() => +fs.promises.mkdir(resolvedOutDir, { recursive: true }).then(() => generateDefinitions({ electronApi: require(resolvedApi), }) - .then(data => fs.writeFile(resolvedFilePath, data)) + .then((data) => fs.promises.writeFile(resolvedFilePath, data)) .then(() => runner.succeed( `${chalk.green('Electron Typescript Definitions generated in')} ${chalk.yellow( @@ -59,7 +74,7 @@ fs.mkdirp(resolvedOutDir).then(() => )} took ${chalk.cyan(pretty(Date.now() - start))}`, ), ) - .catch(err => { + .catch((err) => { console.error(err); process.exit(1); }), diff --git a/src/dynamic-param-interfaces.ts b/src/dynamic-param-interfaces.ts index 457b615..ab5acc5 100644 --- a/src/dynamic-param-interfaces.ts +++ b/src/dynamic-param-interfaces.ts @@ -1,6 +1,3 @@ -import _ from 'lodash'; -import * as utils from './utils'; -import d from 'debug'; import { EventParameterDocumentation, DetailedObjectType, @@ -9,6 +6,11 @@ import { DocumentationTag, } from '@electron/docs-parser'; import chalk from 'chalk'; +import d from 'debug'; +import _ from 'lodash'; + +import * as utils from './utils.js'; + const debug = d('dynamic-param'); type ParamInterface = EventParameterDocumentation & @@ -37,7 +39,7 @@ const polite = (s: string): string => { const ignoreDescriptions = ( props: T[], ): Pick>[] => - _.map(props, p => { + _.map(props, (p) => { const { description, ...toReturn } = p; return toReturn; @@ -48,7 +50,7 @@ const unsetDescriptions = (o: any): any => { if (noDescriptionCache.has(o)) return noDescriptionCache.get(o); if (typeof o !== 'object' || !o) return o; const val = Array.isArray(o) - ? o.map(item => unsetDescriptions(item)) + ? o.map((item) => unsetDescriptions(item)) : Object.keys(o).reduce((accum: any, key: string) => { if (key === 'description') return accum; accum[key] = unsetDescriptions(o[key]); @@ -149,7 +151,7 @@ const flushParamInterfaces = ( .sort((a, b) => paramInterfacesToDeclare[a].tName!.localeCompare(paramInterfacesToDeclare[b].tName!), ) - .forEach(paramKey => { + .forEach((paramKey) => { if (paramKey === 'Event') { throw 'Unexpected dynamic Event type, should be routed through the Event handler'; } @@ -181,7 +183,7 @@ const flushParamInterfaces = ( ); param.properties = param.properties || []; - param.properties.forEach(paramProperty => { + param.properties.forEach((paramProperty) => { if (paramProperty.description) { utils.extendArray( paramAPI, @@ -192,7 +194,7 @@ const flushParamInterfaces = ( if (!Array.isArray(paramProperty.type) && paramProperty.type.toLowerCase() === 'object') { let argType = (paramProperty as any).__type || _.upperFirst(_.camelCase(paramProperty.name)); - if (API.some(a => a.name === argType)) { + if (API.some((a) => a.name === argType)) { paramProperty.type = argType; debug( chalk.red( @@ -210,7 +212,7 @@ const flushParamInterfaces = ( } if (Array.isArray(paramProperty.type)) { - paramProperty.type = paramProperty.type.map(paramPropertyType => { + paramProperty.type = paramProperty.type.map((paramPropertyType) => { const functionProp = paramPropertyType as DetailedFunctionType; if (paramPropertyType.type === 'Function' && functionProp.parameters) { return { @@ -229,7 +231,7 @@ const flushParamInterfaces = ( ) { let argType = (paramProperty as any).__type || _.upperFirst(_.camelCase(paramProperty.name)); - if (API.some(a => a.name === argType)) { + if (API.some((a) => a.name === argType)) { paramPropertyType.type = argType; debug( chalk.red( diff --git a/src/index.ts b/src/index.ts index 67e3db9..23922db 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,14 @@ -import _ from 'lodash'; -import * as fs from 'fs-extra'; -import * as path from 'path'; -import * as utils from './utils'; -import { getModuleDeclarations, generateModuleDeclaration } from './module-declaration'; -import { remapOptionals } from './remap-optionals'; -import { generatePrimaryInterfaces } from './primary-interfaces'; +import fs from 'node:fs'; +import path from 'node:path'; + import { ParsedDocumentationResult } from '@electron/docs-parser'; -import { DynamicParamInterfaces } from './dynamic-param-interfaces'; +import _ from 'lodash'; + +import * as utils from './utils.js'; +import { getModuleDeclarations, generateModuleDeclaration } from './module-declaration.js'; +import { remapOptionals } from './remap-optionals.js'; +import { generatePrimaryInterfaces } from './primary-interfaces.js'; +import { DynamicParamInterfaces } from './dynamic-param-interfaces.js'; // takes the predefined header and footer and wraps them around the generated files const wrapWithHeaderAndFooter = (outputLines: string[], electronVersion: string) => { @@ -14,7 +16,7 @@ const wrapWithHeaderAndFooter = (outputLines: string[], electronVersion: string) utils.extendArray( newOutputLines, fs - .readFileSync(path.resolve(__dirname, '../base/base_header.ts'), 'utf8') + .readFileSync(path.resolve(import.meta.dirname, '../base/base_header.ts'), 'utf8') .replace('<>', electronVersion) .split(/\r?\n/), ); @@ -23,18 +25,18 @@ const wrapWithHeaderAndFooter = (outputLines: string[], electronVersion: string) utils.extendArray( newOutputLines, fs - .readFileSync(path.resolve(__dirname, '../base/base_inner.ts'), 'utf8') + .readFileSync(path.resolve(import.meta.dirname, '../base/base_inner.ts'), 'utf8') .replace('<>', electronVersion) .split(/\r?\n/), ); - outputLines.slice(0).forEach(l => newOutputLines.push(`${_.trimEnd(` ${l}`)}`)); + outputLines.slice(0).forEach((l) => newOutputLines.push(`${_.trimEnd(` ${l}`)}`)); utils.extendArray(newOutputLines, ['}', '']); utils.extendArray( newOutputLines, fs - .readFileSync(path.resolve(__dirname, '../base/base_footer.ts'), 'utf8') + .readFileSync(path.resolve(import.meta.dirname, '../base/base_footer.ts'), 'utf8') .replace('<>', electronVersion) .split(/\r?\n/), ); @@ -106,7 +108,7 @@ export async function generateDefinitions({ electronApi: API }: GenerateOptions) // fetch everything that's been made and pop it into the actual API Object.keys(getModuleDeclarations()) .sort((m1, m2) => m1.localeCompare(m2)) - .forEach(moduleKey => { + .forEach((moduleKey) => { if (moduleKey === 'Process') return; const moduleAPI = getModuleDeclarations()[moduleKey]; moduleAPI.push('}'); diff --git a/src/module-declaration.ts b/src/module-declaration.ts index f8bb71d..e988273 100644 --- a/src/module-declaration.ts +++ b/src/module-declaration.ts @@ -1,6 +1,3 @@ -import _ from 'lodash'; -import { DynamicParamInterfaces } from './dynamic-param-interfaces'; -import * as utils from './utils'; import { ParsedDocumentationResult, ModuleDocumentationContainer, @@ -17,6 +14,10 @@ import { DetailedEventType, DetailedEventReferenceType, } from '@electron/docs-parser'; +import _ from 'lodash'; + +import { DynamicParamInterfaces } from './dynamic-param-interfaces.js'; +import * as utils from './utils.js'; const modules: Record = {}; @@ -45,7 +46,7 @@ export const generateModuleDeclaration = ( | ElementDocumentationContainer | undefined = module; while (parentModule && parentModule.extends) { - parentModule = API.find(m => m.name === parentModule!.extends); + parentModule = API.find((m) => m.name === parentModule!.extends); if (parentModule) parentModules.push(parentModule); } @@ -89,8 +90,8 @@ export const generateModuleDeclaration = ( [], module.instanceEvents || [], module.events || [], - ...parentModules.map(m => m.events || []), - ...parentModules.map(m => m.instanceEvents || []), + ...parentModules.map((m) => m.events || []), + ...parentModules.map((m) => m.instanceEvents || []), ) .sort((a, b) => a.name.localeCompare(b.name)) .forEach((moduleEvent, i, events) => { @@ -116,7 +117,7 @@ export const generateModuleDeclaration = ( } let argType: string | null = null; - const objectListenerArg = eventListenerArg as (DetailedObjectType) & + const objectListenerArg = eventListenerArg as DetailedObjectType & DocumentationBlock & TypeInformation & { required: boolean }; if ( @@ -134,10 +135,10 @@ export const generateModuleDeclaration = ( ); } - const eventGenericListenerArg = eventListenerArg as (DetailedEventType) & + const eventGenericListenerArg = eventListenerArg as DetailedEventType & DocumentationBlock & TypeInformation & { required: boolean }; - const eventReferenceListenerArg = eventListenerArg as (DetailedEventReferenceType) & + const eventReferenceListenerArg = eventListenerArg as DetailedEventReferenceType & DocumentationBlock & TypeInformation & { required: boolean }; @@ -167,7 +168,7 @@ export const generateModuleDeclaration = ( } let newType = argType || utils.typify(eventListenerArg); - const functionListenerArg = (eventListenerArg as any) as DetailedFunctionType & + const functionListenerArg = eventListenerArg as any as DetailedFunctionType & DocumentationBlock & TypeInformation; if (newType === 'Function') { @@ -210,7 +211,7 @@ export const generateModuleDeclaration = ( // Dom Element Events if (module.type === 'Element') { if (module.events) { - module.events.forEach(domEvent => { + module.events.forEach((domEvent) => { utils.extendArray( moduleAPI, utils.wrapComment(domEvent.description, domEvent.additionalTags), @@ -343,26 +344,28 @@ export const generateModuleDeclaration = ( if (module.staticMethods) { module.staticMethods .sort((a, b) => a.name.localeCompare(b.name)) - .forEach(m => addMethod(m, 'static ')); + .forEach((m) => addMethod(m, 'static ')); } // Method Declaration if (module.methods) { module.methods .sort((a, b) => a.name.localeCompare(b.name)) - .forEach(m => addMethod(m, isStaticVersion ? 'static ' : '')); + .forEach((m) => addMethod(m, isStaticVersion ? 'static ' : '')); } // Instance Method Declaration if (module.instanceMethods) { - module.instanceMethods.sort((a, b) => a.name.localeCompare(b.name)).forEach(m => addMethod(m)); + module.instanceMethods + .sort((a, b) => a.name.localeCompare(b.name)) + .forEach((m) => addMethod(m)); } // Class properties if (module.instanceProperties) { module.instanceProperties .sort((a, b) => a.name.localeCompare(b.name)) - .forEach(prop => { + .forEach((prop) => { const isOptional = !prop.required ? '?' : ''; const isReadonly = prop.additionalTags.includes(DocumentationTag.AVAILABILITY_READONLY) ? 'readonly ' @@ -378,7 +381,7 @@ export const generateModuleDeclaration = ( if (module.staticProperties) { module.staticProperties .sort((a, b) => a.name.localeCompare(b.name)) - .forEach(prop => { + .forEach((prop) => { const isReadonly = prop.additionalTags.includes(DocumentationTag.AVAILABILITY_READONLY) ? 'readonly ' : ''; @@ -394,13 +397,13 @@ export const generateModuleDeclaration = ( if (pseudoProperties.length) { pseudoProperties .sort((a, b) => a.name.localeCompare(b.name)) - .forEach(p => { + .forEach((p) => { let paramType = p; let type: string = ''; if (paramType.type === 'Object') { type = DynamicParamInterfaces.createParamInterface(p as any, ''); } else if (Array.isArray(paramType.type)) { - paramType.type = paramType.type.map(t => + paramType.type = paramType.type.map((t) => t.type !== 'Object' ? t : { diff --git a/src/primary-interfaces.ts b/src/primary-interfaces.ts index b604712..56dbc01 100644 --- a/src/primary-interfaces.ts +++ b/src/primary-interfaces.ts @@ -1,6 +1,7 @@ -import _ from 'lodash'; -import d from 'debug'; import { ParsedDocumentationResult } from '@electron/docs-parser'; +import d from 'debug'; +import _ from 'lodash'; + const debug = d('primary-interface'); export const generatePrimaryInterfaces = ( @@ -100,7 +101,7 @@ export const generatePrimaryInterfaces = ( } EMRI[classify(module.name).toLowerCase()] = true; const declarations = [...newConstDeclarations, ...newTypeAliases].map( - s => ` ${s.substr(0, s.length - 1)}`, + (s) => ` ${s.substr(0, s.length - 1)}`, ); TargetNamespace.push(...declarations); CrossProcessExportsNamespace.push(...declarations); @@ -133,7 +134,7 @@ export const generatePrimaryInterfaces = ( CrossProcessExportsNamespace.push('}'); const withSemicolons = (lines: string[]) => { - return lines.map(l => (l.endsWith('{') || l.endsWith('}') ? l : `${l};`)); + return lines.map((l) => (l.endsWith('{') || l.endsWith('}') ? l : `${l};`)); }; addToOutput(['']); addToOutput(withSemicolons(CommonNamespace)); diff --git a/src/remap-optionals.ts b/src/remap-optionals.ts index 6ad81ca..f7c9360 100644 --- a/src/remap-optionals.ts +++ b/src/remap-optionals.ts @@ -1,17 +1,19 @@ -import _ from 'lodash'; -import * as utils from './utils'; -import d from 'debug'; import { ParsedDocumentationResult, MethodDocumentationBlock } from '@electron/docs-parser'; import chalk from 'chalk'; +import d from 'debug'; +import _ from 'lodash'; + +import * as utils from './utils.js'; + const debug = d('remap-optionals'); export const remapOptionals = (API: ParsedDocumentationResult) => { - API.forEach(module => { + API.forEach((module) => { // Remap optionals to actually be multiple methods when appropriate const remap = (attr: string) => { const moreMethods: MethodDocumentationBlock[] = []; const attrs = ((module as any)[attr] as MethodDocumentationBlock[]) || []; - attrs.forEach(method => { + attrs.forEach((method) => { if (!method.parameters) return; if ((method as any).__handled) return; let optionalFound = false; diff --git a/src/utils.ts b/src/utils.ts index 0220f39..9813261 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,8 +1,6 @@ -import chalk from 'chalk'; import { TypeInformation, DetailedStringType, - ModuleDocumentationContainer, MethodDocumentationBlock, DetailedObjectType, DocumentationBlock, @@ -12,7 +10,9 @@ import { } from '@electron/docs-parser'; import _ from 'lodash'; import d from 'debug'; -import { DynamicParamInterfaces } from './dynamic-param-interfaces'; + +import { DynamicParamInterfaces } from './dynamic-param-interfaces.js'; + const debug = d('utils'); let paramInterfaces: typeof DynamicParamInterfaces; @@ -66,7 +66,7 @@ export const wrapComment = (comment: string, additionalTags: DocumentationTag[] const nodePlatforms: string[] = []; result.push( ...additionalTags - .map(tag => { + .map((tag) => { switch (tag) { case DocumentationTag.STABILITY_DEPRECATED: return ' * @deprecated'; @@ -87,7 +87,7 @@ export const wrapComment = (comment: string, additionalTags: DocumentationTag[] } return ''; }) - .filter(tag => tag), + .filter((tag) => tag), ); if (nodePlatforms.length) { result.push(` * @platform ${nodePlatforms.join(',')}`); @@ -110,18 +110,27 @@ const prefixTypeForSafety = (type: string) => { }; export const typify = ( - type: TypeInformation | TypeInformation[], + type: string | string[] | TypeInformation | TypeInformation[], maybeInnerReturnTypeName?: string, ): string => { // Capture some weird edge cases const originalType = type; - if (!Array.isArray(type) && type.type && typeof type.type === 'object') { + if ( + typeof type !== 'string' && + !Array.isArray(type) && + type.type && + typeof type.type === 'object' + ) { type = type.type; } if (Array.isArray(type)) { - const arrayType = Array.from(new Set(type.map(t => `(${typify(t)})`))).join(' | '); - if (!Array.isArray(originalType) && originalType.collection) { + const arrayType = Array.from(new Set(type.map((t) => `(${typify(t)})`))).join(' | '); + if ( + !Array.isArray(originalType) && + typeof originalType !== 'string' && + originalType.collection + ) { return `Array<${arrayType}>`; } return arrayType; @@ -146,7 +155,9 @@ export const typify = ( if (typeof newType === 'string' && newType.toLowerCase() === 'string') { const stringType = type as DetailedStringType; if (stringType.possibleValues) { - const stringEnum = stringType.possibleValues!.map(value => `'${value.value}'`).join(' | '); + const stringEnum = stringType + .possibleValues!.map((value) => `'${value.value}'`) + .join(' | '); if (type.collection) { // Array syntax instead of (foo | bar)[] newType = `Array<${stringEnum}>`; @@ -161,7 +172,7 @@ export const typify = ( innerTypes = type.innerTypes; if (type.innerTypes) { // Handle one of the innerType being an Object type - innerTypes = type.innerTypes.map(inner => + innerTypes = type.innerTypes.map((inner) => inner.type === 'Object' ? { ...inner, @@ -178,7 +189,7 @@ export const typify = ( typeAsString = newType; } - if (type.collection) typeAsString += '[]'; + if (typeof type !== 'string' && type.collection) typeAsString += '[]'; if (typeof typeAsString !== 'string') { throw new Error('typeAsString is not a string, something has gone terribly wrong'); @@ -274,8 +285,8 @@ export const isEmitter = (doc: ParsedDocumentationResult[0]) => { const relevantMethods = doc.type === 'Class' ? doc.instanceMethods : doc.type === 'Module' ? doc.methods : []; if ( - relevantMethods.find(m => m.name === 'on') && - relevantMethods.find(m => m.name === 'removeListener') + relevantMethods.find((m) => m.name === 'on') && + relevantMethods.find((m) => m.name === 'removeListener') ) { return true; } @@ -363,7 +374,7 @@ export const genMethodString = ( ); }; return `${includeType ? '(' : ''}${(moduleMethod.parameters || []) - .map(param => { + .map((param) => { let paramType: string | null = param as any; const objectParam = param as DetailedObjectType & @@ -375,7 +386,7 @@ export const genMethodString = ( } if (Array.isArray(param.type)) { - param.type = param.type.map(paramType => { + param.type = param.type.map((paramType) => { const functionParam = paramType as DetailedFunctionType; const objectParam = paramType as DetailedObjectType & TypeInformation & @@ -425,7 +436,7 @@ export const genMethodString = ( let type; const stringParam = param as DetailedStringType; if (stringParam.possibleValues && stringParam.possibleValues.length) { - type = stringParam.possibleValues.map(v => `'${v.value}'`).join(' | '); + type = stringParam.possibleValues.map((v) => `'${v.value}'`).join(' | '); } else { type = `${typify(paramType as any)}${ paramify(param.name).startsWith('...') && !typify(paramType as any).endsWith('[]') diff --git a/test/output.spec.ts b/test/output.spec.ts new file mode 100644 index 0000000..9863236 --- /dev/null +++ b/test/output.spec.ts @@ -0,0 +1,62 @@ +import fs from 'node:fs'; +import { spawn } from 'node:child_process'; +import path from 'node:path'; + +const OUTPUT_PATH = path.resolve(import.meta.dirname, '..', 'electron.d.ts'); +let output: string; + +function getDefinitionsForInterface(interfaceName: string) { + const interface_ = output.match(interfaceName + '[^{]+{([\\s\\S]+?)}'); + if (!interface_) console.log(interfaceName); + expect(interface_).toBeTruthy(); + return interface_![1].split(';').map((l) => l.trim()); +} + +describe('Definition File', function () { + beforeAll((done) => { + spawn('node', ['dist/bin.js', '--api=electron-api.json'], { + cwd: path.resolve(import.meta.dirname, '..'), + }).on('exit', () => done()); + }); + + it('should output a electron.d.ts file', () => { + expect(fs.existsSync(OUTPUT_PATH)).toEqual(true); + output = fs.readFileSync(OUTPUT_PATH, 'utf8'); + }); + + it('should correctly output all exported Electron modules', () => { + const AllElectronModules = getDefinitionsForInterface('MainInterface').concat( + getDefinitionsForInterface('CrossProcessExports'), + getDefinitionsForInterface('Renderer'), + ); + const knownElectronModules = [ + 'clipboard', + 'app', + 'autoUpdater', + 'dialog', + 'ipcMain', + 'Menu', + 'MenuItem', + 'webContents', + 'BrowserWindow', + ]; + knownElectronModules.forEach((knownModule) => + expect(AllElectronModules.some((tModule) => tModule.indexOf(knownModule) === 0)).toEqual( + true, + ), + ); + }); + + it('should not output classes that are not exported Electron modules', () => { + const AllElectronModules = getDefinitionsForInterface('MainInterface').concat( + getDefinitionsForInterface('CrossProcessExports'), + getDefinitionsForInterface('Renderer'), + ); + const unKnownElectronModules = ['Clipboard', 'CrashReport', 'WebContents', 'menu', 'Session']; + unKnownElectronModules.forEach((knownModule) => + expect(AllElectronModules.some((tModule) => tModule.indexOf(knownModule) === 0)).toEqual( + false, + ), + ); + }); +}); diff --git a/test/output_spec.js b/test/output_spec.js deleted file mode 100644 index 2f7c152..0000000 --- a/test/output_spec.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict' - -const fs = require('fs') -const spawn = require('child_process').spawn -const expect = require('chai').expect -const path = require('path') - -const OUTPUT_PATH = path.resolve(__dirname, '..', 'electron.d.ts') -let output - -function getDefinitionsForInterface (interfaceName) { - const interface_ = output.match(interfaceName + '[^{]+{([\\s\\S]+?)}') - expect(interface_).to.be.an('array') - return interface_[1].split(';').map(l => l.trim()) -} - -describe.skip('Definition File', function () { - this.timeout(30 * 1000) - - before((done) => { - spawn('node', ['dist/bin.js', '--api=electron-api.json'], { - cwd: path.resolve(__dirname, '..') - }).on('exit', () => done()) - }) - - it('should output a electron.d.ts file', () => { - expect(fs.existsSync(OUTPUT_PATH)).to.equal(true) - output = fs.readFileSync(OUTPUT_PATH, 'utf8') - }) - - it('should correctly output all exported Electron modules', () => { - const AllElectronModules = getDefinitionsForInterface('MainInterface').concat( - getDefinitionsForInterface('CommonInterface'), - getDefinitionsForInterface('RendererInterface') - ) - const knownElectronModules = ['clipboard', 'app', 'autoUpdater', 'dialog', 'ipcMain', 'Menu', 'MenuItem', 'webContents', 'BrowserWindow'] - knownElectronModules.forEach(knownModule => expect(AllElectronModules.some(tModule => tModule.indexOf(knownModule) === 0)).to.equal(true)) - }) - - it('should not output classes that are not exported Electron modules', () => { - const AllElectronModules = getDefinitionsForInterface('MainInterface').concat( - getDefinitionsForInterface('CommonInterface'), - getDefinitionsForInterface('RendererInterface') - ) - const unKnownElectronModules = ['Clipboard', 'CrashReport', 'WebContents', 'menu', 'Session'] - unKnownElectronModules.forEach(knownModule => expect(AllElectronModules.some(tModule => tModule.indexOf(knownModule) === 0)).to.equal(false, knownModule)) - }) -}) diff --git a/test/remap-optionals.spec.ts b/test/remap-optionals.spec.ts new file mode 100644 index 0000000..677f85a --- /dev/null +++ b/test/remap-optionals.spec.ts @@ -0,0 +1,108 @@ +import _ from 'lodash'; + +import { remapOptionals } from '../src/remap-optionals.js'; + +const fakeAPI = [ + { + name: 'FakeModule', + methods: [ + { + name: 'example', + parameters: [ + { + name: 'foo', + description: 'optional', + }, + { + name: 'bar', + required: true, + }, + ], + }, + { + name: 'example2', + parameters: [ + { + name: 'foo', + required: true, + }, + { + name: 'bar', + description: 'optional', + }, + ], + }, + ], + }, +]; + +const middleAPI = [ + { + name: 'MiddleModule', + methods: [ + { + name: 'example', + parameters: [ + { + name: 'foo', + required: true, + }, + { + name: 'bar', + required: false, + }, + { + name: 'fee', + required: true, + }, + ], + }, + ], + }, +]; + +describe('remap-optionals', () => { + it('should duplicate a method with a preceeding optional parameter', () => { + const API = _.cloneDeep(fakeAPI); + expect(API[0].methods.length).toEqual(2); + remapOptionals(API as any); + expect(API[0].methods.length).toEqual(3); + }); + + it('should duplicate methods and remove preceeding optional parameters', () => { + const API = _.cloneDeep(fakeAPI); + expect(API[0].methods[0].parameters.length).toEqual(2); + remapOptionals(API as any); + expect(API[0].methods[2].parameters.length).toEqual(1); + }); + + it('should make the original method legal by making param non-optional', () => { + const API = _.cloneDeep(fakeAPI); + expect(API[0].methods[0].parameters[0].description).toContain('optional'); + remapOptionals(API as any); + expect(API[0].methods[0].parameters[0].description).not.toContain('optional'); + }); + + it('should not affect legal parameter orders', () => { + const API = _.cloneDeep(fakeAPI); + const methodBefore = _.cloneDeep(API[0].methods[1]); + remapOptionals(API as any); + expect(API[0].methods[1]).toEqual(methodBefore); + }); + + it('should remap optional middle params', () => { + const API = _.cloneDeep(middleAPI); + expect(API[0].methods.length).toEqual(1); + expect(API[0].methods[0].parameters.length).toEqual(3); + remapOptionals(API as any); + expect(API[0].methods.length).toEqual(2); + expect(API[0].methods[1].parameters.length).toEqual(2); + + expect(API[0].methods[0].parameters[0].required).toEqual(true); + expect(API[0].methods[0].parameters[1].required).toEqual(true); + expect(API[0].methods[0].parameters[2].required).toEqual(true); + + expect(API[0].methods[1].parameters[0].required).toEqual(true); + expect(API[0].methods[1].parameters[1].required).toEqual(true); + }); +}); diff --git a/test/remap-optionals_spec.js b/test/remap-optionals_spec.js deleted file mode 100644 index 293acad..0000000 --- a/test/remap-optionals_spec.js +++ /dev/null @@ -1,104 +0,0 @@ -const _ = require('lodash') -const expect = require('chai').expect -const { remapOptionals } = require('../dist/remap-optionals') - -const fakeAPI = [{ - name: 'FakeModule', - methods: [ - { - name: 'example', - parameters: [ - { - name: 'foo', - description: 'optional' - }, - { - name: 'bar', - required: true - } - ] - }, - { - name: 'example2', - parameters: [ - { - name: 'foo', - required: true - }, - { - name: 'bar', - description: 'optional' - } - ] - } - ] -}] - -const middleAPI = [{ - name: 'MiddleModule', - methods: [ - { - name: 'example', - parameters: [ - { - name: 'foo', - required: true - }, - { - name: 'bar', - required: false - }, - { - name: 'fee', - required: true - } - ] - } - ] -}] - -describe('remap-optionals', () => { - it('should duplicate a method with a preceeding optional parameter', () => { - const API = _.cloneDeep(fakeAPI) - expect(API[0].methods.length).to.equal(2) - remapOptionals(API) - expect(API[0].methods.length).to.equal(3) - }) - - it('should duplicate methods and remove preceeding optional parameters', () => { - const API = _.cloneDeep(fakeAPI) - expect(API[0].methods[0].parameters.length).to.equal(2) - remapOptionals(API) - expect(API[0].methods[2].parameters.length).to.equal(1) - }) - - it('should make the original method legal by making param non-optional', () => { - const API = _.cloneDeep(fakeAPI) - expect(API[0].methods[0].parameters[0].description).to.contain('optional') - remapOptionals(API) - expect(API[0].methods[0].parameters[0].description).to.not.contain('optional') - }) - - it('should not affect legal parameter orders', () => { - const API = _.cloneDeep(fakeAPI) - const methodBefore = _.cloneDeep(API[0].methods[1]) - remapOptionals(API) - expect(API[0].methods[1]).to.deep.equal(methodBefore) - }) - - it('should remap optional middle params', () => { - const API = _.cloneDeep(middleAPI) - expect(API[0].methods.length).to.equal(1) - expect(API[0].methods[0].parameters.length).to.equal(3) - remapOptionals(API) - expect(API[0].methods.length).to.equal(2) - expect(API[0].methods[1].parameters.length).to.equal(2) - - expect(API[0].methods[0].parameters[0].required).to.equal(true, 'should make prefixed optionals required') - expect(API[0].methods[0].parameters[1].required).to.equal(true, 'should make prefixed optionals required') - expect(API[0].methods[0].parameters[2].required).to.equal(true, 'should make prefixed optionals required') - - expect(API[0].methods[1].parameters[0].required).to.equal(true, 'should make prefixed optionals required') - expect(API[0].methods[1].parameters[1].required).to.equal(true, 'should make prefixed optionals required') - }) -}) diff --git a/test/utils_spec.js b/test/utils.spec.ts similarity index 65% rename from test/utils_spec.js rename to test/utils.spec.ts index dab0331..e8a29e9 100644 --- a/test/utils_spec.js +++ b/test/utils.spec.ts @@ -1,43 +1,43 @@ -const expect = require('chai').expect; -const utils = require('../dist/utils'); -const { DocumentationTag } = require('@electron/docs-parser'); +import { DocumentationTag } from '@electron/docs-parser'; + +import * as utils from '../src/utils.js'; describe('utils', () => { describe('extendArray', () => { it('should return an array with all elements added correctly', () => { - expect(utils.extendArray(['foo'], ['bar'])).to.deep.equal(['foo', 'bar']); + expect(utils.extendArray(['foo'], ['bar'])).toEqual(['foo', 'bar']); }); it('should return an array with all elements added in the correct oreder', () => { - expect(utils.extendArray([1, 2, 3, 4], [2, 3, 4, 5])).to.deep.equal([1, 2, 3, 4, 2, 3, 4, 5]); + expect(utils.extendArray([1, 2, 3, 4], [2, 3, 4, 5])).toEqual([1, 2, 3, 4, 2, 3, 4, 5]); }); it('should mutate the original array', () => { const primary = [1, 5, 9]; const secondary = [2, 6, 10]; utils.extendArray(primary, secondary); - expect(primary).to.deep.equal([1, 5, 9, 2, 6, 10]); + expect(primary).toEqual([1, 5, 9, 2, 6, 10]); }); }); describe('wrapComment', () => { it('should return an array', () => { - expect(utils.wrapComment('Foo Bar')).to.be.a('array'); + expect(utils.wrapComment('Foo Bar')).toHaveLength(3); }); it('should be a correctly formatted JS multi-line comment', () => { const wrapped = utils.wrapComment('Foo bar'); - expect(wrapped[0]).to.be.equal('/**'); - expect(wrapped[wrapped.length - 1]).to.be.equal(' */'); + expect(wrapped[0]).toEqual('/**'); + expect(wrapped[wrapped.length - 1]).toEqual(' */'); }); it('should wrap each line to be a max of 80 chars', () => { const reallyLongString = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pulvinar nibh eu orci fringilla interdum. In mi arcu, accumsan nec justo eget, pharetra egestas mauris. Quisque nisl tellus, sagittis lobortis commodo nec, tincidunt a arcu. Donec congue lacus a lacus euismod, in hendrerit nunc faucibus. Praesent ac libero eros. Nunc lorem turpis, elementum vel pellentesque vitae, aliquet et erat. In tempus, nulla vitae cursus congue, massa dui pretium eros, eget ornare ipsum diam a velit. Aliquam ac iaculis dui. Phasellus mollis augue volutpat turpis posuere scelerisque. Donec a rhoncus nisl, eu viverra massa. Suspendisse rutrum fermentum diam, posuere tempus turpis accumsan in. Pellentesque commodo in leo vitae aliquet. Vestibulum id justo ac odio mollis fringilla ac a odio. Quisque rhoncus pretium risus, tristique convallis urna.'; const wrapped = utils.wrapComment(reallyLongString); - wrapped.forEach(line => { + wrapped.forEach((line) => { // Subtract 3 due to commend prefix " * " - expect(line.length - 3).to.be.lte(80); + expect(line.length - 3).toBeLessThanOrEqual(80); }); }); @@ -47,7 +47,7 @@ describe('utils', () => { ); wrapped.forEach((line, index) => { if (index === 0 || index === wrapped.length - 1) return; - expect(line.endsWith('Thisisalongword')).to.eq(true); + expect(line.endsWith('Thisisalongword')).toEqual(true); }); }); @@ -55,68 +55,68 @@ describe('utils', () => { const wrapped = utils.wrapComment( 'Unregisters the app from notifications received from APNS. See: https://developer.apple.com/documentation/appkit/nsapplication/1428747-unregisterforremotenotifications?language=objc', ); - expect(wrapped.length).equal(4); + expect(wrapped.length).toEqual(4); }); it('should create a tag-only comment', () => { const wrapped = utils.wrapComment('', [DocumentationTag.STABILITY_DEPRECATED]); - expect(wrapped.length).equal(3); - expect(wrapped[0]).to.be.equal('/**'); - expect(wrapped[1].endsWith('@deprecated')).to.eq(true); - expect(wrapped[wrapped.length - 1]).to.be.equal(' */'); + expect(wrapped.length).toEqual(3); + expect(wrapped[0]).toEqual('/**'); + expect(wrapped[1].endsWith('@deprecated')).toEqual(true); + expect(wrapped[wrapped.length - 1]).toEqual(' */'); }); }); describe('typify', () => { it('should lower case known types', () => { - expect(utils.typify('String')).to.equal('string'); - expect(utils.typify('Number')).to.equal('number'); + expect(utils.typify('String')).toEqual('string'); + expect(utils.typify('Number')).toEqual('number'); }); it('should convert specific number types to typescript types', () => { - expect(utils.typify('Integer')).to.equal('number'); - expect(utils.typify('Float')).to.equal('number'); - expect(utils.typify('Double')).to.equal('number'); - expect(utils.typify('Number')).to.equal('number'); + expect(utils.typify('Integer')).toEqual('number'); + expect(utils.typify('Float')).toEqual('number'); + expect(utils.typify('Double')).toEqual('number'); + expect(utils.typify('Number')).toEqual('number'); }); it('should correctly convert a void function', () => { - expect(utils.typify('VoidFunction')).to.equal('(() => void)'); + expect(utils.typify('VoidFunction')).toEqual('(() => void)'); }); it('should lower case known array types', () => { - expect(utils.typify('String[]')).to.equal('string[]'); - expect(utils.typify('Number[]')).to.equal('number[]'); + expect(utils.typify('String[]')).toEqual('string[]'); + expect(utils.typify('Number[]')).toEqual('number[]'); }); it('should map an array of types through typify as well', () => { - expect(utils.typify(['String', 'Float', 'Boolean'])).to.deep.equal( + expect(utils.typify(['String', 'Float', 'Boolean'])).toEqual( '(string) | (number) | (boolean)', ); }); it('should map an array of types through typify as well and remove duplicates', () => { - expect(utils.typify(['String', 'Float', 'Double'])).to.deep.equal('(string) | (number)'); + expect(utils.typify(['String', 'Float', 'Double'])).toEqual('(string) | (number)'); }); it('should map node objects to the correct type', () => { - expect(utils.typify('buffer')).to.equal('Buffer'); + expect(utils.typify('buffer')).toEqual('Buffer'); }); }); describe('paramify', () => { it('should pass through most param names', () => { - expect(utils.paramify('foo')).to.equal('foo'); + expect(utils.paramify('foo')).toEqual('foo'); }); it('should clean reserved words', () => { - expect(utils.paramify('switch')).to.equal('the_switch'); + expect(utils.paramify('switch')).toEqual('the_switch'); }); }); describe('isEmitter', () => { it('should return true on most modules', () => { - expect(utils.isEmitter({ name: 'app', type: 'Module', events: [1] })).to.eq(true); + expect(utils.isEmitter({ name: 'app', type: 'Module', events: [1] } as any)).toEqual(true); }); it('should return false for specific non-emitter modules', () => { @@ -126,26 +126,26 @@ describe('utils', () => { type: 'Class', instanceEvents: [], instanceMethods: [], - }), - ).to.eq(false); + } as any), + ).toEqual(false); }); }); describe('isOptional', () => { it('should return true if param is not required', () => { - expect(utils.isOptional({})).to.eq(true); + expect(utils.isOptional({} as any)).toEqual(true); }); it('should return false if param is required', () => { - expect(utils.isOptional({ required: true })).to.eq(false); + expect(utils.isOptional({ required: true } as any)).toEqual(false); }); it('should default to true if param is a non-function', () => { - expect(utils.isOptional({ type: 'Foo' })).to.eq(true); + expect(utils.isOptional({ type: 'Foo' } as any)).toEqual(true); }); it('should default to false if param is a function', () => { - expect(utils.isOptional({ type: 'Function' })).to.eq(false); + expect(utils.isOptional({ type: 'Function' } as any)).toEqual(false); }); }); }); diff --git a/tsconfig.json b/tsconfig.json index a977811..89aff4d 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,17 @@ { "compilerOptions": { - "module": "commonjs", - "target": "es6", + "module": "es2022", + "target": "es2022", + "moduleResolution": "Node", "outDir": "dist", "lib": [ "es6", "es7" ], + "types": [ + "node", + "jest" + ], "declaration": false, "sourceMap": true, "rootDir": "src", @@ -15,10 +20,9 @@ "esModuleInterop": true }, "exclude": [ - "lib_old", "base", - "vendor", "dist", - "electron.d.ts" + "electron.d.ts", + "test" ] } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index f7307d6..09a7880 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,299 @@ # yarn lockfile v1 -"@electron/docs-parser@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@electron/docs-parser/-/docs-parser-1.2.0.tgz#dc3032012dd270c667777e097e185d92e7ff86ef" - integrity sha512-Rz/lMLRDSvEshYNmSC30v/3rk7Mj6EL/76wraKvfM5XvYPHsmApo9CedvcJNNMm7+Rc29NOohoqA4B2/XtFm1Q== +"@ampproject/remapping@^2.2.0": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" + integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" + integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== + dependencies: + "@babel/highlight" "^7.24.7" + picocolors "^1.0.0" + +"@babel/compat-data@^7.25.2": + version "7.25.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb" + integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ== + +"@babel/core@^7.11.6", "@babel/core@^7.23.9": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77" + integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.24.7" + "@babel/generator" "^7.25.0" + "@babel/helper-compilation-targets" "^7.25.2" + "@babel/helper-module-transforms" "^7.25.2" + "@babel/helpers" "^7.25.0" + "@babel/parser" "^7.25.0" + "@babel/template" "^7.25.0" + "@babel/traverse" "^7.25.2" + "@babel/types" "^7.25.2" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.7.2": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" + integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== + dependencies: + "@babel/types" "^7.25.6" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + jsesc "^2.5.1" + +"@babel/helper-compilation-targets@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" + integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== + dependencies: + "@babel/compat-data" "^7.25.2" + "@babel/helper-validator-option" "^7.24.8" + browserslist "^4.23.1" + lru-cache "^5.1.1" + semver "^6.3.1" + +"@babel/helper-module-imports@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" + integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helper-module-transforms@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" + integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== + dependencies: + "@babel/helper-module-imports" "^7.24.7" + "@babel/helper-simple-access" "^7.24.7" + "@babel/helper-validator-identifier" "^7.24.7" + "@babel/traverse" "^7.25.2" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" + integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== + +"@babel/helper-simple-access@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" + integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helper-string-parser@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" + integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== + +"@babel/helper-validator-identifier@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" + integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== + +"@babel/helper-validator-option@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" + integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== + +"@babel/helpers@^7.25.0": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.6.tgz#57ee60141829ba2e102f30711ffe3afab357cc60" + integrity sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q== + dependencies: + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.6" + +"@babel/highlight@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" + integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== + dependencies: + "@babel/helper-validator-identifier" "^7.24.7" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" + +"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" + integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== + dependencies: + "@babel/types" "^7.25.6" + +"@babel/plugin-syntax-async-generators@^7.8.4": + version "7.8.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-bigint@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" + integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-class-properties@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" + integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== + dependencies: + "@babel/helper-plugin-utils" "^7.12.13" + +"@babel/plugin-syntax-class-static-block@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" + integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-import-attributes@^7.24.7": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz#6d4c78f042db0e82fd6436cd65fec5dc78ad2bde" + integrity sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.8" + +"@babel/plugin-syntax-import-meta@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-json-strings@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-jsx@^7.7.2": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz#39a1fa4a7e3d3d7f34e2acc6be585b718d30e02d" + integrity sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" + integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-numeric-separator@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-object-rest-spread@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" + integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" + integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-chaining@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-private-property-in-object@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" + integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-top-level-await@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-typescript@^7.7.2": + version "7.25.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz#04db9ce5a9043d9c635e75ae7969a2cd50ca97ff" + integrity sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.8" + +"@babel/template@^7.25.0", "@babel/template@^7.3.3": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" + integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== + dependencies: + "@babel/code-frame" "^7.24.7" + "@babel/parser" "^7.25.0" + "@babel/types" "^7.25.0" + +"@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" + integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== + dependencies: + "@babel/code-frame" "^7.24.7" + "@babel/generator" "^7.25.6" + "@babel/parser" "^7.25.6" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.6" + debug "^4.3.1" + globals "^11.1.0" + +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.3": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" + integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== + dependencies: + "@babel/helper-string-parser" "^7.24.8" + "@babel/helper-validator-identifier" "^7.24.7" + to-fast-properties "^2.0.0" + +"@bcoe/v8-coverage@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" + integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== + +"@electron/docs-parser@^1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@electron/docs-parser/-/docs-parser-1.2.2.tgz#50f80c5b732567280448843caf1d30168cd02c37" + integrity sha512-Af+BRVydwqXq0vAB2ZFIdK2vX28dhFSG4ClYeNe663tULiRVLVoVMoGpEP2ASU/coEJ8Vh5b/VRscM8igYEWyw== dependencies: "@types/markdown-it" "^12.0.0" chai "^4.2.0" @@ -17,27 +306,414 @@ ora "^4.0.3" pretty-ms "^5.1.0" -"@types/debug@^4.1.4": - version "4.1.4" - resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.4.tgz#56eec47706f0fd0b7c694eae2f3172e6b0b769da" - integrity sha512-D9MyoQFI7iP5VdpEyPZyjjqIJ8Y8EDNQFIFVLOmeg1rI1xiHOChyUPMPRUVfqFCerxfE+yS3vMyj37F6IdtOoQ== +"@isaacs/cliui@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" + integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== + dependencies: + string-width "^5.1.2" + string-width-cjs "npm:string-width@^4.2.0" + strip-ansi "^7.0.1" + strip-ansi-cjs "npm:strip-ansi@^6.0.1" + wrap-ansi "^8.1.0" + wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jest/console@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-30.0.0-alpha.6.tgz#ef666f9338701042210c55711d5751a94de6417f" + integrity sha512-08BeAnuabmauj5B+Xa4GNPAotQUGm3PLKSE3rnpnmxniZzR4tXhx8+AA2+HGTri4bbVRY/r3Jl0vJnkhvHTkeQ== + dependencies: + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + chalk "^4.0.0" + jest-message-util "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + slash "^3.0.0" + +"@jest/core@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-30.0.0-alpha.6.tgz#d2eb1d5de0a1888eba8f93056291be82490aea04" + integrity sha512-Qsvu9/I0hUOpeelp3jlTmg6cg3C+w18v4hxWVGchCRJAChvuxmsomB1Cm+DKB6NiMy2EvUvpwdT8X31lERtemw== + dependencies: + "@jest/console" "30.0.0-alpha.6" + "@jest/pattern" "30.0.0-alpha.6" + "@jest/reporters" "30.0.0-alpha.6" + "@jest/test-result" "30.0.0-alpha.6" + "@jest/transform" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + ci-info "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.9" + jest-changed-files "30.0.0-alpha.6" + jest-config "30.0.0-alpha.6" + jest-haste-map "30.0.0-alpha.6" + jest-message-util "30.0.0-alpha.6" + jest-regex-util "30.0.0-alpha.6" + jest-resolve "30.0.0-alpha.6" + jest-resolve-dependencies "30.0.0-alpha.6" + jest-runner "30.0.0-alpha.6" + jest-runtime "30.0.0-alpha.6" + jest-snapshot "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + jest-validate "30.0.0-alpha.6" + jest-watcher "30.0.0-alpha.6" + micromatch "^4.0.7" + pretty-format "30.0.0-alpha.6" + slash "^3.0.0" + strip-ansi "^6.0.0" + +"@jest/environment@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-30.0.0-alpha.6.tgz#f6fd15d6d8b985d6cc8f58dcb699e240bd3a7590" + integrity sha512-pjNYNkzq761hh8D2grrG77L6nhe2VBCFFM+G1hyqhaJ2MAzhp2Gh+G94uF3px7luSzLh8GYvGJQGYy197EUOGQ== + dependencies: + "@jest/fake-timers" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + jest-mock "30.0.0-alpha.6" + +"@jest/expect-utils@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-30.0.0-alpha.6.tgz#8d89187fe375b7804fc89fb4906d8650e9ec7c49" + integrity sha512-QMySMhaCUl0ZQd7Tx5X3fVWY5jtQxZNrTll0OyavdQ70ZTLgk0kU9K+XovcMWO26MK9R5EX7bBgD/j7w9hUM4w== + dependencies: + jest-get-type "30.0.0-alpha.6" + +"@jest/expect-utils@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.7.0.tgz#023efe5d26a8a70f21677d0a1afc0f0a44e3a1c6" + integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA== + dependencies: + jest-get-type "^29.6.3" + +"@jest/expect@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-30.0.0-alpha.6.tgz#7eb750ebb9b2a7d6559cb0f1a570407df574d162" + integrity sha512-3O74pygTwUBzUjO958IgNwmp0WrjASbiWdMEfUMePVqtiGoyS4Nxj9hsx4uKsNVivNJSZiiayYoP6dLhWerJXQ== + dependencies: + expect "30.0.0-alpha.6" + jest-snapshot "30.0.0-alpha.6" -"@types/fs-extra@^5.0.5": - version "5.0.5" - resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-5.0.5.tgz#080d90a792f3fa2c5559eb44bd8ef840aae9104b" - integrity sha512-w7iqhDH9mN8eLClQOYTkhdYUOSpp25eXxfc6VbFOGtzxW34JcvctH2bKjj4jD4++z4R5iO5D+pg48W2e03I65A== +"@jest/fake-timers@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-30.0.0-alpha.6.tgz#400a0b6768d04c13d9b94c0fb6bfb78c508a910f" + integrity sha512-deka0RmhJgEKPJM6cXPd4TJQ6fLczErdMN7Oxzr16UTDFHxtFd79tduJ8uP92dQyO4zy63N/dlFK6d+FHyWUDw== dependencies: + "@jest/types" "30.0.0-alpha.6" + "@sinonjs/fake-timers" "^11.1.0" "@types/node" "*" + jest-message-util "30.0.0-alpha.6" + jest-mock "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + +"@jest/globals@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-30.0.0-alpha.6.tgz#56c0104f7fe0909472524bd096a4d2ca6050ac21" + integrity sha512-+uJMoPUos9RH6+52iNgKJBbx1Hd2QsCZjExi5XpVvTjJ/gE4eJ1X7irUMt+14sH0QkeZ3GnjeTJFopyjOCsu+Q== + dependencies: + "@jest/environment" "30.0.0-alpha.6" + "@jest/expect" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + jest-mock "30.0.0-alpha.6" + +"@jest/pattern@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/pattern/-/pattern-30.0.0-alpha.6.tgz#ca85b194c970168fe23ee8ed0e0b5de23d5ae36d" + integrity sha512-eoV3sjS1M5k3YdrFWezqdndfgepwB86gwyXC0BzV2saZdJ42ySUoEDBGKuwta8A6Zh3w8tVHNFxz1BqiFraHCQ== + dependencies: + "@types/node" "*" + jest-regex-util "30.0.0-alpha.6" + +"@jest/reporters@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-30.0.0-alpha.6.tgz#9c560efe66092bcd987fbbd06e7912d3927327d2" + integrity sha512-jzW0t2OtEzBYwlG4EMJKG4q5RPaVvLPDm/nBS08hd+XPoLJJ9b5thyo/MoThIqJfdi0lHqFlDQUmlL205CMoSw== + dependencies: + "@bcoe/v8-coverage" "^0.2.3" + "@jest/console" "30.0.0-alpha.6" + "@jest/test-result" "30.0.0-alpha.6" + "@jest/transform" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@jridgewell/trace-mapping" "^0.3.18" + "@types/node" "*" + chalk "^4.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^10.3.10" + graceful-fs "^4.2.9" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-instrument "^6.0.0" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^5.0.0" + istanbul-reports "^3.1.3" + jest-message-util "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + jest-worker "30.0.0-alpha.6" + slash "^3.0.0" + string-length "^4.0.1" + strip-ansi "^6.0.0" + v8-to-istanbul "^9.0.1" + +"@jest/schemas@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-30.0.0-alpha.6.tgz#5ba845cb36ecd6375a6333a42ce7ffaf3f3fc75d" + integrity sha512-Ukr3kR/VsBq8+JHU92xArhSJeFQHVHs5T1laPO00GrrNzv3DvoHn3/EVVagGn9CHbLeAyJHXFRHYxq3+520kiA== + dependencies: + "@sinclair/typebox" "^0.33.0" + +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== + dependencies: + "@sinclair/typebox" "^0.27.8" + +"@jest/snapshot-utils@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/snapshot-utils/-/snapshot-utils-30.0.0-alpha.6.tgz#52c286d235233d555969dae419bf54d567764a52" + integrity sha512-iDtIFCyRT8ZyLmz6kYbS8GR/MBXKA6uZPBfdTcnd2y0T987DV3GVlvwkAC+iFTc1w3HgwQe8LTf+y3i+O2ISCw== + dependencies: + "@jest/types" "30.0.0-alpha.6" + chalk "^4.0.0" + graceful-fs "^4.2.9" + natural-compare "^1.4.0" + +"@jest/source-map@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-30.0.0-alpha.6.tgz#07909ae9721f4ffc5ae142c014c0ac910e7358af" + integrity sha512-7rSrxehVyzqw5O+F2ds7wLAm9f6QxqYsJU42LNyUpaFlJqtWz3PeQ2Wu3DVoPzGu0C66EhDHKYmeN0mXnRDZmQ== + dependencies: + "@jridgewell/trace-mapping" "^0.3.18" + callsites "^3.0.0" + graceful-fs "^4.2.9" + +"@jest/test-result@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-30.0.0-alpha.6.tgz#2c125fb4ff966a797f0a75feaa4c7c0f7be6080e" + integrity sha512-Jlg8lCm7VQ6YvQ0eZx2nQEtej/ng+ulV8cXH7Nj5i33hNZq8EZvWM4gQDWDzRe1X7cVE3Bd42On5f6s2rqqIjw== + dependencies: + "@jest/console" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/istanbul-lib-coverage" "^2.0.0" + collect-v8-coverage "^1.0.0" + +"@jest/test-sequencer@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-30.0.0-alpha.6.tgz#e28a827a103bbb7b27558cfe4daa78a443ea8cc4" + integrity sha512-5M89jbSQWkBjGlFrRk2wXjRJVxR+uN553sFN0q2TglH0/a4OMSVxRBcCmnIqqDMDizGAlYTxW6BaXxHGHpvrRQ== + dependencies: + "@jest/test-result" "30.0.0-alpha.6" + graceful-fs "^4.2.9" + jest-haste-map "30.0.0-alpha.6" + slash "^3.0.0" + +"@jest/transform@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-30.0.0-alpha.6.tgz#26c4b33082bf465d5f64e9ac39df0002fd763818" + integrity sha512-4L8BZm38BJASswsqruc4c3F0AExYLvp0xq8067e7fIyg4hfwa4zUA+N2idf+eTTjDWevVVdIBfELzJ8b7nvO4Q== + dependencies: + "@babel/core" "^7.11.6" + "@jest/types" "30.0.0-alpha.6" + "@jridgewell/trace-mapping" "^0.3.18" + babel-plugin-istanbul "^7.0.0" + chalk "^4.0.0" + convert-source-map "^2.0.0" + fast-json-stable-stringify "^2.1.0" + graceful-fs "^4.2.9" + jest-haste-map "30.0.0-alpha.6" + jest-regex-util "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + micromatch "^4.0.7" + pirates "^4.0.4" + slash "^3.0.0" + write-file-atomic "^5.0.0" + +"@jest/types@30.0.0-alpha.6": + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-30.0.0-alpha.6.tgz#77e64e853f8fdc4f14ddacb671560a4f2784a5cc" + integrity sha512-qUjAm8uvIR7oExn/Fp7/bvn58HSZng5itQDM9x0vaxXWxxGH/8MDmqX/h7OUBz9ka+KfYRaTxe4Y6wiM8+nphw== + dependencies: + "@jest/pattern" "30.0.0-alpha.6" + "@jest/schemas" "30.0.0-alpha.6" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + +"@jest/types@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" + integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== + dependencies: + "@jest/schemas" "^29.6.3" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + +"@jridgewell/gen-mapping@^0.3.5": + version "0.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== + +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.23", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@pkgjs/parseargs@^0.11.0": + version "0.11.0" + resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" + integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== + +"@pkgr/core@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.1.tgz#1ec17e2edbec25c8306d424ecfbf13c7de1aaa31" + integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA== + +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== + +"@sinclair/typebox@^0.33.0": + version "0.33.12" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.33.12.tgz#1feac782bc50dc02733ad3d63964035dd3fe8ba7" + integrity sha512-d5KrXIdPolLp8VpGpZAQvEz8ioVtFlUQSyCIS2sEBi7FKhceIB7nj9BlNfqqvp5wmOfg8v8bP1rAvYYkjz21/Q== + +"@sinonjs/commons@^3.0.1": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.1.tgz#1029357e44ca901a615585f6d27738dbc89084cd" + integrity sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^11.1.0": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-11.3.1.tgz#51d6e8d83ca261ff02c0ab0e68e9db23d5cd5999" + integrity sha512-EVJO7nW5M/F5Tur0Rf2z/QoMo+1Ia963RiMtapiQrEWvY0iBUvADo8Beegwjpnle5BHkyHuoxSTW3jF43H1XRA== + dependencies: + "@sinonjs/commons" "^3.0.1" + +"@types/babel__core@^7.1.14": + version "7.20.5" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017" + integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== + dependencies: + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.6.8" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.8.tgz#f836c61f48b1346e7d2b0d93c6dacc5b9535d3ab" + integrity sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.4.tgz#5672513701c1b2199bc6dad636a9d7491586766f" + integrity sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*": + version "7.20.6" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.6.tgz#8dc9f0ae0f202c08d8d4dab648912c8d6038e3f7" + integrity sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg== + dependencies: + "@babel/types" "^7.20.7" + +"@types/debug@^4.1.12": + version "4.1.12" + resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.12.tgz#a155f21690871953410df4b6b6f53187f0500917" + integrity sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ== + dependencies: + "@types/ms" "*" + +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": + version "2.0.6" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" + integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w== + +"@types/istanbul-lib-report@*": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz#53047614ae72e19fc0401d872de3ae2b4ce350bf" + integrity sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA== + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^3.0.0": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz#0f03e3d2f670fbdac586e34b433783070cc16f54" + integrity sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ== + dependencies: + "@types/istanbul-lib-report" "*" + +"@types/jest@^29.5.13": + version "29.5.13" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.13.tgz#8bc571659f401e6a719a7bf0dbcb8b78c71a8adc" + integrity sha512-wd+MVEZCHt23V0/L642O5APvspWply/rGY5BcW4SUETo2UzPU3Z26qr8jC2qxpimI2jjx9h7+2cj2FwIr01bXg== + dependencies: + expect "^29.0.0" + pretty-format "^29.0.0" "@types/linkify-it@*": version "3.0.1" resolved "https://registry.yarnpkg.com/@types/linkify-it/-/linkify-it-3.0.1.tgz#4d26a9efe3aa2caf829234ec5a39580fc88b6001" integrity sha512-pQv3Sygwxxh6jYQzXaiyWDAHevJqWtqDUv6t11Sa9CPGiXny66II7Pl6PR8QO5OVysD6HYOkHMeBgIjLnk9SkQ== -"@types/lodash@^4.14.123": - version "4.14.123" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.123.tgz#39be5d211478c8dd3bdae98ee75bb7efe4abfe4d" - integrity sha512-pQvPkc4Nltyx7G1Ww45OjVqUsJP4UsZm+GWJpigXgkikZqJgRm4c48g027o6tdgubWHwFRF15iFd+Y4Pmqv6+Q== +"@types/lodash@^4.17.7": + version "4.17.7" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.7.tgz#2f776bcb53adc9e13b2c0dfd493dfcbd7de43612" + integrity sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA== "@types/markdown-it@^12.0.0": version "12.2.3" @@ -52,40 +728,60 @@ resolved "https://registry.yarnpkg.com/@types/mdurl/-/mdurl-1.0.2.tgz#e2ce9d83a613bacf284c7be7d491945e39e1f8e9" integrity sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA== -"@types/minimist@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6" - integrity sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY= +"@types/ms@*": + version "0.7.34" + resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.34.tgz#10964ba0dee6ac4cd462e2795b6bebd407303433" + integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g== -"@types/node@*", "@types/node@^11.13.7": - version "11.13.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-11.13.7.tgz#85dbb71c510442d00c0631f99dae957ce44fd104" - integrity sha512-suFHr6hcA9mp8vFrZTgrmqW2ZU3mbWsryQtQlY/QvwTISCw7nw/j+bCQPPohqmskhmqa5wLNuMHTTsc+xf1MQg== +"@types/node@*": + version "22.5.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.5.tgz#52f939dd0f65fc552a4ad0b392f3c466cc5d7a44" + integrity sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA== + dependencies: + undici-types "~6.19.2" -aggregate-error@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" - integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== +"@types/node@^20.11.25": + version "20.16.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.16.5.tgz#d43c7f973b32ffdf9aa7bd4f80e1072310fd7a53" + integrity sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA== dependencies: - clean-stack "^2.0.0" - indent-string "^4.0.0" + undici-types "~6.19.2" -ansi-colors@4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== +"@types/stack-utils@^2.0.0": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" + integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== + +"@types/yargs-parser@*": + version "21.0.3" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" + integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== + +"@types/yargs@^17.0.8": + version "17.0.33" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.33.tgz#8c32303da83eec050a84b3c7ae7b9f922d13e32d" + integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA== + dependencies: + "@types/yargs-parser" "*" + +"@ungap/structured-clone@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== -ansi-escapes@^4.3.0: +ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== dependencies: type-fest "^0.21.3" -ansi-regex@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" - integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== +ansi-escapes@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-7.0.0.tgz#00fc19f491bbb18e1d481b97868204f92109bfe7" + integrity sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw== + dependencies: + environment "^1.0.0" ansi-regex@^5.0.0, ansi-regex@^5.0.1: version "5.0.1" @@ -111,12 +807,17 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: dependencies: color-convert "^2.0.1" -ansi-styles@^6.0.0: +ansi-styles@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" + integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== + +ansi-styles@^6.0.0, ansi-styles@^6.1.0, ansi-styles@^6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== -anymatch@~3.1.2: +anymatch@^3.0.3: version "3.1.3" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== @@ -124,6 +825,13 @@ anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + argparse@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" @@ -134,21 +842,78 @@ assertion-error@^1.1.0: resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== +async@^3.2.3: + version "3.2.6" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.6.tgz#1b0728e14929d51b85b449b7f06e27c1145e38ce" + integrity sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA== + +babel-jest@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-30.0.0-alpha.6.tgz#a6ae1bd6f9a6ce2a0105deede3852a8410c4f326" + integrity sha512-WOQkqpBz2q8d/AT6D6rZXW5xnKHDmk3kIukaXlzUyoBBIvLh1SEvi2RGS4fboEtS0kNkyL+zf1rSfkt5OCIgmw== + dependencies: + "@jest/transform" "30.0.0-alpha.6" + "@types/babel__core" "^7.1.14" + babel-plugin-istanbul "^7.0.0" + babel-preset-jest "30.0.0-alpha.6" + chalk "^4.0.0" + graceful-fs "^4.2.9" + slash "^3.0.0" + +babel-plugin-istanbul@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.0.tgz#629a178f63b83dc9ecee46fd20266283b1f11280" + integrity sha512-C5OzENSx/A+gt7t4VH1I2XsflxyPUmXRFPKBxt33xncdOmq7oROVM3bZv9Ysjjkv8OJYDMa+tKuKMvqU/H3xdw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.3" + istanbul-lib-instrument "^6.0.2" + test-exclude "^6.0.0" + +babel-plugin-jest-hoist@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.0.0-alpha.6.tgz#296ea19eced1565b15ed41d49745c601330f386c" + integrity sha512-e/aPv0pmnvJqXM5SfCBpyMwZFEZrKW1Mb4unwTkxewk6/0TjwBk6l3B3F9H9OKZ3ErhkH4b+Epd3IIM5E53I2g== + dependencies: + "@babel/template" "^7.3.3" + "@babel/types" "^7.3.3" + "@types/babel__core" "^7.1.14" + +babel-preset-current-node-syntax@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz#9a929eafece419612ef4ae4f60b1862ebad8ef30" + integrity sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw== + dependencies: + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-bigint" "^7.8.3" + "@babel/plugin-syntax-class-properties" "^7.12.13" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-import-attributes" "^7.24.7" + "@babel/plugin-syntax-import-meta" "^7.10.4" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" + +babel-preset-jest@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.0.0-alpha.6.tgz#d490267eacd1a8f7040a99211f15f5ead754f52d" + integrity sha512-Xsis7RI2oT2zlyCIEzMtjDiES0wKoQxTUo5BGzx1q3ZemnDE1/7xTC4/lI4eBLmAtwk/hpZLRYwltvbQEvyRWw== + dependencies: + babel-plugin-jest-hoist "30.0.0-alpha.6" + babel-preset-current-node-syntax "^1.0.0" balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -164,23 +929,62 @@ brace-expansion@^2.0.1: dependencies: balanced-match "^1.0.0" -braces@^3.0.3, braces@~3.0.2: +braces@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== dependencies: fill-range "^7.1.1" -browser-stdout@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" - integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== +browserslist@^4.23.1: + version "4.23.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" + integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== + dependencies: + caniuse-lite "^1.0.30001646" + electron-to-chromium "^1.5.4" + node-releases "^2.0.18" + update-browserslist-db "^1.1.0" + +bs-logger@^0.2.6: + version "0.2.6" + resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + +bser@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" + integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== + dependencies: + node-int64 "^0.4.0" + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== -camelcase@^6.0.0: +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +camelcase@^6.2.0: version "6.3.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== +caniuse-lite@^1.0.30001646: + version "1.0.30001662" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001662.tgz#3574b22dfec54a3f3b6787331da1040fe8e763ec" + integrity sha512-sgMUVwLmGseH8ZIrm1d51UbrhqMCH3jvS7gF/M6byuHOnKyLOBL7W8yz5V02OHwgLGA36o/AFhWzzh4uc5aqTA== + chai@^4.2.0: version "4.3.7" resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.7.tgz#ec63f6df01829088e8bf55fca839bcd464a8ec51" @@ -194,7 +998,7 @@ chai@^4.2.0: pathval "^1.1.1" type-detect "^4.0.5" -chalk@^2.0.1, chalk@^2.4.2: +chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -211,7 +1015,7 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.1.0: +chalk@^4.0.0, chalk@^4.0.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -219,37 +1023,35 @@ chalk@^4.1.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +chalk@^5.3.0, chalk@~5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" + integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== + +char-regex@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" + integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== + check-error@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" integrity sha1-V00xLt2Iu13YkS6Sht1sCu1KrII= -chokidar@3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" +ci-info@^3.2.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" + integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== -clean-stack@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.0.0.tgz#301bfa9e8dd2d3d984c0e542f7aa67b996f63e0a" - integrity sha512-VEoL9Qh7I8s8iHnV53DaeWSt8NJ0g3khMfK6NiCPB7H657juhro+cSw2O88uo3bo0c0X5usamtXk0/Of0wXa5A== +ci-info@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-4.0.0.tgz#65466f8b280fc019b9f50a5388115d17a63a44f2" + integrity sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg== -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= - dependencies: - restore-cursor "^2.0.0" +cjs-module-lexer@^1.0.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170" + integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA== cli-cursor@^3.1.0: version "3.1.0" @@ -258,39 +1060,38 @@ cli-cursor@^3.1.0: dependencies: restore-cursor "^3.1.0" -cli-spinners@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.1.0.tgz#22c34b4d51f573240885b201efda4e4ec9fff3c7" - integrity sha512-8B00fJOEh1HPrx4fo5eW16XmE1PcL1tGpGrxy63CXGP9nHdPBN63X75hA1zhvQuhVztJWLqV58Roj2qlNM7cAA== +cli-cursor@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-5.0.0.tgz#24a4831ecf5a6b01ddeb32fb71a4b2088b0dce38" + integrity sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw== + dependencies: + restore-cursor "^5.0.0" cli-spinners@^2.2.0: version "2.6.0" resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.0.tgz#36c7dc98fb6a9a76bd6238ec3f77e2425627e939" integrity sha512-t+4/y50K/+4xcCRosKkA7W4gTr1MySvLV0q+PxmG7FJ5g+66ChKurYjxBCjHggHH3HA5Hh9cy+lcUGWDqVH+4Q== -cli-truncate@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-2.1.0.tgz#c39e28bf05edcde5be3b98992a22deed5a2b93c7" - integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== - dependencies: - slice-ansi "^3.0.0" - string-width "^4.2.0" +cli-spinners@^2.9.2: + version "2.9.2" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" + integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== -cli-truncate@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-3.1.0.tgz#3f23ab12535e3d73e839bb43e73c9de487db1389" - integrity sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA== +cli-truncate@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-4.0.0.tgz#6cc28a2924fee9e25ce91e973db56c7066e6172a" + integrity sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA== dependencies: slice-ansi "^5.0.0" - string-width "^5.0.0" + string-width "^7.0.0" -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== dependencies: string-width "^4.2.0" - strip-ansi "^6.0.0" + strip-ansi "^6.0.1" wrap-ansi "^7.0.0" clone@^1.0.2: @@ -298,6 +1099,16 @@ clone@^1.0.2: resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== + +collect-v8-coverage@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" + integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== + color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -322,27 +1133,34 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -colorette@^2.0.19: - version "2.0.19" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" - integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ== - -colors@^1.1.2: - version "1.3.3" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.3.tgz#39e005d546afe01e01f9c4ca8fa50f686a01205d" - integrity sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg== +colorette@^2.0.20: + version "2.0.20" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" + integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== -commander@^9.4.1: - version "9.4.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.1.tgz#d1dd8f2ce6faf93147295c0df13c7c21141cfbdd" - integrity sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw== +commander@~12.1.0: + version "12.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-12.1.0.tgz#01423b36f501259fdaac4d0e4d60c96c991585d3" + integrity sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA== concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== -cross-spawn@^7.0.3: +cross-env@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" + integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== + dependencies: + cross-spawn "^7.0.1" + +cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -351,24 +1169,17 @@ cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -debug@4.3.4, debug@^4.3.4: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -debug@^4.1.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" - integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== +debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.7, debug@~4.3.6: + version "4.3.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" + integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== dependencies: - ms "2.1.2" + ms "^2.1.3" -decamelize@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" - integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== +dedent@^1.0.0: + version "1.5.3" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" + integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== deep-eql@^4.1.2: version "4.1.2" @@ -377,6 +1188,11 @@ deep-eql@^4.1.2: dependencies: type-detect "^4.0.0" +deepmerge@^4.2.2: + version "4.3.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== + defaults@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" @@ -384,16 +1200,48 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" -diff@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" - integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== +detect-newline@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +diff-sequences@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-30.0.0-alpha.6.tgz#a24a7f7b238ee13718e7d7411d6fcedc6ee37e96" + integrity sha512-DVGt3/yzbneMUTuupsMqyfSXMnU2fE0lVsC9uFsJmRpluvSi7ZhrS0GX5tnMna6Ta788FGfOUx+irI/+cAZ4EA== + +diff-sequences@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" + integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== eastasianwidth@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== +ejs@^3.1.10: + version "3.1.10" + resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" + integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== + dependencies: + jake "^10.8.5" + +electron-to-chromium@^1.5.4: + version "1.5.27" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.27.tgz#5203ce5d6054857d84ba84d3681cbe59132ade78" + integrity sha512-o37j1vZqCoEgBuWWXLHQgTN/KDKe7zwpiY5CPeq2RvUqOyJw9xnrULzZAEVQ5p4h+zjMk7hgtOoPdnLxr7m/jw== + +emittery@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad" + integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ== + +emoji-regex@^10.3.0: + version "10.4.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.4.0.tgz#03553afea80b3975749cfcb36f776ca268e413d4" + integrity sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw== + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -409,36 +1257,120 @@ entities@~2.1.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5" integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w== -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== +environment@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/environment/-/environment-1.1.0.tgz#8e86c66b180f363c7ab311787e0259665f45a9f1" + integrity sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q== -escape-string-regexp@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +escalade@^3.1.1, escalade@^3.1.2: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= -execa@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-6.1.0.tgz#cea16dee211ff011246556388effa0818394fb20" - integrity sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA== +escape-string-regexp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== + +execa@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + +execa@~8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-8.0.1.tgz#51f6a5943b580f963c3ca9c6321796db8cc39b8c" + integrity sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg== dependencies: cross-spawn "^7.0.3" - get-stream "^6.0.1" - human-signals "^3.0.1" + get-stream "^8.0.1" + human-signals "^5.0.0" is-stream "^3.0.0" merge-stream "^2.0.0" npm-run-path "^5.1.0" onetime "^6.0.0" - signal-exit "^3.0.7" + signal-exit "^4.1.0" strip-final-newline "^3.0.0" +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== + +expect@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/expect/-/expect-30.0.0-alpha.6.tgz#0bdd993dc463a640ec77dfb9b530976fd30289ad" + integrity sha512-WVi2V4iHKw/vHEyye00Q9CSZz7KHDbJkJyteUI8kTih9jiyMl3bIk7wLYFcY9D1Blnadlyb5w5NBuNjQBow99g== + dependencies: + "@jest/expect-utils" "30.0.0-alpha.6" + jest-get-type "30.0.0-alpha.6" + jest-matcher-utils "30.0.0-alpha.6" + jest-message-util "30.0.0-alpha.6" + jest-mock "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + +expect@^29.0.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc" + integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== + dependencies: + "@jest/expect-utils" "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fb-watchman@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" + integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== + dependencies: + bser "2.1.1" + +filelist@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" + integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== + dependencies: + minimatch "^5.0.1" + fill-range@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" @@ -446,27 +1378,21 @@ fill-range@^7.1.1: dependencies: to-regex-range "^5.0.1" -find-up@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== +find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== dependencies: - locate-path "^6.0.0" + locate-path "^5.0.0" path-exists "^4.0.0" -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -fs-extra@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" - integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw== +foreground-child@^3.1.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.0.tgz#0ac8644c06e431439f8561db8ecf29a7b5519c77" + integrity sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg== dependencies: - graceful-fs "^4.1.2" - jsonfile "^4.0.0" - universalify "^0.1.0" + cross-spawn "^7.0.0" + signal-exit "^4.0.1" fs-extra@^8.1.0: version "8.1.0" @@ -480,52 +1406,92 @@ fs-extra@^8.1.0: fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@^2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== -fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== +get-east-asian-width@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/get-east-asian-width/-/get-east-asian-width-1.2.0.tgz#5e6ebd9baee6fb8b7b6bd505221065f0cd91f64e" + integrity sha512-2nk+7SIVb14QrgXFHcm84tD4bKQz0RxPuMT8Ag5KPOq7J5fEmAg0UbXdTOSHqNuHSU28k55qnceesxXRZGzKWA== + get-func-name@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.2.tgz#0d7cf20cd13fda808669ffa88f4ffc7a3943fc41" integrity sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ== -get-stream@^6.0.1: +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-stream@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== +get-stream@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-8.0.1.tgz#def9dfd71742cd7754a7761ed43749a27d02eca2" + integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA== + +glob@^10.3.10: + version "10.4.5" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" + integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== dependencies: - is-glob "^4.0.1" + foreground-child "^3.1.0" + jackspeak "^3.1.2" + minimatch "^9.0.4" + minipass "^7.1.2" + package-json-from-dist "^1.0.0" + path-scurry "^1.11.1" -glob@7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== +glob@^7.1.4: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^3.0.4" + minimatch "^3.1.1" once "^1.3.0" path-is-absolute "^1.0.0" -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0: +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +graceful-fs@^4.1.6, graceful-fs@^4.2.0: version "4.2.6" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee" integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ== +graceful-fs@^4.2.9: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -536,30 +1502,50 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -he@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" -human-signals@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-3.0.1.tgz#c740920859dafa50e5a3222da9d3bf4bb0e5eef5" - integrity sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ== +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== -husky@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.2.tgz#5816a60db02650f1f22c8b69b928fd6bcd77a236" - integrity sha512-Tkv80jtvbnkK3mYWxPZePGFpQ/tT3HNSs/sasF9P2YfkMezDl3ON37YN6jUUI4eTg5LcyVynlb6r4eyvOmspvg== +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== -indent-string@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" - integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== +human-signals@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" + integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== + +husky@^9.1.6: + version "9.1.6" + resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.6.tgz#e23aa996b6203ab33534bdc82306b0cf2cb07d6c" + integrity sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A== + +import-local@^3.0.2: + version "3.2.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.2.0.tgz#c3d5c745798c02a6f8b897726aba5100186ee260" + integrity sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA== + dependencies: + pkg-dir "^4.2.0" + resolve-cwd "^3.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: once "^1.3.0" wrappy "1" @@ -569,17 +1555,17 @@ inherits@2: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= +is-core-module@^2.13.0: + version "2.15.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" + integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== + dependencies: + hasown "^2.0.2" is-fullwidth-code-point@^3.0.0: version "3.0.0" @@ -591,56 +1577,558 @@ is-fullwidth-code-point@^4.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz#fae3167c729e7463f8461ce512b080a49268aa88" integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== -is-glob@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" - integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== +is-fullwidth-code-point@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz#9609efced7c2f97da7b60145ef481c787c7ba704" + integrity sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA== dependencies: - is-extglob "^2.1.1" + get-east-asian-width "^1.0.0" -is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== is-interactive@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== +is-interactive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-2.0.0.tgz#40c57614593826da1100ade6059778d597f16e90" + integrity sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ== + is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -is-plain-obj@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== is-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== +is-unicode-supported@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz#d824984b616c292a2e198207d4a609983842f714" + integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ== + +is-unicode-supported@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz#09f0ab0de6d3744d48d265ebb98f65d11f2a9b3a" + integrity sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ== isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= -js-yaml@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" + integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== + +istanbul-lib-instrument@^6.0.0, istanbul-lib-instrument@^6.0.2: + version "6.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz#fa15401df6c15874bcb2105f773325d78c666765" + integrity sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q== dependencies: - argparse "^2.0.1" + "@babel/core" "^7.23.9" + "@babel/parser" "^7.23.9" + "@istanbuljs/schema" "^0.1.3" + istanbul-lib-coverage "^3.2.0" + semver "^7.5.4" + +istanbul-lib-report@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" + integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^4.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^5.0.0: + version "5.0.6" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz#acaef948df7747c8eb5fbf1265cb980f6353a441" + integrity sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A== + dependencies: + "@jridgewell/trace-mapping" "^0.3.23" + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + +istanbul-reports@^3.1.3: + version "3.1.7" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" + integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +jackspeak@^3.1.2: + version "3.4.3" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" + integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== + dependencies: + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" + +jake@^10.8.5: + version "10.9.2" + resolved "https://registry.yarnpkg.com/jake/-/jake-10.9.2.tgz#6ae487e6a69afec3a5e167628996b59f35ae2b7f" + integrity sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA== + dependencies: + async "^3.2.3" + chalk "^4.0.2" + filelist "^1.0.4" + minimatch "^3.1.2" + +jest-changed-files@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-30.0.0-alpha.6.tgz#5d5b6ccaee88ac1a4fb60be4e666103f5093f29b" + integrity sha512-Fmyt6W27L4fRBl/gReFC4WU+3XIqB7ySHu+a9QxrERapfCb43o7y81TCvTwJHSw5dxGzXLOObVB0tRMDWMafnw== + dependencies: + execa "^5.0.0" + jest-util "30.0.0-alpha.6" + p-limit "^3.1.0" + +jest-circus@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-30.0.0-alpha.6.tgz#e706fb891a1f4436dd48d50fdcb58f4e760f9ee2" + integrity sha512-1C62WeTyWinn6zR61syYKe5yqVbV+ftf21vOgj8AtTxGfMUAlGCpeZ5zh4Kc9Qk7r/PiPiHWZtgZmeT4oe9Dug== + dependencies: + "@jest/environment" "30.0.0-alpha.6" + "@jest/expect" "30.0.0-alpha.6" + "@jest/test-result" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + chalk "^4.0.0" + co "^4.6.0" + dedent "^1.0.0" + is-generator-fn "^2.0.0" + jest-each "30.0.0-alpha.6" + jest-matcher-utils "30.0.0-alpha.6" + jest-message-util "30.0.0-alpha.6" + jest-runtime "30.0.0-alpha.6" + jest-snapshot "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + p-limit "^3.1.0" + pretty-format "30.0.0-alpha.6" + pure-rand "^6.0.0" + slash "^3.0.0" + stack-utils "^2.0.3" + +jest-cli@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-30.0.0-alpha.6.tgz#0a127f30114b20e71a1eea76d82afd138ca14b9a" + integrity sha512-3VYzI2KgpMNAsf+LdRAQtAbhH3IDyFnT36U6URXot+2JWwoCGQQ6w4HIfqyOSlH4aejKgTPSfxki2shRPDFtlQ== + dependencies: + "@jest/core" "30.0.0-alpha.6" + "@jest/test-result" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + chalk "^4.0.0" + exit "^0.1.2" + import-local "^3.0.2" + jest-config "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + jest-validate "30.0.0-alpha.6" + yargs "^17.3.1" + +jest-config@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-30.0.0-alpha.6.tgz#9da43ac166f61b695e0f9773223f7071adec59a3" + integrity sha512-Tq9rH1mg9+nlIhh3efGwMSogFVKZ9z7c6P33ZlK74iJlnqqIAKYERZL2nNmNC5+5p8uxlTPSFZfBz9O8NGKotw== + dependencies: + "@babel/core" "^7.11.6" + "@jest/pattern" "30.0.0-alpha.6" + "@jest/test-sequencer" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + babel-jest "30.0.0-alpha.6" + chalk "^4.0.0" + ci-info "^4.0.0" + deepmerge "^4.2.2" + glob "^10.3.10" + graceful-fs "^4.2.9" + jest-circus "30.0.0-alpha.6" + jest-docblock "30.0.0-alpha.6" + jest-environment-node "30.0.0-alpha.6" + jest-get-type "30.0.0-alpha.6" + jest-regex-util "30.0.0-alpha.6" + jest-resolve "30.0.0-alpha.6" + jest-runner "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + jest-validate "30.0.0-alpha.6" + micromatch "^4.0.7" + parse-json "^5.2.0" + pretty-format "30.0.0-alpha.6" + slash "^3.0.0" + strip-json-comments "^3.1.1" + +jest-diff@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-30.0.0-alpha.6.tgz#47b72ed72a1576ab3bc12a0424ec8c18b4396024" + integrity sha512-43j1DoYwVKrkbB67a2gC0ijjIY9biF0JSPXv7H6zlOkzNlqYg8hSDzrurLNo6zGKatW4JSBLE79LmXPJPj1m6A== + dependencies: + chalk "^4.0.0" + diff-sequences "30.0.0-alpha.6" + jest-get-type "30.0.0-alpha.6" + pretty-format "30.0.0-alpha.6" + +jest-diff@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" + integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== + dependencies: + chalk "^4.0.0" + diff-sequences "^29.6.3" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + +jest-docblock@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-30.0.0-alpha.6.tgz#2d09323375762fc0ed5f72a5e4883b8a5ed17924" + integrity sha512-KXRLgRo7/rF1wqxQupsFCZa6wOp1qrDg4GdSXKfIHODYQb0dpi4rYaYA8xV5l2g9KwYc9/zV7l1tPe9TOr27ew== + dependencies: + detect-newline "^3.0.0" + +jest-each@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-30.0.0-alpha.6.tgz#4e8ab56984019484b3a785295cdc285b973fc1c4" + integrity sha512-snLI2JNYkoBMlZRrNk67XiauUy+uEzRCszKdj+cqHyZ4/MU8fz7gCxbn3g0zmiGUxr0RX0534UxMjc82Sk++tg== + dependencies: + "@jest/types" "30.0.0-alpha.6" + chalk "^4.0.0" + jest-get-type "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + pretty-format "30.0.0-alpha.6" + +jest-environment-node@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-30.0.0-alpha.6.tgz#4ed778d4ef6c9dcbdb20fc8ad7d6448848887bec" + integrity sha512-UN9W3dFzO150Bqj1x+1pq7dMUqw/QhpqhdtmC3B1P6GD9eKEMFGuRw3EButx5SGzrZOqRNlF+tUNC8CoWGW2Og== + dependencies: + "@jest/environment" "30.0.0-alpha.6" + "@jest/fake-timers" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + jest-mock "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + +jest-get-type@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-30.0.0-alpha.6.tgz#cd8f575ccaf00ab04ec78e1e791f9cad9bb2864f" + integrity sha512-lJEoQdCY4ICN6+T0lJ9BODKuqPOEpCv2NnJsEO1nmsK0fbWZmN/pgOPHVqLfK8i3jZpUmgupJ1w8r36mc8iiBQ== + +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== + +jest-haste-map@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-30.0.0-alpha.6.tgz#c20908f82bb27332ef4b4299b1039c0f3c56931a" + integrity sha512-NR/Kw8HyOkuWIdT8ynsp9KnsTDvWnlz8WSOmtQxySTIzOWbZaeJ2FJi9LoDL6+vhKpdlLfUvhgZVtnFJSLCzew== + dependencies: + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + anymatch "^3.0.3" + fb-watchman "^2.0.0" + graceful-fs "^4.2.9" + jest-regex-util "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + jest-worker "30.0.0-alpha.6" + micromatch "^4.0.7" + walker "^1.0.8" + optionalDependencies: + fsevents "^2.3.2" + +jest-leak-detector@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-30.0.0-alpha.6.tgz#23109e249b53c3dd9a72cab031ffb9678c5a0f00" + integrity sha512-a6fh/6h6dCDyj+aplGqkajVqzmi+qYHs5X8orMZv+u56++gUezJZJf8GCiQqw2vtxcsWVPUuQXa3kF33tAYzNQ== + dependencies: + jest-get-type "30.0.0-alpha.6" + pretty-format "30.0.0-alpha.6" + +jest-matcher-utils@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-30.0.0-alpha.6.tgz#f04ac46a34fd9733da25c7fd46bd862ef81610c6" + integrity sha512-jaq7+HznsK54G0qzu96ZwfMEKHmlPiDqg6qG2p/hVQzr6Y/qVMRh8abI9Y1lX6SSXkr+S9mPAkmOsuJNLTLYmQ== + dependencies: + chalk "^4.0.0" + jest-diff "30.0.0-alpha.6" + jest-get-type "30.0.0-alpha.6" + pretty-format "30.0.0-alpha.6" + +jest-matcher-utils@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz#ae8fec79ff249fd592ce80e3ee474e83a6c44f12" + integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g== + dependencies: + chalk "^4.0.0" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + +jest-message-util@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-30.0.0-alpha.6.tgz#e38c7f3d065aa34c27c8642cfcce1cd1f8f00787" + integrity sha512-XAGJqkrBo7m3bFxWqiNqL0PyAWGf1XHR6bTve90MjBKJuIzhJsounGTzBNUw8JoU7Uzcj5Z6ZmEhaE3CDnwjfw== + dependencies: + "@babel/code-frame" "^7.12.13" + "@jest/types" "30.0.0-alpha.6" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.9" + micromatch "^4.0.7" + pretty-format "30.0.0-alpha.6" + slash "^3.0.0" + stack-utils "^2.0.3" + +jest-message-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.7.0.tgz#8bc392e204e95dfe7564abbe72a404e28e51f7f3" + integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w== + dependencies: + "@babel/code-frame" "^7.12.13" + "@jest/types" "^29.6.3" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.9" + micromatch "^4.0.4" + pretty-format "^29.7.0" + slash "^3.0.0" + stack-utils "^2.0.3" + +jest-mock@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-30.0.0-alpha.6.tgz#4a2ae9bb0e83390d688d4e1f1612685be85428fc" + integrity sha512-ezW02IXiKyFYAgDuxfAlONWULitSaB66t411fq2BJxQtgyMGtv59CsnhgbKb0gQp+9vig5MO5ytDCUPalTbarg== + dependencies: + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + jest-util "30.0.0-alpha.6" + +jest-pnp-resolver@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" + integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== + +jest-regex-util@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.0.0-alpha.6.tgz#44b6e55bca4aea953f1a8946431a31fa9a054989" + integrity sha512-XcsAVaqc69QyMz1/FChyhWSoAMaKcDPhFOuWJz/H51LppsyZRAJPXkPnMopsS+qfut8cggExr9QLcsYaX6hqqA== + +jest-resolve-dependencies@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-30.0.0-alpha.6.tgz#0a92063e817eec18d948299f930ae0a27ceb0957" + integrity sha512-G+st0nBR4FNIvVCHq8YNJBiG6t7u0+cxM099lbtOoJNJU+ZTdIxSyzPnnmp/C+YHd1QOlDNlplvL+xe1KHhPUA== + dependencies: + jest-regex-util "30.0.0-alpha.6" + jest-snapshot "30.0.0-alpha.6" + +jest-resolve@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-30.0.0-alpha.6.tgz#963779c1f01d9bee84bf5bfb4d37b31f57c7f0bb" + integrity sha512-0EyeId+RFng52qHvuxOzKjZd2uDF/2Hdzpzt54+biGgY/VVAvf8mYE9UV7g6154Ozpq6KLztSqqMCfPgVs4CbA== + dependencies: + chalk "^4.0.0" + graceful-fs "^4.2.9" + jest-haste-map "30.0.0-alpha.6" + jest-pnp-resolver "^1.2.2" + jest-util "30.0.0-alpha.6" + jest-validate "30.0.0-alpha.6" + resolve "^1.20.0" + resolve.exports "^2.0.0" + slash "^3.0.0" + +jest-runner@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-30.0.0-alpha.6.tgz#8a4d0cb4bde9cea37b832173e085563df2c9a1af" + integrity sha512-SoADy4YnspMpXLNnRCXNIoinm1N5SMci+iF6Y29Duv3wnWhcL14XjEOcyUKBB+AIL52YwouLeUHkCyCspbBk1Q== + dependencies: + "@jest/console" "30.0.0-alpha.6" + "@jest/environment" "30.0.0-alpha.6" + "@jest/test-result" "30.0.0-alpha.6" + "@jest/transform" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + chalk "^4.0.0" + emittery "^0.13.1" + graceful-fs "^4.2.9" + jest-docblock "30.0.0-alpha.6" + jest-environment-node "30.0.0-alpha.6" + jest-haste-map "30.0.0-alpha.6" + jest-leak-detector "30.0.0-alpha.6" + jest-message-util "30.0.0-alpha.6" + jest-resolve "30.0.0-alpha.6" + jest-runtime "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + jest-watcher "30.0.0-alpha.6" + jest-worker "30.0.0-alpha.6" + p-limit "^3.1.0" + source-map-support "0.5.13" + +jest-runtime@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-30.0.0-alpha.6.tgz#b85d393455339af4ccccb35ba031ad8ec9891059" + integrity sha512-p7w7DSFFzwHyR4HsNXca/p32VpL9MLT1c71+VplFJIEgeRHvyqxrARentlul6uJniwtlqvZrVVf5baCQ5a5GUw== + dependencies: + "@jest/environment" "30.0.0-alpha.6" + "@jest/fake-timers" "30.0.0-alpha.6" + "@jest/globals" "30.0.0-alpha.6" + "@jest/source-map" "30.0.0-alpha.6" + "@jest/test-result" "30.0.0-alpha.6" + "@jest/transform" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + chalk "^4.0.0" + cjs-module-lexer "^1.0.0" + collect-v8-coverage "^1.0.0" + glob "^10.3.10" + graceful-fs "^4.2.9" + jest-haste-map "30.0.0-alpha.6" + jest-message-util "30.0.0-alpha.6" + jest-mock "30.0.0-alpha.6" + jest-regex-util "30.0.0-alpha.6" + jest-resolve "30.0.0-alpha.6" + jest-snapshot "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + slash "^3.0.0" + strip-bom "^4.0.0" + +jest-snapshot@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-30.0.0-alpha.6.tgz#6890c1747eaf510724a3d64379961489ed3b8d7d" + integrity sha512-YCBUxSNJ9YGch3tyQdxQkOUitbmXahHL6UhSQeSMERFfX1UMrHyEDHggglocCUg4G3jdU8YzshxOJ/oaR6Ph8w== + dependencies: + "@babel/core" "^7.11.6" + "@babel/generator" "^7.7.2" + "@babel/plugin-syntax-jsx" "^7.7.2" + "@babel/plugin-syntax-typescript" "^7.7.2" + "@babel/types" "^7.3.3" + "@jest/expect-utils" "30.0.0-alpha.6" + "@jest/snapshot-utils" "30.0.0-alpha.6" + "@jest/transform" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + babel-preset-current-node-syntax "^1.0.0" + chalk "^4.0.0" + expect "30.0.0-alpha.6" + graceful-fs "^4.2.9" + jest-diff "30.0.0-alpha.6" + jest-get-type "30.0.0-alpha.6" + jest-matcher-utils "30.0.0-alpha.6" + jest-message-util "30.0.0-alpha.6" + jest-util "30.0.0-alpha.6" + pretty-format "30.0.0-alpha.6" + semver "^7.5.3" + synckit "^0.9.0" + +jest-util@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-30.0.0-alpha.6.tgz#128e7c03f7324043e670f0c1c9378d9728dbe532" + integrity sha512-JlimakOVDyoMC8TEG+knoufxUqLG+Btihf1G8o5sHxz54C6oL54Wetfepp+Nhuj/1hSL0sQtkovvjlEycf9i0w== + dependencies: + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^4.0.0" + graceful-fs "^4.2.9" + picomatch "^4.0.0" + +jest-util@^29.0.0, jest-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" + integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + +jest-validate@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-30.0.0-alpha.6.tgz#e0ac8b88891ded0c0560424564f7a5883b0909dd" + integrity sha512-sINLwCenOUeJVzS5p+o1NhwKsY0de5Es0J7bsaSuZJQGRY67W20idceflr+aZ2akrKgvvqU8Tsg6lkFQyq+a6Q== + dependencies: + "@jest/types" "30.0.0-alpha.6" + camelcase "^6.2.0" + chalk "^4.0.0" + jest-get-type "30.0.0-alpha.6" + leven "^3.1.0" + pretty-format "30.0.0-alpha.6" + +jest-watcher@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-30.0.0-alpha.6.tgz#f77ee8b90d165a86f808862cb341a914a24de095" + integrity sha512-+zL1y3GSJG8EOxVSc2p0dndis0rNDcwKTs4b1bpNTI0XneeTiZlCpRBNYI+sqBl/eZtJBrQdiBRSYz7kJqg7NQ== + dependencies: + "@jest/test-result" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + emittery "^0.13.1" + jest-util "30.0.0-alpha.6" + string-length "^4.0.1" + +jest-worker@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-30.0.0-alpha.6.tgz#6b53ead3e0b5a90ffc892e9be2037def3d27dde1" + integrity sha512-qlzX7zFT/QdUV/LWsJwZBlaIBaJ+E2VH3d1gArGVP+9hUHGpJkEzCSBK7yuZrkt+M/U0Jre5+maPRmkinEF4DA== + dependencies: + "@types/node" "*" + "@ungap/structured-clone" "^1.2.0" + jest-util "30.0.0-alpha.6" + merge-stream "^2.0.0" + supports-color "^8.0.0" + +jest@^30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/jest/-/jest-30.0.0-alpha.6.tgz#2c227d8c03e22c8dd23bbcbbab12c65dc6f685b7" + integrity sha512-9T3nAcIAcEpCX2MdxcjG2IDfG/0tjumnCkVNGh+AKkRXcWF4Er5jLROKvXsgXUJCmr/nMqLF6LG0GrDJ0kjFag== + dependencies: + "@jest/core" "30.0.0-alpha.6" + "@jest/types" "30.0.0-alpha.6" + import-local "^3.0.2" + jest-cli "30.0.0-alpha.6" + +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +json-parse-even-better-errors@^2.3.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json5@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== jsonfile@^4.0.0: version "4.0.0" @@ -649,10 +2137,20 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" -lilconfig@2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.6.tgz#32a384558bd58af3d4c6e077dd1ad1d397bc69d4" - integrity sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg== +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +lilconfig@~3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.2.tgz#e4a7c3cb549e3a606c8dcc32e5ae1005e62c05cb" + integrity sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow== + +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== linkify-it@^3.0.1: version "3.0.3" @@ -661,71 +2159,56 @@ linkify-it@^3.0.1: dependencies: uc.micro "^1.0.1" -lint-staged@^13.0.4: - version "13.0.4" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-13.0.4.tgz#c4b4391280c35165b805ad43304ba01f733067a0" - integrity sha512-HxlHCXoYRsq9QCby5wFozmZW00hMs/9e3l+/dz6Qr8Kle4UH0kJTdABAbqhzG+3pcG6QjL9kz7NgGBfph+a5dw== - dependencies: - cli-truncate "^3.1.0" - colorette "^2.0.19" - commander "^9.4.1" - debug "^4.3.4" - execa "^6.1.0" - lilconfig "2.0.6" - listr2 "^5.0.5" - micromatch "^4.0.5" - normalize-path "^3.0.0" - object-inspect "^1.12.2" - pidtree "^0.6.0" - string-argv "^0.3.1" - yaml "^2.1.3" - -listr2@^5.0.5: - version "5.0.6" - resolved "https://registry.yarnpkg.com/listr2/-/listr2-5.0.6.tgz#3c61153383869ffaad08a8908d63edfde481dff8" - integrity sha512-u60KxKBy1BR2uLJNTWNptzWQ1ob/gjMzIJPZffAENzpZqbMZ/5PrXXOomDcevIS/+IB7s1mmCEtSlT2qHWMqag== - dependencies: - cli-truncate "^2.1.0" - colorette "^2.0.19" - log-update "^4.0.0" - p-map "^4.0.0" - rfdc "^1.3.0" - rxjs "^7.5.7" - through "^2.3.8" - wrap-ansi "^7.0.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== +lint-staged@^15.2.10: + version "15.2.10" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.2.10.tgz#92ac222f802ba911897dcf23671da5bb80643cd2" + integrity sha512-5dY5t743e1byO19P9I4b3x8HJwalIznL5E1FWYnU6OWw33KxNBSLAc6Cy7F2PsFEO8FKnLwjwm5hx7aMF0jzZg== + dependencies: + chalk "~5.3.0" + commander "~12.1.0" + debug "~4.3.6" + execa "~8.0.1" + lilconfig "~3.1.2" + listr2 "~8.2.4" + micromatch "~4.0.8" + pidtree "~0.6.0" + string-argv "~0.3.2" + yaml "~2.5.0" + +listr2@~8.2.4: + version "8.2.4" + resolved "https://registry.yarnpkg.com/listr2/-/listr2-8.2.4.tgz#486b51cbdb41889108cb7e2c90eeb44519f5a77f" + integrity sha512-opevsywziHd3zHCVQGAj8zu+Z3yHNkkoYhWIGnq54RrCVwLz0MozotJEDnKsIBLvkfLGN6BLOyAeRrYI0pKA4g== + dependencies: + cli-truncate "^4.0.0" + colorette "^2.0.20" + eventemitter3 "^5.0.1" + log-update "^6.1.0" + rfdc "^1.4.1" + wrap-ansi "^9.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== dependencies: - p-locate "^5.0.0" + p-locate "^4.1.0" lodash.camelcase@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY= +lodash.memoize@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== + lodash@^4.17.11: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -log-symbols@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -log-symbols@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== - dependencies: - chalk "^2.0.1" - log-symbols@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" @@ -733,15 +2216,24 @@ log-symbols@^3.0.0: dependencies: chalk "^2.4.2" -log-update@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" - integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== +log-symbols@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-6.0.0.tgz#bb95e5f05322651cac30c0feb6404f9f2a8a9439" + integrity sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw== dependencies: - ansi-escapes "^4.3.0" - cli-cursor "^3.1.0" - slice-ansi "^4.0.0" - wrap-ansi "^6.2.0" + chalk "^5.3.0" + is-unicode-supported "^1.3.0" + +log-update@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/log-update/-/log-update-6.1.0.tgz#1a04ff38166f94647ae1af562f4bd6a15b1b7cd4" + integrity sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w== + dependencies: + ansi-escapes "^7.0.0" + cli-cursor "^5.0.0" + slice-ansi "^7.1.0" + strip-ansi "^7.1.0" + wrap-ansi "^9.0.0" loupe@^2.3.1: version "2.3.6" @@ -750,6 +2242,37 @@ loupe@^2.3.1: dependencies: get-func-name "^2.0.0" +lru-cache@^10.2.0: + version "10.4.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" + integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +make-dir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" + integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== + dependencies: + semver "^7.5.3" + +make-error@^1.3.6: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +makeerror@1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" + integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== + dependencies: + tmpl "1.0.5" + markdown-it@^12.0.0: version "12.3.2" resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.3.2.tgz#bf92ac92283fe983fe4de8ff8abfb5ad72cd0c90" @@ -771,7 +2294,7 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -micromatch@^4.0.5: +micromatch@^4.0.4, micromatch@^4.0.7, micromatch@~4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== @@ -779,11 +2302,6 @@ micromatch@^4.0.5: braces "^3.0.3" picomatch "^2.3.1" -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== - mimic-fn@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" @@ -794,65 +2312,43 @@ mimic-fn@^4.0.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== -minimatch@5.0.1: +mimic-function@^5.0.0: version "5.0.1" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.0.1.tgz#fb9022f7528125187c92bd9e9b6366be1cf3415b" - integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== - dependencies: - brace-expansion "^2.0.1" + resolved "https://registry.yarnpkg.com/mimic-function/-/mimic-function-5.0.1.tgz#acbe2b3349f99b9deaca7fb70e48b83e94e67076" + integrity sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA== -minimatch@^3.0.4: +minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: brace-expansion "^1.1.7" -minimist@^1.2.0, minimist@^1.2.5: +minimatch@^5.0.1: + version "5.1.6" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" + integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^9.0.4: + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== + dependencies: + brace-expansion "^2.0.1" + +minimist@^1.2.0: version "1.2.7" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== -mkdirp@^0.5.1: - version "0.5.5" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" - -mocha@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.1.0.tgz#dbf1114b7c3f9d0ca5de3133906aea3dfc89ef7a" - integrity sha512-vUF7IYxEoN7XhQpFLxQAEMtE4W91acW4B6En9l97MwE9stL1A9gusXfoHZCLVHDUJ/7V5+lbCM6yMqzo5vNymg== - dependencies: - ansi-colors "4.1.1" - browser-stdout "1.3.1" - chokidar "3.5.3" - debug "4.3.4" - diff "5.0.0" - escape-string-regexp "4.0.0" - find-up "5.0.0" - glob "7.2.0" - he "1.2.0" - js-yaml "4.1.0" - log-symbols "4.1.0" - minimatch "5.0.1" - ms "2.1.3" - nanoid "3.3.3" - serialize-javascript "6.0.0" - strip-json-comments "3.1.1" - supports-color "8.1.1" - workerpool "6.2.1" - yargs "16.2.0" - yargs-parser "20.2.4" - yargs-unparser "2.0.0" - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@2.1.3: +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" + integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== + +ms@^2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -862,16 +2358,33 @@ mute-stream@0.0.8: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -nanoid@3.3.3: - version "3.3.3" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" - integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -normalize-path@^3.0.0, normalize-path@~3.0.0: +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== + +node-releases@^2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== + +normalize-path@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== +npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + npm-run-path@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.1.0.tgz#bc62f7f3f6952d9894bd08944ba011a6ee7b7e00" @@ -879,26 +2392,14 @@ npm-run-path@^5.1.0: dependencies: path-key "^4.0.0" -object-inspect@^1.12.2: - version "1.12.2" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" - integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== - once@^1.3.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= - dependencies: - mimic-fn "^1.0.0" - -onetime@^5.1.0: +onetime@^5.1.0, onetime@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== @@ -912,17 +2413,12 @@ onetime@^6.0.0: dependencies: mimic-fn "^4.0.0" -ora@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-3.4.0.tgz#bf0752491059a3ef3ed4c85097531de9fdbcd318" - integrity sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg== +onetime@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-7.0.0.tgz#9f16c92d8c9ef5120e3acd9dd9957cceecc1ab60" + integrity sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ== dependencies: - chalk "^2.4.2" - cli-cursor "^2.1.0" - cli-spinners "^2.0.0" - log-symbols "^2.2.0" - strip-ansi "^5.2.0" - wcwidth "^1.0.1" + mimic-function "^5.0.0" ora@^4.0.3: version "4.1.1" @@ -938,32 +2434,72 @@ ora@^4.0.3: strip-ansi "^6.0.0" wcwidth "^1.0.1" -p-limit@^3.0.2: +ora@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/ora/-/ora-8.1.0.tgz#c3db2f9f83a2bec9e8ab71fe3b9ae234d65ca3a8" + integrity sha512-GQEkNkH/GHOhPFXcqZs3IDahXEQcQxsSjEkK4KvEEST4t7eNzoMjxTzef+EZ+JluDEV+Raoi3WQ2CflnRdSVnQ== + dependencies: + chalk "^5.3.0" + cli-cursor "^5.0.0" + cli-spinners "^2.9.2" + is-interactive "^2.0.0" + is-unicode-supported "^2.0.0" + log-symbols "^6.0.0" + stdin-discarder "^0.2.2" + string-width "^7.2.0" + strip-ansi "^7.1.0" + +p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-limit@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== dependencies: yocto-queue "^0.1.0" -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== dependencies: - p-limit "^3.0.2" + p-limit "^2.2.0" -p-map@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" - integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +package-json-from-dist@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz#e501cd3094b278495eb4258d4c9f6d5ac3019f00" + integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw== + +parse-json@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" + integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== dependencies: - aggregate-error "^3.0.0" + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" parse-ms@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-2.1.0.tgz#348565a753d4391fa524029956b172cb7753097d" integrity sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA== +parse-ms@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-4.0.0.tgz#c0c058edd47c2a590151a718990533fd62803df4" + integrity sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw== + path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -972,9 +2508,9 @@ path-exists@^4.0.0: path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== -path-key@^3.1.0: +path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== @@ -984,32 +2520,78 @@ path-key@^4.0.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +path-scurry@^1.11.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2" + integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA== + dependencies: + lru-cache "^10.2.0" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + pathval@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: +picocolors@^1.0.0, picocolors@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== + +picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -pidtree@^0.6.0: +picomatch@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab" + integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg== + +pidtree@~0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c" integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== -prettier@^1.17.0: - version "1.17.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.0.tgz#53b303676eed22cc14a9f0cec09b477b3026c008" - integrity sha512-sXe5lSt2WQlCbydGETgfm1YBShgOX4HxQkFPvbxkcwgDvGDeqVau8h+12+lmSVlP3rHPz0oavfddSZg/q+Szjw== +pirates@^4.0.4: + version "4.0.6" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" + integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== -pretty-ms@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-5.0.0.tgz#6133a8f55804b208e4728f6aa7bf01085e951e24" - integrity sha512-94VRYjL9k33RzfKiGokPBPpsmloBYSf5Ri+Pq19zlsEcUKFob+admeXr5eFDRuPjFmEOcjJvPGdillYOJyvZ7Q== +pkg-dir@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== dependencies: - parse-ms "^2.1.0" + find-up "^4.0.0" + +prettier@^3.3.3: + version "3.3.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" + integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== + +pretty-format@30.0.0-alpha.6: + version "30.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-30.0.0-alpha.6.tgz#49a66c885306677e8bbbe90a0e8cf3f6d2dfc491" + integrity sha512-xkeffkZoqQmRrcNewpOsUCKNOl+CkPqjt3Ld749uz1S7/O7GuPNPv2fZk3v/1U/FE8/B4Zz0llVL80MKON1tOQ== + dependencies: + "@jest/schemas" "30.0.0-alpha.6" + ansi-styles "^5.0.0" + react-is "^18.0.0" + +pretty-format@^29.0.0, pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== + dependencies: + "@jest/schemas" "^29.6.3" + ansi-styles "^5.0.0" + react-is "^18.0.0" pretty-ms@^5.1.0: version "5.1.0" @@ -1018,32 +2600,53 @@ pretty-ms@^5.1.0: dependencies: parse-ms "^2.1.0" -randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== +pretty-ms@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-9.1.0.tgz#0ad44de6086454f48a168e5abb3c26f8db1b3253" + integrity sha512-o1piW0n3tgKIKCwk2vpM/vOV13zjJzvP37Ioze54YlTHE06m4tjEbzg9WsKkvTuyYln2DHjo5pY4qrZGI0otpw== dependencies: - safe-buffer "^5.1.0" + parse-ms "^4.0.0" -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" +pure-rand@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.1.0.tgz#d173cf23258231976ccbdb05247c9787957604f2" + integrity sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA== + +react-is@^18.0.0: + version "18.3.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" + integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= +resolve-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" + integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== dependencies: - onetime "^2.0.0" - signal-exit "^3.0.2" + resolve-from "^5.0.0" + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve.exports@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" + integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== + +resolve@^1.20.0: + version "1.22.8" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" restore-cursor@^3.1.0: version "3.1.0" @@ -1053,29 +2656,28 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" -rfdc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b" - integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA== - -rxjs@^7.5.7: - version "7.6.0" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.6.0.tgz#361da5362b6ddaa691a2de0b4f2d32028f1eb5a2" - integrity sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ== +restore-cursor@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-5.1.0.tgz#0766d95699efacb14150993f55baf0953ea1ebe7" + integrity sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA== dependencies: - tslib "^2.1.0" + onetime "^7.0.0" + signal-exit "^4.1.0" -safe-buffer@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +rfdc@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" + integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== -serialize-javascript@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" - integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== - dependencies: - randombytes "^2.1.0" +semver@^6.3.1: + version "6.3.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.5.3, semver@^7.5.4, semver@^7.6.3: + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== shebang-command@^2.0.0: version "2.0.0" @@ -1094,28 +2696,20 @@ signal-exit@^3.0.2: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== -signal-exit@^3.0.7: +signal-exit@^3.0.3: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== -slice-ansi@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" - integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" +signal-exit@^4.0.1, signal-exit@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== slice-ansi@^5.0.0: version "5.0.0" @@ -1125,12 +2719,58 @@ slice-ansi@^5.0.0: ansi-styles "^6.0.0" is-fullwidth-code-point "^4.0.0" -string-argv@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" - integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== +slice-ansi@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-7.1.0.tgz#cd6b4655e298a8d1bdeb04250a433094b347b9a9" + integrity sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg== + dependencies: + ansi-styles "^6.2.1" + is-fullwidth-code-point "^5.0.0" + +source-map-support@0.5.13: + version "0.5.13" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" + integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== + +stack-utils@^2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" + integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== + dependencies: + escape-string-regexp "^2.0.0" -string-width@^4.1.0: +stdin-discarder@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/stdin-discarder/-/stdin-discarder-0.2.2.tgz#390037f44c4ae1a1ae535c5fe38dc3aba8d997be" + integrity sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ== + +string-argv@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" + integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== + +string-length@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" + integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== + dependencies: + char-regex "^1.0.2" + strip-ansi "^6.0.0" + +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -1139,16 +2779,7 @@ string-width@^4.1.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string-width@^4.2.0: - version "4.2.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" - integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -string-width@^5.0.0: +string-width@^5.0.1, string-width@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== @@ -1157,12 +2788,21 @@ string-width@^5.0.0: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== +string-width@^7.0.0, string-width@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-7.2.0.tgz#b5bb8e2165ce275d4d43476dd2700ad9091db6dc" + integrity sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ== dependencies: - ansi-regex "^4.1.0" + emoji-regex "^10.3.0" + get-east-asian-width "^1.0.0" + strip-ansi "^7.1.0" + +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" strip-ansi@^6.0.0: version "6.0.0" @@ -1171,37 +2811,33 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" -strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2" - integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw== +strip-ansi@^7.0.1, strip-ansi@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== dependencies: ansi-regex "^6.0.1" +strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + strip-final-newline@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd" integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== -strip-json-comments@3.1.1: +strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== -supports-color@8.1.1: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -1216,10 +2852,44 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -through@^2.3.8: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== +supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + +synckit@^0.9.0: + version "0.9.1" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.9.1.tgz#febbfbb6649979450131f64735aa3f6c14575c88" + integrity sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A== + dependencies: + "@pkgr/core" "^0.1.0" + tslib "^2.6.2" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +tmpl@1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" + integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== to-regex-range@^5.0.1: version "5.0.1" @@ -1228,12 +2898,27 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -tslib@^2.1.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" - integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== - -type-detect@^4.0.0, type-detect@^4.0.5: +ts-jest@^29.2.5: + version "29.2.5" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.5.tgz#591a3c108e1f5ebd013d3152142cb5472b399d63" + integrity sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA== + dependencies: + bs-logger "^0.2.6" + ejs "^3.1.10" + fast-json-stable-stringify "^2.1.0" + jest-util "^29.0.0" + json5 "^2.2.3" + lodash.memoize "^4.1.2" + make-error "^1.3.6" + semver "^7.6.3" + yargs-parser "^21.1.1" + +tslib@^2.6.2: + version "2.7.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" + integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== + +type-detect@4.0.8, type-detect@^4.0.0, type-detect@^4.0.5: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== @@ -1243,21 +2928,50 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -typescript@^3.4.5: - version "3.4.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99" - integrity sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw== +typescript@^5.6.2: + version "5.6.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0" + integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw== uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac" integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA== +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== + universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +update-browserslist-db@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" + integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== + dependencies: + escalade "^3.1.2" + picocolors "^1.0.1" + +v8-to-istanbul@^9.0.1: + version "9.3.0" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz#b9572abfa62bd556c16d75fdebc1a411d5ff3175" + integrity sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA== + dependencies: + "@jridgewell/trace-mapping" "^0.3.12" + "@types/istanbul-lib-coverage" "^2.0.1" + convert-source-map "^2.0.0" + +walker@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" + integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== + dependencies: + makeerror "1.0.12" + wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" @@ -1272,21 +2986,7 @@ which@^2.0.1: dependencies: isexe "^2.0.0" -workerpool@6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343" - integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -1295,53 +2995,69 @@ wrap-ansi@^7.0.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" + integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + +wrap-ansi@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-9.0.0.tgz#1a3dc8b70d85eeb8398ddfb1e4a02cd186e58b3e" + integrity sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q== + dependencies: + ansi-styles "^6.2.1" + string-width "^7.0.0" + strip-ansi "^7.1.0" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +write-file-atomic@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-5.0.1.tgz#68df4717c55c6fa4281a7860b4c2ba0a6d2b11e7" + integrity sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw== + dependencies: + imurmurhash "^0.1.4" + signal-exit "^4.0.1" y18n@^5.0.5: version "5.0.8" resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== -yaml@^2.1.3: - version "2.2.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.2.2.tgz#ec551ef37326e6d42872dad1970300f8eb83a073" - integrity sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA== +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== -yargs-parser@20.2.4: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== +yaml@~2.5.0: + version "2.5.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.5.1.tgz#c9772aacf62cb7494a95b0c4f1fb065b563db130" + integrity sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q== -yargs-parser@^20.2.2: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== +yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== -yargs-unparser@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" - integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== +yargs@^17.3.1: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== dependencies: - camelcase "^6.0.0" - decamelize "^4.0.0" - flat "^5.0.2" - is-plain-obj "^2.1.0" - -yargs@16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" + cliui "^8.0.1" escalade "^3.1.1" get-caller-file "^2.0.5" require-directory "^2.1.1" - string-width "^4.2.0" + string-width "^4.2.3" y18n "^5.0.5" - yargs-parser "^20.2.2" + yargs-parser "^21.1.1" yocto-queue@^0.1.0: version "0.1.0" From b03d912af4fa1bfea3aa92a56633b8be8f53b6ff Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Sun, 22 Sep 2024 22:29:16 -0700 Subject: [PATCH 2/4] chore: fix circular ESM import + fix output spec --- README.md | 5 +- src/bin.ts | 4 +- src/dynamic-param-interfaces.ts | 2 + src/utils.ts | 13 +- test/fixture/electron-api.json | 47597 ++++++++++++++++++++++++++++++ test/output.spec.ts | 61 +- 6 files changed, 47641 insertions(+), 41 deletions(-) create mode 100644 test/fixture/electron-api.json diff --git a/README.md b/README.md index 72ece94..9182706 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,11 @@ The module exports a function that parses a given API JSON object and returns an array of lines to create the definition file ```js -const { generateDefinitions } = require('@electron/typescript-definitions') +import { generateDefinitions } from '@electron/typescript-definitions' + const apiPath = './vendor/electron/docs/api.json' -const definitionLines = generateDefinitions({ electronApi: require(apiPath) }) +const definitionLines = generateDefinitions({ electronApi: loadJSON(apiPath) }) // definitionLines will be an strin representation of the definition file ``` diff --git a/src/bin.ts b/src/bin.ts index 688bc74..edaafe3 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -62,9 +62,9 @@ runner.text = chalk.cyan(`Generating API in directory: ${chalk.yellow(`"${resolv const start = Date.now(); const resolvedFilePath = path.resolve(resolvedOutDir, './electron.d.ts'); -fs.promises.mkdir(resolvedOutDir, { recursive: true }).then(() => +fs.promises.mkdir(resolvedOutDir, { recursive: true }).then(async () => generateDefinitions({ - electronApi: require(resolvedApi), + electronApi: JSON.parse(await fs.promises.readFile(resolvedApi, 'utf-8')), }) .then((data) => fs.promises.writeFile(resolvedFilePath, data)) .then(() => diff --git a/src/dynamic-param-interfaces.ts b/src/dynamic-param-interfaces.ts index ab5acc5..0eb620f 100644 --- a/src/dynamic-param-interfaces.ts +++ b/src/dynamic-param-interfaces.ts @@ -295,3 +295,5 @@ export class DynamicParamInterfaces { static createParamInterface = createParamInterface; static flushParamInterfaces = flushParamInterfaces; } + +utils.setParamInterfaces(DynamicParamInterfaces); diff --git a/src/utils.ts b/src/utils.ts index 9813261..4e5ed30 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -16,11 +16,9 @@ import { DynamicParamInterfaces } from './dynamic-param-interfaces.js'; const debug = d('utils'); let paramInterfaces: typeof DynamicParamInterfaces; -const lazyParamInterfaces = () => { - if (!paramInterfaces) { - paramInterfaces = require('./dynamic-param-interfaces').DynamicParamInterfaces; - } - return paramInterfaces; + +export const setParamInterfaces = (provided: typeof DynamicParamInterfaces) => { + paramInterfaces = provided; }; export const extendArray = (arr1: T[], arr2: T[]): T[] => { @@ -176,10 +174,7 @@ export const typify = ( inner.type === 'Object' ? { ...inner, - type: lazyParamInterfaces().createParamInterface( - inner as any, - maybeInnerReturnTypeName, - ), + type: paramInterfaces.createParamInterface(inner as any, maybeInnerReturnTypeName), } : inner, ); diff --git a/test/fixture/electron-api.json b/test/fixture/electron-api.json new file mode 100644 index 0000000..1ac0e07 --- /dev/null +++ b/test/fixture/electron-api.json @@ -0,0 +1,47597 @@ +[ + { + "name": "app", + "description": "> Control your application's event lifecycle.\n\nProcess: Main\n\nThe following example shows how to quit the application when the last window is closed:", + "slug": "app", + "websiteUrl": "https://electronjs.org/docs/api/app", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/app.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "quit", + "signature": "()", + "description": "Try to close all windows. The `before-quit` event will be emitted first. If all windows are successfully closed, the `will-quit` event will be emitted and by default the application will terminate.\n\nThis method guarantees that all `beforeunload` and `unload` event handlers are correctly executed. It is possible that a window cancels the quitting by returning `false` in the `beforeunload` event handler.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#appquit" + }, + { + "name": "exit", + "signature": "([exitCode])", + "description": "Exits immediately with `exitCode`. `exitCode` defaults to 0.\n\nAll windows will be closed immediately without asking the user, and the `before-quit` and `will-quit` events will not be emitted.", + "parameters": [ + { + "name": "exitCode", + "description": "", + "required": false, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appexitexitcode" + }, + { + "name": "relaunch", + "signature": "([options])", + "description": "Relaunches the app when current instance exits.\n\nBy default, the new instance will use the same working directory and command line arguments with current instance. When `args` is specified, the `args` will be passed as command line arguments instead. When `execPath` is specified, the `execPath` will be executed for relaunch instead of current app.\n\nNote that this method does not quit the app when executed, you have to call `app.quit` or `app.exit` after calling `app.relaunch` to make the app restart.\n\nWhen `app.relaunch` is called for multiple times, multiple instances will be started after current instance exited.\n\nAn example of restarting current instance immediately and adding a new command line argument to the new instance:", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "args", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "execPath", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#apprelaunchoptions" + }, + { + "name": "isReady", + "signature": "()", + "description": "`true` if Electron has finished initializing, `false` otherwise. See also `app.whenReady()`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#appisready" + }, + { + "name": "whenReady", + "signature": "()", + "description": "fulfilled when Electron is initialized. May be used as a convenient alternative to checking `app.isReady()` and subscribing to the `ready` event if the app is not ready yet.", + "parameters": [], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#appwhenready" + }, + { + "name": "focus", + "signature": "([options])", + "description": "On Linux, focuses on the first visible window. On macOS, makes the application the active app. On Windows, focuses on the application's first window.\n\nYou should seek to use the `steal` option as sparingly as possible.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "steal", + "description": "Make the receiver the active app even if another app is currently active.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appfocusoptions" + }, + { + "name": "hide", + "signature": "()", + "description": "Hides all application windows without minimizing them.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#apphide-macos" + }, + { + "name": "isHidden", + "signature": "()", + "description": "`true` if the application—including all of its windows—is hidden (e.g. with `Command-H`), `false` otherwise.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appishidden-macos" + }, + { + "name": "show", + "signature": "()", + "description": "Shows application windows after they were hidden. Does not automatically focus them.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appshow-macos" + }, + { + "name": "setAppLogsPath", + "signature": "([path])", + "description": "Sets or creates a directory your app's logs which can then be manipulated with `app.getPath()` or `app.setPath(pathName, newPath)`.\n\nCalling `app.setAppLogsPath()` without a `path` parameter will result in this directory being set to `~/Library/Logs/YourAppName` on _macOS_, and inside the `userData` directory on _Linux_ and _Windows_.", + "parameters": [ + { + "name": "path", + "description": "A custom path for your logs. Must be absolute.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appsetapplogspathpath" + }, + { + "name": "getAppPath", + "signature": "()", + "description": "The current application directory.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetapppath" + }, + { + "name": "getPath", + "signature": "(name)", + "description": "A path to a special directory or file associated with `name`. On failure, an `Error` is thrown.\n\nIf `app.getPath('logs')` is called without called `app.setAppLogsPath()` being called first, a default log directory will be created equivalent to calling `app.setAppLogsPath()` without a `path` parameter.", + "parameters": [ + { + "name": "name", + "description": "You can request the following paths by the name:", + "required": true, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "home", + "description": "" + }, + { + "value": "appData", + "description": "user application data directory, which by default points to:" + }, + { + "value": "userData", + "description": "" + }, + { + "value": "sessionData", + "description": "" + }, + { + "value": "temp", + "description": "" + }, + { + "value": "exe", + "description": "" + }, + { + "value": "module", + "description": "" + }, + { + "value": "desktop", + "description": "" + }, + { + "value": "documents", + "description": "" + }, + { + "value": "downloads", + "description": "" + }, + { + "value": "music", + "description": "" + }, + { + "value": "pictures", + "description": "" + }, + { + "value": "videos", + "description": "" + }, + { + "value": "recent", + "description": "" + }, + { + "value": "logs", + "description": "" + }, + { + "value": "crashDumps", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetpathname" + }, + { + "name": "getFileIcon", + "signature": "(path[, options])", + "description": "fulfilled with the app's icon, which is a NativeImage.\n\nFetches a path's associated icon.\n\nOn _Windows_, there a 2 kinds of icons:\n\n* Icons associated with certain file extensions, like `.mp3`, `.png`, etc.\n* Icons inside the file itself, like `.exe`, `.dll`, `.ico`.\n\nOn _Linux_ and _macOS_, icons depend on the application associated with file mime type.", + "parameters": [ + { + "name": "path", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "size", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "small", + "description": "16x16" + }, + { + "value": "normal", + "description": "32x32" + }, + { + "value": "large", + "description": "48x48 on _Linux_, 32x32 on _Windows_, unsupported on _macOS_." + } + ] + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "NativeImage" + } + ] + }, + "additionalTags": [], + "urlFragment": "#appgetfileiconpath-options" + }, + { + "name": "setPath", + "signature": "(name, path)", + "description": "Overrides the `path` to a special directory or file associated with `name`. If the path specifies a directory that does not exist, an `Error` is thrown. In that case, the directory should be created with `fs.mkdirSync` or similar.\n\nYou can only override paths of a `name` defined in `app.getPath`.\n\nBy default, web pages' cookies and caches will be stored under the `sessionData` directory. If you want to change this location, you have to override the `sessionData` path before the `ready` event of the `app` module is emitted.", + "parameters": [ + { + "name": "name", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appsetpathname-path" + }, + { + "name": "getVersion", + "signature": "()", + "description": "The version of the loaded application. If no version is found in the application's `package.json` file, the version of the current bundle or executable is returned.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetversion" + }, + { + "name": "getName", + "signature": "()", + "description": "The current application's name, which is the name in the application's `package.json` file.\n\nUsually the `name` field of `package.json` is a short lowercase name, according to the npm modules spec. You should usually also specify a `productName` field, which is your application's full capitalized name, and which will be preferred over `name` by Electron.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetname" + }, + { + "name": "setName", + "signature": "(name)", + "description": "Overrides the current application's name.\n\n**Note:** This function overrides the name used internally by Electron; it does not affect the name that the OS uses.", + "parameters": [ + { + "name": "name", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appsetnamename" + }, + { + "name": "getLocale", + "signature": "()", + "description": "The current application locale, fetched using Chromium's `l10n_util` library. Possible return values are documented here.\n\nTo set the locale, you'll want to use a command line switch at app startup, which may be found here.\n\n**Note:** When distributing your packaged app, you have to also ship the `locales` folder.\n\n**Note:** This API must be called after the `ready` event is emitted.\n\n**Note:** To see example return values of this API compared to other locale and language APIs, see `app.getPreferredSystemLanguages()`.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetlocale" + }, + { + "name": "getLocaleCountryCode", + "signature": "()", + "description": "User operating system's locale two-letter ISO 3166 country code. The value is taken from native OS APIs.\n\n**Note:** When unable to detect locale country code, it returns empty string.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetlocalecountrycode" + }, + { + "name": "getSystemLocale", + "signature": "()", + "description": "The current system locale. On Windows and Linux, it is fetched using Chromium's `i18n` library. On macOS, `[NSLocale currentLocale]` is used instead. To get the user's current system language, which is not always the same as the locale, it is better to use `app.getPreferredSystemLanguages()`.\n\nDifferent operating systems also use the regional data differently:\n\n* Windows 11 uses the regional format for numbers, dates, and times.\n* macOS Monterey uses the region for formatting numbers, dates, times, and for selecting the currency symbol to use.\n\nTherefore, this API can be used for purposes such as choosing a format for rendering dates and times in a calendar app, especially when the developer wants the format to be consistent with the OS.\n\n**Note:** This API must be called after the `ready` event is emitted.\n\n**Note:** To see example return values of this API compared to other locale and language APIs, see `app.getPreferredSystemLanguages()`.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetsystemlocale" + }, + { + "name": "getPreferredSystemLanguages", + "signature": "()", + "description": "The user's preferred system languages from most preferred to least preferred, including the country codes if applicable. A user can modify and add to this list on Windows or macOS through the Language and Region settings.\n\nThe API uses `GlobalizationPreferences` (with a fallback to `GetSystemPreferredUILanguages`) on Windows, `\\[NSLocale preferredLanguages\\]` on macOS, and `g_get_language_names` on Linux.\n\nThis API can be used for purposes such as deciding what language to present the application in.\n\nHere are some examples of return values of the various language and locale APIs with different configurations:\n\nOn Windows, given application locale is German, the regional format is Finnish (Finland), and the preferred system languages from most to least preferred are French (Canada), English (US), Simplified Chinese (China), Finnish, and Spanish (Latin America):\n\nOn macOS, given the application locale is German, the region is Finland, and the preferred system languages from most to least preferred are French (Canada), English (US), Simplified Chinese, and Spanish (Latin America):\n\nBoth the available languages and regions and the possible return values differ between the two operating systems.\n\nAs can be seen with the example above, on Windows, it is possible that a preferred system language has no country code, and that one of the preferred system languages corresponds with the language used for the regional format. On macOS, the region serves more as a default country code: the user doesn't need to have Finnish as a preferred language to use Finland as the region,and the country code `FI` is used as the country code for preferred system languages that do not have associated countries in the language name.", + "parameters": [], + "returns": { + "collection": true, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetpreferredsystemlanguages" + }, + { + "name": "addRecentDocument", + "signature": "(path)", + "description": "Adds `path` to the recent documents list.\n\nThis list is managed by the OS. On Windows, you can visit the list from the task bar, and on macOS, you can visit it from dock menu.", + "parameters": [ + { + "name": "path", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appaddrecentdocumentpath-macos-windows" + }, + { + "name": "clearRecentDocuments", + "signature": "()", + "description": "Clears the recent documents list.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appclearrecentdocuments-macos-windows" + }, + { + "name": "setAsDefaultProtocolClient", + "signature": "(protocol[, path, args])", + "description": "Whether the call succeeded.\n\nSets the current executable as the default handler for a protocol (aka URI scheme). It allows you to integrate your app deeper into the operating system. Once registered, all links with `your-protocol://` will be opened with the current executable. The whole link, including protocol, will be passed to your application as a parameter.\n\n**Note:** On macOS, you can only register protocols that have been added to your app's `info.plist`, which cannot be modified at runtime. However, you can change the file during build time via Electron Forge, Electron Packager, or by editing `info.plist` with a text editor. Please refer to Apple's documentation for details.\n\n**Note:** In a Windows Store environment (when packaged as an `appx`) this API will return `true` for all calls but the registry key it sets won't be accessible by other applications. In order to register your Windows Store application as a default protocol handler you must declare the protocol in your manifest.\n\nThe API uses the Windows Registry and `LSSetDefaultHandlerForURLScheme` internally.", + "parameters": [ + { + "name": "protocol", + "description": "The name of your protocol, without `://`. For example, if you want your app to handle `electron://` links, call this method with `electron` as the parameter.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "The path to the Electron executable. Defaults to `process.execPath`", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "args", + "description": "Arguments passed to the executable. Defaults to an empty array", + "required": false, + "collection": true, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#appsetasdefaultprotocolclientprotocol-path-args" + }, + { + "name": "removeAsDefaultProtocolClient", + "signature": "(protocol[, path, args])", + "description": "Whether the call succeeded.\n\nThis method checks if the current executable as the default handler for a protocol (aka URI scheme). If so, it will remove the app as the default handler.", + "parameters": [ + { + "name": "protocol", + "description": "The name of your protocol, without `://`.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "Defaults to `process.execPath`", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "args", + "description": "Defaults to an empty array", + "required": false, + "collection": true, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appremoveasdefaultprotocolclientprotocol-path-args-macos-windows" + }, + { + "name": "isDefaultProtocolClient", + "signature": "(protocol[, path, args])", + "description": "Whether the current executable is the default handler for a protocol (aka URI scheme).\n\n**Note:** On macOS, you can use this method to check if the app has been registered as the default protocol handler for a protocol. You can also verify this by checking `~/Library/Preferences/com.apple.LaunchServices.plist` on the macOS machine. Please refer to Apple's documentation for details.\n\nThe API uses the Windows Registry and `LSCopyDefaultHandlerForURLScheme` internally.", + "parameters": [ + { + "name": "protocol", + "description": "The name of your protocol, without `://`.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "Defaults to `process.execPath`", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "args", + "description": "Defaults to an empty array", + "required": false, + "collection": true, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#appisdefaultprotocolclientprotocol-path-args" + }, + { + "name": "getApplicationNameForProtocol", + "signature": "(url)", + "description": "Name of the application handling the protocol, or an empty string if there is no handler. For instance, if Electron is the default handler of the URL, this could be `Electron` on Windows and Mac. However, don't rely on the precise format which is not guaranteed to remain unchanged. Expect a different format on Linux, possibly with a `.desktop` suffix.\n\nThis method returns the application name of the default handler for the protocol (aka URI scheme) of a URL.", + "parameters": [ + { + "name": "url", + "description": "a URL with the protocol name to check. Unlike the other methods in this family, this accepts an entire URL, including `://` at a minimum (e.g. `https://`).", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#appgetapplicationnameforprotocolurl" + }, + { + "name": "getApplicationInfoForProtocol", + "signature": "(url)", + "description": "Resolve with an object containing the following:\n\n* `icon` NativeImage - the display icon of the app handling the protocol.\n* `path` string - installation path of the app handling the protocol.\n* `name` string - display name of the app handling the protocol.\n\nThis method returns a promise that contains the application name, icon and path of the default handler for the protocol (aka URI scheme) of a URL.", + "parameters": [ + { + "name": "url", + "description": "a URL with the protocol name to check. Unlike the other methods in this family, this accepts an entire URL, including `://` at a minimum (e.g. `https://`).", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "icon", + "description": "the display icon of the app handling the protocol.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "NativeImage" + }, + { + "name": "path", + "description": "installation path of the app handling the protocol.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "name", + "description": "display name of the app handling the protocol.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appgetapplicationinfoforprotocolurl-macos-windows" + }, + { + "name": "setUserTasks", + "signature": "(tasks)", + "description": "Adds `tasks` to the Tasks category of the Jump List on Windows.\n\n`tasks` is an array of `Task` objects.\n\nWhether the call succeeded.\n\n**Note:** If you'd like to customize the Jump List even more use `app.setJumpList(categories)` instead.", + "parameters": [ + { + "name": "tasks", + "description": "Array of `Task` objects", + "required": true, + "collection": true, + "type": "Task" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#appsetusertaskstasks-windows" + }, + { + "name": "getJumpListSettings", + "signature": "()", + "description": "* `minItems` Integer - The minimum number of items that will be shown in the Jump List (for a more detailed description of this value see the MSDN docs).\n* `removedItems` JumpListItem[] - Array of `JumpListItem` objects that correspond to items that the user has explicitly removed from custom categories in the Jump List. These items must not be re-added to the Jump List in the **next** call to `app.setJumpList()`, Windows will not display any custom category that contains any of the removed items.", + "parameters": [], + "returns": { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "minItems", + "description": "The minimum number of items that will be shown in the Jump List (for a more detailed description of this value see the MSDN docs).", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "removedItems", + "description": "Array of `JumpListItem` objects that correspond to items that the user has explicitly removed from custom categories in the Jump List. These items must not be re-added to the Jump List in the **next** call to `app.setJumpList()`, Windows will not display any custom category that contains any of the removed items.", + "required": true, + "additionalTags": [], + "collection": true, + "type": "JumpListItem" + } + ] + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#appgetjumplistsettings-windows" + }, + { + "name": "setJumpList", + "signature": "(categories)", + "description": "Sets or removes a custom Jump List for the application, and returns one of the following strings:\n\n* `ok` - Nothing went wrong.\n* `error` - One or more errors occurred, enable runtime logging to figure out the likely cause.\n* `invalidSeparatorError` - An attempt was made to add a separator to a custom category in the Jump List. Separators are only allowed in the standard `Tasks` category.\n* `fileTypeRegistrationError` - An attempt was made to add a file link to the Jump List for a file type the app isn't registered to handle.\n* `customCategoryAccessDeniedError` - Custom categories can't be added to the Jump List due to user privacy or group policy settings.\n\nIf `categories` is `null` the previously set custom Jump List (if any) will be replaced by the standard Jump List for the app (managed by Windows).\n\n**Note:** If a `JumpListCategory` object has neither the `type` nor the `name` property set then its `type` is assumed to be `tasks`. If the `name` property is set but the `type` property is omitted then the `type` is assumed to be `custom`.\n\n**Note:** Users can remove items from custom categories, and Windows will not allow a removed item to be added back into a custom category until **after** the next successful call to `app.setJumpList(categories)`. Any attempt to re-add a removed item to a custom category earlier than that will result in the entire custom category being omitted from the Jump List. The list of removed items can be obtained using `app.getJumpListSettings()`.\n\n**Note:** The maximum length of a Jump List item's `description` property is 260 characters. Beyond this limit, the item will not be added to the Jump List, nor will it be displayed.\n\nHere's a very simple example of creating a custom Jump List:", + "parameters": [ + { + "name": "categories", + "description": "Array of `JumpListCategory` objects.", + "required": true, + "collection": false, + "type": [ + { + "collection": true, + "type": "JumpListCategory" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "ok", + "description": "Nothing went wrong." + }, + { + "value": "error", + "description": "One or more errors occurred, enable runtime logging to figure out the likely cause." + }, + { + "value": "invalidSeparatorError", + "description": "An attempt was made to add a separator to a custom category in the Jump List. Separators are only allowed in the standard `Tasks` category." + }, + { + "value": "fileTypeRegistrationError", + "description": "An attempt was made to add a file link to the Jump List for a file type the app isn't registered to handle." + }, + { + "value": "customCategoryAccessDeniedError", + "description": "Custom categories can't be added to the Jump List due to user privacy or group policy settings." + } + ] + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#appsetjumplistcategories-windows" + }, + { + "name": "requestSingleInstanceLock", + "signature": "([additionalData])", + "description": "The return value of this method indicates whether or not this instance of your application successfully obtained the lock. If it failed to obtain the lock, you can assume that another instance of your application is already running with the lock and exit immediately.\n\nI.e. This method returns `true` if your process is the primary instance of your application and your app should continue loading. It returns `false` if your process should immediately quit as it has sent its parameters to another instance that has already acquired the lock.\n\nOn macOS, the system enforces single instance automatically when users try to open a second instance of your app in Finder, and the `open-file` and `open-url` events will be emitted for that. However when users start your app in command line, the system's single instance mechanism will be bypassed, and you have to use this method to ensure single instance.\n\nAn example of activating the window of primary instance when a second instance starts:", + "parameters": [ + { + "name": "additionalData", + "description": "A JSON object containing additional data to send to the first instance.", + "required": false, + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "any" + }, + { + "collection": false, + "type": "any" + } + ] + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#apprequestsingleinstancelockadditionaldata" + }, + { + "name": "hasSingleInstanceLock", + "signature": "()", + "description": "This method returns whether or not this instance of your app is currently holding the single instance lock. You can request the lock with `app.requestSingleInstanceLock()` and release with `app.releaseSingleInstanceLock()`", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#apphassingleinstancelock" + }, + { + "name": "releaseSingleInstanceLock", + "signature": "()", + "description": "Releases all locks that were created by `requestSingleInstanceLock`. This will allow multiple instances of the application to once again run side by side.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#appreleasesingleinstancelock" + }, + { + "name": "setUserActivity", + "signature": "(type, userInfo[, webpageURL])", + "description": "Creates an `NSUserActivity` and sets it as the current activity. The activity is eligible for Handoff to another device afterward.", + "parameters": [ + { + "name": "type", + "description": "Uniquely identifies the activity. Maps to `NSUserActivity.activityType`.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "userInfo", + "description": "App-specific state to store for use by another device.", + "required": true, + "collection": false, + "type": "any" + }, + { + "name": "webpageURL", + "description": "The webpage to load in a browser if no suitable app is installed on the resuming device. The scheme must be `http` or `https`.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appsetuseractivitytype-userinfo-webpageurl-macos" + }, + { + "name": "getCurrentActivityType", + "signature": "()", + "description": "The type of the currently running activity.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appgetcurrentactivitytype-macos" + }, + { + "name": "invalidateCurrentActivity", + "signature": "()", + "description": "Invalidates the current Handoff user activity.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appinvalidatecurrentactivity-macos" + }, + { + "name": "resignCurrentActivity", + "signature": "()", + "description": "Marks the current Handoff user activity as inactive without invalidating it.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appresigncurrentactivity-macos" + }, + { + "name": "updateCurrentActivity", + "signature": "(type, userInfo)", + "description": "Updates the current activity if its type matches `type`, merging the entries from `userInfo` into its current `userInfo` dictionary.", + "parameters": [ + { + "name": "type", + "description": "Uniquely identifies the activity. Maps to `NSUserActivity.activityType`.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "userInfo", + "description": "App-specific state to store for use by another device.", + "required": true, + "collection": false, + "type": "any" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appupdatecurrentactivitytype-userinfo-macos" + }, + { + "name": "setAppUserModelId", + "signature": "(id)", + "description": "Changes the Application User Model ID to `id`.", + "parameters": [ + { + "name": "id", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#appsetappusermodelidid-windows" + }, + { + "name": "setActivationPolicy", + "signature": "(policy)", + "description": "Sets the activation policy for a given app.\n\nActivation policy types:\n\n* 'regular' - The application is an ordinary app that appears in the Dock and may have a user interface.\n* 'accessory' - The application doesn’t appear in the Dock and doesn’t have a menu bar, but it may be activated programmatically or by clicking on one of its windows.\n* 'prohibited' - The application doesn’t appear in the Dock and may not create windows or be activated.", + "parameters": [ + { + "name": "policy", + "description": "Can be 'regular', 'accessory', or 'prohibited'.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "regular", + "description": "" + }, + { + "value": "accessory", + "description": "" + }, + { + "value": "prohibited", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appsetactivationpolicypolicy-macos" + }, + { + "name": "importCertificate", + "signature": "(options, callback)", + "description": "Imports the certificate in pkcs12 format into the platform certificate store. `callback` is called with the `result` of import operation, a value of `0` indicates success while any other value indicates failure according to Chromium net_error_list.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "certificate", + "description": "Path for the pkcs12 file.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "password", + "description": "Passphrase for the certificate.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "callback", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "result", + "description": "Result of import.", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [ + "os_linux" + ], + "urlFragment": "#appimportcertificateoptions-callback-linux" + }, + { + "name": "configureHostResolver", + "signature": "(options)", + "description": "Configures host resolution (DNS and DNS-over-HTTPS). By default, the following resolvers will be used, in order:\n\n* DNS-over-HTTPS, if the DNS provider supports it, then\n* the built-in resolver (enabled on macOS only by default), then\n* the system's resolver (e.g. `getaddrinfo`).\n\nThis can be configured to either restrict usage of non-encrypted DNS (`secureDnsMode: \"secure\"`), or disable DNS-over-HTTPS (`secureDnsMode: \"off\"`). It is also possible to enable or disable the built-in resolver.\n\nTo disable insecure DNS, you can specify a `secureDnsMode` of `\"secure\"`. If you do so, you should make sure to provide a list of DNS-over-HTTPS servers to use, in case the user's DNS configuration does not include a provider that supports DoH.\n\nThis API must be called after the `ready` event is emitted.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "enableBuiltInResolver", + "description": "Whether the built-in host resolver is used in preference to getaddrinfo. When enabled, the built-in resolver will attempt to use the system's DNS settings to do DNS lookups itself. Enabled by default on macOS, disabled by default on Windows and Linux.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "secureDnsMode", + "description": "Can be 'off', 'automatic' or 'secure'. Configures the DNS-over-HTTP mode. When 'off', no DoH lookups will be performed. When 'automatic', DoH lookups will be performed first if DoH is available, and insecure DNS lookups will be performed as a fallback. When 'secure', only DoH lookups will be performed. Defaults to 'automatic'.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "off", + "description": "" + }, + { + "value": "automatic", + "description": "" + }, + { + "value": "secure", + "description": "" + } + ] + }, + { + "name": "secureDnsServers", + "description": "A list of DNS-over-HTTP server templates. See RFC8484 § 3 for details on the template format. Most servers support the POST method; the template for such servers is simply a URI. Note that for some DNS providers, the resolver will automatically upgrade to DoH unless DoH is explicitly disabled, even if there are no DoH servers provided in this list.", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "enableAdditionalDnsQueryTypes", + "description": "Controls whether additional DNS query types, e.g. HTTPS (DNS type 65) will be allowed besides the traditional A and AAAA queries when a request is being made via insecure DNS. Has no effect on Secure DNS which always allows additional types. Defaults to true.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appconfigurehostresolveroptions" + }, + { + "name": "disableHardwareAcceleration", + "signature": "()", + "description": "Disables hardware acceleration for current app.\n\nThis method can only be called before app is ready.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#appdisablehardwareacceleration" + }, + { + "name": "disableDomainBlockingFor3DAPIs", + "signature": "()", + "description": "By default, Chromium disables 3D APIs (e.g. WebGL) until restart on a per domain basis if the GPU processes crashes too frequently. This function disables that behavior.\n\nThis method can only be called before app is ready.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#appdisabledomainblockingfor3dapis" + }, + { + "name": "getAppMetrics", + "signature": "()", + "description": "Array of `ProcessMetric` objects that correspond to memory and CPU usage statistics of all the processes associated with the app.", + "parameters": [], + "returns": { + "collection": true, + "type": "ProcessMetric" + }, + "additionalTags": [], + "urlFragment": "#appgetappmetrics" + }, + { + "name": "getGPUFeatureStatus", + "signature": "()", + "description": "The Graphics Feature Status from `chrome://gpu/`.\n\n**Note:** This information is only usable after the `gpu-info-update` event is emitted.", + "parameters": [], + "returns": { + "collection": false, + "type": "GPUFeatureStatus" + }, + "additionalTags": [], + "urlFragment": "#appgetgpufeaturestatus" + }, + { + "name": "getGPUInfo", + "signature": "(infoType)", + "description": "For `infoType` equal to `complete`: Promise is fulfilled with `Object` containing all the GPU Information as in chromium's GPUInfo object. This includes the version and driver information that's shown on `chrome://gpu` page.\n\nFor `infoType` equal to `basic`: Promise is fulfilled with `Object` containing fewer attributes than when requested with `complete`. Here's an example of basic response:\n\nUsing `basic` should be preferred if only basic information like `vendorId` or `deviceId` is needed.", + "parameters": [ + { + "name": "infoType", + "description": "Can be `basic` or `complete`.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "basic", + "description": "" + }, + { + "value": "complete", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "unknown" + } + ] + }, + "additionalTags": [], + "urlFragment": "#appgetgpuinfoinfotype" + }, + { + "name": "setBadgeCount", + "signature": "([count])", + "description": "Whether the call succeeded.\n\nSets the counter badge for current app. Setting the count to `0` will hide the badge.\n\nOn macOS, it shows on the dock icon. On Linux, it only works for Unity launcher.\n\n**Note:** Unity launcher requires a `.desktop` file to work. For more information, please read the Unity integration documentation.\n\n**Note:** On macOS, you need to ensure that your application has the permission to display notifications for this method to work.", + "parameters": [ + { + "name": "count", + "description": "If a value is provided, set the badge to the provided value otherwise, on macOS, display a plain white dot (e.g. unknown number of notifications). On Linux, if a value is not provided the badge will not display.", + "required": false, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_linux", + "os_macos" + ], + "urlFragment": "#appsetbadgecountcount-linux-macos" + }, + { + "name": "getBadgeCount", + "signature": "()", + "description": "The current value displayed in the counter badge.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [ + "os_linux", + "os_macos" + ], + "urlFragment": "#appgetbadgecount-linux-macos" + }, + { + "name": "isUnityRunning", + "signature": "()", + "description": "Whether the current desktop environment is Unity launcher.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_linux" + ], + "urlFragment": "#appisunityrunning-linux" + }, + { + "name": "getLoginItemSettings", + "signature": "([options])", + "description": "If you provided `path` and `args` options to `app.setLoginItemSettings`, then you need to pass the same arguments here for `openAtLogin` to be set correctly.\n\n\n* `openAtLogin` boolean - `true` if the app is set to open at login.\n* `openAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app is set to open as hidden at login. This does not work on macOS 13 and up.\n* `wasOpenedAtLogin` boolean _macOS_ - `true` if the app was opened at login automatically.\n* `wasOpenedAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app was opened as a hidden login item. This indicates that the app should not open any windows at startup. This setting is not available on MAS builds or on macOS 13 and up.\n* `restoreState` boolean _macOS_ _Deprecated_ - `true` if the app was opened as a login item that should restore the state from the previous session. This indicates that the app should restore the windows that were open the last time the app was closed. This setting is not available on MAS builds or on macOS 13 and up.\n* `status` string _macOS_ - can be one of `not-registered`, `enabled`, `requires-approval`, or `not-found`.\n* `executableWillLaunchAtLogin` boolean _Windows_ - `true` if app is set to open at login and its run key is not deactivated. This differs from `openAtLogin` as it ignores the `args` option, this property will be true if the given executable would be launched at login with **any** arguments.\n* `launchItems` Object[] _Windows_\n * `name` string _Windows_ - name value of a registry entry.\n * `path` string _Windows_ - The executable to an app that corresponds to a registry entry.\n * `args` string[] _Windows_ - the command-line arguments to pass to the executable.\n * `scope` string _Windows_ - one of `user` or `machine`. Indicates whether the registry entry is under `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.\n * `enabled` boolean _Windows_ - `true` if the app registry key is startup approved and therefore shows as `enabled` in Task Manager and Windows settings.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "type", + "description": "Can be one of `mainAppService`, `agentService`, `daemonService`, or `loginItemService`. Defaults to `mainAppService`. Only available on macOS 13 and up. See app.setLoginItemSettings for more information about each type.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "serviceName", + "description": "The name of the service. Required if `type` is non-default. Only available on macOS 13 and up.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "The executable path to compare against. Defaults to `process.execPath`.", + "required": false, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "args", + "description": "The command-line arguments to compare against. Defaults to an empty array.", + "required": false, + "additionalTags": [ + "os_windows" + ], + "collection": true, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "openAtLogin", + "description": "`true` if the app is set to open at login.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "openAsHidden", + "description": "`true` if the app is set to open as hidden at login. This does not work on macOS 13 and up.", + "required": true, + "additionalTags": [ + "os_macos", + "stability_deprecated" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "wasOpenedAtLogin", + "description": "`true` if the app was opened at login automatically.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "wasOpenedAsHidden", + "description": "`true` if the app was opened as a hidden login item. This indicates that the app should not open any windows at startup. This setting is not available on MAS builds or on macOS 13 and up.", + "required": true, + "additionalTags": [ + "os_macos", + "stability_deprecated" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "restoreState", + "description": "`true` if the app was opened as a login item that should restore the state from the previous session. This indicates that the app should restore the windows that were open the last time the app was closed. This setting is not available on MAS builds or on macOS 13 and up.", + "required": true, + "additionalTags": [ + "os_macos", + "stability_deprecated" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "status", + "description": "can be one of `not-registered`, `enabled`, `requires-approval`, or `not-found`.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "executableWillLaunchAtLogin", + "description": "`true` if app is set to open at login and its run key is not deactivated. This differs from `openAtLogin` as it ignores the `args` option, this property will be true if the given executable would be launched at login with **any** arguments.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "launchItems", + "description": "", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": true, + "type": "Object", + "properties": [ + { + "name": "name", + "description": "name value of a registry entry.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "The executable to an app that corresponds to a registry entry.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "args", + "description": "the command-line arguments to pass to the executable.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "scope", + "description": "one of `user` or `machine`. Indicates whether the registry entry is under `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "enabled", + "description": "`true` if the app registry key is startup approved and therefore shows as `enabled` in Task Manager and Windows settings.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "boolean" + } + ] + } + ] + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appgetloginitemsettingsoptions-macos-windows" + }, + { + "name": "setLoginItemSettings", + "signature": "(settings)", + "description": "Set the app's login item settings.\n\nTo work with Electron's `autoUpdater` on Windows, which uses Squirrel, you'll want to set the launch path to Update.exe, and pass arguments that specify your application name. For example:\n\nFor more information about setting different services as login items on macOS 13 and up, see `SMAppService`.", + "parameters": [ + { + "name": "settings", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "openAtLogin", + "description": "`true` to open the app at login, `false` to remove the app as a login item. Defaults to `false`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "openAsHidden", + "description": "`true` to open the app as hidden. Defaults to `false`. The user can edit this setting from the System Preferences so `app.getLoginItemSettings().wasOpenedAsHidden` should be checked when the app is opened to know the current value. This setting is not available on MAS builds or on macOS 13 and up.", + "required": false, + "additionalTags": [ + "os_macos", + "stability_deprecated" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "type", + "description": "The type of service to add as a login item. Defaults to `mainAppService`. Only available on macOS 13 and up.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "mainAppService", + "description": "The primary application." + }, + { + "value": "agentService", + "description": "The property list name for a launch agent. The property list name must correspond to a property list in the app’s `Contents/Library/LaunchAgents` directory." + }, + { + "value": "daemonService", + "description": "The property list name for a launch agent. The property list name must correspond to a property list in the app’s `Contents/Library/LaunchDaemons` directory." + }, + { + "value": "loginItemService", + "description": "The property list name for a login item service. The property list name must correspond to a property list in the app’s `Contents/Library/LoginItems` directory." + } + ] + }, + { + "name": "serviceName", + "description": "The name of the service. Required if `type` is non-default. Only available on macOS 13 and up.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "The executable to launch at login. Defaults to `process.execPath`.", + "required": false, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "args", + "description": "The command-line arguments to pass to the executable. Defaults to an empty array. Take care to wrap paths in quotes.", + "required": false, + "additionalTags": [ + "os_windows" + ], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "enabled", + "description": "`true` will change the startup approved registry key and `enable / disable` the App in Task Manager and Windows Settings. Defaults to `true`.", + "required": false, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "name", + "description": "value name to write into registry. Defaults to the app's AppUserModelId().", + "required": false, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appsetloginitemsettingssettings-macos-windows" + }, + { + "name": "isAccessibilitySupportEnabled", + "signature": "()", + "description": "`true` if Chrome's accessibility support is enabled, `false` otherwise. This API will return `true` if the use of assistive technologies, such as screen readers, has been detected. See https://www.chromium.org/developers/design-documents/accessibility for more details.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appisaccessibilitysupportenabled-macos-windows" + }, + { + "name": "setAccessibilitySupportEnabled", + "signature": "(enabled)", + "description": "Manually enables Chrome's accessibility support, allowing to expose accessibility switch to users in application settings. See Chromium's accessibility docs for more details. Disabled by default.\n\nThis API must be called after the `ready` event is emitted.\n\n**Note:** Rendering accessibility tree can significantly affect the performance of your app. It should not be enabled by default.", + "parameters": [ + { + "name": "enabled", + "description": "Enable or disable accessibility tree rendering", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appsetaccessibilitysupportenabledenabled-macos-windows" + }, + { + "name": "showAboutPanel", + "signature": "()", + "description": "Show the app's about panel options. These options can be overridden with `app.setAboutPanelOptions(options)`. This function runs asynchronously.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#appshowaboutpanel" + }, + { + "name": "setAboutPanelOptions", + "signature": "(options)", + "description": "Set the about panel options. This will override the values defined in the app's `.plist` file on macOS. See the Apple docs for more details. On Linux, values must be set in order to be shown; there are no defaults.\n\nIf you do not set `credits` but still wish to surface them in your app, AppKit will look for a file named \"Credits.html\", \"Credits.rtf\", and \"Credits.rtfd\", in that order, in the bundle returned by the NSBundle class method main. The first file found is used, and if none is found, the info area is left blank. See Apple documentation for more information.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "applicationName", + "description": "The app's name.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "applicationVersion", + "description": "The app's version.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "copyright", + "description": "Copyright information.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "version", + "description": "The app's build version number.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "credits", + "description": "Credit information.", + "required": false, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "authors", + "description": "List of app authors.", + "required": false, + "additionalTags": [ + "os_linux" + ], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "website", + "description": "The app's website.", + "required": false, + "additionalTags": [ + "os_linux" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "iconPath", + "description": "Path to the app's icon in a JPEG or PNG file format. On Linux, will be shown as 64x64 pixels while retaining aspect ratio. On Windows, a 48x48 PNG will result in the best visual quality.", + "required": false, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appsetaboutpaneloptionsoptions" + }, + { + "name": "isEmojiPanelSupported", + "signature": "()", + "description": "whether or not the current OS version allows for native emoji pickers.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#appisemojipanelsupported" + }, + { + "name": "showEmojiPanel", + "signature": "()", + "description": "Show the platform's native emoji picker.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appshowemojipanel-macos-windows" + }, + { + "name": "startAccessingSecurityScopedResource", + "signature": "(bookmarkData)", + "description": "This function **must** be called once you have finished accessing the security scoped file. If you do not remember to stop accessing the bookmark, kernel resources will be leaked and your app will lose its ability to reach outside the sandbox completely, until your app is restarted.\n\nStart accessing a security scoped resource. With this method Electron applications that are packaged for the Mac App Store may reach outside their sandbox to access files chosen by the user. See Apple's documentation for a description of how this system works.", + "parameters": [ + { + "name": "bookmarkData", + "description": "The base64 encoded security scoped bookmark data returned by the `dialog.showOpenDialog` or `dialog.showSaveDialog` methods.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "Function", + "parameters": [], + "returns": null + }, + "additionalTags": [ + "os_mas" + ], + "urlFragment": "#appstartaccessingsecurityscopedresourcebookmarkdata-mas" + }, + { + "name": "enableSandbox", + "signature": "()", + "description": "Enables full sandbox mode on the app. This means that all renderers will be launched sandboxed, regardless of the value of the `sandbox` flag in `WebPreferences`.\n\nThis method can only be called before app is ready.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#appenablesandbox" + }, + { + "name": "isInApplicationsFolder", + "signature": "()", + "description": "Whether the application is currently running from the systems Application folder. Use in combination with `app.moveToApplicationsFolder()`", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appisinapplicationsfolder-macos" + }, + { + "name": "moveToApplicationsFolder", + "signature": "([options])", + "description": "Whether the move was successful. Please note that if the move is successful, your application will quit and relaunch.\n\nNo confirmation dialog will be presented by default. If you wish to allow the user to confirm the operation, you may do so using the `dialog` API.\n\n**NOTE:** This method throws errors if anything other than the user causes the move to fail. For instance if the user cancels the authorization dialog, this method returns false. If we fail to perform the copy, then this method will throw an error. The message in the error should be informative and tell you exactly what went wrong.\n\nBy default, if an app of the same name as the one being moved exists in the Applications directory and is _not_ running, the existing app will be trashed and the active app moved into its place. If it _is_ running, the preexisting running app will assume focus and the previously active app will quit itself. This behavior can be changed by providing the optional conflict handler, where the boolean returned by the handler determines whether or not the move conflict is resolved with default behavior. i.e. returning `false` will ensure no further action is taken, returning `true` will result in the default behavior and the method continuing.\n\nFor example:\n\nWould mean that if an app already exists in the user directory, if the user chooses to 'Continue Move' then the function would continue with its default behavior and the existing app will be trashed and the active app moved into its place.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "conflictHandler", + "description": "A handler for potential conflict in move failure.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "conflictType", + "description": "The type of move conflict encountered by the handler; can be `exists` or `existsAndRunning`, where `exists` means that an app of the same name is present in the Applications directory and `existsAndRunning` means both that it exists and that it's presently running.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "exists", + "description": "" + }, + { + "value": "existsAndRunning", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "boolean" + } + } + ] + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appmovetoapplicationsfolderoptions-macos" + }, + { + "name": "isSecureKeyboardEntryEnabled", + "signature": "()", + "description": "whether `Secure Keyboard Entry` is enabled.\n\nBy default this API will return `false`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appissecurekeyboardentryenabled-macos" + }, + { + "name": "setSecureKeyboardEntryEnabled", + "signature": "(enabled)", + "description": "Set the `Secure Keyboard Entry` is enabled in your application.\n\nBy using this API, important information such as password and other sensitive information can be prevented from being intercepted by other processes.\n\nSee Apple's documentation for more details.\n\n**Note:** Enable `Secure Keyboard Entry` only when it is needed and disable it when it is no longer needed.", + "parameters": [ + { + "name": "enabled", + "description": "Enable or disable `Secure Keyboard Entry`", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#appsetsecurekeyboardentryenabledenabled-macos" + }, + { + "name": "setProxy", + "signature": "(config)", + "description": "", + "parameters": [ + { + "name": "config", + "description": "", + "required": true, + "collection": false, + "type": "ProxyConfig" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appsetproxyconfig" + }, + { + "name": "resolveProxy", + "signature": "(url)", + "description": "Resolves with the proxy information for `url` that will be used when attempting to make requests using Net in the utility process.", + "parameters": [ + { + "name": "url", + "description": "", + "required": true, + "collection": false, + "type": "URL" + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + "additionalTags": [], + "urlFragment": "#appresolveproxyurl" + }, + { + "name": "setClientCertRequestPasswordHandler", + "signature": "(handler)", + "description": "The handler is called when a password is needed to unlock a client certificate for `hostname`.", + "parameters": [ + { + "name": "handler", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "clientCertRequestParams", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "hostname", + "description": "the hostname of the site requiring a client certificate", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "tokenName", + "description": "the token (or slot) name of the cryptographic device", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "isRetry", + "description": "whether there have been previous failed attempts at prompting the password", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#appsetclientcertrequestpasswordhandlerhandler--linux" + } + ], + "properties": [ + { + "name": "accessibilitySupportEnabled", + "description": "A `boolean` property that's `true` if Chrome's accessibility support is enabled, `false` otherwise. This property will be `true` if the use of assistive technologies, such as screen readers, has been detected. Setting this property to `true` manually enables Chrome's accessibility support, allowing developers to expose accessibility switch to users in application settings.\n\nSee Chromium's accessibility docs for more details. Disabled by default.\n\nThis API must be called after the `ready` event is emitted.\n\n**Note:** Rendering accessibility tree can significantly affect the performance of your app. It should not be enabled by default.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#appaccessibilitysupportenabled-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "applicationMenu", + "description": "A `Menu | null` property that returns `Menu` if one has been set and `null` otherwise. Users can pass a Menu to set this property.", + "required": true, + "additionalTags": [], + "urlFragment": "#appapplicationmenu", + "collection": false, + "type": [ + { + "collection": false, + "type": "Menu" + }, + { + "type": "null", + "collection": false + } + ] + }, + { + "name": "badgeCount", + "description": "An `Integer` property that returns the badge count for current app. Setting the count to `0` will hide the badge.\n\nOn macOS, setting this with any nonzero integer shows on the dock icon. On Linux, this property only works for Unity launcher.\n\n**Note:** Unity launcher requires a `.desktop` file to work. For more information, please read the Unity integration documentation.\n\n**Note:** On macOS, you need to ensure that your application has the permission to display notifications for this property to take effect.", + "required": true, + "additionalTags": [ + "os_linux", + "os_macos" + ], + "urlFragment": "#appbadgecount-linux-macos", + "collection": false, + "type": "Integer" + }, + { + "name": "commandLine", + "description": "A `CommandLine` object that allows you to read and manipulate the command line arguments that Chromium uses.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#appcommandline-readonly", + "collection": false, + "type": "CommandLine" + }, + { + "name": "dock", + "description": "A `Dock` `| undefined` object that allows you to perform actions on your app icon in the user's dock on macOS.", + "required": true, + "additionalTags": [ + "os_macos", + "availability_readonly" + ], + "urlFragment": "#appdock-macos-readonly", + "collection": false, + "type": "Dock" + }, + { + "name": "isPackaged", + "description": "A `boolean` property that returns `true` if the app is packaged, `false` otherwise. For many apps, this property can be used to distinguish development and production environments.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#appispackaged-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "name", + "description": "A `string` property that indicates the current application's name, which is the name in the application's `package.json` file.\n\nUsually the `name` field of `package.json` is a short lowercase name, according to the npm modules spec. You should usually also specify a `productName` field, which is your application's full capitalized name, and which will be preferred over `name` by Electron.", + "required": true, + "additionalTags": [], + "urlFragment": "#appname", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "userAgentFallback", + "description": "A `string` which is the user agent string Electron will use as a global fallback.\n\nThis is the user agent that will be used when no user agent is set at the `webContents` or `session` level. It is useful for ensuring that your entire app has the same user agent. Set to a custom value as early as possible in your app's initialization to ensure that your overridden value is used.", + "required": true, + "additionalTags": [], + "urlFragment": "#appuseragentfallback", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "runningUnderARM64Translation", + "description": "A `boolean` which when `true` indicates that the app is currently running under an ARM64 translator (like the macOS Rosetta Translator Environment or Windows WOW).\n\nYou can use this property to prompt users to download the arm64 version of your application when they are mistakenly running the x64 version under Rosetta or WOW.", + "required": true, + "additionalTags": [ + "availability_readonly", + "os_macos", + "os_windows" + ], + "urlFragment": "#apprunningunderarm64translation-readonly-macos-windows", + "collection": false, + "type": "boolean" + } + ], + "events": [ + { + "name": "will-finish-launching", + "description": "Emitted when the application has finished basic startup. On Windows and Linux, the `will-finish-launching` event is the same as the `ready` event; on macOS, this event represents the `applicationWillFinishLaunching` notification of `NSApplication`.\n\nIn most cases, you should do everything in the `ready` event handler.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-will-finish-launching" + }, + { + "name": "ready", + "description": "Emitted once, when Electron has finished initializing. On macOS, `launchInfo` holds the `userInfo` of the `NSUserNotification` or information from `UNNotificationResponse` that was used to open the application, if it was launched from Notification Center. You can also call `app.isReady()` to check if this event has already fired and `app.whenReady()` to get a Promise that is fulfilled when Electron is initialized.\n\n**Note**: The `ready` event is only fired after the main process has finished running the first tick of the event loop. If an Electron API needs to be called before the `ready` event, ensure that it is called synchronously in the top-level context of the main process.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "launchInfo", + "description": "", + "collection": false, + "type": [ + { + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "any" + } + ] + }, + { + "collection": false, + "type": "NotificationResponse" + } + ], + "additionalTags": [ + "os_macos" + ], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-ready" + }, + { + "name": "window-all-closed", + "description": "Emitted when all windows have been closed.\n\nIf you do not subscribe to this event and all windows are closed, the default behavior is to quit the app; however, if you subscribe, you control whether the app quits or not. If the user pressed `Cmd + Q`, or the developer called `app.quit()`, Electron will first try to close all the windows and then emit the `will-quit` event, and in this case the `window-all-closed` event would not be emitted.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-window-all-closed" + }, + { + "name": "before-quit", + "description": "Emitted before the application starts closing its windows. Calling `event.preventDefault()` will prevent the default behavior, which is terminating the application.\n\n**Note:** If application quit was initiated by `autoUpdater.quitAndInstall()`, then `before-quit` is emitted _after_ emitting `close` event on all windows and closing them.\n\n**Note:** On Windows, this event will not be emitted if the app is closed due to a shutdown/restart of the system or a user logout.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-before-quit" + }, + { + "name": "will-quit", + "description": "Emitted when all windows have been closed and the application will quit. Calling `event.preventDefault()` will prevent the default behavior, which is terminating the application.\n\nSee the description of the `window-all-closed` event for the differences between the `will-quit` and `window-all-closed` events.\n\n**Note:** On Windows, this event will not be emitted if the app is closed due to a shutdown/restart of the system or a user logout.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-will-quit" + }, + { + "name": "quit", + "description": "Emitted when the application is quitting.\n\n**Note:** On Windows, this event will not be emitted if the app is closed due to a shutdown/restart of the system or a user logout.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "exitCode", + "description": "", + "collection": false, + "type": "Integer", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-quit" + }, + { + "name": "open-file", + "description": "Emitted when the user wants to open a file with the application. The `open-file` event is usually emitted when the application is already open and the OS wants to reuse the application to open the file. `open-file` is also emitted when a file is dropped onto the dock and the application is not yet running. Make sure to listen for the `open-file` event very early in your application startup to handle this case (even before the `ready` event is emitted).\n\nYou should call `event.preventDefault()` if you want to handle this event.\n\nOn Windows, you have to parse `process.argv` (in the main process) to get the filepath.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "path", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-open-file-macos" + }, + { + "name": "open-url", + "description": "Emitted when the user wants to open a URL with the application. Your application's `Info.plist` file must define the URL scheme within the `CFBundleURLTypes` key, and set `NSPrincipalClass` to `AtomApplication`.\n\nAs with the `open-file` event, be sure to register a listener for the `open-url` event early in your application startup to detect if the application is being opened to handle a URL. If you register the listener in response to a `ready` event, you'll miss URLs that trigger the launch of your application.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "url", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-open-url-macos" + }, + { + "name": "activate", + "description": "Emitted when the application is activated. Various actions can trigger this event, such as launching the application for the first time, attempting to re-launch the application when it's already running, or clicking on the application's dock or taskbar icon.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "hasVisibleWindows", + "description": "", + "collection": false, + "type": "boolean", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-activate-macos" + }, + { + "name": "did-become-active", + "description": "Emitted when the application becomes active. This differs from the `activate` event in that `did-become-active` is emitted every time the app becomes active, not only when Dock icon is clicked or application is re-launched. It is also emitted when a user switches to the app via the macOS App Switcher.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-did-become-active-macos" + }, + { + "name": "did-resign-active", + "description": "Emitted when the app is no longer active and doesn’t have focus. This can be triggered, for example, by clicking on another application or by using the macOS App Switcher to switch to another application.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-did-resign-active-macos" + }, + { + "name": "continue-activity", + "description": "Emitted during Handoff when an activity from a different device wants to be resumed. You should call `event.preventDefault()` if you want to handle this event.\n\nA user activity can be continued only in an app that has the same developer Team ID as the activity's source app and that supports the activity's type. Supported activity types are specified in the app's `Info.plist` under the `NSUserActivityTypes` key.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "type", + "description": "A string identifying the activity. Maps to `NSUserActivity.activityType`.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "userInfo", + "description": "Contains app-specific state stored by the activity on another device.", + "collection": false, + "type": "unknown", + "additionalTags": [], + "required": true + }, + { + "name": "details", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "webpageURL", + "description": "A string identifying the URL of the webpage accessed by the activity on another device, if available.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-continue-activity-macos" + }, + { + "name": "will-continue-activity", + "description": "Emitted during Handoff before an activity from a different device wants to be resumed. You should call `event.preventDefault()` if you want to handle this event.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "type", + "description": "A string identifying the activity. Maps to `NSUserActivity.activityType`.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-will-continue-activity-macos" + }, + { + "name": "continue-activity-error", + "description": "Emitted during Handoff when an activity from a different device fails to be resumed.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "type", + "description": "A string identifying the activity. Maps to `NSUserActivity.activityType`.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "error", + "description": "A string with the error's localized description.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-continue-activity-error-macos" + }, + { + "name": "activity-was-continued", + "description": "Emitted during Handoff after an activity from this device was successfully resumed on another one.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "type", + "description": "A string identifying the activity. Maps to `NSUserActivity.activityType`.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "userInfo", + "description": "Contains app-specific state stored by the activity.", + "collection": false, + "type": "unknown", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-activity-was-continued-macos" + }, + { + "name": "update-activity-state", + "description": "Emitted when Handoff is about to be resumed on another device. If you need to update the state to be transferred, you should call `event.preventDefault()` immediately, construct a new `userInfo` dictionary and call `app.updateCurrentActivity()` in a timely manner. Otherwise, the operation will fail and `continue-activity-error` will be called.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "type", + "description": "A string identifying the activity. Maps to `NSUserActivity.activityType`.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "userInfo", + "description": "Contains app-specific state stored by the activity.", + "collection": false, + "type": "unknown", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-update-activity-state-macos" + }, + { + "name": "new-window-for-tab", + "description": "Emitted when the user clicks the native macOS new tab button. The new tab button is only visible if the current `BrowserWindow` has a `tabbingIdentifier`", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-new-window-for-tab-macos" + }, + { + "name": "browser-window-blur", + "description": "Emitted when a browserWindow gets blurred.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "window", + "description": "", + "collection": false, + "type": "BrowserWindow", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-browser-window-blur" + }, + { + "name": "browser-window-focus", + "description": "Emitted when a browserWindow gets focused.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "window", + "description": "", + "collection": false, + "type": "BrowserWindow", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-browser-window-focus" + }, + { + "name": "browser-window-created", + "description": "Emitted when a new browserWindow is created.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "window", + "description": "", + "collection": false, + "type": "BrowserWindow", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-browser-window-created" + }, + { + "name": "web-contents-created", + "description": "Emitted when a new webContents is created.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "webContents", + "description": "", + "collection": false, + "type": "WebContents", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-web-contents-created" + }, + { + "name": "certificate-error", + "description": "Emitted when failed to verify the `certificate` for `url`, to trust the certificate you should prevent the default behavior with `event.preventDefault()` and call `callback(true)`.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "webContents", + "description": "", + "collection": false, + "type": "WebContents", + "additionalTags": [], + "required": true + }, + { + "name": "url", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "error", + "description": "The error code", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "certificate", + "description": "", + "collection": false, + "type": "Certificate", + "additionalTags": [], + "required": true + }, + { + "name": "callback", + "description": "", + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "isTrusted", + "description": "Whether to consider the certificate as trusted", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "required": true + }, + { + "name": "isMainFrame", + "description": "", + "collection": false, + "type": "boolean", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-certificate-error" + }, + { + "name": "select-client-certificate", + "description": "Emitted when a client certificate is requested.\n\nThe `url` corresponds to the navigation entry requesting the client certificate and `callback` can be called with an entry filtered from the list. Using `event.preventDefault()` prevents the application from using the first certificate from the store.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "webContents", + "description": "", + "collection": false, + "type": "WebContents", + "additionalTags": [], + "required": true + }, + { + "name": "url", + "description": "", + "collection": false, + "type": "URL", + "additionalTags": [], + "required": true + }, + { + "name": "certificateList", + "description": "", + "collection": true, + "type": "Certificate", + "additionalTags": [], + "required": true + }, + { + "name": "callback", + "description": "", + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "certificate", + "description": "", + "required": false, + "collection": false, + "type": "Certificate" + } + ], + "returns": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-select-client-certificate" + }, + { + "name": "login", + "description": "Emitted when `webContents` or Utility process wants to do basic auth.\n\nThe default behavior is to cancel all authentications. To override this you should prevent the default behavior with `event.preventDefault()` and call `callback(username, password)` with the credentials.\n\nIf `callback` is called without a username or password, the authentication request will be cancelled and the authentication error will be returned to the page.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "webContents", + "description": "", + "collection": false, + "type": "WebContents", + "additionalTags": [], + "required": true + }, + { + "name": "authenticationResponseDetails", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "url", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "URL" + }, + { + "name": "pid", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "number" + } + ], + "additionalTags": [], + "required": true + }, + { + "name": "authInfo", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "isProxy", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "scheme", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "host", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "port", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "realm", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "additionalTags": [], + "required": true + }, + { + "name": "callback", + "description": "", + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "username", + "description": "", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "password", + "description": "", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-login" + }, + { + "name": "gpu-info-update", + "description": "Emitted whenever there is a GPU info update.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-gpu-info-update" + }, + { + "name": "render-process-gone", + "description": "Emitted when the renderer process unexpectedly disappears. This is normally because it was crashed or killed.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "webContents", + "description": "", + "collection": false, + "type": "WebContents", + "additionalTags": [], + "required": true + }, + { + "name": "details", + "description": "", + "collection": false, + "type": "RenderProcessGoneDetails", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-render-process-gone" + }, + { + "name": "child-process-gone", + "description": "Emitted when the child process unexpectedly disappears. This is normally because it was crashed or killed. It does not include renderer processes.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "details", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "type", + "description": "Process type. One of the following values:", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "Utility", + "description": "" + }, + { + "value": "Zygote", + "description": "" + }, + { + "value": "Sandbox helper", + "description": "" + }, + { + "value": "GPU", + "description": "" + }, + { + "value": "Pepper Plugin", + "description": "" + }, + { + "value": "Pepper Plugin Broker", + "description": "" + }, + { + "value": "Unknown", + "description": "" + } + ] + }, + { + "name": "reason", + "description": "The reason the child process is gone. Possible values:", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "clean-exit", + "description": "Process exited with an exit code of zero" + }, + { + "value": "abnormal-exit", + "description": "Process exited with a non-zero exit code" + }, + { + "value": "killed", + "description": "Process was sent a SIGTERM or otherwise killed externally" + }, + { + "value": "crashed", + "description": "Process crashed" + }, + { + "value": "oom", + "description": "Process ran out of memory" + }, + { + "value": "launch-failed", + "description": "Process never successfully launched" + }, + { + "value": "integrity-failure", + "description": "Windows code integrity checks failed" + } + ] + }, + { + "name": "exitCode", + "description": "The exit code for the process (e.g. status from waitpid if on posix, from GetExitCodeProcess on Windows).", + "required": true, + "additionalTags": [], + "collection": false, + "type": "number" + }, + { + "name": "serviceName", + "description": "The non-localized name of the process.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "name", + "description": "The name of the process. Examples for utility: `Audio Service`, `Content Decryption Module Service`, `Network Service`, `Video Capture`, etc.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-child-process-gone" + }, + { + "name": "accessibility-support-changed", + "description": "Emitted when Chrome's accessibility support changes. This event fires when assistive technologies, such as screen readers, are enabled or disabled. See https://www.chromium.org/developers/design-documents/accessibility for more details.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "accessibilitySupportEnabled", + "description": "`true` when Chrome's accessibility support is enabled, `false` otherwise.", + "collection": false, + "type": "boolean", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-accessibility-support-changed-macos-windows" + }, + { + "name": "session-created", + "description": "Emitted when Electron has created a new `session`.", + "parameters": [ + { + "name": "session", + "description": "", + "collection": false, + "type": "Session", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-session-created" + }, + { + "name": "second-instance", + "description": "This event will be emitted inside the primary instance of your application when a second instance has been executed and calls `app.requestSingleInstanceLock()`.\n\n`argv` is an Array of the second instance's command line arguments, and `workingDirectory` is its current working directory. Usually applications respond to this by making their primary window focused and non-minimized.\n\n**Note:** `argv` will not be exactly the same list of arguments as those passed to the second instance. The order might change and additional arguments might be appended. If you need to maintain the exact same arguments, it's advised to use `additionalData` instead.\n\n**Note:** If the second instance is started by a different user than the first, the `argv` array will not include the arguments.\n\nThis event is guaranteed to be emitted after the `ready` event of `app` gets emitted.\n\n**Note:** Extra command line arguments might be added by Chromium, such as `--original-process-start-time`.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "argv", + "description": "An array of the second instance's command line arguments", + "collection": true, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "workingDirectory", + "description": "The second instance's working directory", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "additionalData", + "description": "A JSON object of additional data passed from the second instance", + "collection": false, + "type": "unknown", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-second-instance" + } + ], + "exportedClasses": [] + }, + { + "name": "autoUpdater", + "description": "> Enable apps to automatically update themselves.\n\nProcess: Main\n\n**See also: A detailed guide about how to implement updates in your application.**\n\n`autoUpdater` is an EventEmitter.\n\n### Platform Notices\n\nCurrently, only macOS and Windows are supported. There is no built-in support for auto-updater on Linux, so it is recommended to use the distribution's package manager to update your app.\n\nIn addition, there are some subtle differences on each platform:\n\n### macOS\n\nOn macOS, the `autoUpdater` module is built upon Squirrel.Mac, meaning you don't need any special setup to make it work. For server-side requirements, you can read Server Support. Note that App Transport Security (ATS) applies to all requests made as part of the update process. Apps that need to disable ATS can add the `NSAllowsArbitraryLoads` key to their app's plist.\n\n**Note:** Your application must be signed for automatic updates on macOS. This is a requirement of `Squirrel.Mac`.\n\n### Windows\n\nOn Windows, you have to install your app into a user's machine before you can use the `autoUpdater`, so it is recommended that you use the electron-winstaller, Electron Forge or the grunt-electron-installer package to generate a Windows installer.\n\nWhen using electron-winstaller or Electron Forge make sure you do not try to update your app the first time it runs (Also see this issue for more info). It's also recommended to use electron-squirrel-startup to get desktop shortcuts for your app.\n\nThe installer generated with Squirrel will create a shortcut icon with an Application User Model ID in the format of `com.squirrel.PACKAGE_ID.YOUR_EXE_WITHOUT_DOT_EXE`, examples are `com.squirrel.slack.Slack` and `com.squirrel.code.Code`. You have to use the same ID for your app with `app.setAppUserModelId` API, otherwise Windows will not be able to pin your app properly in task bar.\n\nLike Squirrel.Mac, Windows can host updates on S3 or any other static file host. You can read the documents of Squirrel.Windows to get more details about how Squirrel.Windows works.", + "slug": "auto-updater", + "websiteUrl": "https://electronjs.org/docs/api/auto-updater", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/auto-updater.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "setFeedURL", + "signature": "(options)", + "description": "Sets the `url` and initialize the auto updater.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "url", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "headers", + "description": "HTTP request headers.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "serverType", + "description": "Can be `json` or `default`, see the Squirrel.Mac README for more information.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "json", + "description": "" + }, + { + "value": "default", + "description": "" + } + ] + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#autoupdatersetfeedurloptions" + }, + { + "name": "getFeedURL", + "signature": "()", + "description": "The current update feed URL.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#autoupdatergetfeedurl" + }, + { + "name": "checkForUpdates", + "signature": "()", + "description": "Asks the server whether there is an update. You must call `setFeedURL` before using this API.\n\n**Note:** If an update is available it will be downloaded automatically. Calling `autoUpdater.checkForUpdates()` twice will download the update two times.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#autoupdatercheckforupdates" + }, + { + "name": "quitAndInstall", + "signature": "()", + "description": "Restarts the app and installs the update after it has been downloaded. It should only be called after `update-downloaded` has been emitted.\n\nUnder the hood calling `autoUpdater.quitAndInstall()` will close all application windows first, and automatically call `app.quit()` after all windows have been closed.\n\n**Note:** It is not strictly necessary to call this function to apply an update, as a successfully downloaded update will always be applied the next time the application starts.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#autoupdaterquitandinstall" + } + ], + "properties": [], + "events": [ + { + "name": "error", + "description": "Emitted when there is an error while updating.", + "parameters": [ + { + "name": "error", + "description": "", + "collection": false, + "type": "Error", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-error" + }, + { + "name": "checking-for-update", + "description": "Emitted when checking if an update has started.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-checking-for-update" + }, + { + "name": "update-available", + "description": "Emitted when there is an available update. The update is downloaded automatically.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-update-available" + }, + { + "name": "update-not-available", + "description": "Emitted when there is no available update.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-update-not-available" + }, + { + "name": "update-downloaded", + "description": "Emitted when an update has been downloaded.\n\nOn Windows only `releaseName` is available.\n\n**Note:** It is not strictly necessary to handle this event. A successfully downloaded update will still be applied the next time the application starts.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "releaseNotes", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "releaseName", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "releaseDate", + "description": "", + "collection": false, + "type": "Date", + "additionalTags": [], + "required": true + }, + { + "name": "updateURL", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-update-downloaded" + }, + { + "name": "before-quit-for-update", + "description": "This event is emitted after a user calls `quitAndInstall()`.\n\nWhen this API is called, the `before-quit` event is not emitted before all windows are closed. As a result you should listen to this event if you wish to perform actions before the windows are closed while a process is quitting, as well as listening to `before-quit`.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-before-quit-for-update" + } + ], + "exportedClasses": [] + }, + { + "name": "BaseWindow", + "description": "> Create and control windows.\n\nProcess: Main\n\n> **Note** `BaseWindow` provides a flexible way to compose multiple web views in a single window. For windows with only a single, full-size web view, the `BrowserWindow` class may be a simpler option.\n\nThis module cannot be used until the `ready` event of the `app` module is emitted.\n\n### Parent and child windows\n\nBy using `parent` option, you can create child windows:\n\n```\nconst { BaseWindow } = require('electron')\n\nconst parent = new BaseWindow()\nconst child = new BaseWindow({ parent })\n```\n\nThe `child` window will always show on top of the `parent` window.\n\n### Modal windows\n\nA modal window is a child window that disables parent window. To create a modal window, you have to set both the `parent` and `modal` options:\n\n```\nconst { BaseWindow } = require('electron')\n\nconst parent = new BaseWindow()\nconst child = new BaseWindow({ parent, modal: true })\n```\n\n### Platform notices\n\n* On macOS modal windows will be displayed as sheets attached to the parent window.\n* On macOS the child windows will keep the relative position to parent window when parent window moves, while on Windows and Linux child windows will not move.\n* On Linux the type of modal windows will be changed to `dialog`.\n* On Linux many desktop environments do not support hiding a modal window.\n\n### Class: BaseWindow\n\n> Create and control windows.\n\nProcess: Main\n\n`BaseWindow` is an EventEmitter.\n\nIt creates a new `BaseWindow` with native properties as set by the `options`.", + "slug": "base-window", + "websiteUrl": "https://electronjs.org/docs/api/base-window", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/base-window.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "constructorMethod": { + "signature": "([options])", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindowConstructorOptions" + } + ] + }, + "staticMethods": [ + { + "name": "getAllWindows", + "signature": "()", + "description": "An array of all opened browser windows.", + "parameters": [], + "returns": { + "collection": true, + "type": "BaseWindow" + }, + "additionalTags": [], + "urlFragment": "#basewindowgetallwindows" + }, + { + "name": "getFocusedWindow", + "signature": "()", + "description": "The window that is focused in this application, otherwise returns `null`.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BaseWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#basewindowgetfocusedwindow" + }, + { + "name": "fromId", + "signature": "(id)", + "description": "The window with the given `id`.", + "parameters": [ + { + "name": "id", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BaseWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#basewindowfromidid" + } + ], + "staticProperties": [], + "instanceMethods": [ + { + "name": "setContentView", + "signature": "(view)", + "description": "Sets the content view of the window.", + "parameters": [ + { + "name": "view", + "description": "", + "required": true, + "collection": false, + "type": "View" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetcontentviewview" + }, + { + "name": "getContentView", + "signature": "()", + "description": "Returns View - The content view of the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#wingetcontentview" + }, + { + "name": "destroy", + "signature": "()", + "description": "Force closing the window, the `unload` and `beforeunload` event won't be emitted for the web page, and `close` event will also not be emitted for this window, but it guarantees the `closed` event will be emitted.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#windestroy" + }, + { + "name": "close", + "signature": "()", + "description": "Try to close the window. This has the same effect as a user manually clicking the close button of the window. The web page may cancel the close though. See the close event.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winclose" + }, + { + "name": "focus", + "signature": "()", + "description": "Focuses on the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winfocus" + }, + { + "name": "blur", + "signature": "()", + "description": "Removes focus from the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winblur" + }, + { + "name": "isFocused", + "signature": "()", + "description": "Whether the window is focused.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisfocused" + }, + { + "name": "isDestroyed", + "signature": "()", + "description": "Whether the window is destroyed.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisdestroyed" + }, + { + "name": "show", + "signature": "()", + "description": "Shows and gives focus to the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winshow" + }, + { + "name": "showInactive", + "signature": "()", + "description": "Shows the window but doesn't focus on it.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winshowinactive" + }, + { + "name": "hide", + "signature": "()", + "description": "Hides the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winhide" + }, + { + "name": "isVisible", + "signature": "()", + "description": "Whether the window is visible to the user in the foreground of the app.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisvisible" + }, + { + "name": "isModal", + "signature": "()", + "description": "Whether current window is a modal window.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winismodal" + }, + { + "name": "maximize", + "signature": "()", + "description": "Maximizes the window. This will also show (but not focus) the window if it isn't being displayed already.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winmaximize" + }, + { + "name": "unmaximize", + "signature": "()", + "description": "Unmaximizes the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winunmaximize" + }, + { + "name": "isMaximized", + "signature": "()", + "description": "Whether the window is maximized.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winismaximized" + }, + { + "name": "minimize", + "signature": "()", + "description": "Minimizes the window. On some platforms the minimized window will be shown in the Dock.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winminimize" + }, + { + "name": "restore", + "signature": "()", + "description": "Restores the window from minimized state to its previous state.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winrestore" + }, + { + "name": "isMinimized", + "signature": "()", + "description": "Whether the window is minimized.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisminimized" + }, + { + "name": "setFullScreen", + "signature": "(flag)", + "description": "Sets whether the window should be in fullscreen mode.\n\n**Note:** On macOS, fullscreen transitions take place asynchronously. If further actions depend on the fullscreen state, use the 'enter-full-screen' or 'leave-full-screen' events.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetfullscreenflag" + }, + { + "name": "isFullScreen", + "signature": "()", + "description": "Whether the window is in fullscreen mode.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisfullscreen" + }, + { + "name": "setSimpleFullScreen", + "signature": "(flag)", + "description": "Enters or leaves simple fullscreen mode.\n\nSimple fullscreen mode emulates the native fullscreen behavior found in versions of macOS prior to Lion (10.7).", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetsimplefullscreenflag-macos" + }, + { + "name": "isSimpleFullScreen", + "signature": "()", + "description": "Whether the window is in simple (pre-Lion) fullscreen mode.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winissimplefullscreen-macos" + }, + { + "name": "isNormal", + "signature": "()", + "description": "Whether the window is in normal state (not maximized, not minimized, not in fullscreen mode).", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisnormal" + }, + { + "name": "setAspectRatio", + "signature": "(aspectRatio[, extraSize])", + "description": "This will make a window maintain an aspect ratio. The extra size allows a developer to have space, specified in pixels, not included within the aspect ratio calculations. This API already takes into account the difference between a window's size and its content size.\n\nConsider a normal window with an HD video player and associated controls. Perhaps there are 15 pixels of controls on the left edge, 25 pixels of controls on the right edge and 50 pixels of controls below the player. In order to maintain a 16:9 aspect ratio (standard aspect ratio for HD @1920x1080) within the player itself we would call this function with arguments of 16/9 and { width: 40, height: 50 }. The second argument doesn't care where the extra width and height are within the content view--only that they exist. Sum any extra width and height areas you have within the overall content view.\n\nThe aspect ratio is not respected when window is resized programmatically with APIs like `win.setSize`.\n\nTo reset an aspect ratio, pass 0 as the `aspectRatio` value: `win.setAspectRatio(0)`.", + "parameters": [ + { + "name": "aspectRatio", + "description": "The aspect ratio to maintain for some portion of the content view.", + "required": true, + "collection": false, + "type": "Float" + }, + { + "name": "extraSize", + "description": "The extra size not to be included while maintaining the aspect ratio.", + "required": false, + "collection": false, + "type": "Size" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetaspectratioaspectratio-extrasize" + }, + { + "name": "setBackgroundColor", + "signature": "(backgroundColor)", + "description": "Examples of valid `backgroundColor` values:\n\n* Hex\n * #fff (shorthand RGB)\n * #ffff (shorthand ARGB)\n * #ffffff (RGB)\n * #ffffffff (ARGB)\n* RGB\n * `rgb\\(([\\d]+),\\s*([\\d]+),\\s*([\\d]+)\\)`\n * e.g. rgb(255, 255, 255)\n* RGBA\n * `rgba\\(([\\d]+),\\s*([\\d]+),\\s*([\\d]+),\\s*([\\d.]+)\\)`\n * e.g. rgba(255, 255, 255, 1.0)\n* HSL\n * `hsl\\((-?[\\d.]+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)`\n * e.g. hsl(200, 20%, 50%)\n* HSLA\n * `hsla\\((-?[\\d.]+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)`\n * e.g. hsla(200, 20%, 50%, 0.5)\n* Color name\n * Options are listed in SkParseColor.cpp\n * Similar to CSS Color Module Level 3 keywords, but case-sensitive.\n * e.g. `blueviolet` or `red`\n\nSets the background color of the window. See Setting `backgroundColor`.", + "parameters": [ + { + "name": "backgroundColor", + "description": "Color in Hex, RGB, RGBA, HSL, HSLA or named CSS color format. The alpha channel is optional for the hex type.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetbackgroundcolorbackgroundcolor" + }, + { + "name": "previewFile", + "signature": "(path[, displayName])", + "description": "Uses Quick Look to preview a file at a given path.", + "parameters": [ + { + "name": "path", + "description": "The absolute path to the file to preview with QuickLook. This is important as Quick Look uses the file name and file extension on the path to determine the content type of the file to open.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "displayName", + "description": "The name of the file to display on the Quick Look modal view. This is purely visual and does not affect the content type of the file. Defaults to `path`.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winpreviewfilepath-displayname-macos" + }, + { + "name": "closeFilePreview", + "signature": "()", + "description": "Closes the currently open Quick Look panel.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winclosefilepreview-macos" + }, + { + "name": "setBounds", + "signature": "(bounds[, animate])", + "description": "Resizes and moves the window to the supplied bounds. Any properties that are not supplied will default to their current values.\n\n**Note:** On macOS, the y-coordinate value cannot be smaller than the Tray height. The tray height has changed over time and depends on the operating system, but is between 20-40px. Passing a value lower than the tray height will result in a window that is flush to the tray.", + "parameters": [ + { + "name": "bounds", + "description": "", + "required": true, + "collection": false, + "type": "Partial", + "innerTypes": [ + { + "collection": false, + "type": "Rectangle" + } + ] + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetboundsbounds-animate" + }, + { + "name": "getBounds", + "signature": "()", + "description": "The `bounds` of the window as `Object`.\n\n**Note:** On macOS, the y-coordinate value returned will be at minimum the Tray height. For example, calling `win.setBounds({ x: 25, y: 20, width: 800, height: 600 })` with a tray height of 38 means that `win.getBounds()` will return `{ x: 25, y: 38, width: 800, height: 600 }`.", + "parameters": [], + "returns": { + "collection": false, + "type": "Rectangle" + }, + "additionalTags": [], + "urlFragment": "#wingetbounds" + }, + { + "name": "getBackgroundColor", + "signature": "()", + "description": "Gets the background color of the window in Hex (`#RRGGBB`) format.\n\nSee Setting `backgroundColor`.\n\n**Note:** The alpha value is _not_ returned alongside the red, green, and blue values.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#wingetbackgroundcolor" + }, + { + "name": "setContentBounds", + "signature": "(bounds[, animate])", + "description": "Resizes and moves the window's client area (e.g. the web page) to the supplied bounds.", + "parameters": [ + { + "name": "bounds", + "description": "", + "required": true, + "collection": false, + "type": "Rectangle" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetcontentboundsbounds-animate" + }, + { + "name": "getContentBounds", + "signature": "()", + "description": "The `bounds` of the window's client area as `Object`.", + "parameters": [], + "returns": { + "collection": false, + "type": "Rectangle" + }, + "additionalTags": [], + "urlFragment": "#wingetcontentbounds" + }, + { + "name": "getNormalBounds", + "signature": "()", + "description": "Contains the window bounds of the normal state\n\n**Note:** whatever the current state of the window : maximized, minimized or in fullscreen, this function always returns the position and size of the window in normal state. In normal state, getBounds and getNormalBounds returns the same `Rectangle`.", + "parameters": [], + "returns": { + "collection": false, + "type": "Rectangle" + }, + "additionalTags": [], + "urlFragment": "#wingetnormalbounds" + }, + { + "name": "setEnabled", + "signature": "(enable)", + "description": "Disable or enable the window.", + "parameters": [ + { + "name": "enable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetenabledenable" + }, + { + "name": "isEnabled", + "signature": "()", + "description": "whether the window is enabled.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisenabled" + }, + { + "name": "setSize", + "signature": "(width, height[, animate])", + "description": "Resizes the window to `width` and `height`. If `width` or `height` are below any set minimum size constraints the window will snap to its minimum size.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetsizewidth-height-animate" + }, + { + "name": "getSize", + "signature": "()", + "description": "Contains the window's width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetsize" + }, + { + "name": "setContentSize", + "signature": "(width, height[, animate])", + "description": "Resizes the window's client area (e.g. the web page) to `width` and `height`.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetcontentsizewidth-height-animate" + }, + { + "name": "getContentSize", + "signature": "()", + "description": "Contains the window's client area's width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetcontentsize" + }, + { + "name": "setMinimumSize", + "signature": "(width, height)", + "description": "Sets the minimum size of window to `width` and `height`.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetminimumsizewidth-height" + }, + { + "name": "getMinimumSize", + "signature": "()", + "description": "Contains the window's minimum width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetminimumsize" + }, + { + "name": "setMaximumSize", + "signature": "(width, height)", + "description": "Sets the maximum size of window to `width` and `height`.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetmaximumsizewidth-height" + }, + { + "name": "getMaximumSize", + "signature": "()", + "description": "Contains the window's maximum width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetmaximumsize" + }, + { + "name": "setResizable", + "signature": "(resizable)", + "description": "Sets whether the window can be manually resized by the user.", + "parameters": [ + { + "name": "resizable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetresizableresizable" + }, + { + "name": "isResizable", + "signature": "()", + "description": "Whether the window can be manually resized by the user.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisresizable" + }, + { + "name": "setMovable", + "signature": "(movable)", + "description": "Sets whether the window can be moved by user. On Linux does nothing.", + "parameters": [ + { + "name": "movable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetmovablemovable-macos-windows" + }, + { + "name": "isMovable", + "signature": "()", + "description": "Whether the window can be moved by user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winismovable-macos-windows" + }, + { + "name": "setMinimizable", + "signature": "(minimizable)", + "description": "Sets whether the window can be manually minimized by user. On Linux does nothing.", + "parameters": [ + { + "name": "minimizable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetminimizableminimizable-macos-windows" + }, + { + "name": "isMinimizable", + "signature": "()", + "description": "Whether the window can be manually minimized by the user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winisminimizable-macos-windows" + }, + { + "name": "setMaximizable", + "signature": "(maximizable)", + "description": "Sets whether the window can be manually maximized by user. On Linux does nothing.", + "parameters": [ + { + "name": "maximizable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetmaximizablemaximizable-macos-windows" + }, + { + "name": "isMaximizable", + "signature": "()", + "description": "Whether the window can be manually maximized by user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winismaximizable-macos-windows" + }, + { + "name": "setFullScreenable", + "signature": "(fullscreenable)", + "description": "Sets whether the maximize/zoom window button toggles fullscreen mode or maximizes the window.", + "parameters": [ + { + "name": "fullscreenable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetfullscreenablefullscreenable" + }, + { + "name": "isFullScreenable", + "signature": "()", + "description": "Whether the maximize/zoom window button toggles fullscreen mode or maximizes the window.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisfullscreenable" + }, + { + "name": "setClosable", + "signature": "(closable)", + "description": "Sets whether the window can be manually closed by user. On Linux does nothing.", + "parameters": [ + { + "name": "closable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetclosableclosable-macos-windows" + }, + { + "name": "isClosable", + "signature": "()", + "description": "Whether the window can be manually closed by user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winisclosable-macos-windows" + }, + { + "name": "setHiddenInMissionControl", + "signature": "(hidden)", + "description": "Sets whether the window will be hidden when the user toggles into mission control.", + "parameters": [ + { + "name": "hidden", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsethiddeninmissioncontrolhidden-macos" + }, + { + "name": "isHiddenInMissionControl", + "signature": "()", + "description": "Whether the window will be hidden when the user toggles into mission control.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winishiddeninmissioncontrol-macos" + }, + { + "name": "setAlwaysOnTop", + "signature": "(flag[, level][, relativeLevel])", + "description": "Sets whether the window should show always on top of other windows. After setting this, the window is still a normal window, not a toolbox window which can not be focused on.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + }, + { + "name": "level", + "description": "Values include `normal`, `floating`, `torn-off-menu`, `modal-panel`, `main-menu`, `status`, `pop-up-menu`, `screen-saver`, and ~~`dock`~~ (Deprecated). The default is `floating` when `flag` is true. The `level` is reset to `normal` when the flag is false. Note that from `floating` to `status` included, the window is placed below the Dock on macOS and below the taskbar on Windows. From `pop-up-menu` to a higher it is shown above the Dock on macOS and above the taskbar on Windows. See the macOS docs for more details.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "normal", + "description": "" + }, + { + "value": "floating", + "description": "" + }, + { + "value": "torn-off-menu", + "description": "" + }, + { + "value": "modal-panel", + "description": "" + }, + { + "value": "main-menu", + "description": "" + }, + { + "value": "status", + "description": "" + }, + { + "value": "pop-up-menu", + "description": "" + }, + { + "value": "screen-saver", + "description": "" + }, + { + "value": "dock", + "description": "" + } + ] + }, + { + "name": "relativeLevel", + "description": "The number of layers higher to set this window relative to the given `level`. The default is `0`. Note that Apple discourages setting levels higher than 1 above `screen-saver`.", + "required": false, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetalwaysontopflag-level-relativelevel" + }, + { + "name": "isAlwaysOnTop", + "signature": "()", + "description": "Whether the window is always on top of other windows.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisalwaysontop" + }, + { + "name": "moveAbove", + "signature": "(mediaSourceId)", + "description": "Moves window above the source window in the sense of z-order. If the `mediaSourceId` is not of type window or if the window does not exist then this method throws an error.", + "parameters": [ + { + "name": "mediaSourceId", + "description": "Window id in the format of DesktopCapturerSource's id. For example \"window:1869:0\".", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winmoveabovemediasourceid" + }, + { + "name": "moveTop", + "signature": "()", + "description": "Moves window to top(z-order) regardless of focus", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winmovetop" + }, + { + "name": "center", + "signature": "()", + "description": "Moves window to the center of the screen.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#wincenter" + }, + { + "name": "setPosition", + "signature": "(x, y[, animate])", + "description": "Moves window to `x` and `y`.", + "parameters": [ + { + "name": "x", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "y", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetpositionx-y-animate" + }, + { + "name": "getPosition", + "signature": "()", + "description": "Contains the window's current position.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetposition" + }, + { + "name": "setTitle", + "signature": "(title)", + "description": "Changes the title of native window to `title`.", + "parameters": [ + { + "name": "title", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsettitletitle" + }, + { + "name": "getTitle", + "signature": "()", + "description": "The title of the native window.\n\n**Note:** The title of the web page can be different from the title of the native window.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#wingettitle" + }, + { + "name": "setSheetOffset", + "signature": "(offsetY[, offsetX])", + "description": "Changes the attachment point for sheets on macOS. By default, sheets are attached just below the window frame, but you may want to display them beneath a HTML-rendered toolbar. For example:", + "parameters": [ + { + "name": "offsetY", + "description": "", + "required": true, + "collection": false, + "type": "Float" + }, + { + "name": "offsetX", + "description": "", + "required": false, + "collection": false, + "type": "Float" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetsheetoffsetoffsety-offsetx-macos" + }, + { + "name": "flashFrame", + "signature": "(flag)", + "description": "Starts or stops flashing the window to attract user's attention.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winflashframeflag" + }, + { + "name": "setSkipTaskbar", + "signature": "(skip)", + "description": "Makes the window not show in the taskbar.", + "parameters": [ + { + "name": "skip", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetskiptaskbarskip-macos-windows" + }, + { + "name": "setKiosk", + "signature": "(flag)", + "description": "Enters or leaves kiosk mode.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetkioskflag" + }, + { + "name": "isKiosk", + "signature": "()", + "description": "Whether the window is in kiosk mode.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winiskiosk" + }, + { + "name": "isTabletMode", + "signature": "()", + "description": "Whether the window is in Windows 10 tablet mode.\n\nSince Windows 10 users can use their PC as tablet, under this mode apps can choose to optimize their UI for tablets, such as enlarging the titlebar and hiding titlebar buttons.\n\nThis API returns whether the window is in tablet mode, and the `resize` event can be be used to listen to changes to tablet mode.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winistabletmode-windows" + }, + { + "name": "getMediaSourceId", + "signature": "()", + "description": "Window id in the format of DesktopCapturerSource's id. For example \"window:1324:0\".\n\nMore precisely the format is `window:id:other_id` where `id` is `HWND` on Windows, `CGWindowID` (`uint64_t`) on macOS and `Window` (`unsigned long`) on Linux. `other_id` is used to identify web contents (tabs) so within the same top level window.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#wingetmediasourceid" + }, + { + "name": "getNativeWindowHandle", + "signature": "()", + "description": "The platform-specific handle of the window.\n\nThe native type of the handle is `HWND` on Windows, `NSView*` on macOS, and `Window` (`unsigned long`) on Linux.", + "parameters": [], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [], + "urlFragment": "#wingetnativewindowhandle" + }, + { + "name": "hookWindowMessage", + "signature": "(message, callback)", + "description": "Hooks a windows message. The `callback` is called when the message is received in the WndProc.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "callback", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "wParam", + "description": "The `wParam` provided to the WndProc", + "required": true, + "collection": false, + "type": "Buffer" + }, + { + "name": "lParam", + "description": "The `lParam` provided to the WndProc", + "required": true, + "collection": false, + "type": "Buffer" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winhookwindowmessagemessage-callback-windows" + }, + { + "name": "isWindowMessageHooked", + "signature": "(message)", + "description": "`true` or `false` depending on whether the message is hooked.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winiswindowmessagehookedmessage-windows" + }, + { + "name": "unhookWindowMessage", + "signature": "(message)", + "description": "Unhook the window message.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winunhookwindowmessagemessage-windows" + }, + { + "name": "unhookAllWindowMessages", + "signature": "()", + "description": "Unhooks all of the window messages.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winunhookallwindowmessages-windows" + }, + { + "name": "setRepresentedFilename", + "signature": "(filename)", + "description": "Sets the pathname of the file the window represents, and the icon of the file will show in window's title bar.", + "parameters": [ + { + "name": "filename", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetrepresentedfilenamefilename-macos" + }, + { + "name": "getRepresentedFilename", + "signature": "()", + "description": "The pathname of the file the window represents.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wingetrepresentedfilename-macos" + }, + { + "name": "setDocumentEdited", + "signature": "(edited)", + "description": "Specifies whether the window’s document has been edited, and the icon in title bar will become gray when set to `true`.", + "parameters": [ + { + "name": "edited", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetdocumenteditededited-macos" + }, + { + "name": "isDocumentEdited", + "signature": "()", + "description": "Whether the window's document has been edited.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winisdocumentedited-macos" + }, + { + "name": "setMenu", + "signature": "(menu)", + "description": "Sets the `menu` as the window's menu bar.", + "parameters": [ + { + "name": "menu", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "Menu" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "urlFragment": "#winsetmenumenu-linux-windows" + }, + { + "name": "removeMenu", + "signature": "()", + "description": "Remove the window's menu bar.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "urlFragment": "#winremovemenu-linux-windows" + }, + { + "name": "setProgressBar", + "signature": "(progress[, options])", + "description": "Sets progress value in progress bar. Valid range is [0, 1.0].\n\nRemove progress bar when progress < 0; Change to indeterminate mode when progress > 1.\n\nOn Linux platform, only supports Unity desktop environment, you need to specify the `*.desktop` file name to `desktopName` field in `package.json`. By default, it will assume `{app.name}.desktop`.\n\nOn Windows, a mode can be passed. Accepted values are `none`, `normal`, `indeterminate`, `error`, and `paused`. If you call `setProgressBar` without a mode set (but with a value within the valid range), `normal` will be assumed.", + "parameters": [ + { + "name": "progress", + "description": "", + "required": true, + "collection": false, + "type": "Double" + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "mode", + "description": "Mode for the progress bar. Can be `none`, `normal`, `indeterminate`, `error` or `paused`.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "none", + "description": "" + }, + { + "value": "normal", + "description": "" + }, + { + "value": "indeterminate", + "description": "" + }, + { + "value": "error", + "description": "" + }, + { + "value": "paused", + "description": "" + } + ] + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetprogressbarprogress-options" + }, + { + "name": "setOverlayIcon", + "signature": "(overlay, description)", + "description": "Sets a 16 x 16 pixel overlay onto the current taskbar icon, usually used to convey some sort of application status or to passively notify the user.", + "parameters": [ + { + "name": "overlay", + "description": "the icon to display on the bottom right corner of the taskbar icon. If this parameter is `null`, the overlay is cleared", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "type": "null", + "collection": false + } + ] + }, + { + "name": "description", + "description": "a description that will be provided to Accessibility screen readers", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetoverlayiconoverlay-description-windows" + }, + { + "name": "invalidateShadow", + "signature": "()", + "description": "Invalidates the window shadow so that it is recomputed based on the current window shape.\n\n`BaseWindow`s that are transparent can sometimes leave behind visual artifacts on macOS. This method can be used to clear these artifacts when, for example, performing an animation.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wininvalidateshadow-macos" + }, + { + "name": "setHasShadow", + "signature": "(hasShadow)", + "description": "Sets whether the window should have a shadow.", + "parameters": [ + { + "name": "hasShadow", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsethasshadowhasshadow" + }, + { + "name": "hasShadow", + "signature": "()", + "description": "Whether the window has a shadow.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winhasshadow" + }, + { + "name": "setOpacity", + "signature": "(opacity)", + "description": "Sets the opacity of the window. On Linux, does nothing. Out of bound number values are clamped to the [0, 1] range.", + "parameters": [ + { + "name": "opacity", + "description": "between 0.0 (fully transparent) and 1.0 (fully opaque)", + "required": true, + "collection": false, + "type": "number" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_macos" + ], + "urlFragment": "#winsetopacityopacity-windows-macos" + }, + { + "name": "getOpacity", + "signature": "()", + "description": "between 0.0 (fully transparent) and 1.0 (fully opaque). On Linux, always returns 1.", + "parameters": [], + "returns": { + "collection": false, + "type": "number" + }, + "additionalTags": [], + "urlFragment": "#wingetopacity" + }, + { + "name": "setShape", + "signature": "(rects)", + "description": "Setting a window shape determines the area within the window where the system permits drawing and user interaction. Outside of the given region, no pixels will be drawn and no mouse events will be registered. Mouse events outside of the region will not be received by that window, but will fall through to whatever is behind the window.", + "parameters": [ + { + "name": "rects", + "description": "Sets a shape on the window. Passing an empty list reverts the window to being rectangular.", + "required": true, + "collection": true, + "type": "Rectangle" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux", + "stability_experimental" + ], + "urlFragment": "#winsetshaperects-windows-linux-experimental" + }, + { + "name": "setThumbarButtons", + "signature": "(buttons)", + "description": "Whether the buttons were added successfully\n\nAdd a thumbnail toolbar with a specified set of buttons to the thumbnail image of a window in a taskbar button layout. Returns a `boolean` object indicates whether the thumbnail has been added successfully.\n\nThe number of buttons in thumbnail toolbar should be no greater than 7 due to the limited room. Once you setup the thumbnail toolbar, the toolbar cannot be removed due to the platform's limitation. But you can call the API with an empty array to clean the buttons.\n\nThe `buttons` is an array of `Button` objects:\n\n* `Button` Object\n * `icon` NativeImage - The icon showing in thumbnail toolbar.\n * `click` Function\n * `tooltip` string (optional) - The text of the button's tooltip.\n * `flags` string[] (optional) - Control specific states and behaviors of the button. By default, it is `['enabled']`.\n\nThe `flags` is an array that can include following `string`s:\n\n* `enabled` - The button is active and available to the user.\n* `disabled` - The button is disabled. It is present, but has a visual state indicating it will not respond to user action.\n* `dismissonclick` - When the button is clicked, the thumbnail window closes immediately.\n* `nobackground` - Do not draw a button border, use only the image.\n* `hidden` - The button is not shown to the user.\n* `noninteractive` - The button is enabled but not interactive; no pressed button state is drawn. This value is intended for instances where the button is used in a notification.", + "parameters": [ + { + "name": "buttons", + "description": "", + "required": true, + "collection": true, + "type": "ThumbarButton" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetthumbarbuttonsbuttons-windows" + }, + { + "name": "setThumbnailClip", + "signature": "(region)", + "description": "Sets the region of the window to show as the thumbnail image displayed when hovering over the window in the taskbar. You can reset the thumbnail to be the entire window by specifying an empty region: `{ x: 0, y: 0, width: 0, height: 0 }`.", + "parameters": [ + { + "name": "region", + "description": "Region of the window", + "required": true, + "collection": false, + "type": "Rectangle" + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetthumbnailclipregion-windows" + }, + { + "name": "setThumbnailToolTip", + "signature": "(toolTip)", + "description": "Sets the toolTip that is displayed when hovering over the window thumbnail in the taskbar.", + "parameters": [ + { + "name": "toolTip", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetthumbnailtooltiptooltip-windows" + }, + { + "name": "setAppDetails", + "signature": "(options)", + "description": "Sets the properties for the window's taskbar button.\n\n**Note:** `relaunchCommand` and `relaunchDisplayName` must always be set together. If one of those properties is not set, then neither will be used.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "appId", + "description": "Window's App User Model ID. It has to be set, otherwise the other options will have no effect.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "appIconPath", + "description": "Window's Relaunch Icon.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "appIconIndex", + "description": "Index of the icon in `appIconPath`. Ignored when `appIconPath` is not set. Default is `0`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "relaunchCommand", + "description": "Window's Relaunch Command.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "relaunchDisplayName", + "description": "Window's Relaunch Display Name.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetappdetailsoptions-windows" + }, + { + "name": "setIcon", + "signature": "(icon)", + "description": "Changes window icon.", + "parameters": [ + { + "name": "icon", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winseticonicon-windows-linux" + }, + { + "name": "setWindowButtonVisibility", + "signature": "(visible)", + "description": "Sets whether the window traffic light buttons should be visible.", + "parameters": [ + { + "name": "visible", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetwindowbuttonvisibilityvisible-macos" + }, + { + "name": "setAutoHideMenuBar", + "signature": "(hide)", + "description": "Sets whether the window menu bar should hide itself automatically. Once set the menu bar will only show when users press the single `Alt` key.\n\nIf the menu bar is already visible, calling `setAutoHideMenuBar(true)` won't hide it immediately.", + "parameters": [ + { + "name": "hide", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winsetautohidemenubarhide-windows-linux" + }, + { + "name": "isMenuBarAutoHide", + "signature": "()", + "description": "Whether menu bar automatically hides itself.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winismenubarautohide-windows-linux" + }, + { + "name": "setMenuBarVisibility", + "signature": "(visible)", + "description": "Sets whether the menu bar should be visible. If the menu bar is auto-hide, users can still bring up the menu bar by pressing the single `Alt` key.", + "parameters": [ + { + "name": "visible", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winsetmenubarvisibilityvisible-windows-linux" + }, + { + "name": "isMenuBarVisible", + "signature": "()", + "description": "Whether the menu bar is visible.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winismenubarvisible-windows-linux" + }, + { + "name": "setVisibleOnAllWorkspaces", + "signature": "(visible[, options])", + "description": "Sets whether the window should be visible on all workspaces.\n\n**Note:** This API does nothing on Windows.", + "parameters": [ + { + "name": "visible", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "visibleOnFullScreen", + "description": "Sets whether the window should be visible above fullscreen windows.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "skipTransformProcessType", + "description": "Calling setVisibleOnAllWorkspaces will by default transform the process type between UIElementApplication and ForegroundApplication to ensure the correct behavior. However, this will hide the window and dock for a short time every time it is called. If your window is already of type UIElementApplication, you can bypass this transformation by passing true to skipTransformProcessType.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_linux" + ], + "urlFragment": "#winsetvisibleonallworkspacesvisible-options-macos-linux" + }, + { + "name": "isVisibleOnAllWorkspaces", + "signature": "()", + "description": "Whether the window is visible on all workspaces.\n\n**Note:** This API always returns false on Windows.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_linux" + ], + "urlFragment": "#winisvisibleonallworkspaces-macos-linux" + }, + { + "name": "setIgnoreMouseEvents", + "signature": "(ignore[, options])", + "description": "Makes the window ignore all mouse events.\n\nAll mouse events happened in this window will be passed to the window below this window, but if this window has focus, it will still receive keyboard events.", + "parameters": [ + { + "name": "ignore", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "forward", + "description": "If true, forwards mouse move messages to Chromium, enabling mouse related events such as `mouseleave`. Only used when `ignore` is true. If `ignore` is false, forwarding is always disabled regardless of this value.", + "required": false, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetignoremouseeventsignore-options" + }, + { + "name": "setContentProtection", + "signature": "(enable)", + "description": "Prevents the window contents from being captured by other apps.\n\nOn macOS it sets the NSWindow's sharingType to NSWindowSharingNone. On Windows it calls SetWindowDisplayAffinity with `WDA_EXCLUDEFROMCAPTURE`. For Windows 10 version 2004 and up the window will be removed from capture entirely, older Windows versions behave as if `WDA_MONITOR` is applied capturing a black window.", + "parameters": [ + { + "name": "enable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetcontentprotectionenable-macos-windows" + }, + { + "name": "setFocusable", + "signature": "(focusable)", + "description": "Changes whether the window can be focused.\n\nOn macOS it does not remove the focus from the window.", + "parameters": [ + { + "name": "focusable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetfocusablefocusable-macos-windows" + }, + { + "name": "isFocusable", + "signature": "()", + "description": "Whether the window can be focused.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winisfocusable-macos-windows" + }, + { + "name": "setParentWindow", + "signature": "(parent)", + "description": "Sets `parent` as current window's parent window, passing `null` will turn current window into a top-level window.", + "parameters": [ + { + "name": "parent", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "BaseWindow" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetparentwindowparent" + }, + { + "name": "getParentWindow", + "signature": "()", + "description": "The parent window or `null` if there is no parent.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BaseWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#wingetparentwindow" + }, + { + "name": "getChildWindows", + "signature": "()", + "description": "All child windows.", + "parameters": [], + "returns": { + "collection": true, + "type": "BaseWindow" + }, + "additionalTags": [], + "urlFragment": "#wingetchildwindows" + }, + { + "name": "setAutoHideCursor", + "signature": "(autoHide)", + "description": "Controls whether to hide cursor when typing.", + "parameters": [ + { + "name": "autoHide", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetautohidecursorautohide-macos" + }, + { + "name": "selectPreviousTab", + "signature": "()", + "description": "Selects the previous tab when native tabs are enabled and there are other tabs in the window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winselectprevioustab-macos" + }, + { + "name": "selectNextTab", + "signature": "()", + "description": "Selects the next tab when native tabs are enabled and there are other tabs in the window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winselectnexttab-macos" + }, + { + "name": "showAllTabs", + "signature": "()", + "description": "Shows or hides the tab overview when native tabs are enabled.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winshowalltabs-macos" + }, + { + "name": "mergeAllWindows", + "signature": "()", + "description": "Merges all windows into one window with multiple tabs when native tabs are enabled and there is more than one open window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winmergeallwindows-macos" + }, + { + "name": "moveTabToNewWindow", + "signature": "()", + "description": "Moves the current tab into a new window if native tabs are enabled and there is more than one tab in the current window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winmovetabtonewwindow-macos" + }, + { + "name": "toggleTabBar", + "signature": "()", + "description": "Toggles the visibility of the tab bar if native tabs are enabled and there is only one tab in the current window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wintoggletabbar-macos" + }, + { + "name": "addTabbedWindow", + "signature": "(baseWindow)", + "description": "Adds a window as a tab on this window, after the tab for the window instance.", + "parameters": [ + { + "name": "baseWindow", + "description": "", + "required": true, + "collection": false, + "type": "BaseWindow" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winaddtabbedwindowbasewindow-macos" + }, + { + "name": "setVibrancy", + "signature": "(type)", + "description": "Adds a vibrancy effect to the window. Passing `null` or an empty string will remove the vibrancy effect on the window.", + "parameters": [ + { + "name": "type", + "description": "Can be `titlebar`, `selection`, `menu`, `popover`, `sidebar`, `header`, `sheet`, `window`, `hud`, `fullscreen-ui`, `tooltip`, `content`, `under-window`, or `under-page`. See the macOS documentation for more details.", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "titlebar", + "description": "" + }, + { + "value": "selection", + "description": "" + }, + { + "value": "menu", + "description": "" + }, + { + "value": "popover", + "description": "" + }, + { + "value": "sidebar", + "description": "" + }, + { + "value": "header", + "description": "" + }, + { + "value": "sheet", + "description": "" + }, + { + "value": "window", + "description": "" + }, + { + "value": "hud", + "description": "" + }, + { + "value": "fullscreen-ui", + "description": "" + }, + { + "value": "tooltip", + "description": "" + }, + { + "value": "content", + "description": "" + }, + { + "value": "under-window", + "description": "" + }, + { + "value": "under-page", + "description": "" + } + ] + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetvibrancytype-macos" + }, + { + "name": "setBackgroundMaterial", + "signature": "(material)", + "description": "This method sets the browser window's system-drawn background material, including behind the non-client area.\n\nSee the Windows documentation for more details.\n\n**Note:** This method is only supported on Windows 11 22H2 and up.", + "parameters": [ + { + "name": "material", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "auto", + "description": "Let the Desktop Window Manager (DWM) automatically decide the system-drawn backdrop material for this window. This is the default." + }, + { + "value": "none", + "description": "Don't draw any system backdrop." + }, + { + "value": "mica", + "description": "Draw the backdrop material effect corresponding to a long-lived window." + }, + { + "value": "acrylic", + "description": "Draw the backdrop material effect corresponding to a transient window." + }, + { + "value": "tabbed", + "description": "Draw the backdrop material effect corresponding to a window with a tabbed title bar." + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetbackgroundmaterialmaterial-windows" + }, + { + "name": "setWindowButtonPosition", + "signature": "(position)", + "description": "Set a custom position for the traffic light buttons in frameless window. Passing `null` will reset the position to default.", + "parameters": [ + { + "name": "position", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "Point" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetwindowbuttonpositionposition-macos" + }, + { + "name": "getWindowButtonPosition", + "signature": "()", + "description": "The custom position for the traffic light buttons in frameless window, `null` will be returned when there is no custom position.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "Point" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wingetwindowbuttonposition-macos" + }, + { + "name": "setTouchBar", + "signature": "(touchBar)", + "description": "Sets the touchBar layout for the current window. Specifying `null` or `undefined` clears the touch bar. This method only has an effect if the machine has a touch bar.\n\n**Note:** The TouchBar API is currently experimental and may change or be removed in future Electron releases.", + "parameters": [ + { + "name": "touchBar", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "TouchBar" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsettouchbartouchbar-macos" + }, + { + "name": "setTitleBarOverlay", + "signature": "(options)", + "description": "On a Window with Window Controls Overlay already enabled, this method updates the style of the title bar overlay.\n\nOn Linux, the `symbolColor` is automatically calculated to have minimum accessible contrast to the `color` if not explicitly set.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "color", + "description": "The CSS color of the Window Controls Overlay when enabled.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "symbolColor", + "description": "The CSS color of the symbols on the Window Controls Overlay when enabled.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "height", + "description": "The height of the title bar and Window Controls Overlay in pixels.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winsettitlebaroverlayoptions-windows-linux" + } + ], + "instanceProperties": [ + { + "name": "id", + "description": "A `Integer` property representing the unique ID of the window. Each ID is unique among all `BaseWindow` instances of the entire Electron application.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#winid-readonly", + "collection": false, + "type": "Integer" + }, + { + "name": "contentView", + "description": "A `View` property for the content view of the window.", + "required": true, + "additionalTags": [], + "urlFragment": "#wincontentview", + "collection": false, + "type": "View" + }, + { + "name": "tabbingIdentifier", + "description": "A `string` (optional) property that is equal to the `tabbingIdentifier` passed to the `BrowserWindow` constructor or `undefined` if none was set.", + "required": false, + "additionalTags": [ + "os_macos", + "availability_readonly" + ], + "urlFragment": "#wintabbingidentifier-macos-readonly", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "autoHideMenuBar", + "description": "A `boolean` property that determines whether the window menu bar should hide itself automatically. Once set, the menu bar will only show when users press the single `Alt` key.\n\nIf the menu bar is already visible, setting this property to `true` won't hide it immediately.", + "required": true, + "additionalTags": [], + "urlFragment": "#winautohidemenubar", + "collection": false, + "type": "boolean" + }, + { + "name": "simpleFullScreen", + "description": "A `boolean` property that determines whether the window is in simple (pre-Lion) fullscreen mode.", + "required": true, + "additionalTags": [], + "urlFragment": "#winsimplefullscreen", + "collection": false, + "type": "boolean" + }, + { + "name": "fullScreen", + "description": "A `boolean` property that determines whether the window is in fullscreen mode.", + "required": true, + "additionalTags": [], + "urlFragment": "#winfullscreen", + "collection": false, + "type": "boolean" + }, + { + "name": "focusable", + "description": "A `boolean` property that determines whether the window is focusable.", + "required": true, + "additionalTags": [ + "os_windows", + "os_macos" + ], + "urlFragment": "#winfocusable-windows-macos", + "collection": false, + "type": "boolean" + }, + { + "name": "visibleOnAllWorkspaces", + "description": "A `boolean` property that determines whether the window is visible on all workspaces.\n\n**Note:** Always returns false on Windows.", + "required": true, + "additionalTags": [ + "os_macos", + "os_linux" + ], + "urlFragment": "#winvisibleonallworkspaces-macos-linux", + "collection": false, + "type": "boolean" + }, + { + "name": "shadow", + "description": "A `boolean` property that determines whether the window has a shadow.", + "required": true, + "additionalTags": [], + "urlFragment": "#winshadow", + "collection": false, + "type": "boolean" + }, + { + "name": "menuBarVisible", + "description": "A `boolean` property that determines whether the menu bar should be visible.\n\n**Note:** If the menu bar is auto-hide, users can still bring up the menu bar by pressing the single `Alt` key.", + "required": true, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winmenubarvisible-windows-linux", + "collection": false, + "type": "boolean" + }, + { + "name": "kiosk", + "description": "A `boolean` property that determines whether the window is in kiosk mode.", + "required": true, + "additionalTags": [], + "urlFragment": "#winkiosk", + "collection": false, + "type": "boolean" + }, + { + "name": "documentEdited", + "description": "A `boolean` property that specifies whether the window’s document has been edited.\n\nThe icon in title bar will become gray when set to `true`.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#windocumentedited-macos", + "collection": false, + "type": "boolean" + }, + { + "name": "representedFilename", + "description": "A `string` property that determines the pathname of the file the window represents, and the icon of the file will show in window's title bar.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winrepresentedfilename-macos", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "title", + "description": "A `string` property that determines the title of the native window.\n\n**Note:** The title of the web page can be different from the title of the native window.", + "required": true, + "additionalTags": [], + "urlFragment": "#wintitle", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "minimizable", + "description": "A `boolean` property that determines whether the window can be manually minimized by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winminimizable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "maximizable", + "description": "A `boolean` property that determines whether the window can be manually maximized by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winmaximizable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "fullScreenable", + "description": "A `boolean` property that determines whether the maximize/zoom window button toggles fullscreen mode or maximizes the window.", + "required": true, + "additionalTags": [], + "urlFragment": "#winfullscreenable", + "collection": false, + "type": "boolean" + }, + { + "name": "resizable", + "description": "A `boolean` property that determines whether the window can be manually resized by user.", + "required": true, + "additionalTags": [], + "urlFragment": "#winresizable", + "collection": false, + "type": "boolean" + }, + { + "name": "closable", + "description": "A `boolean` property that determines whether the window can be manually closed by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winclosable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "movable", + "description": "A `boolean` property that determines Whether the window can be moved by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winmovable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "excludedFromShownWindowsMenu", + "description": "A `boolean` property that determines whether the window is excluded from the application’s Windows menu. `false` by default.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winexcludedfromshownwindowsmenu-macos", + "collection": false, + "type": "boolean" + }, + { + "name": "accessibleTitle", + "description": "A `string` property that defines an alternative title provided only to accessibility tools such as screen readers. This string is not directly visible to users.", + "required": true, + "additionalTags": [], + "urlFragment": "#winaccessibletitle", + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "instanceEvents": [ + { + "name": "close", + "description": "Emitted when the window is going to be closed. It's emitted before the `beforeunload` and `unload` event of the DOM. Calling `event.preventDefault()` will cancel the close.\n\nUsually you would want to use the `beforeunload` handler to decide whether the window should be closed, which will also be called when the window is reloaded. In Electron, returning any value other than `undefined` would cancel the close. For example:\n\n_**Note**: There is a subtle difference between the behaviors of `window.onbeforeunload = handler` and `window.addEventListener('beforeunload', handler)`. It is recommended to always set the `event.returnValue` explicitly, instead of only returning a value, as the former works more consistently within Electron._", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-close" + }, + { + "name": "closed", + "description": "Emitted when the window is closed. After you have received this event you should remove the reference to the window and avoid using it any more.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-closed" + }, + { + "name": "session-end", + "description": "Emitted when window session is going to end due to force shutdown or machine restart or session log off.", + "parameters": [], + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#event-session-end-windows" + }, + { + "name": "blur", + "description": "Emitted when the window loses focus.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-blur" + }, + { + "name": "focus", + "description": "Emitted when the window gains focus.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-focus" + }, + { + "name": "show", + "description": "Emitted when the window is shown.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-show" + }, + { + "name": "hide", + "description": "Emitted when the window is hidden.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-hide" + }, + { + "name": "maximize", + "description": "Emitted when window is maximized.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-maximize" + }, + { + "name": "unmaximize", + "description": "Emitted when the window exits from a maximized state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-unmaximize" + }, + { + "name": "minimize", + "description": "Emitted when the window is minimized.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-minimize" + }, + { + "name": "restore", + "description": "Emitted when the window is restored from a minimized state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-restore" + }, + { + "name": "will-resize", + "description": "Emitted before the window is resized. Calling `event.preventDefault()` will prevent the window from being resized.\n\nNote that this is only emitted when the window is being resized manually. Resizing the window with `setBounds`/`setSize` will not emit this event.\n\nThe possible values and behaviors of the `edge` option are platform dependent. Possible values are:\n\n* On Windows, possible values are `bottom`, `top`, `left`, `right`, `top-left`, `top-right`, `bottom-left`, `bottom-right`.\n* On macOS, possible values are `bottom` and `right`.\n * The value `bottom` is used to denote vertical resizing.\n * The value `right` is used to denote horizontal resizing.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "newBounds", + "description": "Size the window is being resized to.", + "collection": false, + "type": "Rectangle", + "additionalTags": [], + "required": true + }, + { + "name": "details", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "edge", + "description": "The edge of the window being dragged for resizing. Can be `bottom`, `left`, `right`, `top-left`, `top-right`, `bottom-left` or `bottom-right`.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "bottom", + "description": "" + }, + { + "value": "left", + "description": "" + }, + { + "value": "right", + "description": "" + }, + { + "value": "top-left", + "description": "" + }, + { + "value": "top-right", + "description": "" + }, + { + "value": "bottom-left", + "description": "" + }, + { + "value": "bottom-right", + "description": "" + } + ] + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-will-resize-macos-windows" + }, + { + "name": "resize", + "description": "Emitted after the window has been resized.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-resize" + }, + { + "name": "resized", + "description": "Emitted once when the window has finished being resized.\n\nThis is usually emitted when the window has been resized manually. On macOS, resizing the window with `setBounds`/`setSize` and setting the `animate` parameter to `true` will also emit this event once resizing has finished.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-resized-macos-windows" + }, + { + "name": "will-move", + "description": "Emitted before the window is moved. On Windows, calling `event.preventDefault()` will prevent the window from being moved.\n\nNote that this is only emitted when the window is being moved manually. Moving the window with `setPosition`/`setBounds`/`center` will not emit this event.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "newBounds", + "description": "Location the window is being moved to.", + "collection": false, + "type": "Rectangle", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-will-move-macos-windows" + }, + { + "name": "move", + "description": "Emitted when the window is being moved to a new position.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-move" + }, + { + "name": "moved", + "description": "Emitted once when the window is moved to a new position.\n\n**Note**: On macOS this event is an alias of `move`.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-moved-macos-windows" + }, + { + "name": "enter-full-screen", + "description": "Emitted when the window enters a full-screen state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-enter-full-screen" + }, + { + "name": "leave-full-screen", + "description": "Emitted when the window leaves a full-screen state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-leave-full-screen" + }, + { + "name": "always-on-top-changed", + "description": "Emitted when the window is set or unset to show always on top of other windows.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "isAlwaysOnTop", + "description": "", + "collection": false, + "type": "boolean", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-always-on-top-changed" + }, + { + "name": "app-command", + "description": "Emitted when an App Command is invoked. These are typically related to keyboard media keys or browser commands, as well as the \"Back\" button built into some mice on Windows.\n\nCommands are lowercased, underscores are replaced with hyphens, and the `APPCOMMAND_` prefix is stripped off. e.g. `APPCOMMAND_BROWSER_BACKWARD` is emitted as `browser-backward`.\n\nThe following app commands are explicitly supported on Linux:\n\n* `browser-backward`\n* `browser-forward`", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "command", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#event-app-command-windows-linux" + }, + { + "name": "swipe", + "description": "Emitted on 3-finger swipe. Possible directions are `up`, `right`, `down`, `left`.\n\nThe method underlying this event is built to handle older macOS-style trackpad swiping, where the content on the screen doesn't move with the swipe. Most macOS trackpads are not configured to allow this kind of swiping anymore, so in order for it to emit properly the 'Swipe between pages' preference in `System Preferences > Trackpad > More Gestures` must be set to 'Swipe with two or three fingers'.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "direction", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-swipe-macos" + }, + { + "name": "rotate-gesture", + "description": "Emitted on trackpad rotation gesture. Continually emitted until rotation gesture is ended. The `rotation` value on each emission is the angle in degrees rotated since the last emission. The last emitted event upon a rotation gesture will always be of value `0`. Counter-clockwise rotation values are positive, while clockwise ones are negative.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "rotation", + "description": "", + "collection": false, + "type": "Float", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-rotate-gesture-macos" + }, + { + "name": "sheet-begin", + "description": "Emitted when the window opens a sheet.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-sheet-begin-macos" + }, + { + "name": "sheet-end", + "description": "Emitted when the window has closed a sheet.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-sheet-end-macos" + }, + { + "name": "new-window-for-tab", + "description": "Emitted when the native new tab button is clicked.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-new-window-for-tab-macos" + }, + { + "name": "system-context-menu", + "description": "Emitted when the system context menu is triggered on the window, this is normally only triggered when the user right clicks on the non-client area of your window. This is the window titlebar or any area you have declared as `-webkit-app-region: drag` in a frameless window.\n\nCalling `event.preventDefault()` will prevent the menu from being displayed.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "point", + "description": "The screen coordinates the context menu was triggered at", + "collection": false, + "type": "Point", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#event-system-context-menu-windows" + } + ], + "instanceName": "baseWindow" + }, + { + "name": "BrowserView", + "description": "> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.\n\nA `BrowserView` can be used to embed additional web content into a `BrowserWindow`. It is like a child window, except that it is positioned relative to its owning window. It is meant to be an alternative to the `webview` tag.\n\n### Class: BrowserView\n\n> Create and control views.\n\n> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.\n\nProcess: Main\n\nThis module cannot be used until the `ready` event of the `app` module is emitted.\n\n### Example\n\n```\n// In the main process.\nconst { app, BrowserView, BrowserWindow } = require('electron')\n\napp.whenReady().then(() => {\n const win = new BrowserWindow({ width: 800, height: 600 })\n\n const view = new BrowserView()\n win.setBrowserView(view)\n view.setBounds({ x: 0, y: 0, width: 300, height: 300 })\n view.webContents.loadURL('https://electronjs.org')\n})\n```", + "slug": "browser-view", + "websiteUrl": "https://electronjs.org/docs/api/browser-view", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/browser-view.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "constructorMethod": { + "signature": "([options])", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "webPreferences", + "description": "Settings of web page's features.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "WebPreferences" + } + ] + } + ] + }, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "setAutoResize", + "signature": "(options)", + "description": "", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "width", + "description": "If `true`, the view's width will grow and shrink together with the window. `false` by default.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "height", + "description": "If `true`, the view's height will grow and shrink together with the window. `false` by default.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "horizontal", + "description": "If `true`, the view's x position and width will grow and shrink proportionally with the window. `false` by default.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "vertical", + "description": "If `true`, the view's y position and height will grow and shrink proportionally with the window. `false` by default.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#viewsetautoresizeoptions-experimental-deprecated" + }, + { + "name": "setBounds", + "signature": "(bounds)", + "description": "Resizes and moves the view to the supplied bounds relative to the window.", + "parameters": [ + { + "name": "bounds", + "description": "", + "required": true, + "collection": false, + "type": "Rectangle" + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#viewsetboundsbounds-experimental-deprecated" + }, + { + "name": "getBounds", + "signature": "()", + "description": "The `bounds` of this BrowserView instance as `Object`.", + "parameters": [], + "returns": { + "collection": false, + "type": "Rectangle" + }, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#viewgetbounds-experimental-deprecated" + }, + { + "name": "setBackgroundColor", + "signature": "(color)", + "description": "Examples of valid `color` values:\n\n* Hex\n * `#fff` (RGB)\n * `#ffff` (ARGB)\n * `#ffffff` (RRGGBB)\n * `#ffffffff` (AARRGGBB)\n* RGB\n * `rgb\\(([\\d]+),\\s*([\\d]+),\\s*([\\d]+)\\)`\n * e.g. `rgb(255, 255, 255)`\n* RGBA\n * `rgba\\(([\\d]+),\\s*([\\d]+),\\s*([\\d]+),\\s*([\\d.]+)\\)`\n * e.g. `rgba(255, 255, 255, 1.0)`\n* HSL\n * `hsl\\((-?[\\d.]+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)`\n * e.g. `hsl(200, 20%, 50%)`\n* HSLA\n * `hsla\\((-?[\\d.]+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)`\n * e.g. `hsla(200, 20%, 50%, 0.5)`\n* Color name\n * Options are listed in SkParseColor.cpp\n * Similar to CSS Color Module Level 3 keywords, but case-sensitive.\n * e.g. `blueviolet` or `red`\n\n**Note:** Hex format with alpha takes `AARRGGBB` or `ARGB`, _not_ `RRGGBBAA` or `RGB`.", + "parameters": [ + { + "name": "color", + "description": "Color in Hex, RGB, ARGB, HSL, HSLA or named CSS color format. The alpha channel is optional for the hex type.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#viewsetbackgroundcolorcolor-experimental-deprecated" + } + ], + "instanceProperties": [ + { + "name": "webContents", + "description": "A `WebContents` object owned by this view.", + "required": true, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#viewwebcontents-experimental-deprecated", + "collection": false, + "type": "WebContents" + } + ], + "instanceEvents": [], + "instanceName": "view" + }, + { + "name": "BrowserWindow", + "extends": "BaseWindow", + "description": "> Create and control browser windows.\n\nProcess: Main\n\nThis module cannot be used until the `ready` event of the `app` module is emitted.\n\n### Window customization\n\nThe `BrowserWindow` class exposes various ways to modify the look and behavior of your app's windows. For more details, see the Window Customization tutorial.\n\n### Showing the window gracefully\n\nWhen loading a page in the window directly, users may see the page load incrementally, which is not a good experience for a native app. To make the window display without a visual flash, there are two solutions for different situations.\n\n### Using the `ready-to-show` event\n\nWhile loading the page, the `ready-to-show` event will be emitted when the renderer process has rendered the page for the first time if the window has not been shown yet. Showing the window after this event will have no visual flash:\n\n```\nconst { BrowserWindow } = require('electron')\nconst win = new BrowserWindow({ show: false })\nwin.once('ready-to-show', () => {\n win.show()\n})\n```\n\nThis event is usually emitted after the `did-finish-load` event, but for pages with many remote resources, it may be emitted before the `did-finish-load` event.\n\nPlease note that using this event implies that the renderer will be considered \"visible\" and paint even though `show` is false. This event will never fire if you use `paintWhenInitiallyHidden: false`\n\n### Setting the `backgroundColor` property\n\nFor a complex app, the `ready-to-show` event could be emitted too late, making the app feel slow. In this case, it is recommended to show the window immediately, and use a `backgroundColor` close to your app's background:\n\n```\nconst { BrowserWindow } = require('electron')\n\nconst win = new BrowserWindow({ backgroundColor: '#2e2c29' })\nwin.loadURL('https://github.com')\n```\n\nNote that even for apps that use `ready-to-show` event, it is still recommended to set `backgroundColor` to make the app feel more native.\n\nSome examples of valid `backgroundColor` values include:\n\n```\nconst win = new BrowserWindow()\nwin.setBackgroundColor('hsl(230, 100%, 50%)')\nwin.setBackgroundColor('rgb(255, 145, 145)')\nwin.setBackgroundColor('#ff00a3')\nwin.setBackgroundColor('blueviolet')\n```\n\nFor more information about these color types see valid options in win.setBackgroundColor.\n\n### Parent and child windows\n\nBy using `parent` option, you can create child windows:\n\n```\nconst { BrowserWindow } = require('electron')\n\nconst top = new BrowserWindow()\nconst child = new BrowserWindow({ parent: top })\nchild.show()\ntop.show()\n```\n\nThe `child` window will always show on top of the `top` window.\n\n### Modal windows\n\nA modal window is a child window that disables parent window. To create a modal window, you have to set both the `parent` and `modal` options:\n\n```\nconst { BrowserWindow } = require('electron')\n\nconst top = new BrowserWindow()\nconst child = new BrowserWindow({ parent: top, modal: true, show: false })\nchild.loadURL('https://github.com')\nchild.once('ready-to-show', () => {\n child.show()\n})\n```\n\n### Page visibility\n\nThe Page Visibility API works as follows:\n\n* On all platforms, the visibility state tracks whether the window is hidden/minimized or not.\n* Additionally, on macOS, the visibility state also tracks the window occlusion state. If the window is occluded (i.e. fully covered) by another window, the visibility state will be `hidden`. On other platforms, the visibility state will be `hidden` only when the window is minimized or explicitly hidden with `win.hide()`.\n* If a `BrowserWindow` is created with `show: false`, the initial visibility state will be `visible` despite the window actually being hidden.\n* If `backgroundThrottling` is disabled, the visibility state will remain `visible` even if the window is minimized, occluded, or hidden.\n\nIt is recommended that you pause expensive operations when the visibility state is `hidden` in order to minimize power consumption.\n\n### Platform notices\n\n* On macOS modal windows will be displayed as sheets attached to the parent window.\n* On macOS the child windows will keep the relative position to parent window when parent window moves, while on Windows and Linux child windows will not move.\n* On Linux the type of modal windows will be changed to `dialog`.\n* On Linux many desktop environments do not support hiding a modal window.\n\n### Class: BrowserWindow extends `BaseWindow`\n\n> Create and control browser windows.\n\nProcess: Main\n\n`BrowserWindow` is an EventEmitter.\n\nIt creates a new `BrowserWindow` with native properties as set by the `options`.", + "slug": "browser-window", + "websiteUrl": "https://electronjs.org/docs/api/browser-window", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/browser-window.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "constructorMethod": { + "signature": "([options])", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "BrowserWindowConstructorOptions" + } + ] + }, + "staticMethods": [ + { + "name": "getAllWindows", + "signature": "()", + "description": "An array of all opened browser windows.", + "parameters": [], + "returns": { + "collection": true, + "type": "BrowserWindow" + }, + "additionalTags": [], + "urlFragment": "#browserwindowgetallwindows" + }, + { + "name": "getFocusedWindow", + "signature": "()", + "description": "The window that is focused in this application, otherwise returns `null`.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#browserwindowgetfocusedwindow" + }, + { + "name": "fromWebContents", + "signature": "(webContents)", + "description": "The window that owns the given `webContents` or `null` if the contents are not owned by a window.", + "parameters": [ + { + "name": "webContents", + "description": "", + "required": true, + "collection": false, + "type": "WebContents" + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#browserwindowfromwebcontentswebcontents" + }, + { + "name": "fromBrowserView", + "signature": "(browserView)", + "description": "> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.\n\nThe window that owns the given `browserView`. If the given view is not attached to any window, returns `null`.", + "parameters": [ + { + "name": "browserView", + "description": "", + "required": true, + "collection": false, + "type": "BrowserView" + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [ + "stability_deprecated" + ], + "urlFragment": "#browserwindowfrombrowserviewbrowserview-deprecated" + }, + { + "name": "fromId", + "signature": "(id)", + "description": "The window with the given `id`.", + "parameters": [ + { + "name": "id", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#browserwindowfromidid" + } + ], + "staticProperties": [], + "instanceMethods": [ + { + "name": "destroy", + "signature": "()", + "description": "Force closing the window, the `unload` and `beforeunload` event won't be emitted for the web page, and `close` event will also not be emitted for this window, but it guarantees the `closed` event will be emitted.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#windestroy" + }, + { + "name": "close", + "signature": "()", + "description": "Try to close the window. This has the same effect as a user manually clicking the close button of the window. The web page may cancel the close though. See the close event.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winclose" + }, + { + "name": "focus", + "signature": "()", + "description": "Focuses on the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winfocus" + }, + { + "name": "blur", + "signature": "()", + "description": "Removes focus from the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winblur" + }, + { + "name": "isFocused", + "signature": "()", + "description": "Whether the window is focused.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisfocused" + }, + { + "name": "isDestroyed", + "signature": "()", + "description": "Whether the window is destroyed.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisdestroyed" + }, + { + "name": "show", + "signature": "()", + "description": "Shows and gives focus to the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winshow" + }, + { + "name": "showInactive", + "signature": "()", + "description": "Shows the window but doesn't focus on it.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winshowinactive" + }, + { + "name": "hide", + "signature": "()", + "description": "Hides the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winhide" + }, + { + "name": "isVisible", + "signature": "()", + "description": "Whether the window is visible to the user in the foreground of the app.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisvisible" + }, + { + "name": "isModal", + "signature": "()", + "description": "Whether current window is a modal window.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winismodal" + }, + { + "name": "maximize", + "signature": "()", + "description": "Maximizes the window. This will also show (but not focus) the window if it isn't being displayed already.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winmaximize" + }, + { + "name": "unmaximize", + "signature": "()", + "description": "Unmaximizes the window.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winunmaximize" + }, + { + "name": "isMaximized", + "signature": "()", + "description": "Whether the window is maximized.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winismaximized" + }, + { + "name": "minimize", + "signature": "()", + "description": "Minimizes the window. On some platforms the minimized window will be shown in the Dock.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winminimize" + }, + { + "name": "restore", + "signature": "()", + "description": "Restores the window from minimized state to its previous state.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winrestore" + }, + { + "name": "isMinimized", + "signature": "()", + "description": "Whether the window is minimized.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisminimized" + }, + { + "name": "setFullScreen", + "signature": "(flag)", + "description": "Sets whether the window should be in fullscreen mode.\n\n**Note:** On macOS, fullscreen transitions take place asynchronously. If further actions depend on the fullscreen state, use the 'enter-full-screen' or 'leave-full-screen' events.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetfullscreenflag" + }, + { + "name": "isFullScreen", + "signature": "()", + "description": "Whether the window is in fullscreen mode.\n\n**Note:** On macOS, fullscreen transitions take place asynchronously. When querying for a BrowserWindow's fullscreen status, you should ensure that either the 'enter-full-screen' or 'leave-full-screen' events have been emitted.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisfullscreen" + }, + { + "name": "setSimpleFullScreen", + "signature": "(flag)", + "description": "Enters or leaves simple fullscreen mode.\n\nSimple fullscreen mode emulates the native fullscreen behavior found in versions of macOS prior to Lion (10.7).", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetsimplefullscreenflag-macos" + }, + { + "name": "isSimpleFullScreen", + "signature": "()", + "description": "Whether the window is in simple (pre-Lion) fullscreen mode.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winissimplefullscreen-macos" + }, + { + "name": "isNormal", + "signature": "()", + "description": "Whether the window is in normal state (not maximized, not minimized, not in fullscreen mode).", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisnormal" + }, + { + "name": "setAspectRatio", + "signature": "(aspectRatio[, extraSize])", + "description": "This will make a window maintain an aspect ratio. The extra size allows a developer to have space, specified in pixels, not included within the aspect ratio calculations. This API already takes into account the difference between a window's size and its content size.\n\nConsider a normal window with an HD video player and associated controls. Perhaps there are 15 pixels of controls on the left edge, 25 pixels of controls on the right edge and 50 pixels of controls below the player. In order to maintain a 16:9 aspect ratio (standard aspect ratio for HD @1920x1080) within the player itself we would call this function with arguments of 16/9 and { width: 40, height: 50 }. The second argument doesn't care where the extra width and height are within the content view--only that they exist. Sum any extra width and height areas you have within the overall content view.\n\nThe aspect ratio is not respected when window is resized programmatically with APIs like `win.setSize`.\n\nTo reset an aspect ratio, pass 0 as the `aspectRatio` value: `win.setAspectRatio(0)`.", + "parameters": [ + { + "name": "aspectRatio", + "description": "The aspect ratio to maintain for some portion of the content view.", + "required": true, + "collection": false, + "type": "Float" + }, + { + "name": "extraSize", + "description": "The extra size not to be included while maintaining the aspect ratio.", + "required": false, + "collection": false, + "type": "Size" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetaspectratioaspectratio-extrasize" + }, + { + "name": "setBackgroundColor", + "signature": "(backgroundColor)", + "description": "Examples of valid `backgroundColor` values:\n\n* Hex\n * #fff (shorthand RGB)\n * #ffff (shorthand ARGB)\n * #ffffff (RGB)\n * #ffffffff (ARGB)\n* RGB\n * `rgb\\(([\\d]+),\\s*([\\d]+),\\s*([\\d]+)\\)`\n * e.g. rgb(255, 255, 255)\n* RGBA\n * `rgba\\(([\\d]+),\\s*([\\d]+),\\s*([\\d]+),\\s*([\\d.]+)\\)`\n * e.g. rgba(255, 255, 255, 1.0)\n* HSL\n * `hsl\\((-?[\\d.]+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)`\n * e.g. hsl(200, 20%, 50%)\n* HSLA\n * `hsla\\((-?[\\d.]+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)`\n * e.g. hsla(200, 20%, 50%, 0.5)\n* Color name\n * Options are listed in SkParseColor.cpp\n * Similar to CSS Color Module Level 3 keywords, but case-sensitive.\n * e.g. `blueviolet` or `red`\n\nSets the background color of the window. See Setting `backgroundColor`.", + "parameters": [ + { + "name": "backgroundColor", + "description": "Color in Hex, RGB, RGBA, HSL, HSLA or named CSS color format. The alpha channel is optional for the hex type.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetbackgroundcolorbackgroundcolor" + }, + { + "name": "previewFile", + "signature": "(path[, displayName])", + "description": "Uses Quick Look to preview a file at a given path.", + "parameters": [ + { + "name": "path", + "description": "The absolute path to the file to preview with QuickLook. This is important as Quick Look uses the file name and file extension on the path to determine the content type of the file to open.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "displayName", + "description": "The name of the file to display on the Quick Look modal view. This is purely visual and does not affect the content type of the file. Defaults to `path`.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winpreviewfilepath-displayname-macos" + }, + { + "name": "closeFilePreview", + "signature": "()", + "description": "Closes the currently open Quick Look panel.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winclosefilepreview-macos" + }, + { + "name": "setBounds", + "signature": "(bounds[, animate])", + "description": "Resizes and moves the window to the supplied bounds. Any properties that are not supplied will default to their current values.\n\n**Note:** On macOS, the y-coordinate value cannot be smaller than the Tray height. The tray height has changed over time and depends on the operating system, but is between 20-40px. Passing a value lower than the tray height will result in a window that is flush to the tray.", + "parameters": [ + { + "name": "bounds", + "description": "", + "required": true, + "collection": false, + "type": "Partial", + "innerTypes": [ + { + "collection": false, + "type": "Rectangle" + } + ] + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetboundsbounds-animate" + }, + { + "name": "getBounds", + "signature": "()", + "description": "The `bounds` of the window as `Object`.\n\n**Note:** On macOS, the y-coordinate value returned will be at minimum the Tray height. For example, calling `win.setBounds({ x: 25, y: 20, width: 800, height: 600 })` with a tray height of 38 means that `win.getBounds()` will return `{ x: 25, y: 38, width: 800, height: 600 }`.", + "parameters": [], + "returns": { + "collection": false, + "type": "Rectangle" + }, + "additionalTags": [], + "urlFragment": "#wingetbounds" + }, + { + "name": "getBackgroundColor", + "signature": "()", + "description": "Gets the background color of the window in Hex (`#RRGGBB`) format.\n\nSee Setting `backgroundColor`.\n\n**Note:** The alpha value is _not_ returned alongside the red, green, and blue values.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#wingetbackgroundcolor" + }, + { + "name": "setContentBounds", + "signature": "(bounds[, animate])", + "description": "Resizes and moves the window's client area (e.g. the web page) to the supplied bounds.", + "parameters": [ + { + "name": "bounds", + "description": "", + "required": true, + "collection": false, + "type": "Rectangle" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetcontentboundsbounds-animate" + }, + { + "name": "getContentBounds", + "signature": "()", + "description": "The `bounds` of the window's client area as `Object`.", + "parameters": [], + "returns": { + "collection": false, + "type": "Rectangle" + }, + "additionalTags": [], + "urlFragment": "#wingetcontentbounds" + }, + { + "name": "getNormalBounds", + "signature": "()", + "description": "Contains the window bounds of the normal state\n\n**Note:** whatever the current state of the window : maximized, minimized or in fullscreen, this function always returns the position and size of the window in normal state. In normal state, getBounds and getNormalBounds returns the same `Rectangle`.", + "parameters": [], + "returns": { + "collection": false, + "type": "Rectangle" + }, + "additionalTags": [], + "urlFragment": "#wingetnormalbounds" + }, + { + "name": "setEnabled", + "signature": "(enable)", + "description": "Disable or enable the window.", + "parameters": [ + { + "name": "enable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetenabledenable" + }, + { + "name": "isEnabled", + "signature": "()", + "description": "whether the window is enabled.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisenabled" + }, + { + "name": "setSize", + "signature": "(width, height[, animate])", + "description": "Resizes the window to `width` and `height`. If `width` or `height` are below any set minimum size constraints the window will snap to its minimum size.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetsizewidth-height-animate" + }, + { + "name": "getSize", + "signature": "()", + "description": "Contains the window's width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetsize" + }, + { + "name": "setContentSize", + "signature": "(width, height[, animate])", + "description": "Resizes the window's client area (e.g. the web page) to `width` and `height`.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetcontentsizewidth-height-animate" + }, + { + "name": "getContentSize", + "signature": "()", + "description": "Contains the window's client area's width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetcontentsize" + }, + { + "name": "setMinimumSize", + "signature": "(width, height)", + "description": "Sets the minimum size of window to `width` and `height`.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetminimumsizewidth-height" + }, + { + "name": "getMinimumSize", + "signature": "()", + "description": "Contains the window's minimum width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetminimumsize" + }, + { + "name": "setMaximumSize", + "signature": "(width, height)", + "description": "Sets the maximum size of window to `width` and `height`.", + "parameters": [ + { + "name": "width", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetmaximumsizewidth-height" + }, + { + "name": "getMaximumSize", + "signature": "()", + "description": "Contains the window's maximum width and height.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetmaximumsize" + }, + { + "name": "setResizable", + "signature": "(resizable)", + "description": "Sets whether the window can be manually resized by the user.", + "parameters": [ + { + "name": "resizable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetresizableresizable" + }, + { + "name": "isResizable", + "signature": "()", + "description": "Whether the window can be manually resized by the user.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisresizable" + }, + { + "name": "setMovable", + "signature": "(movable)", + "description": "Sets whether the window can be moved by user. On Linux does nothing.", + "parameters": [ + { + "name": "movable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetmovablemovable-macos-windows" + }, + { + "name": "isMovable", + "signature": "()", + "description": "Whether the window can be moved by user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winismovable-macos-windows" + }, + { + "name": "setMinimizable", + "signature": "(minimizable)", + "description": "Sets whether the window can be manually minimized by user. On Linux does nothing.", + "parameters": [ + { + "name": "minimizable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetminimizableminimizable-macos-windows" + }, + { + "name": "isMinimizable", + "signature": "()", + "description": "Whether the window can be manually minimized by the user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winisminimizable-macos-windows" + }, + { + "name": "setMaximizable", + "signature": "(maximizable)", + "description": "Sets whether the window can be manually maximized by user. On Linux does nothing.", + "parameters": [ + { + "name": "maximizable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetmaximizablemaximizable-macos-windows" + }, + { + "name": "isMaximizable", + "signature": "()", + "description": "Whether the window can be manually maximized by user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winismaximizable-macos-windows" + }, + { + "name": "setFullScreenable", + "signature": "(fullscreenable)", + "description": "Sets whether the maximize/zoom window button toggles fullscreen mode or maximizes the window.", + "parameters": [ + { + "name": "fullscreenable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetfullscreenablefullscreenable" + }, + { + "name": "isFullScreenable", + "signature": "()", + "description": "Whether the maximize/zoom window button toggles fullscreen mode or maximizes the window.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisfullscreenable" + }, + { + "name": "setClosable", + "signature": "(closable)", + "description": "Sets whether the window can be manually closed by user. On Linux does nothing.", + "parameters": [ + { + "name": "closable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetclosableclosable-macos-windows" + }, + { + "name": "isClosable", + "signature": "()", + "description": "Whether the window can be manually closed by user.\n\nOn Linux always returns `true`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winisclosable-macos-windows" + }, + { + "name": "setHiddenInMissionControl", + "signature": "(hidden)", + "description": "Sets whether the window will be hidden when the user toggles into mission control.", + "parameters": [ + { + "name": "hidden", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsethiddeninmissioncontrolhidden-macos" + }, + { + "name": "isHiddenInMissionControl", + "signature": "()", + "description": "Whether the window will be hidden when the user toggles into mission control.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winishiddeninmissioncontrol-macos" + }, + { + "name": "setAlwaysOnTop", + "signature": "(flag[, level][, relativeLevel])", + "description": "Sets whether the window should show always on top of other windows. After setting this, the window is still a normal window, not a toolbox window which can not be focused on.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + }, + { + "name": "level", + "description": "Values include `normal`, `floating`, `torn-off-menu`, `modal-panel`, `main-menu`, `status`, `pop-up-menu`, `screen-saver`, and ~~`dock`~~ (Deprecated). The default is `floating` when `flag` is true. The `level` is reset to `normal` when the flag is false. Note that from `floating` to `status` included, the window is placed below the Dock on macOS and below the taskbar on Windows. From `pop-up-menu` to a higher it is shown above the Dock on macOS and above the taskbar on Windows. See the macOS docs for more details.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "normal", + "description": "" + }, + { + "value": "floating", + "description": "" + }, + { + "value": "torn-off-menu", + "description": "" + }, + { + "value": "modal-panel", + "description": "" + }, + { + "value": "main-menu", + "description": "" + }, + { + "value": "status", + "description": "" + }, + { + "value": "pop-up-menu", + "description": "" + }, + { + "value": "screen-saver", + "description": "" + }, + { + "value": "dock", + "description": "" + } + ] + }, + { + "name": "relativeLevel", + "description": "The number of layers higher to set this window relative to the given `level`. The default is `0`. Note that Apple discourages setting levels higher than 1 above `screen-saver`.", + "required": false, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetalwaysontopflag-level-relativelevel" + }, + { + "name": "isAlwaysOnTop", + "signature": "()", + "description": "Whether the window is always on top of other windows.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winisalwaysontop" + }, + { + "name": "moveAbove", + "signature": "(mediaSourceId)", + "description": "Moves window above the source window in the sense of z-order. If the `mediaSourceId` is not of type window or if the window does not exist then this method throws an error.", + "parameters": [ + { + "name": "mediaSourceId", + "description": "Window id in the format of DesktopCapturerSource's id. For example \"window:1869:0\".", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winmoveabovemediasourceid" + }, + { + "name": "moveTop", + "signature": "()", + "description": "Moves window to top(z-order) regardless of focus", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winmovetop" + }, + { + "name": "center", + "signature": "()", + "description": "Moves window to the center of the screen.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#wincenter" + }, + { + "name": "setPosition", + "signature": "(x, y[, animate])", + "description": "Moves window to `x` and `y`.", + "parameters": [ + { + "name": "x", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "y", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "animate", + "description": "", + "required": false, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetpositionx-y-animate" + }, + { + "name": "getPosition", + "signature": "()", + "description": "Contains the window's current position.", + "parameters": [], + "returns": { + "collection": true, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#wingetposition" + }, + { + "name": "setTitle", + "signature": "(title)", + "description": "Changes the title of native window to `title`.", + "parameters": [ + { + "name": "title", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsettitletitle" + }, + { + "name": "getTitle", + "signature": "()", + "description": "The title of the native window.\n\n**Note:** The title of the web page can be different from the title of the native window.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#wingettitle" + }, + { + "name": "setSheetOffset", + "signature": "(offsetY[, offsetX])", + "description": "Changes the attachment point for sheets on macOS. By default, sheets are attached just below the window frame, but you may want to display them beneath a HTML-rendered toolbar. For example:", + "parameters": [ + { + "name": "offsetY", + "description": "", + "required": true, + "collection": false, + "type": "Float" + }, + { + "name": "offsetX", + "description": "", + "required": false, + "collection": false, + "type": "Float" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetsheetoffsetoffsety-offsetx-macos" + }, + { + "name": "flashFrame", + "signature": "(flag)", + "description": "Starts or stops flashing the window to attract user's attention.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winflashframeflag" + }, + { + "name": "setSkipTaskbar", + "signature": "(skip)", + "description": "Makes the window not show in the taskbar.", + "parameters": [ + { + "name": "skip", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetskiptaskbarskip-macos-windows" + }, + { + "name": "setKiosk", + "signature": "(flag)", + "description": "Enters or leaves kiosk mode.", + "parameters": [ + { + "name": "flag", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetkioskflag" + }, + { + "name": "isKiosk", + "signature": "()", + "description": "Whether the window is in kiosk mode.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winiskiosk" + }, + { + "name": "isTabletMode", + "signature": "()", + "description": "Whether the window is in Windows 10 tablet mode.\n\nSince Windows 10 users can use their PC as tablet, under this mode apps can choose to optimize their UI for tablets, such as enlarging the titlebar and hiding titlebar buttons.\n\nThis API returns whether the window is in tablet mode, and the `resize` event can be be used to listen to changes to tablet mode.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winistabletmode-windows" + }, + { + "name": "getMediaSourceId", + "signature": "()", + "description": "Window id in the format of DesktopCapturerSource's id. For example \"window:1324:0\".\n\nMore precisely the format is `window:id:other_id` where `id` is `HWND` on Windows, `CGWindowID` (`uint64_t`) on macOS and `Window` (`unsigned long`) on Linux. `other_id` is used to identify web contents (tabs) so within the same top level window.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#wingetmediasourceid" + }, + { + "name": "getNativeWindowHandle", + "signature": "()", + "description": "The platform-specific handle of the window.\n\nThe native type of the handle is `HWND` on Windows, `NSView*` on macOS, and `Window` (`unsigned long`) on Linux.", + "parameters": [], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [], + "urlFragment": "#wingetnativewindowhandle" + }, + { + "name": "hookWindowMessage", + "signature": "(message, callback)", + "description": "Hooks a windows message. The `callback` is called when the message is received in the WndProc.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "callback", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "wParam", + "description": "The `wParam` provided to the WndProc", + "required": true, + "collection": false, + "type": "Buffer" + }, + { + "name": "lParam", + "description": "The `lParam` provided to the WndProc", + "required": true, + "collection": false, + "type": "Buffer" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winhookwindowmessagemessage-callback-windows" + }, + { + "name": "isWindowMessageHooked", + "signature": "(message)", + "description": "`true` or `false` depending on whether the message is hooked.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winiswindowmessagehookedmessage-windows" + }, + { + "name": "unhookWindowMessage", + "signature": "(message)", + "description": "Unhook the window message.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winunhookwindowmessagemessage-windows" + }, + { + "name": "unhookAllWindowMessages", + "signature": "()", + "description": "Unhooks all of the window messages.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winunhookallwindowmessages-windows" + }, + { + "name": "setRepresentedFilename", + "signature": "(filename)", + "description": "Sets the pathname of the file the window represents, and the icon of the file will show in window's title bar.", + "parameters": [ + { + "name": "filename", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetrepresentedfilenamefilename-macos" + }, + { + "name": "getRepresentedFilename", + "signature": "()", + "description": "The pathname of the file the window represents.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wingetrepresentedfilename-macos" + }, + { + "name": "setDocumentEdited", + "signature": "(edited)", + "description": "Specifies whether the window’s document has been edited, and the icon in title bar will become gray when set to `true`.", + "parameters": [ + { + "name": "edited", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetdocumenteditededited-macos" + }, + { + "name": "isDocumentEdited", + "signature": "()", + "description": "Whether the window's document has been edited.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winisdocumentedited-macos" + }, + { + "name": "focusOnWebView", + "signature": "()", + "description": "", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winfocusonwebview" + }, + { + "name": "blurWebView", + "signature": "()", + "description": "", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winblurwebview" + }, + { + "name": "capturePage", + "signature": "([rect, opts])", + "description": "Resolves with a NativeImage\n\nCaptures a snapshot of the page within `rect`. Omitting `rect` will capture the whole visible page. If the page is not visible, `rect` may be empty. The page is considered visible when its browser window is hidden and the capturer count is non-zero. If you would like the page to stay hidden, you should ensure that `stayHidden` is set to true.", + "parameters": [ + { + "name": "rect", + "description": "The bounds to capture", + "required": false, + "collection": false, + "type": "Rectangle" + }, + { + "name": "opts", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "stayHidden", + "description": " Keep the page hidden instead of visible. Default is `false`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "stayAwake", + "description": " Keep the system awake instead of allowing it to sleep. Default is `false`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "NativeImage" + } + ] + }, + "additionalTags": [], + "urlFragment": "#wincapturepagerect-opts" + }, + { + "name": "loadURL", + "signature": "(url[, options])", + "description": "the promise will resolve when the page has finished loading (see `did-finish-load`), and rejects if the page fails to load (see `did-fail-load`).\n\nSame as `webContents.loadURL(url[, options])`.\n\nThe `url` can be a remote address (e.g. `http://`) or a path to a local HTML file using the `file://` protocol.\n\nTo ensure that file URLs are properly formatted, it is recommended to use Node's `url.format` method:\n\nYou can load a URL using a `POST` request with URL-encoded data by doing the following:", + "parameters": [ + { + "name": "url", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "httpReferrer", + "description": "An HTTP Referrer URL.", + "required": false, + "additionalTags": [], + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "Referrer" + } + ] + }, + { + "name": "userAgent", + "description": "A user agent originating the request.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "extraHeaders", + "description": "Extra headers separated by \"\\n\"", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "postData", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": [ + { + "collection": false, + "type": "UploadRawData" + }, + { + "collection": false, + "type": "UploadFile" + } + ] + }, + { + "name": "baseURLForDataURL", + "description": "Base URL (with trailing path separator) for files to be loaded by the data URL. This is needed only if the specified `url` is a data URL and needs to load other files.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#winloadurlurl-options" + }, + { + "name": "loadFile", + "signature": "(filePath[, options])", + "description": "the promise will resolve when the page has finished loading (see `did-finish-load`), and rejects if the page fails to load (see `did-fail-load`).\n\nSame as `webContents.loadFile`, `filePath` should be a path to an HTML file relative to the root of your application. See the `webContents` docs for more information.", + "parameters": [ + { + "name": "filePath", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "query", + "description": "Passed to `url.format()`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "search", + "description": "Passed to `url.format()`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "hash", + "description": "Passed to `url.format()`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#winloadfilefilepath-options" + }, + { + "name": "reload", + "signature": "()", + "description": "Same as `webContents.reload`.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#winreload" + }, + { + "name": "setMenu", + "signature": "(menu)", + "description": "Sets the `menu` as the window's menu bar.", + "parameters": [ + { + "name": "menu", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "Menu" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "urlFragment": "#winsetmenumenu-linux-windows" + }, + { + "name": "removeMenu", + "signature": "()", + "description": "Remove the window's menu bar.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "urlFragment": "#winremovemenu-linux-windows" + }, + { + "name": "setProgressBar", + "signature": "(progress[, options])", + "description": "Sets progress value in progress bar. Valid range is [0, 1.0].\n\nRemove progress bar when progress < 0; Change to indeterminate mode when progress > 1.\n\nOn Linux platform, only supports Unity desktop environment, you need to specify the `*.desktop` file name to `desktopName` field in `package.json`. By default, it will assume `{app.name}.desktop`.\n\nOn Windows, a mode can be passed. Accepted values are `none`, `normal`, `indeterminate`, `error`, and `paused`. If you call `setProgressBar` without a mode set (but with a value within the valid range), `normal` will be assumed.", + "parameters": [ + { + "name": "progress", + "description": "", + "required": true, + "collection": false, + "type": "Double" + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "mode", + "description": "Mode for the progress bar. Can be `none`, `normal`, `indeterminate`, `error` or `paused`.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "none", + "description": "" + }, + { + "value": "normal", + "description": "" + }, + { + "value": "indeterminate", + "description": "" + }, + { + "value": "error", + "description": "" + }, + { + "value": "paused", + "description": "" + } + ] + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetprogressbarprogress-options" + }, + { + "name": "setOverlayIcon", + "signature": "(overlay, description)", + "description": "Sets a 16 x 16 pixel overlay onto the current taskbar icon, usually used to convey some sort of application status or to passively notify the user.", + "parameters": [ + { + "name": "overlay", + "description": "the icon to display on the bottom right corner of the taskbar icon. If this parameter is `null`, the overlay is cleared", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "type": "null", + "collection": false + } + ] + }, + { + "name": "description", + "description": "a description that will be provided to Accessibility screen readers", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetoverlayiconoverlay-description-windows" + }, + { + "name": "invalidateShadow", + "signature": "()", + "description": "Invalidates the window shadow so that it is recomputed based on the current window shape.\n\n`BrowserWindows` that are transparent can sometimes leave behind visual artifacts on macOS. This method can be used to clear these artifacts when, for example, performing an animation.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wininvalidateshadow-macos" + }, + { + "name": "setHasShadow", + "signature": "(hasShadow)", + "description": "Sets whether the window should have a shadow.", + "parameters": [ + { + "name": "hasShadow", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsethasshadowhasshadow" + }, + { + "name": "hasShadow", + "signature": "()", + "description": "Whether the window has a shadow.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#winhasshadow" + }, + { + "name": "setOpacity", + "signature": "(opacity)", + "description": "Sets the opacity of the window. On Linux, does nothing. Out of bound number values are clamped to the [0, 1] range.", + "parameters": [ + { + "name": "opacity", + "description": "between 0.0 (fully transparent) and 1.0 (fully opaque)", + "required": true, + "collection": false, + "type": "number" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_macos" + ], + "urlFragment": "#winsetopacityopacity-windows-macos" + }, + { + "name": "getOpacity", + "signature": "()", + "description": "between 0.0 (fully transparent) and 1.0 (fully opaque). On Linux, always returns 1.", + "parameters": [], + "returns": { + "collection": false, + "type": "number" + }, + "additionalTags": [], + "urlFragment": "#wingetopacity" + }, + { + "name": "setShape", + "signature": "(rects)", + "description": "Setting a window shape determines the area within the window where the system permits drawing and user interaction. Outside of the given region, no pixels will be drawn and no mouse events will be registered. Mouse events outside of the region will not be received by that window, but will fall through to whatever is behind the window.", + "parameters": [ + { + "name": "rects", + "description": "Sets a shape on the window. Passing an empty list reverts the window to being rectangular.", + "required": true, + "collection": true, + "type": "Rectangle" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux", + "stability_experimental" + ], + "urlFragment": "#winsetshaperects-windows-linux-experimental" + }, + { + "name": "setThumbarButtons", + "signature": "(buttons)", + "description": "Whether the buttons were added successfully\n\nAdd a thumbnail toolbar with a specified set of buttons to the thumbnail image of a window in a taskbar button layout. Returns a `boolean` object indicates whether the thumbnail has been added successfully.\n\nThe number of buttons in thumbnail toolbar should be no greater than 7 due to the limited room. Once you setup the thumbnail toolbar, the toolbar cannot be removed due to the platform's limitation. But you can call the API with an empty array to clean the buttons.\n\nThe `buttons` is an array of `Button` objects:\n\n* `Button` Object\n * `icon` NativeImage - The icon showing in thumbnail toolbar.\n * `click` Function\n * `tooltip` string (optional) - The text of the button's tooltip.\n * `flags` string[] (optional) - Control specific states and behaviors of the button. By default, it is `['enabled']`.\n\nThe `flags` is an array that can include following `string`s:\n\n* `enabled` - The button is active and available to the user.\n* `disabled` - The button is disabled. It is present, but has a visual state indicating it will not respond to user action.\n* `dismissonclick` - When the button is clicked, the thumbnail window closes immediately.\n* `nobackground` - Do not draw a button border, use only the image.\n* `hidden` - The button is not shown to the user.\n* `noninteractive` - The button is enabled but not interactive; no pressed button state is drawn. This value is intended for instances where the button is used in a notification.", + "parameters": [ + { + "name": "buttons", + "description": "", + "required": true, + "collection": true, + "type": "ThumbarButton" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetthumbarbuttonsbuttons-windows" + }, + { + "name": "setThumbnailClip", + "signature": "(region)", + "description": "Sets the region of the window to show as the thumbnail image displayed when hovering over the window in the taskbar. You can reset the thumbnail to be the entire window by specifying an empty region: `{ x: 0, y: 0, width: 0, height: 0 }`.", + "parameters": [ + { + "name": "region", + "description": "Region of the window", + "required": true, + "collection": false, + "type": "Rectangle" + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetthumbnailclipregion-windows" + }, + { + "name": "setThumbnailToolTip", + "signature": "(toolTip)", + "description": "Sets the toolTip that is displayed when hovering over the window thumbnail in the taskbar.", + "parameters": [ + { + "name": "toolTip", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetthumbnailtooltiptooltip-windows" + }, + { + "name": "setAppDetails", + "signature": "(options)", + "description": "Sets the properties for the window's taskbar button.\n\n**Note:** `relaunchCommand` and `relaunchDisplayName` must always be set together. If one of those properties is not set, then neither will be used.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "appId", + "description": "Window's App User Model ID. It has to be set, otherwise the other options will have no effect.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "appIconPath", + "description": "Window's Relaunch Icon.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "appIconIndex", + "description": "Index of the icon in `appIconPath`. Ignored when `appIconPath` is not set. Default is `0`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "relaunchCommand", + "description": "Window's Relaunch Command.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "relaunchDisplayName", + "description": "Window's Relaunch Display Name.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetappdetailsoptions-windows" + }, + { + "name": "showDefinitionForSelection", + "signature": "()", + "description": "Same as `webContents.showDefinitionForSelection()`.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winshowdefinitionforselection-macos" + }, + { + "name": "setIcon", + "signature": "(icon)", + "description": "Changes window icon.", + "parameters": [ + { + "name": "icon", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winseticonicon-windows-linux" + }, + { + "name": "setWindowButtonVisibility", + "signature": "(visible)", + "description": "Sets whether the window traffic light buttons should be visible.", + "parameters": [ + { + "name": "visible", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetwindowbuttonvisibilityvisible-macos" + }, + { + "name": "setAutoHideMenuBar", + "signature": "(hide)", + "description": "Sets whether the window menu bar should hide itself automatically. Once set the menu bar will only show when users press the single `Alt` key.\n\nIf the menu bar is already visible, calling `setAutoHideMenuBar(true)` won't hide it immediately.", + "parameters": [ + { + "name": "hide", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winsetautohidemenubarhide-windows-linux" + }, + { + "name": "isMenuBarAutoHide", + "signature": "()", + "description": "Whether menu bar automatically hides itself.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winismenubarautohide-windows-linux" + }, + { + "name": "setMenuBarVisibility", + "signature": "(visible)", + "description": "Sets whether the menu bar should be visible. If the menu bar is auto-hide, users can still bring up the menu bar by pressing the single `Alt` key.", + "parameters": [ + { + "name": "visible", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winsetmenubarvisibilityvisible-windows-linux" + }, + { + "name": "isMenuBarVisible", + "signature": "()", + "description": "Whether the menu bar is visible.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winismenubarvisible-windows-linux" + }, + { + "name": "setVisibleOnAllWorkspaces", + "signature": "(visible[, options])", + "description": "Sets whether the window should be visible on all workspaces.\n\n**Note:** This API does nothing on Windows.", + "parameters": [ + { + "name": "visible", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "visibleOnFullScreen", + "description": "Sets whether the window should be visible above fullscreen windows.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "skipTransformProcessType", + "description": "Calling setVisibleOnAllWorkspaces will by default transform the process type between UIElementApplication and ForegroundApplication to ensure the correct behavior. However, this will hide the window and dock for a short time every time it is called. If your window is already of type UIElementApplication, you can bypass this transformation by passing true to skipTransformProcessType.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_linux" + ], + "urlFragment": "#winsetvisibleonallworkspacesvisible-options-macos-linux" + }, + { + "name": "isVisibleOnAllWorkspaces", + "signature": "()", + "description": "Whether the window is visible on all workspaces.\n\n**Note:** This API always returns false on Windows.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_linux" + ], + "urlFragment": "#winisvisibleonallworkspaces-macos-linux" + }, + { + "name": "setIgnoreMouseEvents", + "signature": "(ignore[, options])", + "description": "Makes the window ignore all mouse events.\n\nAll mouse events happened in this window will be passed to the window below this window, but if this window has focus, it will still receive keyboard events.", + "parameters": [ + { + "name": "ignore", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "forward", + "description": "If true, forwards mouse move messages to Chromium, enabling mouse related events such as `mouseleave`. Only used when `ignore` is true. If `ignore` is false, forwarding is always disabled regardless of this value.", + "required": false, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetignoremouseeventsignore-options" + }, + { + "name": "setContentProtection", + "signature": "(enable)", + "description": "Prevents the window contents from being captured by other apps.\n\nOn macOS it sets the NSWindow's sharingType to NSWindowSharingNone. On Windows it calls SetWindowDisplayAffinity with `WDA_EXCLUDEFROMCAPTURE`. For Windows 10 version 2004 and up the window will be removed from capture entirely, older Windows versions behave as if `WDA_MONITOR` is applied capturing a black window.", + "parameters": [ + { + "name": "enable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetcontentprotectionenable-macos-windows" + }, + { + "name": "setFocusable", + "signature": "(focusable)", + "description": "Changes whether the window can be focused.\n\nOn macOS it does not remove the focus from the window.", + "parameters": [ + { + "name": "focusable", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winsetfocusablefocusable-macos-windows" + }, + { + "name": "isFocusable", + "signature": "()", + "description": "Whether the window can be focused.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winisfocusable-macos-windows" + }, + { + "name": "setParentWindow", + "signature": "(parent)", + "description": "Sets `parent` as current window's parent window, passing `null` will turn current window into a top-level window.", + "parameters": [ + { + "name": "parent", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserWindow" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#winsetparentwindowparent" + }, + { + "name": "getParentWindow", + "signature": "()", + "description": "The parent window or `null` if there is no parent.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserWindow" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#wingetparentwindow" + }, + { + "name": "getChildWindows", + "signature": "()", + "description": "All child windows.", + "parameters": [], + "returns": { + "collection": true, + "type": "BrowserWindow" + }, + "additionalTags": [], + "urlFragment": "#wingetchildwindows" + }, + { + "name": "setAutoHideCursor", + "signature": "(autoHide)", + "description": "Controls whether to hide cursor when typing.", + "parameters": [ + { + "name": "autoHide", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetautohidecursorautohide-macos" + }, + { + "name": "selectPreviousTab", + "signature": "()", + "description": "Selects the previous tab when native tabs are enabled and there are other tabs in the window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winselectprevioustab-macos" + }, + { + "name": "selectNextTab", + "signature": "()", + "description": "Selects the next tab when native tabs are enabled and there are other tabs in the window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winselectnexttab-macos" + }, + { + "name": "showAllTabs", + "signature": "()", + "description": "Shows or hides the tab overview when native tabs are enabled.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winshowalltabs-macos" + }, + { + "name": "mergeAllWindows", + "signature": "()", + "description": "Merges all windows into one window with multiple tabs when native tabs are enabled and there is more than one open window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winmergeallwindows-macos" + }, + { + "name": "moveTabToNewWindow", + "signature": "()", + "description": "Moves the current tab into a new window if native tabs are enabled and there is more than one tab in the current window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winmovetabtonewwindow-macos" + }, + { + "name": "toggleTabBar", + "signature": "()", + "description": "Toggles the visibility of the tab bar if native tabs are enabled and there is only one tab in the current window.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wintoggletabbar-macos" + }, + { + "name": "addTabbedWindow", + "signature": "(browserWindow)", + "description": "Adds a window as a tab on this window, after the tab for the window instance.", + "parameters": [ + { + "name": "browserWindow", + "description": "", + "required": true, + "collection": false, + "type": "BrowserWindow" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winaddtabbedwindowbrowserwindow-macos" + }, + { + "name": "setVibrancy", + "signature": "(type)", + "description": "Adds a vibrancy effect to the browser window. Passing `null` or an empty string will remove the vibrancy effect on the window.", + "parameters": [ + { + "name": "type", + "description": "Can be `titlebar`, `selection`, `menu`, `popover`, `sidebar`, `header`, `sheet`, `window`, `hud`, `fullscreen-ui`, `tooltip`, `content`, `under-window`, or `under-page`. See the macOS documentation for more details.", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "titlebar", + "description": "" + }, + { + "value": "selection", + "description": "" + }, + { + "value": "menu", + "description": "" + }, + { + "value": "popover", + "description": "" + }, + { + "value": "sidebar", + "description": "" + }, + { + "value": "header", + "description": "" + }, + { + "value": "sheet", + "description": "" + }, + { + "value": "window", + "description": "" + }, + { + "value": "hud", + "description": "" + }, + { + "value": "fullscreen-ui", + "description": "" + }, + { + "value": "tooltip", + "description": "" + }, + { + "value": "content", + "description": "" + }, + { + "value": "under-window", + "description": "" + }, + { + "value": "under-page", + "description": "" + } + ] + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetvibrancytype-macos" + }, + { + "name": "setBackgroundMaterial", + "signature": "(material)", + "description": "This method sets the browser window's system-drawn background material, including behind the non-client area.\n\nSee the Windows documentation for more details.\n\n**Note:** This method is only supported on Windows 11 22H2 and up.", + "parameters": [ + { + "name": "material", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "auto", + "description": "Let the Desktop Window Manager (DWM) automatically decide the system-drawn backdrop material for this window. This is the default." + }, + { + "value": "none", + "description": "Don't draw any system backdrop." + }, + { + "value": "mica", + "description": "Draw the backdrop material effect corresponding to a long-lived window." + }, + { + "value": "acrylic", + "description": "Draw the backdrop material effect corresponding to a transient window." + }, + { + "value": "tabbed", + "description": "Draw the backdrop material effect corresponding to a window with a tabbed title bar." + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#winsetbackgroundmaterialmaterial-windows" + }, + { + "name": "setWindowButtonPosition", + "signature": "(position)", + "description": "Set a custom position for the traffic light buttons in frameless window. Passing `null` will reset the position to default.", + "parameters": [ + { + "name": "position", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "Point" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsetwindowbuttonpositionposition-macos" + }, + { + "name": "getWindowButtonPosition", + "signature": "()", + "description": "The custom position for the traffic light buttons in frameless window, `null` will be returned when there is no custom position.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "Point" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#wingetwindowbuttonposition-macos" + }, + { + "name": "setTouchBar", + "signature": "(touchBar)", + "description": "Sets the touchBar layout for the current window. Specifying `null` or `undefined` clears the touch bar. This method only has an effect if the machine has a touch bar.\n\n**Note:** The TouchBar API is currently experimental and may change or be removed in future Electron releases.", + "parameters": [ + { + "name": "touchBar", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "TouchBar" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winsettouchbartouchbar-macos" + }, + { + "name": "setBrowserView", + "signature": "(browserView)", + "description": "> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.", + "parameters": [ + { + "name": "browserView", + "description": "Attach `browserView` to `win`. If there are other `BrowserView`s attached, they will be removed from this window.", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserView" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#winsetbrowserviewbrowserview-experimental-deprecated" + }, + { + "name": "getBrowserView", + "signature": "()", + "description": "The `BrowserView` attached to `win`. Returns `null` if one is not attached. Throws an error if multiple `BrowserView`s are attached.\n\n> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "BrowserView" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#wingetbrowserview-experimental-deprecated" + }, + { + "name": "addBrowserView", + "signature": "(browserView)", + "description": "Replacement API for setBrowserView supporting work with multi browser views.\n\n> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.", + "parameters": [ + { + "name": "browserView", + "description": "", + "required": true, + "collection": false, + "type": "BrowserView" + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#winaddbrowserviewbrowserview-experimental-deprecated" + }, + { + "name": "removeBrowserView", + "signature": "(browserView)", + "description": "> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.", + "parameters": [ + { + "name": "browserView", + "description": "", + "required": true, + "collection": false, + "type": "BrowserView" + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#winremovebrowserviewbrowserview-experimental-deprecated" + }, + { + "name": "setTopBrowserView", + "signature": "(browserView)", + "description": "Raises `browserView` above other `BrowserView`s attached to `win`. Throws an error if `browserView` is not attached to `win`.\n\n> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.", + "parameters": [ + { + "name": "browserView", + "description": "", + "required": true, + "collection": false, + "type": "BrowserView" + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#winsettopbrowserviewbrowserview-experimental-deprecated" + }, + { + "name": "getBrowserViews", + "signature": "()", + "description": "a sorted by z-index array of all BrowserViews that have been attached with `addBrowserView` or `setBrowserView`. The top-most BrowserView is the last element of the array.\n\n> **Note** The `BrowserView` class is deprecated, and replaced by the new `WebContentsView` class.", + "parameters": [], + "returns": { + "collection": true, + "type": "BrowserView" + }, + "additionalTags": [ + "stability_experimental", + "stability_deprecated" + ], + "urlFragment": "#wingetbrowserviews-experimental-deprecated" + }, + { + "name": "setTitleBarOverlay", + "signature": "(options)", + "description": "On a window with Window Controls Overlay already enabled, this method updates the style of the title bar overlay.\n\nOn Linux, the `symbolColor` is automatically calculated to have minimum accessible contrast to the `color` if not explicitly set.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "color", + "description": "The CSS color of the Window Controls Overlay when enabled.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "symbolColor", + "description": "The CSS color of the symbols on the Window Controls Overlay when enabled.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "height", + "description": "The height of the title bar and Window Controls Overlay in pixels.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winsettitlebaroverlayoptions-windows-linux" + } + ], + "instanceProperties": [ + { + "name": "webContents", + "description": "A `WebContents` object this window owns. All web page related events and operations will be done via it.\n\nSee the `webContents` documentation for its methods and events.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#winwebcontents-readonly", + "collection": false, + "type": "WebContents" + }, + { + "name": "id", + "description": "A `Integer` property representing the unique ID of the window. Each ID is unique among all `BrowserWindow` instances of the entire Electron application.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#winid-readonly", + "collection": false, + "type": "Integer" + }, + { + "name": "tabbingIdentifier", + "description": "A `string` (optional) property that is equal to the `tabbingIdentifier` passed to the `BrowserWindow` constructor or `undefined` if none was set.", + "required": false, + "additionalTags": [ + "os_macos", + "availability_readonly" + ], + "urlFragment": "#wintabbingidentifier-macos-readonly", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "autoHideMenuBar", + "description": "A `boolean` property that determines whether the window menu bar should hide itself automatically. Once set, the menu bar will only show when users press the single `Alt` key.\n\nIf the menu bar is already visible, setting this property to `true` won't hide it immediately.", + "required": true, + "additionalTags": [], + "urlFragment": "#winautohidemenubar", + "collection": false, + "type": "boolean" + }, + { + "name": "simpleFullScreen", + "description": "A `boolean` property that determines whether the window is in simple (pre-Lion) fullscreen mode.", + "required": true, + "additionalTags": [], + "urlFragment": "#winsimplefullscreen", + "collection": false, + "type": "boolean" + }, + { + "name": "fullScreen", + "description": "A `boolean` property that determines whether the window is in fullscreen mode.", + "required": true, + "additionalTags": [], + "urlFragment": "#winfullscreen", + "collection": false, + "type": "boolean" + }, + { + "name": "focusable", + "description": "A `boolean` property that determines whether the window is focusable.", + "required": true, + "additionalTags": [ + "os_windows", + "os_macos" + ], + "urlFragment": "#winfocusable-windows-macos", + "collection": false, + "type": "boolean" + }, + { + "name": "visibleOnAllWorkspaces", + "description": "A `boolean` property that determines whether the window is visible on all workspaces.\n\n**Note:** Always returns false on Windows.", + "required": true, + "additionalTags": [ + "os_macos", + "os_linux" + ], + "urlFragment": "#winvisibleonallworkspaces-macos-linux", + "collection": false, + "type": "boolean" + }, + { + "name": "shadow", + "description": "A `boolean` property that determines whether the window has a shadow.", + "required": true, + "additionalTags": [], + "urlFragment": "#winshadow", + "collection": false, + "type": "boolean" + }, + { + "name": "menuBarVisible", + "description": "A `boolean` property that determines whether the menu bar should be visible.\n\n**Note:** If the menu bar is auto-hide, users can still bring up the menu bar by pressing the single `Alt` key.", + "required": true, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#winmenubarvisible-windows-linux", + "collection": false, + "type": "boolean" + }, + { + "name": "kiosk", + "description": "A `boolean` property that determines whether the window is in kiosk mode.", + "required": true, + "additionalTags": [], + "urlFragment": "#winkiosk", + "collection": false, + "type": "boolean" + }, + { + "name": "documentEdited", + "description": "A `boolean` property that specifies whether the window’s document has been edited.\n\nThe icon in title bar will become gray when set to `true`.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#windocumentedited-macos", + "collection": false, + "type": "boolean" + }, + { + "name": "representedFilename", + "description": "A `string` property that determines the pathname of the file the window represents, and the icon of the file will show in window's title bar.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winrepresentedfilename-macos", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "title", + "description": "A `string` property that determines the title of the native window.\n\n**Note:** The title of the web page can be different from the title of the native window.", + "required": true, + "additionalTags": [], + "urlFragment": "#wintitle", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "minimizable", + "description": "A `boolean` property that determines whether the window can be manually minimized by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winminimizable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "maximizable", + "description": "A `boolean` property that determines whether the window can be manually maximized by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winmaximizable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "fullScreenable", + "description": "A `boolean` property that determines whether the maximize/zoom window button toggles fullscreen mode or maximizes the window.", + "required": true, + "additionalTags": [], + "urlFragment": "#winfullscreenable", + "collection": false, + "type": "boolean" + }, + { + "name": "resizable", + "description": "A `boolean` property that determines whether the window can be manually resized by user.", + "required": true, + "additionalTags": [], + "urlFragment": "#winresizable", + "collection": false, + "type": "boolean" + }, + { + "name": "closable", + "description": "A `boolean` property that determines whether the window can be manually closed by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winclosable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "movable", + "description": "A `boolean` property that determines Whether the window can be moved by user.\n\nOn Linux the setter is a no-op, although the getter returns `true`.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#winmovable-macos-windows", + "collection": false, + "type": "boolean" + }, + { + "name": "excludedFromShownWindowsMenu", + "description": "A `boolean` property that determines whether the window is excluded from the application’s Windows menu. `false` by default.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#winexcludedfromshownwindowsmenu-macos", + "collection": false, + "type": "boolean" + }, + { + "name": "accessibleTitle", + "description": "A `string` property that defines an alternative title provided only to accessibility tools such as screen readers. This string is not directly visible to users.", + "required": true, + "additionalTags": [], + "urlFragment": "#winaccessibletitle", + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "instanceEvents": [ + { + "name": "page-title-updated", + "description": "Emitted when the document changed its title, calling `event.preventDefault()` will prevent the native window's title from changing. `explicitSet` is false when title is synthesized from file URL.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "title", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "explicitSet", + "description": "", + "collection": false, + "type": "boolean", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-page-title-updated" + }, + { + "name": "close", + "description": "Emitted when the window is going to be closed. It's emitted before the `beforeunload` and `unload` event of the DOM. Calling `event.preventDefault()` will cancel the close.\n\nUsually you would want to use the `beforeunload` handler to decide whether the window should be closed, which will also be called when the window is reloaded. In Electron, returning any value other than `undefined` would cancel the close. For example:\n\n_**Note**: There is a subtle difference between the behaviors of `window.onbeforeunload = handler` and `window.addEventListener('beforeunload', handler)`. It is recommended to always set the `event.returnValue` explicitly, instead of only returning a value, as the former works more consistently within Electron._", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-close" + }, + { + "name": "closed", + "description": "Emitted when the window is closed. After you have received this event you should remove the reference to the window and avoid using it any more.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-closed" + }, + { + "name": "session-end", + "description": "Emitted when window session is going to end due to force shutdown or machine restart or session log off.", + "parameters": [], + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#event-session-end-windows" + }, + { + "name": "unresponsive", + "description": "Emitted when the web page becomes unresponsive.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-unresponsive" + }, + { + "name": "responsive", + "description": "Emitted when the unresponsive web page becomes responsive again.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-responsive" + }, + { + "name": "blur", + "description": "Emitted when the window loses focus.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-blur" + }, + { + "name": "focus", + "description": "Emitted when the window gains focus.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-focus" + }, + { + "name": "show", + "description": "Emitted when the window is shown.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-show" + }, + { + "name": "hide", + "description": "Emitted when the window is hidden.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-hide" + }, + { + "name": "ready-to-show", + "description": "Emitted when the web page has been rendered (while not being shown) and window can be displayed without a visual flash.\n\nPlease note that using this event implies that the renderer will be considered \"visible\" and paint even though `show` is false. This event will never fire if you use `paintWhenInitiallyHidden: false`", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-ready-to-show" + }, + { + "name": "maximize", + "description": "Emitted when window is maximized.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-maximize" + }, + { + "name": "unmaximize", + "description": "Emitted when the window exits from a maximized state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-unmaximize" + }, + { + "name": "minimize", + "description": "Emitted when the window is minimized.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-minimize" + }, + { + "name": "restore", + "description": "Emitted when the window is restored from a minimized state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-restore" + }, + { + "name": "will-resize", + "description": "Emitted before the window is resized. Calling `event.preventDefault()` will prevent the window from being resized.\n\nNote that this is only emitted when the window is being resized manually. Resizing the window with `setBounds`/`setSize` will not emit this event.\n\nThe possible values and behaviors of the `edge` option are platform dependent. Possible values are:\n\n* On Windows, possible values are `bottom`, `top`, `left`, `right`, `top-left`, `top-right`, `bottom-left`, `bottom-right`.\n* On macOS, possible values are `bottom` and `right`.\n * The value `bottom` is used to denote vertical resizing.\n * The value `right` is used to denote horizontal resizing.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "newBounds", + "description": "Size the window is being resized to.", + "collection": false, + "type": "Rectangle", + "additionalTags": [], + "required": true + }, + { + "name": "details", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "edge", + "description": "The edge of the window being dragged for resizing. Can be `bottom`, `left`, `right`, `top-left`, `top-right`, `bottom-left` or `bottom-right`.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "bottom", + "description": "" + }, + { + "value": "left", + "description": "" + }, + { + "value": "right", + "description": "" + }, + { + "value": "top-left", + "description": "" + }, + { + "value": "top-right", + "description": "" + }, + { + "value": "bottom-left", + "description": "" + }, + { + "value": "bottom-right", + "description": "" + } + ] + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-will-resize-macos-windows" + }, + { + "name": "resize", + "description": "Emitted after the window has been resized.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-resize" + }, + { + "name": "resized", + "description": "Emitted once when the window has finished being resized.\n\nThis is usually emitted when the window has been resized manually. On macOS, resizing the window with `setBounds`/`setSize` and setting the `animate` parameter to `true` will also emit this event once resizing has finished.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-resized-macos-windows" + }, + { + "name": "will-move", + "description": "Emitted before the window is moved. On Windows, calling `event.preventDefault()` will prevent the window from being moved.\n\nNote that this is only emitted when the window is being moved manually. Moving the window with `setPosition`/`setBounds`/`center` will not emit this event.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "newBounds", + "description": "Location the window is being moved to.", + "collection": false, + "type": "Rectangle", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-will-move-macos-windows" + }, + { + "name": "move", + "description": "Emitted when the window is being moved to a new position.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-move" + }, + { + "name": "moved", + "description": "Emitted once when the window is moved to a new position.\n\n**Note**: On macOS this event is an alias of `move`.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-moved-macos-windows" + }, + { + "name": "enter-full-screen", + "description": "Emitted when the window enters a full-screen state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-enter-full-screen" + }, + { + "name": "leave-full-screen", + "description": "Emitted when the window leaves a full-screen state.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-leave-full-screen" + }, + { + "name": "enter-html-full-screen", + "description": "Emitted when the window enters a full-screen state triggered by HTML API.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-enter-html-full-screen" + }, + { + "name": "leave-html-full-screen", + "description": "Emitted when the window leaves a full-screen state triggered by HTML API.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-leave-html-full-screen" + }, + { + "name": "always-on-top-changed", + "description": "Emitted when the window is set or unset to show always on top of other windows.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "isAlwaysOnTop", + "description": "", + "collection": false, + "type": "boolean", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-always-on-top-changed" + }, + { + "name": "app-command", + "description": "Emitted when an App Command is invoked. These are typically related to keyboard media keys or browser commands, as well as the \"Back\" button built into some mice on Windows.\n\nCommands are lowercased, underscores are replaced with hyphens, and the `APPCOMMAND_` prefix is stripped off. e.g. `APPCOMMAND_BROWSER_BACKWARD` is emitted as `browser-backward`.\n\nThe following app commands are explicitly supported on Linux:\n\n* `browser-backward`\n* `browser-forward`", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "command", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_windows", + "os_linux" + ], + "urlFragment": "#event-app-command-windows-linux" + }, + { + "name": "swipe", + "description": "Emitted on 3-finger swipe. Possible directions are `up`, `right`, `down`, `left`.\n\nThe method underlying this event is built to handle older macOS-style trackpad swiping, where the content on the screen doesn't move with the swipe. Most macOS trackpads are not configured to allow this kind of swiping anymore, so in order for it to emit properly the 'Swipe between pages' preference in `System Preferences > Trackpad > More Gestures` must be set to 'Swipe with two or three fingers'.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "direction", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-swipe-macos" + }, + { + "name": "rotate-gesture", + "description": "Emitted on trackpad rotation gesture. Continually emitted until rotation gesture is ended. The `rotation` value on each emission is the angle in degrees rotated since the last emission. The last emitted event upon a rotation gesture will always be of value `0`. Counter-clockwise rotation values are positive, while clockwise ones are negative.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "rotation", + "description": "", + "collection": false, + "type": "Float", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-rotate-gesture-macos" + }, + { + "name": "sheet-begin", + "description": "Emitted when the window opens a sheet.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-sheet-begin-macos" + }, + { + "name": "sheet-end", + "description": "Emitted when the window has closed a sheet.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-sheet-end-macos" + }, + { + "name": "new-window-for-tab", + "description": "Emitted when the native new tab button is clicked.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-new-window-for-tab-macos" + }, + { + "name": "system-context-menu", + "description": "Emitted when the system context menu is triggered on the window, this is normally only triggered when the user right clicks on the non-client area of your window. This is the window titlebar or any area you have declared as `-webkit-app-region: drag` in a frameless window.\n\nCalling `event.preventDefault()` will prevent the menu from being displayed.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "point", + "description": "The screen coordinates the context menu was triggered at", + "collection": false, + "type": "Point", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#event-system-context-menu-windows" + } + ], + "instanceName": "browserWindow" + }, + { + "name": "ClientRequest", + "description": "> Make HTTP/HTTPS requests.\n\nProcess: Main, Utility\n _This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._\n\n`ClientRequest` implements the Writable Stream interface and is therefore an EventEmitter.", + "slug": "client-request", + "websiteUrl": "https://electronjs.org/docs/api/client-request", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/client-request.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": true, + "exported": false + }, + "constructorMethod": { + "signature": "(options)", + "parameters": [ + { + "name": "options", + "description": "If `options` is a string, it is interpreted as the request URL. If it is an object, it is expected to fully specify an HTTP request via the following properties:", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "method", + "description": "The HTTP request method. Defaults to the GET method.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "url", + "description": "The request URL. Must be provided in the absolute form with the protocol scheme specified as http or https.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "headers", + "description": "Headers to be sent with the request.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": true, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + { + "name": "session", + "description": "The `Session` instance with which the request is associated.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Session" + }, + { + "name": "partition", + "description": "The name of the `partition` with which the request is associated. Defaults to the empty string. The `session` option supersedes `partition`. Thus if a `session` is explicitly specified, `partition` is ignored.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "credentials", + "description": "Can be `include`, `omit` or `same-origin`. Whether to send credentials with this request. If set to `include`, credentials from the session associated with the request will be used. If set to `omit`, credentials will not be sent with the request (and the `'login'` event will not be triggered in the event of a 401). If set to `same-origin`, `origin` must also be specified. This matches the behavior of the fetch option of the same name. If this option is not specified, authentication data from the session will be sent, and cookies will not be sent (unless `useSessionCookies` is set).", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "include", + "description": "" + }, + { + "value": "omit", + "description": "" + }, + { + "value": "same-origin", + "description": "" + } + ] + }, + { + "name": "useSessionCookies", + "description": "Whether to send cookies with this request from the provided session. If `credentials` is specified, this option has no effect. Default is `false`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "protocol", + "description": "Can be `http:` or `https:`. The protocol scheme in the form 'scheme:'. Defaults to 'http:'.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "http:", + "description": "" + }, + { + "value": "https:", + "description": "" + } + ] + }, + { + "name": "host", + "description": "The server host provided as a concatenation of the hostname and the port number 'hostname:port'.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "hostname", + "description": "The server host name.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "port", + "description": "The server's listening port number.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "path", + "description": "The path part of the request URL.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "redirect", + "description": "Can be `follow`, `error` or `manual`. The redirect mode for this request. When mode is `error`, any redirection will be aborted. When mode is `manual` the redirection will be cancelled unless `request.followRedirect` is invoked synchronously during the `redirect` event. Defaults to `follow`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "follow", + "description": "" + }, + { + "value": "error", + "description": "" + }, + { + "value": "manual", + "description": "" + } + ] + }, + { + "name": "origin", + "description": "The origin URL of the request.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "referrerPolicy", + "description": "can be `\"\"`, `no-referrer`, `no-referrer-when-downgrade`, `origin`, `origin-when-cross-origin`, `unsafe-url`, `same-origin`, `strict-origin`, or `strict-origin-when-cross-origin`. Defaults to `strict-origin-when-cross-origin`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "\"\"", + "description": "" + }, + { + "value": "no-referrer", + "description": "" + }, + { + "value": "no-referrer-when-downgrade", + "description": "" + }, + { + "value": "origin", + "description": "" + }, + { + "value": "origin-when-cross-origin", + "description": "" + }, + { + "value": "unsafe-url", + "description": "" + }, + { + "value": "same-origin", + "description": "" + }, + { + "value": "strict-origin", + "description": "" + }, + { + "value": "strict-origin-when-cross-origin", + "description": "" + } + ] + }, + { + "name": "cache", + "description": "can be `default`, `no-store`, `reload`, `no-cache`, `force-cache` or `only-if-cached`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "default", + "description": "" + }, + { + "value": "no-store", + "description": "" + }, + { + "value": "reload", + "description": "" + }, + { + "value": "no-cache", + "description": "" + }, + { + "value": "force-cache", + "description": "" + }, + { + "value": "only-if-cached", + "description": "" + } + ] + } + ] + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "setHeader", + "signature": "(name, value)", + "description": "Adds an extra HTTP header. The header name will be issued as-is without lowercasing. It can be called only before first write. Calling this method after the first write will throw an error. If the passed value is not a `string`, its `toString()` method will be called to obtain the final value.\n\nCertain headers are restricted from being set by apps. These headers are listed below. More information on restricted headers can be found in Chromium's header utils.\n\n* `Content-Length`\n* `Host`\n* `Trailer` or `Te`\n* `Upgrade`\n* `Cookie2`\n* `Keep-Alive`\n* `Transfer-Encoding`\n\nAdditionally, setting the `Connection` header to the value `upgrade` is also disallowed.", + "parameters": [ + { + "name": "name", + "description": "An extra HTTP header name.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "value", + "description": "An extra HTTP header value.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#requestsetheadername-value" + }, + { + "name": "getHeader", + "signature": "(name)", + "description": "The value of a previously set extra header name.", + "parameters": [ + { + "name": "name", + "description": "Specify an extra header name.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#requestgetheadername" + }, + { + "name": "removeHeader", + "signature": "(name)", + "description": "Removes a previously set extra header name. This method can be called only before first write. Trying to call it after the first write will throw an error.", + "parameters": [ + { + "name": "name", + "description": "Specify an extra header name.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#requestremoveheadername" + }, + { + "name": "write", + "signature": "(chunk[, encoding][, callback])", + "description": "`callback` is essentially a dummy function introduced in the purpose of keeping similarity with the Node.js API. It is called asynchronously in the next tick after `chunk` content have been delivered to the Chromium networking layer. Contrary to the Node.js implementation, it is not guaranteed that `chunk` content have been flushed on the wire before `callback` is called.\n\nAdds a chunk of data to the request body. The first write operation may cause the request headers to be issued on the wire. After the first write operation, it is not allowed to add or remove a custom header.", + "parameters": [ + { + "name": "chunk", + "description": "A chunk of the request body's data. If it is a string, it is converted into a Buffer using the specified encoding.", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "Buffer" + } + ] + }, + { + "name": "encoding", + "description": "Used to convert string chunks into Buffer objects. Defaults to 'utf-8'.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "callback", + "description": "Called after the write operation ends.", + "required": false, + "collection": false, + "type": "Function", + "parameters": [], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#requestwritechunk-encoding-callback" + }, + { + "name": "end", + "signature": "([chunk][, encoding][, callback])", + "description": "Sends the last chunk of the request data. Subsequent write or end operations will not be allowed. The `finish` event is emitted just after the end operation.", + "parameters": [ + { + "name": "chunk", + "description": "", + "required": false, + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "Buffer" + } + ] + }, + { + "name": "encoding", + "description": "", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "callback", + "description": "", + "required": false, + "collection": false, + "type": "Function", + "parameters": [], + "returns": null + } + ], + "returns": { + "collection": false, + "type": "this" + }, + "additionalTags": [], + "urlFragment": "#requestendchunk-encoding-callback" + }, + { + "name": "abort", + "signature": "()", + "description": "Cancels an ongoing HTTP transaction. If the request has already emitted the `close` event, the abort operation will have no effect. Otherwise an ongoing event will emit `abort` and `close` events. Additionally, if there is an ongoing response object,it will emit the `aborted` event.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#requestabort" + }, + { + "name": "followRedirect", + "signature": "()", + "description": "Continues any pending redirection. Can only be called during a `'redirect'` event.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#requestfollowredirect" + }, + { + "name": "getUploadProgress", + "signature": "()", + "description": "* `active` boolean - Whether the request is currently active. If this is false no other properties will be set\n* `started` boolean - Whether the upload has started. If this is false both `current` and `total` will be set to 0.\n* `current` Integer - The number of bytes that have been uploaded so far\n* `total` Integer - The number of bytes that will be uploaded this request\n\nYou can use this method in conjunction with `POST` requests to get the progress of a file upload or other data transfer.", + "parameters": [], + "returns": { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "active", + "description": "Whether the request is currently active. If this is false no other properties will be set", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "started", + "description": "Whether the upload has started. If this is false both `current` and `total` will be set to 0.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "current", + "description": "The number of bytes that have been uploaded so far", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "total", + "description": "The number of bytes that will be uploaded this request", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + } + ] + }, + "additionalTags": [], + "urlFragment": "#requestgetuploadprogress" + } + ], + "instanceProperties": [ + { + "name": "chunkedEncoding", + "description": "A `boolean` specifying whether the request will use HTTP chunked transfer encoding or not. Defaults to false. The property is readable and writable, however it can be set only before the first write operation as the HTTP headers are not yet put on the wire. Trying to set the `chunkedEncoding` property after the first write will throw an error.\n\nUsing chunked encoding is strongly recommended if you need to send a large request body as data will be streamed in small chunks instead of being internally buffered inside Electron process memory.", + "required": true, + "additionalTags": [], + "urlFragment": "#requestchunkedencoding", + "collection": false, + "type": "boolean" + } + ], + "instanceEvents": [ + { + "name": "response", + "description": "", + "parameters": [ + { + "name": "response", + "description": "An object representing the HTTP response message.", + "collection": false, + "type": "IncomingMessage", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-response" + }, + { + "name": "login", + "description": "Emitted when an authenticating proxy is asking for user credentials.\n\nThe `callback` function is expected to be called back with user credentials:\n\n* `username` string\n* `password` string\n\nProviding empty credentials will cancel the request and report an authentication error on the response object:", + "parameters": [ + { + "name": "authInfo", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "isProxy", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "scheme", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "host", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "port", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "realm", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "additionalTags": [], + "required": true + }, + { + "name": "callback", + "description": "", + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "username", + "description": "", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "password", + "description": "", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-login" + }, + { + "name": "finish", + "description": "Emitted just after the last chunk of the `request`'s data has been written into the `request` object.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-finish" + }, + { + "name": "abort", + "description": "Emitted when the `request` is aborted. The `abort` event will not be fired if the `request` is already closed.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-abort" + }, + { + "name": "error", + "description": "Emitted when the `net` module fails to issue a network request. Typically when the `request` object emits an `error` event, a `close` event will subsequently follow and no response object will be provided.", + "parameters": [ + { + "name": "error", + "description": "an error object providing some information about the failure.", + "collection": false, + "type": "Error", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-error" + }, + { + "name": "close", + "description": "Emitted as the last event in the HTTP request-response transaction. The `close` event indicates that no more events will be emitted on either the `request` or `response` objects.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-close" + }, + { + "name": "redirect", + "description": "Emitted when the server returns a redirect response (e.g. 301 Moved Permanently). Calling `request.followRedirect` will continue with the redirection. If this event is handled, `request.followRedirect` must be called **synchronously**, otherwise the request will be cancelled.", + "parameters": [ + { + "name": "statusCode", + "description": "", + "collection": false, + "type": "Integer", + "additionalTags": [], + "required": true + }, + { + "name": "method", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "redirectUrl", + "description": "", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "responseHeaders", + "description": "", + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": true, + "type": "String", + "possibleValues": null + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-redirect" + } + ], + "instanceName": "clientRequest" + }, + { + "name": "clipboard", + "description": "> Perform copy and paste operations on the system clipboard.\n\nProcess: Main, Renderer (non-sandboxed only)\n\nOn Linux, there is also a `selection` clipboard. To manipulate it you need to pass `selection` to each method:", + "slug": "clipboard", + "websiteUrl": "https://electronjs.org/docs/api/clipboard", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/clipboard.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": true, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "readText", + "signature": "([type])", + "description": "The content in the clipboard as plain text.", + "parameters": [ + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#clipboardreadtexttype" + }, + { + "name": "writeText", + "signature": "(text[, type])", + "description": "Writes the `text` into the clipboard as plain text.", + "parameters": [ + { + "name": "text", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#clipboardwritetexttext-type" + }, + { + "name": "readHTML", + "signature": "([type])", + "description": "The content in the clipboard as markup.", + "parameters": [ + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#clipboardreadhtmltype" + }, + { + "name": "writeHTML", + "signature": "(markup[, type])", + "description": "Writes `markup` to the clipboard.", + "parameters": [ + { + "name": "markup", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#clipboardwritehtmlmarkup-type" + }, + { + "name": "readImage", + "signature": "([type])", + "description": "The image content in the clipboard.", + "parameters": [ + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#clipboardreadimagetype" + }, + { + "name": "writeImage", + "signature": "(image[, type])", + "description": "Writes `image` to the clipboard.", + "parameters": [ + { + "name": "image", + "description": "", + "required": true, + "collection": false, + "type": "NativeImage" + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#clipboardwriteimageimage-type" + }, + { + "name": "readRTF", + "signature": "([type])", + "description": "The content in the clipboard as RTF.", + "parameters": [ + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#clipboardreadrtftype" + }, + { + "name": "writeRTF", + "signature": "(text[, type])", + "description": "Writes the `text` into the clipboard in RTF.", + "parameters": [ + { + "name": "text", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#clipboardwritertftext-type" + }, + { + "name": "readBookmark", + "signature": "()", + "description": "* `title` string\n* `url` string\n\nReturns an Object containing `title` and `url` keys representing the bookmark in the clipboard. The `title` and `url` values will be empty strings when the bookmark is unavailable. The `title` value will always be empty on Windows.", + "parameters": [], + "returns": { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "title", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "url", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#clipboardreadbookmark-macos-windows" + }, + { + "name": "writeBookmark", + "signature": "(title, url[, type])", + "description": "Writes the `title` (macOS only) and `url` into the clipboard as a bookmark.\n\n**Note:** Most apps on Windows don't support pasting bookmarks into them so you can use `clipboard.write` to write both a bookmark and fallback text to the clipboard.", + "parameters": [ + { + "name": "title", + "description": "Unused on Windows", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "url", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#clipboardwritebookmarktitle-url-type-macos-windows" + }, + { + "name": "readFindText", + "signature": "()", + "description": "The text on the find pasteboard, which is the pasteboard that holds information about the current state of the active application’s find panel.\n\nThis method uses synchronous IPC when called from the renderer process. The cached value is reread from the find pasteboard whenever the application is activated.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#clipboardreadfindtext-macos" + }, + { + "name": "writeFindText", + "signature": "(text)", + "description": "Writes the `text` into the find pasteboard (the pasteboard that holds information about the current state of the active application’s find panel) as plain text. This method uses synchronous IPC when called from the renderer process.", + "parameters": [ + { + "name": "text", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#clipboardwritefindtexttext-macos" + }, + { + "name": "clear", + "signature": "([type])", + "description": "Clears the clipboard content.", + "parameters": [ + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#clipboardcleartype" + }, + { + "name": "availableFormats", + "signature": "([type])", + "description": "An array of supported formats for the clipboard `type`.", + "parameters": [ + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": { + "collection": true, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#clipboardavailableformatstype" + }, + { + "name": "has", + "signature": "(format[, type])", + "description": "Whether the clipboard supports the specified `format`.", + "parameters": [ + { + "name": "format", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "stability_experimental" + ], + "urlFragment": "#clipboardhasformat-type-experimental" + }, + { + "name": "read", + "signature": "(format)", + "description": "Reads `format` type from the clipboard.\n\n`format` should contain valid ASCII characters and have `/` separator. `a/c`, `a/bc` are valid formats while `/abc`, `abc/`, `a/`, `/a`, `a` are not valid.", + "parameters": [ + { + "name": "format", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [ + "stability_experimental" + ], + "urlFragment": "#clipboardreadformat-experimental" + }, + { + "name": "readBuffer", + "signature": "(format)", + "description": "Reads `format` type from the clipboard.", + "parameters": [ + { + "name": "format", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [ + "stability_experimental" + ], + "urlFragment": "#clipboardreadbufferformat-experimental" + }, + { + "name": "writeBuffer", + "signature": "(format, buffer[, type])", + "description": "Writes the `buffer` into the clipboard as `format`.", + "parameters": [ + { + "name": "format", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "buffer", + "description": "", + "required": true, + "collection": false, + "type": "Buffer" + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [ + "stability_experimental" + ], + "urlFragment": "#clipboardwritebufferformat-buffer-type-experimental" + }, + { + "name": "write", + "signature": "(data[, type])", + "description": "Writes `data` to the clipboard.", + "parameters": [ + { + "name": "data", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "text", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "html", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "image", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "NativeImage" + }, + { + "name": "rtf", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "bookmark", + "description": "The title of the URL at `text`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "type", + "description": "Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "selection", + "description": "" + }, + { + "value": "clipboard", + "description": "" + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#clipboardwritedata-type" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "CommandLine", + "description": "", + "slug": "command-line", + "websiteUrl": "https://electronjs.org/docs/api/command-line", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/command-line.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "appendSwitch", + "signature": "(switch[, value])", + "description": "Append a switch (with optional `value`) to Chromium's command line.\n\n**Note:** This will not affect `process.argv`. The intended usage of this function is to control Chromium's behavior.", + "parameters": [ + { + "name": "switch", + "description": "A command-line switch, without the leading `--`", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "value", + "description": "A value for the given switch", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#commandlineappendswitchswitch-value" + }, + { + "name": "appendArgument", + "signature": "(value)", + "description": "Append an argument to Chromium's command line. The argument will be quoted correctly. Switches will precede arguments regardless of appending order.\n\nIf you're appending an argument like `--switch=value`, consider using `appendSwitch('switch', 'value')` instead.\n\n**Note:** This will not affect `process.argv`. The intended usage of this function is to control Chromium's behavior.", + "parameters": [ + { + "name": "value", + "description": "The argument to append to the command line", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#commandlineappendargumentvalue" + }, + { + "name": "hasSwitch", + "signature": "(switch)", + "description": "Whether the command-line switch is present.", + "parameters": [ + { + "name": "switch", + "description": "A command-line switch", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#commandlinehasswitchswitch" + }, + { + "name": "getSwitchValue", + "signature": "(switch)", + "description": "The command-line switch value.\n\n**Note:** When the switch is not present or has no value, it returns empty string.", + "parameters": [ + { + "name": "switch", + "description": "A command-line switch", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#commandlinegetswitchvalueswitch" + }, + { + "name": "removeSwitch", + "signature": "(switch)", + "description": "Removes the specified switch from Chromium's command line.\n\n**Note:** This will not affect `process.argv`. The intended usage of this function is to control Chromium's behavior.", + "parameters": [ + { + "name": "switch", + "description": "A command-line switch", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#commandlineremoveswitchswitch" + } + ], + "instanceProperties": [], + "instanceEvents": [], + "instanceName": "commandLine" + }, + { + "name": "contentTracing", + "description": "> Collect tracing data from Chromium to find performance bottlenecks and slow operations.\n\nProcess: Main\n\nThis module does not include a web interface. To view recorded traces, use trace viewer, available at `chrome://tracing` in Chrome.\n\n**Note:** You should not use this module until the `ready` event of the app module is emitted.", + "slug": "content-tracing", + "websiteUrl": "https://electronjs.org/docs/api/content-tracing", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/content-tracing.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "getCategories", + "signature": "()", + "description": "resolves with an array of category groups once all child processes have acknowledged the `getCategories` request\n\nGet a set of category groups. The category groups can change as new code paths are reached. See also the list of built-in tracing categories.\n\n> **NOTE:** Electron adds a non-default tracing category called `\"electron\"`. This category can be used to capture Electron-specific tracing events.", + "parameters": [], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": true, + "type": "String", + "possibleValues": null + } + ] + }, + "additionalTags": [], + "urlFragment": "#contenttracinggetcategories" + }, + { + "name": "startRecording", + "signature": "(options)", + "description": "resolved once all child processes have acknowledged the `startRecording` request.\n\nStart recording on all processes.\n\nRecording begins immediately locally and asynchronously on child processes as soon as they receive the EnableRecording request.\n\nIf a recording is already running, the promise will be immediately resolved, as only one trace operation can be in progress at a time.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "TraceConfig" + }, + { + "collection": false, + "type": "TraceCategoriesAndOptions" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#contenttracingstartrecordingoptions" + }, + { + "name": "stopRecording", + "signature": "([resultFilePath])", + "description": "resolves with a path to a file that contains the traced data once all child processes have acknowledged the `stopRecording` request\n\nStop recording on all processes.\n\nChild processes typically cache trace data and only rarely flush and send trace data back to the main process. This helps to minimize the runtime overhead of tracing since sending trace data over IPC can be an expensive operation. So, to end tracing, Chromium asynchronously asks all child processes to flush any pending trace data.\n\nTrace data will be written into `resultFilePath`. If `resultFilePath` is empty or not provided, trace data will be written to a temporary file, and the path will be returned in the promise.", + "parameters": [ + { + "name": "resultFilePath", + "description": "", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + "additionalTags": [], + "urlFragment": "#contenttracingstoprecordingresultfilepath" + }, + { + "name": "getTraceBufferUsage", + "signature": "()", + "description": "Resolves with an object containing the `value` and `percentage` of trace buffer maximum usage\n\n* `value` number\n* `percentage` number\n\nGet the maximum usage across processes of trace buffer as a percentage of the full state.", + "parameters": [], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "value", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "number" + }, + { + "name": "percentage", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "number" + } + ] + } + ] + }, + "additionalTags": [], + "urlFragment": "#contenttracinggettracebufferusage" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "contextBridge", + "description": "> Create a safe, bi-directional, synchronous bridge across isolated contexts\n\nProcess: Renderer\n\nAn example of exposing an API to a renderer from an isolated preload script is given below:\n\n```\n// Preload (Isolated World)\nconst { contextBridge, ipcRenderer } = require('electron')\n\ncontextBridge.exposeInMainWorld(\n 'electron',\n {\n doThing: () => ipcRenderer.send('do-a-thing')\n }\n)\n```\n\n### Glossary\n\n\n\n### Main World\n\nThe \"Main World\" is the JavaScript context that your main renderer code runs in. By default, the page you load in your renderer executes code in this world.\n\n### Isolated World\n\nWhen `contextIsolation` is enabled in your `webPreferences` (this is the default behavior since Electron 12.0.0), your `preload` scripts run in an \"Isolated World\". You can read more about context isolation and what it affects in the security docs.", + "slug": "context-bridge", + "websiteUrl": "https://electronjs.org/docs/api/context-bridge", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/context-bridge.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": false, + "renderer": true, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "exposeInMainWorld", + "signature": "(apiKey, api)", + "description": "", + "parameters": [ + { + "name": "apiKey", + "description": "The key to inject the API onto `window` with. The API will be accessible on `window[apiKey]`.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "api", + "description": "Your API, more information on what this API can be and how it works is available below.", + "required": true, + "collection": false, + "type": "any" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#contextbridgeexposeinmainworldapikey-api" + }, + { + "name": "exposeInIsolatedWorld", + "signature": "(worldId, apiKey, api)", + "description": "", + "parameters": [ + { + "name": "worldId", + "description": "The ID of the world to inject the API into. `0` is the default world, `999` is the world used by Electron's `contextIsolation` feature. Using 999 would expose the object for preload context. We recommend using 1000+ while creating isolated world.", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "apiKey", + "description": "The key to inject the API onto `window` with. The API will be accessible on `window[apiKey]`.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "api", + "description": "Your API, more information on what this API can be and how it works is available below.", + "required": true, + "collection": false, + "type": "any" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#contextbridgeexposeinisolatedworldworldid-apikey-api" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "Cookies", + "description": "", + "slug": "cookies", + "websiteUrl": "https://electronjs.org/docs/api/cookies", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/cookies.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "get", + "signature": "(filter)", + "description": "A promise which resolves an array of cookie objects.\n\nSends a request to get all cookies matching `filter`, and resolves a promise with the response.", + "parameters": [ + { + "name": "filter", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "url", + "description": "Retrieves cookies which are associated with `url`. Empty implies retrieving cookies of all URLs.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "name", + "description": "Filters cookies by name.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "domain", + "description": "Retrieves cookies whose domains match or are subdomains of `domain`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "Retrieves cookies whose path matches `path`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "secure", + "description": "Filters cookies by their Secure property.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "session", + "description": "Filters out session or persistent cookies.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "httpOnly", + "description": "Filters cookies by httpOnly.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": true, + "type": "Cookie" + } + ] + }, + "additionalTags": [], + "urlFragment": "#cookiesgetfilter" + }, + { + "name": "set", + "signature": "(details)", + "description": "A promise which resolves when the cookie has been set\n\nSets a cookie with `details`.", + "parameters": [ + { + "name": "details", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "url", + "description": "The URL to associate the cookie with. The promise will be rejected if the URL is invalid.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "name", + "description": "The name of the cookie. Empty by default if omitted.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "value", + "description": "The value of the cookie. Empty by default if omitted.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "domain", + "description": "The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains. Empty by default if omitted.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "path", + "description": "The path of the cookie. Empty by default if omitted.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "secure", + "description": "Whether the cookie should be marked as Secure. Defaults to false unless Same Site=None attribute is used.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "httpOnly", + "description": "Whether the cookie should be marked as HTTP only. Defaults to false.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "expirationDate", + "description": "The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted then the cookie becomes a session cookie and will not be retained between sessions.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Double" + }, + { + "name": "sameSite", + "description": "The Same Site policy to apply to this cookie. Can be `unspecified`, `no_restriction`, `lax` or `strict`. Default is `lax`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "unspecified", + "description": "" + }, + { + "value": "no_restriction", + "description": "" + }, + { + "value": "lax", + "description": "" + }, + { + "value": "strict", + "description": "" + } + ] + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#cookiessetdetails" + }, + { + "name": "remove", + "signature": "(url, name)", + "description": "A promise which resolves when the cookie has been removed\n\nRemoves the cookies matching `url` and `name`", + "parameters": [ + { + "name": "url", + "description": "The URL associated with the cookie.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "name", + "description": "The name of cookie to remove.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#cookiesremoveurl-name" + }, + { + "name": "flushStore", + "signature": "()", + "description": "A promise which resolves when the cookie store has been flushed\n\nWrites any unwritten cookies data to disk\n\nCookies written by any method will not be written to disk immediately, but will be written every 30 seconds or 512 operations\n\nCalling this method can cause the cookie to be written to disk immediately.", + "parameters": [], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#cookiesflushstore" + } + ], + "instanceProperties": [], + "instanceEvents": [ + { + "name": "changed", + "description": "Emitted when a cookie is changed because it was added, edited, removed, or expired.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "cookie", + "description": "The cookie that was changed.", + "collection": false, + "type": "Cookie", + "additionalTags": [], + "required": true + }, + { + "name": "cause", + "description": "The cause of the change with one of the following values:", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "explicit", + "description": "The cookie was changed directly by a consumer's action." + }, + { + "value": "overwrite", + "description": "The cookie was automatically removed due to an insert operation that overwrote it." + }, + { + "value": "expired", + "description": "The cookie was automatically removed as it expired." + }, + { + "value": "evicted", + "description": "The cookie was automatically evicted during garbage collection." + }, + { + "value": "expired-overwrite", + "description": "The cookie was overwritten with an already-expired expiration date." + } + ], + "additionalTags": [], + "required": true + }, + { + "name": "removed", + "description": "`true` if the cookie was removed, `false` otherwise.", + "collection": false, + "type": "boolean", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-changed" + } + ], + "instanceName": "cookies" + }, + { + "name": "crashReporter", + "description": "> Submit crash reports to a remote server.\n\nProcess: Main, Renderer\n\nThe following is an example of setting up Electron to automatically submit crash reports to a remote server:\n\n```\nconst { crashReporter } = require('electron')\n\ncrashReporter.start({ submitURL: 'https://your-domain.com/url-to-submit' })\n```\n\nFor setting up a server to accept and process crash reports, you can use following projects:\n\n* socorro\n* mini-breakpad-server\n\n> **Note:** Electron uses Crashpad, not Breakpad, to collect and upload crashes, but for the time being, the upload protocol is the same.\n\nOr use a 3rd party hosted solution:\n\n* Backtrace\n* Sentry\n* BugSplat\n* Bugsnag\n\nCrash reports are stored temporarily before being uploaded in a directory underneath the app's user data directory, called 'Crashpad'. You can override this directory by calling `app.setPath('crashDumps', '/path/to/crashes')` before starting the crash reporter.\n\nElectron uses crashpad to monitor and report crashes.", + "slug": "crash-reporter", + "websiteUrl": "https://electronjs.org/docs/api/crash-reporter", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/crash-reporter.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": true, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "start", + "signature": "(options)", + "description": "This method must be called before using any other `crashReporter` APIs. Once initialized this way, the crashpad handler collects crashes from all subsequently created processes. The crash reporter cannot be disabled once started.\n\nThis method should be called as early as possible in app startup, preferably before `app.on('ready')`. If the crash reporter is not initialized at the time a renderer process is created, then that renderer process will not be monitored by the crash reporter.\n\n**Note:** You can test out the crash reporter by generating a crash using `process.crash()`.\n\n**Note:** If you need to send additional/updated `extra` parameters after your first call `start` you can call `addExtraParameter`.\n\n**Note:** Parameters passed in `extra`, `globalExtra` or set with `addExtraParameter` have limits on the length of the keys and values. Key names must be at most 39 bytes long, and values must be no longer than 127 bytes. Keys with names longer than the maximum will be silently ignored. Key values longer than the maximum length will be truncated.\n\n**Note:** This method is only available in the main process.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "submitURL", + "description": "URL that crash reports will be sent to as POST. Required unless `uploadToServer` is `false`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "productName", + "description": "Defaults to `app.name`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "companyName", + "description": "Deprecated alias for `{ globalExtra: { _companyName: ... } }`.", + "required": false, + "additionalTags": [ + "stability_deprecated" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "uploadToServer", + "description": "Whether crash reports should be sent to the server. If false, crash reports will be collected and stored in the crashes directory, but not uploaded. Default is `true`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "ignoreSystemCrashHandler", + "description": "If true, crashes generated in the main process will not be forwarded to the system crash handler. Default is `false`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "rateLimit", + "description": "If true, limit the number of crashes uploaded to 1/hour. Default is `false`.", + "required": false, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "compress", + "description": "If true, crash reports will be compressed and uploaded with `Content-Encoding: gzip`. Default is `true`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "extra", + "description": "Extra string key/value annotations that will be sent along with crash reports that are generated in the main process. Only string values are supported. Crashes generated in child processes will not contain these extra parameters to crash reports generated from child processes, call `addExtraParameter` from the child process.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "globalExtra", + "description": "Extra string key/value annotations that will be sent along with any crash reports generated in any process. These annotations cannot be changed once the crash reporter has been started. If a key is present in both the global extra parameters and the process-specific extra parameters, then the global one will take precedence. By default, `productName` and the app version are included, as well as the Electron version.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#crashreporterstartoptions" + }, + { + "name": "getLastCrashReport", + "signature": "()", + "description": "The date and ID of the last crash report. Only crash reports that have been uploaded will be returned; even if a crash report is present on disk it will not be returned until it is uploaded. In the case that there are no uploaded reports, `null` is returned.\n\n**Note:** This method is only available in the main process.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "CrashReport" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#crashreportergetlastcrashreport" + }, + { + "name": "getUploadedReports", + "signature": "()", + "description": "Returns all uploaded crash reports. Each report contains the date and uploaded ID.\n\n**Note:** This method is only available in the main process.", + "parameters": [], + "returns": { + "collection": true, + "type": "CrashReport" + }, + "additionalTags": [], + "urlFragment": "#crashreportergetuploadedreports" + }, + { + "name": "getUploadToServer", + "signature": "()", + "description": "Whether reports should be submitted to the server. Set through the `start` method or `setUploadToServer`.\n\n**Note:** This method is only available in the main process.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#crashreportergetuploadtoserver" + }, + { + "name": "setUploadToServer", + "signature": "(uploadToServer)", + "description": "This would normally be controlled by user preferences. This has no effect if called before `start` is called.\n\n**Note:** This method is only available in the main process.", + "parameters": [ + { + "name": "uploadToServer", + "description": "Whether reports should be submitted to the server.", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#crashreportersetuploadtoserveruploadtoserver" + }, + { + "name": "addExtraParameter", + "signature": "(key, value)", + "description": "Set an extra parameter to be sent with the crash report. The values specified here will be sent in addition to any values set via the `extra` option when `start` was called.\n\nParameters added in this fashion (or via the `extra` parameter to `crashReporter.start`) are specific to the calling process. Adding extra parameters in the main process will not cause those parameters to be sent along with crashes from renderer or other child processes. Similarly, adding extra parameters in a renderer process will not result in those parameters being sent with crashes that occur in other renderer processes or in the main process.\n\n**Note:** Parameters have limits on the length of the keys and values. Key names must be no longer than 39 bytes, and values must be no longer than 20320 bytes. Keys with names longer than the maximum will be silently ignored. Key values longer than the maximum length will be truncated.", + "parameters": [ + { + "name": "key", + "description": "Parameter key, must be no longer than 39 bytes.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "value", + "description": "Parameter value, must be no longer than 127 bytes.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#crashreporteraddextraparameterkey-value" + }, + { + "name": "removeExtraParameter", + "signature": "(key)", + "description": "Remove an extra parameter from the current set of parameters. Future crashes will not include this parameter.", + "parameters": [ + { + "name": "key", + "description": "Parameter key, must be no longer than 39 bytes.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#crashreporterremoveextraparameterkey" + }, + { + "name": "getParameters", + "signature": "()", + "description": "The current 'extra' parameters of the crash reporter.", + "parameters": [], + "returns": { + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + "additionalTags": [], + "urlFragment": "#crashreportergetparameters" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "Debugger", + "description": "", + "slug": "debugger", + "websiteUrl": "https://electronjs.org/docs/api/debugger", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/debugger.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "attach", + "signature": "([protocolVersion])", + "description": "Attaches the debugger to the `webContents`.", + "parameters": [ + { + "name": "protocolVersion", + "description": "Requested debugging protocol version.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#debuggerattachprotocolversion" + }, + { + "name": "isAttached", + "signature": "()", + "description": "Whether a debugger is attached to the `webContents`.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#debuggerisattached" + }, + { + "name": "detach", + "signature": "()", + "description": "Detaches the debugger from the `webContents`.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#debuggerdetach" + }, + { + "name": "sendCommand", + "signature": "(method[, commandParams, sessionId])", + "description": "A promise that resolves with the response defined by the 'returns' attribute of the command description in the remote debugging protocol or is rejected indicating the failure of the command.\n\nSend given command to the debugging target.", + "parameters": [ + { + "name": "method", + "description": "Method name, should be one of the methods defined by the remote debugging protocol.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "commandParams", + "description": "JSON object with request parameters.", + "required": false, + "collection": false, + "type": "any" + }, + { + "name": "sessionId", + "description": "send command to the target with associated debugging session id. The initial value can be obtained by sending Target.attachToTarget message.", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "any" + } + ] + }, + "additionalTags": [], + "urlFragment": "#debuggersendcommandmethod-commandparams-sessionid" + } + ], + "instanceProperties": [], + "instanceEvents": [ + { + "name": "detach", + "description": "Emitted when the debugging session is terminated. This happens either when `webContents` is closed or devtools is invoked for the attached `webContents`.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "reason", + "description": "Reason for detaching debugger.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-detach" + }, + { + "name": "message", + "description": "Emitted whenever the debugging target issues an instrumentation event.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "method", + "description": "Method name.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + }, + { + "name": "params", + "description": "Event parameters defined by the 'parameters' attribute in the remote debugging protocol.", + "collection": false, + "type": "any", + "additionalTags": [], + "required": true + }, + { + "name": "sessionId", + "description": "Unique identifier of attached debugging session, will match the value sent from `debugger.sendCommand`.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-message" + } + ], + "instanceName": "debugger" + }, + { + "name": "desktopCapturer", + "description": "> Access information about media sources that can be used to capture audio and video from the desktop using the `navigator.mediaDevices.getUserMedia` API.\n\nProcess: Main\n\nThe following example shows how to capture video from a desktop window whose title is `Electron`:\n\n```\n// main.js\nconst { app, BrowserWindow, desktopCapturer, session } = require('electron')\n\napp.whenReady().then(() => {\n const mainWindow = new BrowserWindow()\n\n session.defaultSession.setDisplayMediaRequestHandler((request, callback) => {\n desktopCapturer.getSources({ types: ['screen'] }).then((sources) => {\n // Grant access to the first screen found.\n callback({ video: sources[0], audio: 'loopback' })\n })\n // If true, use the system picker if available.\n // Note: this is currently experimental. If the system picker\n // is available, it will be used and the media request handler\n // will not be invoked.\n }, { useSystemPicker: true })\n\n mainWindow.loadFile('index.html')\n})\n```\n\n```\n// renderer.js\nconst startButton = document.getElementById('startButton')\nconst stopButton = document.getElementById('stopButton')\nconst video = document.querySelector('video')\n\nstartButton.addEventListener('click', () => {\n navigator.mediaDevices.getDisplayMedia({\n audio: true,\n video: {\n width: 320,\n height: 240,\n frameRate: 30\n }\n }).then(stream => {\n video.srcObject = stream\n video.onloadedmetadata = (e) => video.play()\n }).catch(e => console.log(e))\n})\n\nstopButton.addEventListener('click', () => {\n video.pause()\n})\n```\n\n```\n\n\n\n \n \n \n \n \n \n\n```\n\nSee `navigator.mediaDevices.getDisplayMedia` for more information.\n\n**Note:** `navigator.mediaDevices.getDisplayMedia` does not permit the use of `deviceId` for selection of a source - see specification.", + "slug": "desktop-capturer", + "websiteUrl": "https://electronjs.org/docs/api/desktop-capturer", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/desktop-capturer.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "getSources", + "signature": "(options)", + "description": "Resolves with an array of `DesktopCapturerSource` objects, each `DesktopCapturerSource` represents a screen or an individual window that can be captured.\n\n**Note** Capturing the screen contents requires user consent on macOS 10.15 Catalina or higher, which can detected by `systemPreferences.getMediaAccessStatus`.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "types", + "description": "An array of strings that lists the types of desktop sources to be captured, available types can be `screen` and `window`.", + "required": true, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": [ + { + "value": "screen", + "description": "" + }, + { + "value": "window", + "description": "" + } + ] + }, + { + "name": "thumbnailSize", + "description": "The size that the media source thumbnail should be scaled to. Default is `150` x `150`. Set width or height to 0 when you do not need the thumbnails. This will save the processing time required for capturing the content of each window and screen.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Size" + }, + { + "name": "fetchWindowIcons", + "description": "Set to true to enable fetching window icons. The default value is false. When false the appIcon property of the sources return null. Same if a source has the type screen.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": true, + "type": "DesktopCapturerSource" + } + ] + }, + "additionalTags": [], + "urlFragment": "#desktopcapturergetsourcesoptions" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "dialog", + "description": "> Display native system dialogs for opening and saving files, alerting, etc.\n\nProcess: Main\n\nAn example of showing a dialog to select multiple files:", + "slug": "dialog", + "websiteUrl": "https://electronjs.org/docs/api/dialog", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/dialog.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "showOpenDialogSync", + "signature": "([window, ]options)", + "description": "the file paths chosen by the user; if the dialog is cancelled it returns `undefined`.\n\nThe `window` argument allows the dialog to attach itself to a parent window, making it modal.\n\nThe `filters` specifies an array of file types that can be displayed or selected when you want to limit the user to a specific type. For example:\n\nThe `extensions` array should contain extensions without wildcards or dots (e.g. `'png'` is good but `'.png'` and `'*.png'` are bad). To show all files, use the `'*'` wildcard (no other wildcard is supported).\n\n**Note:** On Windows and Linux an open dialog can not be both a file selector and a directory selector, so if you set `properties` to `['openFile', 'openDirectory']` on these platforms, a directory selector will be shown.", + "parameters": [ + { + "name": "window", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "title", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "defaultPath", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "buttonLabel", + "description": "Custom label for the confirmation button, when left empty the default label will be used.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "filters", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": "FileFilter" + }, + { + "name": "properties", + "description": "Contains which features the dialog should use. The following values are supported:", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": [ + { + "value": "openFile", + "description": "Allow files to be selected." + }, + { + "value": "openDirectory", + "description": "Allow directories to be selected." + }, + { + "value": "multiSelections", + "description": "Allow multiple paths to be selected." + }, + { + "value": "showHiddenFiles", + "description": "Show hidden files in dialog." + }, + { + "value": "createDirectory", + "description": "Allow creating new directories from dialog." + }, + { + "value": "promptToCreate", + "description": "Prompt for creation if the file path entered in the dialog does not exist. This does not actually create the file at the path but allows non-existent paths to be returned that should be created by the application." + }, + { + "value": "noResolveAliases", + "description": "Disable the automatic alias (symlink) path resolution. Selected aliases will now return the alias path instead of their target path." + }, + { + "value": "treatPackageAsDirectory", + "description": "Treat packages, such as `.app` folders, as a directory instead of a file." + }, + { + "value": "dontAddToRecent", + "description": "Do not add the item being opened to the recent documents list." + } + ] + }, + { + "name": "message", + "description": "Message to display above input boxes.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "securityScopedBookmarks", + "description": "Create security scoped bookmarks when packaged for the Mac App Store.", + "required": false, + "additionalTags": [ + "os_macos", + "os_mas" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "undefined" + } + ] + }, + "additionalTags": [], + "urlFragment": "#dialogshowopendialogsyncwindow-options" + }, + { + "name": "showOpenDialog", + "signature": "([window, ]options)", + "description": "Resolve with an object containing the following:\n\n* `canceled` boolean - whether or not the dialog was canceled.\n* `filePaths` string[] - An array of file paths chosen by the user. If the dialog is cancelled this will be an empty array.\n* `bookmarks` string[] (optional) _macOS_ _mas_ - An array matching the `filePaths` array of base64 encoded strings which contains security scoped bookmark data. `securityScopedBookmarks` must be enabled for this to be populated. (For return values, see table here.)\n\nThe `window` argument allows the dialog to attach itself to a parent window, making it modal.\n\nThe `filters` specifies an array of file types that can be displayed or selected when you want to limit the user to a specific type. For example:\n\nThe `extensions` array should contain extensions without wildcards or dots (e.g. `'png'` is good but `'.png'` and `'*.png'` are bad). To show all files, use the `'*'` wildcard (no other wildcard is supported).\n\n**Note:** On Windows and Linux an open dialog can not be both a file selector and a directory selector, so if you set `properties` to `['openFile', 'openDirectory']` on these platforms, a directory selector will be shown.", + "parameters": [ + { + "name": "window", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "title", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "defaultPath", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "buttonLabel", + "description": "Custom label for the confirmation button, when left empty the default label will be used.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "filters", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": "FileFilter" + }, + { + "name": "properties", + "description": "Contains which features the dialog should use. The following values are supported:", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": [ + { + "value": "openFile", + "description": "Allow files to be selected." + }, + { + "value": "openDirectory", + "description": "Allow directories to be selected." + }, + { + "value": "multiSelections", + "description": "Allow multiple paths to be selected." + }, + { + "value": "showHiddenFiles", + "description": "Show hidden files in dialog." + }, + { + "value": "createDirectory", + "description": "Allow creating new directories from dialog." + }, + { + "value": "promptToCreate", + "description": "Prompt for creation if the file path entered in the dialog does not exist. This does not actually create the file at the path but allows non-existent paths to be returned that should be created by the application." + }, + { + "value": "noResolveAliases", + "description": "Disable the automatic alias (symlink) path resolution. Selected aliases will now return the alias path instead of their target path." + }, + { + "value": "treatPackageAsDirectory", + "description": "Treat packages, such as `.app` folders, as a directory instead of a file." + }, + { + "value": "dontAddToRecent", + "description": "Do not add the item being opened to the recent documents list." + } + ] + }, + { + "name": "message", + "description": "Message to display above input boxes.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "securityScopedBookmarks", + "description": "Create security scoped bookmarks when packaged for the Mac App Store.", + "required": false, + "additionalTags": [ + "os_macos", + "os_mas" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "canceled", + "description": "whether or not the dialog was canceled.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "filePaths", + "description": "An array of file paths chosen by the user. If the dialog is cancelled this will be an empty array.", + "required": true, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "bookmarks", + "description": "An array matching the `filePaths` array of base64 encoded strings which contains security scoped bookmark data. `securityScopedBookmarks` must be enabled for this to be populated. (For return values, see table here.)", + "required": false, + "additionalTags": [ + "os_macos", + "os_mas" + ], + "collection": true, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + "additionalTags": [], + "urlFragment": "#dialogshowopendialogwindow-options" + }, + { + "name": "showSaveDialogSync", + "signature": "([window, ]options)", + "description": "the path of the file chosen by the user; if the dialog is cancelled it returns an empty string.\n\nThe `window` argument allows the dialog to attach itself to a parent window, making it modal.\n\nThe `filters` specifies an array of file types that can be displayed, see `dialog.showOpenDialog` for an example.", + "parameters": [ + { + "name": "window", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "title", + "description": "The dialog title. Cannot be displayed on some _Linux_ desktop environments.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "defaultPath", + "description": "Absolute directory path, absolute file path, or file name to use by default.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "buttonLabel", + "description": "Custom label for the confirmation button, when left empty the default label will be used.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "filters", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": "FileFilter" + }, + { + "name": "message", + "description": "Message to display above text fields.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "nameFieldLabel", + "description": "Custom label for the text displayed in front of the filename text field.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "showsTagField", + "description": "Show the tags input box, defaults to `true`.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "properties", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": [ + { + "value": "showHiddenFiles", + "description": "Show hidden files in dialog." + }, + { + "value": "createDirectory", + "description": "Allow creating new directories from dialog." + }, + { + "value": "treatPackageAsDirectory", + "description": "Treat packages, such as `.app` folders, as a directory instead of a file." + }, + { + "value": "showOverwriteConfirmation", + "description": "Sets whether the user will be presented a confirmation dialog if the user types a file name that already exists." + }, + { + "value": "dontAddToRecent", + "description": "Do not add the item being saved to the recent documents list." + } + ] + }, + { + "name": "securityScopedBookmarks", + "description": "Create a security scoped bookmark when packaged for the Mac App Store. If this option is enabled and the file doesn't already exist a blank file will be created at the chosen path.", + "required": false, + "additionalTags": [ + "os_macos", + "os_mas" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#dialogshowsavedialogsyncwindow-options" + }, + { + "name": "showSaveDialog", + "signature": "([window, ]options)", + "description": "Resolve with an object containing the following:\n\n* `canceled` boolean - whether or not the dialog was canceled.\n* `filePath` string - If the dialog is canceled, this will be an empty string.\n* `bookmark` string (optional) _macOS_ _mas_ - Base64 encoded string which contains the security scoped bookmark data for the saved file. `securityScopedBookmarks` must be enabled for this to be present. (For return values, see table here.)\n\nThe `window` argument allows the dialog to attach itself to a parent window, making it modal.\n\nThe `filters` specifies an array of file types that can be displayed, see `dialog.showOpenDialog` for an example.\n\n**Note:** On macOS, using the asynchronous version is recommended to avoid issues when expanding and collapsing the dialog.", + "parameters": [ + { + "name": "window", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "title", + "description": "The dialog title. Cannot be displayed on some _Linux_ desktop environments.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "defaultPath", + "description": "Absolute directory path, absolute file path, or file name to use by default.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "buttonLabel", + "description": "Custom label for the confirmation button, when left empty the default label will be used.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "filters", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": "FileFilter" + }, + { + "name": "message", + "description": "Message to display above text fields.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "nameFieldLabel", + "description": "Custom label for the text displayed in front of the filename text field.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "showsTagField", + "description": "Show the tags input box, defaults to `true`.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "properties", + "description": "", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": [ + { + "value": "showHiddenFiles", + "description": "Show hidden files in dialog." + }, + { + "value": "createDirectory", + "description": "Allow creating new directories from dialog." + }, + { + "value": "treatPackageAsDirectory", + "description": "Treat packages, such as `.app` folders, as a directory instead of a file." + }, + { + "value": "showOverwriteConfirmation", + "description": "Sets whether the user will be presented a confirmation dialog if the user types a file name that already exists." + }, + { + "value": "dontAddToRecent", + "description": "Do not add the item being saved to the recent documents list." + } + ] + }, + { + "name": "securityScopedBookmarks", + "description": "Create a security scoped bookmark when packaged for the Mac App Store. If this option is enabled and the file doesn't already exist a blank file will be created at the chosen path.", + "required": false, + "additionalTags": [ + "os_macos", + "os_mas" + ], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "canceled", + "description": "whether or not the dialog was canceled.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "filePath", + "description": "If the dialog is canceled, this will be an empty string.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "bookmark", + "description": "Base64 encoded string which contains the security scoped bookmark data for the saved file. `securityScopedBookmarks` must be enabled for this to be present. (For return values, see table here.)", + "required": false, + "additionalTags": [ + "os_macos", + "os_mas" + ], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + "additionalTags": [], + "urlFragment": "#dialogshowsavedialogwindow-options" + }, + { + "name": "showMessageBoxSync", + "signature": "([wndow, ]options)", + "description": "the index of the clicked button.\n\nShows a message box, it will block the process until the message box is closed. It returns the index of the clicked button.\n\nThe `window` argument allows the dialog to attach itself to a parent window, making it modal. If `window` is not shown dialog will not be attached to it. In such case it will be displayed as an independent window.", + "parameters": [ + { + "name": "window", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "message", + "description": "Content of the message box.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "type", + "description": "Can be `none`, `info`, `error`, `question` or `warning`. On Windows, `question` displays the same icon as `info`, unless you set an icon using the `icon` option. On macOS, both `warning` and `error` display the same warning icon.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "none", + "description": "" + }, + { + "value": "info", + "description": "" + }, + { + "value": "error", + "description": "" + }, + { + "value": "question", + "description": "" + }, + { + "value": "warning", + "description": "" + } + ] + }, + { + "name": "buttons", + "description": "Array of texts for buttons. On Windows, an empty array will result in one button labeled \"OK\".", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "defaultId", + "description": "Index of the button in the buttons array which will be selected by default when the message box opens.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "title", + "description": "Title of the message box, some platforms will not show it.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "detail", + "description": "Extra information of the message.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "icon", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "textWidth", + "description": "Custom width of the text in the message box.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "Integer" + }, + { + "name": "cancelId", + "description": "The index of the button to be used to cancel the dialog, via the `Esc` key. By default this is assigned to the first button with \"cancel\" or \"no\" as the label. If no such labeled buttons exist and this option is not set, `0` will be used as the return value.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "noLink", + "description": "On Windows Electron will try to figure out which one of the `buttons` are common buttons (like \"Cancel\" or \"Yes\"), and show the others as command links in the dialog. This can make the dialog appear in the style of modern Windows apps. If you don't like this behavior, you can set `noLink` to `true`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "normalizeAccessKeys", + "description": "Normalize the keyboard access keys across platforms. Default is `false`. Enabling this assumes `&` is used in the button labels for the placement of the keyboard shortcut access key and labels will be converted so they work correctly on each platform, `&` characters are removed on macOS, converted to `_` on Linux, and left untouched on Windows. For example, a button label of `Vie&w` will be converted to `Vie_w` on Linux and `View` on macOS and can be selected via `Alt-W` on Windows and Linux.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#dialogshowmessageboxsyncwndow-options" + }, + { + "name": "showMessageBox", + "signature": "([window, ]options)", + "description": "resolves with a promise containing the following properties:\n\n* `response` number - The index of the clicked button.\n* `checkboxChecked` boolean - The checked state of the checkbox if `checkboxLabel` was set. Otherwise `false`.\n\nShows a message box.\n\nThe `window` argument allows the dialog to attach itself to a parent window, making it modal.", + "parameters": [ + { + "name": "window", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "message", + "description": "Content of the message box.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "type", + "description": "Can be `none`, `info`, `error`, `question` or `warning`. On Windows, `question` displays the same icon as `info`, unless you set an icon using the `icon` option. On macOS, both `warning` and `error` display the same warning icon.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "none", + "description": "" + }, + { + "value": "info", + "description": "" + }, + { + "value": "error", + "description": "" + }, + { + "value": "question", + "description": "" + }, + { + "value": "warning", + "description": "" + } + ] + }, + { + "name": "buttons", + "description": "Array of texts for buttons. On Windows, an empty array will result in one button labeled \"OK\".", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "defaultId", + "description": "Index of the button in the buttons array which will be selected by default when the message box opens.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "signal", + "description": "Pass an instance of AbortSignal to optionally close the message box, the message box will behave as if it was cancelled by the user. On macOS, `signal` does not work with message boxes that do not have a parent window, since those message boxes run synchronously due to platform limitations.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "AbortSignal" + }, + { + "name": "title", + "description": "Title of the message box, some platforms will not show it.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "detail", + "description": "Extra information of the message.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "checkboxLabel", + "description": "If provided, the message box will include a checkbox with the given label.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "checkboxChecked", + "description": "Initial checked state of the checkbox. `false` by default.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "icon", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "textWidth", + "description": "Custom width of the text in the message box.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "Integer" + }, + { + "name": "cancelId", + "description": "The index of the button to be used to cancel the dialog, via the `Esc` key. By default this is assigned to the first button with \"cancel\" or \"no\" as the label. If no such labeled buttons exist and this option is not set, `0` will be used as the return value.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "noLink", + "description": "On Windows Electron will try to figure out which one of the `buttons` are common buttons (like \"Cancel\" or \"Yes\"), and show the others as command links in the dialog. This can make the dialog appear in the style of modern Windows apps. If you don't like this behavior, you can set `noLink` to `true`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "normalizeAccessKeys", + "description": "Normalize the keyboard access keys across platforms. Default is `false`. Enabling this assumes `&` is used in the button labels for the placement of the keyboard shortcut access key and labels will be converted so they work correctly on each platform, `&` characters are removed on macOS, converted to `_` on Linux, and left untouched on Windows. For example, a button label of `Vie&w` will be converted to `Vie_w` on Linux and `View` on macOS and can be selected via `Alt-W` on Windows and Linux.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "response", + "description": "The index of the clicked button.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "number" + }, + { + "name": "checkboxChecked", + "description": "The checked state of the checkbox if `checkboxLabel` was set. Otherwise `false`.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + } + ] + }, + "additionalTags": [], + "urlFragment": "#dialogshowmessageboxwindow-options" + }, + { + "name": "showErrorBox", + "signature": "(title, content)", + "description": "Displays a modal dialog that shows an error message.\n\nThis API can be called safely before the `ready` event the `app` module emits, it is usually used to report errors in early stage of startup. If called before the app `ready`event on Linux, the message will be emitted to stderr, and no GUI dialog will appear.", + "parameters": [ + { + "name": "title", + "description": "The title to display in the error box.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "content", + "description": "The text content to display in the error box.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#dialogshowerrorboxtitle-content" + }, + { + "name": "showCertificateTrustDialog", + "signature": "([window, ]options)", + "description": "resolves when the certificate trust dialog is shown.\n\nOn macOS, this displays a modal dialog that shows a message and certificate information, and gives the user the option of trusting/importing the certificate. If you provide a `window` argument the dialog will be attached to the parent window, making it modal.\n\nOn Windows the options are more limited, due to the Win32 APIs used:\n\n* The `message` argument is not used, as the OS provides its own confirmation dialog.\n* The `window` argument is ignored since it is not possible to make this confirmation dialog modal.", + "parameters": [ + { + "name": "window", + "description": "", + "required": false, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "certificate", + "description": "The certificate to trust/import.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Certificate" + }, + { + "name": "message", + "description": "The message to display to the user.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#dialogshowcertificatetrustdialogwindow-options-macos-windows" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "Dock", + "description": "", + "slug": "dock", + "websiteUrl": "https://electronjs.org/docs/api/dock", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/dock.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "bounce", + "signature": "([type])", + "description": "an ID representing the request.\n\nWhen `critical` is passed, the dock icon will bounce until either the application becomes active or the request is canceled.\n\nWhen `informational` is passed, the dock icon will bounce for one second. However, the request remains active until either the application becomes active or the request is canceled.\n\n**Note:** This method can only be used while the app is not focused; when the app is focused it will return -1.", + "parameters": [ + { + "name": "type", + "description": "Can be `critical` or `informational`. The default is `informational`", + "required": false, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "critical", + "description": "" + }, + { + "value": "informational", + "description": "" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockbouncetype-macos" + }, + { + "name": "cancelBounce", + "signature": "(id)", + "description": "Cancel the bounce of `id`.", + "parameters": [ + { + "name": "id", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockcancelbounceid-macos" + }, + { + "name": "downloadFinished", + "signature": "(filePath)", + "description": "Bounces the Downloads stack if the filePath is inside the Downloads folder.", + "parameters": [ + { + "name": "filePath", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockdownloadfinishedfilepath-macos" + }, + { + "name": "setBadge", + "signature": "(text)", + "description": "Sets the string to be displayed in the dock’s badging area.", + "parameters": [ + { + "name": "text", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#docksetbadgetext-macos" + }, + { + "name": "getBadge", + "signature": "()", + "description": "The badge string of the dock.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockgetbadge-macos" + }, + { + "name": "hide", + "signature": "()", + "description": "Hides the dock icon.", + "parameters": [], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockhide-macos" + }, + { + "name": "show", + "signature": "()", + "description": "Resolves when the dock icon is shown.", + "parameters": [], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockshow-macos" + }, + { + "name": "isVisible", + "signature": "()", + "description": "Whether the dock icon is visible.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockisvisible-macos" + }, + { + "name": "setMenu", + "signature": "(menu)", + "description": "Sets the application's dock menu.", + "parameters": [ + { + "name": "menu", + "description": "", + "required": true, + "collection": false, + "type": "Menu" + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#docksetmenumenu-macos" + }, + { + "name": "getMenu", + "signature": "()", + "description": "The application's dock menu.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "Menu" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockgetmenu-macos" + }, + { + "name": "setIcon", + "signature": "(image)", + "description": "Sets the `image` associated with this dock icon.", + "parameters": [ + { + "name": "image", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#dockseticonimage-macos" + } + ], + "instanceProperties": [], + "instanceEvents": [], + "instanceName": "dock" + }, + { + "name": "DownloadItem", + "description": "", + "slug": "download-item", + "websiteUrl": "https://electronjs.org/docs/api/download-item", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/download-item.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "setSavePath", + "signature": "(path)", + "description": "The API is only available in session's `will-download` callback function. If `path` doesn't exist, Electron will try to make the directory recursively. If user doesn't set the save path via the API, Electron will use the original routine to determine the save path; this usually prompts a save dialog.", + "parameters": [ + { + "name": "path", + "description": "Set the save file path of the download item.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#downloaditemsetsavepathpath" + }, + { + "name": "getSavePath", + "signature": "()", + "description": "The save path of the download item. This will be either the path set via `downloadItem.setSavePath(path)` or the path selected from the shown save dialog.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetsavepath" + }, + { + "name": "setSaveDialogOptions", + "signature": "(options)", + "description": "This API allows the user to set custom options for the save dialog that opens for the download item by default. The API is only available in session's `will-download` callback function.", + "parameters": [ + { + "name": "options", + "description": "Set the save file dialog options. This object has the same properties as the `options` parameter of `dialog.showSaveDialog()`.", + "required": true, + "collection": false, + "type": "SaveDialogOptions" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#downloaditemsetsavedialogoptionsoptions" + }, + { + "name": "getSaveDialogOptions", + "signature": "()", + "description": "Returns the object previously set by `downloadItem.setSaveDialogOptions(options)`.", + "parameters": [], + "returns": { + "collection": false, + "type": "SaveDialogOptions" + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetsavedialogoptions" + }, + { + "name": "pause", + "signature": "()", + "description": "Pauses the download.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#downloaditempause" + }, + { + "name": "isPaused", + "signature": "()", + "description": "Whether the download is paused.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#downloaditemispaused" + }, + { + "name": "resume", + "signature": "()", + "description": "Resumes the download that has been paused.\n\n**Note:** To enable resumable downloads the server you are downloading from must support range requests and provide both `Last-Modified` and `ETag` header values. Otherwise `resume()` will dismiss previously received bytes and restart the download from the beginning.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#downloaditemresume" + }, + { + "name": "canResume", + "signature": "()", + "description": "Whether the download can resume.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#downloaditemcanresume" + }, + { + "name": "cancel", + "signature": "()", + "description": "Cancels the download operation.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#downloaditemcancel" + }, + { + "name": "getURL", + "signature": "()", + "description": "The origin URL where the item is downloaded from.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgeturl" + }, + { + "name": "getMimeType", + "signature": "()", + "description": "The files mime type.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetmimetype" + }, + { + "name": "hasUserGesture", + "signature": "()", + "description": "Whether the download has user gesture.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#downloaditemhasusergesture" + }, + { + "name": "getFilename", + "signature": "()", + "description": "The file name of the download item.\n\n**Note:** The file name is not always the same as the actual one saved in local disk. If user changes the file name in a prompted download saving dialog, the actual name of saved file will be different.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetfilename" + }, + { + "name": "getCurrentBytesPerSecond", + "signature": "()", + "description": "The current download speed in bytes per second.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetcurrentbytespersecond" + }, + { + "name": "getTotalBytes", + "signature": "()", + "description": "The total size in bytes of the download item.\n\nIf the size is unknown, it returns 0.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#downloaditemgettotalbytes" + }, + { + "name": "getReceivedBytes", + "signature": "()", + "description": "The received bytes of the download item.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetreceivedbytes" + }, + { + "name": "getPercentComplete", + "signature": "()", + "description": "The download completion in percent.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetpercentcomplete" + }, + { + "name": "getContentDisposition", + "signature": "()", + "description": "The Content-Disposition field from the response header.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetcontentdisposition" + }, + { + "name": "getState", + "signature": "()", + "description": "The current state. Can be `progressing`, `completed`, `cancelled` or `interrupted`.\n\n**Note:** The following methods are useful specifically to resume a `cancelled` item when session is restarted.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "progressing", + "description": "" + }, + { + "value": "completed", + "description": "" + }, + { + "value": "cancelled", + "description": "" + }, + { + "value": "interrupted", + "description": "" + } + ] + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetstate" + }, + { + "name": "getURLChain", + "signature": "()", + "description": "The complete URL chain of the item including any redirects.", + "parameters": [], + "returns": { + "collection": true, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgeturlchain" + }, + { + "name": "getLastModifiedTime", + "signature": "()", + "description": "Last-Modified header value.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetlastmodifiedtime" + }, + { + "name": "getETag", + "signature": "()", + "description": "ETag header value.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetetag" + }, + { + "name": "getStartTime", + "signature": "()", + "description": "Number of seconds since the UNIX epoch when the download was started.", + "parameters": [], + "returns": { + "collection": false, + "type": "Double" + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetstarttime" + }, + { + "name": "getEndTime", + "signature": "()", + "description": "Number of seconds since the UNIX epoch when the download ended.", + "parameters": [], + "returns": { + "collection": false, + "type": "Double" + }, + "additionalTags": [], + "urlFragment": "#downloaditemgetendtime" + } + ], + "instanceProperties": [ + { + "name": "savePath", + "description": "A `string` property that determines the save file path of the download item.\n\nThe property is only available in session's `will-download` callback function. If user doesn't set the save path via the property, Electron will use the original routine to determine the save path; this usually prompts a save dialog.", + "required": true, + "additionalTags": [], + "urlFragment": "#downloaditemsavepath", + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "instanceEvents": [ + { + "name": "updated", + "description": "Emitted when the download has been updated and is not done.\n\nThe `state` can be one of following:\n\n* `progressing` - The download is in-progress.\n* `interrupted` - The download has interrupted and can be resumed.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "state", + "description": "Can be `progressing` or `interrupted`.", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "progressing", + "description": "" + }, + { + "value": "interrupted", + "description": "" + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-updated" + }, + { + "name": "done", + "description": "Emitted when the download is in a terminal state. This includes a completed download, a cancelled download (via `downloadItem.cancel()`), and interrupted download that can't be resumed.\n\nThe `state` can be one of following:\n\n* `completed` - The download completed successfully.\n* `cancelled` - The download has been cancelled.\n* `interrupted` - The download has interrupted and can not resume.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "state", + "description": "Can be `completed`, `cancelled` or `interrupted`.", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "completed", + "description": "" + }, + { + "value": "cancelled", + "description": "" + }, + { + "value": "interrupted", + "description": "" + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-done" + } + ], + "instanceName": "downloadItem" + }, + { + "name": "globalShortcut", + "description": "> Detect keyboard events when the application does not have keyboard focus.\n\nProcess: Main\n\nThe `globalShortcut` module can register/unregister a global keyboard shortcut with the operating system so that you can customize the operations for various shortcuts.\n\n**Note:** The shortcut is global; it will work even if the app does not have the keyboard focus. This module cannot be used before the `ready` event of the app module is emitted.", + "slug": "global-shortcut", + "websiteUrl": "https://electronjs.org/docs/api/global-shortcut", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/global-shortcut.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "register", + "signature": "(accelerator, callback)", + "description": "Whether or not the shortcut was registered successfully.\n\nRegisters a global shortcut of `accelerator`. The `callback` is called when the registered shortcut is pressed by the user.\n\nWhen the accelerator is already taken by other applications, this call will silently fail. This behavior is intended by operating systems, since they don't want applications to fight for global shortcuts.\n\nThe following accelerators will not be registered successfully on macOS 10.14 Mojave unless the app has been authorized as a trusted accessibility client:\n\n* \"Media Play/Pause\"\n* \"Media Next Track\"\n* \"Media Previous Track\"\n* \"Media Stop\"", + "parameters": [ + { + "name": "accelerator", + "description": "", + "required": true, + "collection": false, + "type": "Accelerator" + }, + { + "name": "callback", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [], + "returns": null + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#globalshortcutregisteraccelerator-callback" + }, + { + "name": "registerAll", + "signature": "(accelerators, callback)", + "description": "Registers a global shortcut of all `accelerator` items in `accelerators`. The `callback` is called when any of the registered shortcuts are pressed by the user.\n\nWhen a given accelerator is already taken by other applications, this call will silently fail. This behavior is intended by operating systems, since they don't want applications to fight for global shortcuts.\n\nThe following accelerators will not be registered successfully on macOS 10.14 Mojave unless the app has been authorized as a trusted accessibility client:\n\n* \"Media Play/Pause\"\n* \"Media Next Track\"\n* \"Media Previous Track\"\n* \"Media Stop\"", + "parameters": [ + { + "name": "accelerators", + "description": "an array of Accelerators.", + "required": true, + "collection": true, + "type": "Accelerator" + }, + { + "name": "callback", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#globalshortcutregisterallaccelerators-callback" + }, + { + "name": "isRegistered", + "signature": "(accelerator)", + "description": "Whether this application has registered `accelerator`.\n\nWhen the accelerator is already taken by other applications, this call will still return `false`. This behavior is intended by operating systems, since they don't want applications to fight for global shortcuts.", + "parameters": [ + { + "name": "accelerator", + "description": "", + "required": true, + "collection": false, + "type": "Accelerator" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#globalshortcutisregisteredaccelerator" + }, + { + "name": "unregister", + "signature": "(accelerator)", + "description": "Unregisters the global shortcut of `accelerator`.", + "parameters": [ + { + "name": "accelerator", + "description": "", + "required": true, + "collection": false, + "type": "Accelerator" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#globalshortcutunregisteraccelerator" + }, + { + "name": "unregisterAll", + "signature": "()", + "description": "Unregisters all of the global shortcuts.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#globalshortcutunregisterall" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "inAppPurchase", + "description": "> In-app purchases on Mac App Store.\n\nProcess: Main", + "slug": "in-app-purchase", + "websiteUrl": "https://electronjs.org/docs/api/in-app-purchase", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/in-app-purchase.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "purchaseProduct", + "signature": "(productID[, opts])", + "description": "Returns `true` if the product is valid and added to the payment queue.\n\nYou should listen for the `transactions-updated` event as soon as possible and certainly before you call `purchaseProduct`.", + "parameters": [ + { + "name": "productID", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "opts", + "description": "If specified as an integer, defines the quantity.", + "required": false, + "collection": false, + "type": [ + { + "collection": false, + "type": "Integer" + }, + { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "quantity", + "description": "The number of items the user wants to purchase.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "username", + "description": "The string that associates the transaction with a user account on your service (applicationUsername).", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "boolean" + } + ] + }, + "additionalTags": [], + "urlFragment": "#inapppurchasepurchaseproductproductid-opts" + }, + { + "name": "getProducts", + "signature": "(productIDs)", + "description": "Resolves with an array of `Product` objects.\n\nRetrieves the product descriptions.", + "parameters": [ + { + "name": "productIDs", + "description": "The identifiers of the products to get.", + "required": true, + "collection": true, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": true, + "type": "Product" + } + ] + }, + "additionalTags": [], + "urlFragment": "#inapppurchasegetproductsproductids" + }, + { + "name": "canMakePayments", + "signature": "()", + "description": "whether a user can make a payment.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#inapppurchasecanmakepayments" + }, + { + "name": "restoreCompletedTransactions", + "signature": "()", + "description": "Restores finished transactions. This method can be called either to install purchases on additional devices, or to restore purchases for an application that the user deleted and reinstalled.\n\nThe payment queue delivers a new transaction for each previously completed transaction that can be restored. Each transaction includes a copy of the original transaction.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#inapppurchaserestorecompletedtransactions" + }, + { + "name": "getReceiptURL", + "signature": "()", + "description": "the path to the receipt.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#inapppurchasegetreceipturl" + }, + { + "name": "finishAllTransactions", + "signature": "()", + "description": "Completes all pending transactions.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#inapppurchasefinishalltransactions" + }, + { + "name": "finishTransactionByDate", + "signature": "(date)", + "description": "Completes the pending transactions corresponding to the date.", + "parameters": [ + { + "name": "date", + "description": "The ISO formatted date of the transaction to finish.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#inapppurchasefinishtransactionbydatedate" + } + ], + "properties": [], + "events": [ + { + "name": "transactions-updated", + "description": "", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-transactions-updated" + } + ], + "exportedClasses": [] + }, + { + "name": "IncomingMessage", + "description": "", + "slug": "incoming-message", + "websiteUrl": "https://electronjs.org/docs/api/incoming-message", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/incoming-message.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": true, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [], + "instanceProperties": [ + { + "name": "statusCode", + "description": "An `Integer` indicating the HTTP response status code.", + "required": true, + "additionalTags": [], + "urlFragment": "#responsestatuscode", + "collection": false, + "type": "Integer" + }, + { + "name": "statusMessage", + "description": "A `string` representing the HTTP status message.", + "required": true, + "additionalTags": [], + "urlFragment": "#responsestatusmessage", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "headers", + "description": "A `Record` representing the HTTP response headers. The `headers` object is formatted as follows:\n\n* All header names are lowercased.\n* Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`, `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded.\n* `set-cookie` is always an array. Duplicates are added to the array.\n* For duplicate `cookie` headers, the values are joined together with '; '.\n* For all other headers, the values are joined together with ', '.", + "required": true, + "additionalTags": [], + "urlFragment": "#responseheaders", + "collection": false, + "type": "Record", + "innerTypes": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": true, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + { + "name": "httpVersion", + "description": "A `string` indicating the HTTP protocol version number. Typical values are '1.0' or '1.1'. Additionally `httpVersionMajor` and `httpVersionMinor` are two Integer-valued readable properties that return respectively the HTTP major and minor version numbers.", + "required": true, + "additionalTags": [], + "urlFragment": "#responsehttpversion", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "httpVersionMajor", + "description": "An `Integer` indicating the HTTP protocol major version number.", + "required": true, + "additionalTags": [], + "urlFragment": "#responsehttpversionmajor", + "collection": false, + "type": "Integer" + }, + { + "name": "httpVersionMinor", + "description": "An `Integer` indicating the HTTP protocol minor version number.", + "required": true, + "additionalTags": [], + "urlFragment": "#responsehttpversionminor", + "collection": false, + "type": "Integer" + }, + { + "name": "rawHeaders", + "description": "A `string[]` containing the raw HTTP response headers exactly as they were received. The keys and values are in the same list. It is not a list of tuples. So, the even-numbered offsets are key values, and the odd-numbered offsets are the associated values. Header names are not lowercased, and duplicates are not merged.", + "required": true, + "additionalTags": [], + "urlFragment": "#responserawheaders", + "collection": true, + "type": "String", + "possibleValues": null + } + ], + "instanceEvents": [ + { + "name": "data", + "description": "The `data` event is the usual method of transferring response data into applicative code.", + "parameters": [ + { + "name": "chunk", + "description": "A chunk of response body's data.", + "collection": false, + "type": "Buffer", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-data" + }, + { + "name": "end", + "description": "Indicates that response body has ended. Must be placed before 'data' event.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-end" + }, + { + "name": "aborted", + "description": "Emitted when a request has been canceled during an ongoing HTTP transaction.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-aborted" + }, + { + "name": "error", + "description": "Returns:\n\n`error` Error - Typically holds an error string identifying failure root cause.\n\nEmitted when an error was encountered while streaming response data events. For instance, if the server closes the underlying while the response is still streaming, an `error` event will be emitted on the response object and a `close` event will subsequently follow on the request object.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-error" + } + ], + "instanceName": "incomingMessage" + }, + { + "name": "ipcMain", + "description": "\n\n### ipcMain\n\n> Communicate asynchronously from the main process to renderer processes.\n\nProcess: Main\n\nThe `ipcMain` module is an Event Emitter. When used in the main process, it handles asynchronous and synchronous messages sent from a renderer process (web page). Messages sent from a renderer will be emitted to this module.\n\nFor usage examples, check out the IPC tutorial.\n\n### Sending messages\n\nIt is also possible to send messages from the main process to the renderer process, see webContents.send for more information.\n\n* When sending a message, the event name is the `channel`.\n* To reply to a synchronous message, you need to set `event.returnValue`.\n* To send an asynchronous message back to the sender, you can use `event.reply(...)`. This helper method will automatically handle messages coming from frames that aren't the main frame (e.g. iframes) whereas `event.sender.send(...)` will always send to the main frame.", + "slug": "ipc-main", + "websiteUrl": "https://electronjs.org/docs/api/ipc-main", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/ipc-main.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "on", + "signature": "(channel, listener)", + "description": "Listens to `channel`, when a new message arrives `listener` would be called with `listener(event, args...)`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcMainEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcmainonchannel-listener" + }, + { + "name": "once", + "signature": "(channel, listener)", + "description": "Adds a one time `listener` function for the event. This `listener` is invoked only the next time a message is sent to `channel`, after which it is removed.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcMainEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcmainoncechannel-listener" + }, + { + "name": "removeListener", + "signature": "(channel, listener)", + "description": "Removes the specified `listener` from the listener array for the specified `channel`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcmainremovelistenerchannel-listener" + }, + { + "name": "removeAllListeners", + "signature": "([channel])", + "description": "Removes listeners of the specified `channel`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": false, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcmainremovealllistenerschannel" + }, + { + "name": "handle", + "signature": "(channel, listener)", + "description": "Adds a handler for an `invoke`able IPC. This handler will be called whenever a renderer calls `ipcRenderer.invoke(channel, ...args)`.\n\nIf `listener` returns a Promise, the eventual result of the promise will be returned as a reply to the remote caller. Otherwise, the return value of the listener will be used as the value of the reply.\n\nThe `event` that is passed as the first argument to the handler is the same as that passed to a regular event listener. It includes information about which WebContents is the source of the invoke request.\n\nErrors thrown through `handle` in the main process are not transparent as they are serialized and only the `message` property from the original error is provided to the renderer process. Please refer to #24427 for details.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcMainInvokeEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "any" + } + ] + }, + { + "collection": false, + "type": "any" + } + ] + } + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcmainhandlechannel-listener" + }, + { + "name": "handleOnce", + "signature": "(channel, listener)", + "description": "Handles a single `invoke`able IPC message, then removes the listener. See `ipcMain.handle(channel, listener)`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcMainInvokeEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "any" + } + ] + }, + { + "collection": false, + "type": "any" + } + ] + } + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcmainhandleoncechannel-listener" + }, + { + "name": "removeHandler", + "signature": "(channel)", + "description": "Removes any handler for `channel`, if present.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcmainremovehandlerchannel" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "ipcRenderer", + "description": "\n\n### ipcRenderer\n\n> Communicate asynchronously from a renderer process to the main process.\n\nProcess: Renderer\n\nThe `ipcRenderer` module is an EventEmitter. It provides a few methods so you can send synchronous and asynchronous messages from the render process (web page) to the main process. You can also receive replies from the main process.\n\nSee IPC tutorial for code examples.", + "slug": "ipc-renderer", + "websiteUrl": "https://electronjs.org/docs/api/ipc-renderer", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/ipc-renderer.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": false, + "renderer": true, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "on", + "signature": "(channel, listener)", + "description": "Listens to `channel`, when a new message arrives `listener` would be called with `listener(event, args...)`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcRendererEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrendereronchannel-listener" + }, + { + "name": "off", + "signature": "(channel, listener)", + "description": "Alias for `ipcRenderer.removeListener`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcRendererEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrendereroffchannel-listener" + }, + { + "name": "once", + "signature": "(channel, listener)", + "description": "Adds a one time `listener` function for the event. This `listener` is invoked only the next time a message is sent to `channel`, after which it is removed.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcRendererEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrendereroncechannel-listener" + }, + { + "name": "addListener", + "signature": "(channel, listener)", + "description": "Alias for `ipcRenderer.on`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcRendererEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrendereraddlistenerchannel-listener" + }, + { + "name": "removeListener", + "signature": "(channel, listener)", + "description": "Removes the specified `listener` from the listener array for the specified `channel`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "listener", + "description": "", + "required": true, + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "IpcRendererEvent" + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrendererremovelistenerchannel-listener" + }, + { + "name": "removeAllListeners", + "signature": "(channel)", + "description": "Removes all listeners, or those of the specified `channel`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrendererremovealllistenerschannel" + }, + { + "name": "send", + "signature": "(channel, ...args)", + "description": "Send an asynchronous message to the main process via `channel`, along with arguments. Arguments will be serialized with the Structured Clone Algorithm, just like `window.postMessage`, so prototype chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.\n\n> **NOTE:** Sending non-standard JavaScript types such as DOM objects or special Electron objects will throw an exception.\n\nSince the main process does not have support for DOM objects such as `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over Electron's IPC to the main process, as the main process would have no way to decode them. Attempting to send such objects over IPC will result in an error.\n\nThe main process handles it by listening for `channel` with the `ipcMain` module.\n\nIf you need to transfer a `MessagePort` to the main process, use `ipcRenderer.postMessage`.\n\nIf you want to receive a single response from the main process, like the result of a method call, consider using `ipcRenderer.invoke`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrenderersendchannel-args" + }, + { + "name": "invoke", + "signature": "(channel, ...args)", + "description": "Resolves with the response from the main process.\n\nSend a message to the main process via `channel` and expect a result asynchronously. Arguments will be serialized with the Structured Clone Algorithm, just like `window.postMessage`, so prototype chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.\n\nThe main process should listen for `channel` with `ipcMain.handle()`.\n\nFor example:\n\nIf you need to transfer a `MessagePort` to the main process, use `ipcRenderer.postMessage`.\n\nIf you do not need a response to the message, consider using `ipcRenderer.send`.\n\n> **Note** Sending non-standard JavaScript types such as DOM objects or special Electron objects will throw an exception.\n\nSince the main process does not have support for DOM objects such as `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over Electron's IPC to the main process, as the main process would have no way to decode them. Attempting to send such objects over IPC will result in an error.\n\n> **Note** If the handler in the main process throws an error, the promise returned by `invoke` will reject. However, the `Error` object in the renderer process will not be the same as the one thrown in the main process.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "any" + } + ] + }, + "additionalTags": [], + "urlFragment": "#ipcrendererinvokechannel-args" + }, + { + "name": "sendSync", + "signature": "(channel, ...args)", + "description": "The value sent back by the `ipcMain` handler.\n\nSend a message to the main process via `channel` and expect a result synchronously. Arguments will be serialized with the Structured Clone Algorithm, just like `window.postMessage`, so prototype chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.\n\n> **NOTE:** Sending non-standard JavaScript types such as DOM objects or special Electron objects will throw an exception.\n\nSince the main process does not have support for DOM objects such as `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over Electron's IPC to the main process, as the main process would have no way to decode them. Attempting to send such objects over IPC will result in an error.\n\nThe main process handles it by listening for `channel` with `ipcMain` module, and replies by setting `event.returnValue`.\n\n> :warning: **WARNING**: Sending a synchronous message will block the whole renderer process until the reply is received, so use this method only as a last resort. It's much better to use the asynchronous version, `invoke()`.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": { + "collection": false, + "type": "any" + }, + "additionalTags": [], + "urlFragment": "#ipcrenderersendsyncchannel-args" + }, + { + "name": "postMessage", + "signature": "(channel, message, [transfer])", + "description": "Send a message to the main process, optionally transferring ownership of zero or more `MessagePort` objects.\n\nThe transferred `MessagePort` objects will be available in the main process as `MessagePortMain` objects by accessing the `ports` property of the emitted event.\n\nFor example:\n\nFor more information on using `MessagePort` and `MessageChannel`, see the MDN documentation.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "any" + }, + { + "name": "transfer", + "description": "", + "required": false, + "collection": true, + "type": "MessagePort" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrendererpostmessagechannel-message-transfer" + }, + { + "name": "sendToHost", + "signature": "(channel, ...args)", + "description": "Like `ipcRenderer.send` but the event will be sent to the `` element in the host page instead of the main process.", + "parameters": [ + { + "name": "channel", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "...args", + "description": "", + "required": true, + "collection": true, + "type": "any" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#ipcrenderersendtohostchannel-args" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "MenuItem", + "description": "> Add items to native application menus and context menus.\n\nProcess: Main\n\nSee `Menu` for examples.", + "slug": "menu-item", + "websiteUrl": "https://electronjs.org/docs/api/menu-item", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/menu-item.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "constructorMethod": { + "signature": "(options)", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "click", + "description": "Will be called with `click(menuItem, window, event)` when the menu item is clicked.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "menuItem", + "description": "", + "required": true, + "collection": false, + "type": "MenuItem" + }, + { + "name": "window", + "description": "This will not be defined if no window is open.", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "BaseWindow" + }, + { + "collection": false, + "type": "undefined" + } + ] + }, + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "KeyboardEvent" + } + ], + "returns": null + }, + { + "name": "role", + "description": "Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `toggleSpellChecker`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `showSubstitutions`, `toggleSmartQuotes`, `toggleSmartDashes`, `toggleTextReplacement`, `startSpeaking`, `stopSpeaking`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `shareMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `showAllTabs`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu` - Define the action of the menu item, when specified the `click` property will be ignored. See roles.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "undo", + "description": "" + }, + { + "value": "redo", + "description": "" + }, + { + "value": "cut", + "description": "" + }, + { + "value": "copy", + "description": "" + }, + { + "value": "paste", + "description": "" + }, + { + "value": "pasteAndMatchStyle", + "description": "" + }, + { + "value": "delete", + "description": "" + }, + { + "value": "selectAll", + "description": "" + }, + { + "value": "reload", + "description": "" + }, + { + "value": "forceReload", + "description": "" + }, + { + "value": "toggleDevTools", + "description": "" + }, + { + "value": "resetZoom", + "description": "" + }, + { + "value": "zoomIn", + "description": "" + }, + { + "value": "zoomOut", + "description": "" + }, + { + "value": "toggleSpellChecker", + "description": "" + }, + { + "value": "togglefullscreen", + "description": "" + }, + { + "value": "window", + "description": "" + }, + { + "value": "minimize", + "description": "" + }, + { + "value": "close", + "description": "" + }, + { + "value": "help", + "description": "" + }, + { + "value": "about", + "description": "" + }, + { + "value": "services", + "description": "" + }, + { + "value": "hide", + "description": "" + }, + { + "value": "hideOthers", + "description": "" + }, + { + "value": "unhide", + "description": "" + }, + { + "value": "quit", + "description": "" + }, + { + "value": "showSubstitutions", + "description": "" + }, + { + "value": "toggleSmartQuotes", + "description": "" + }, + { + "value": "toggleSmartDashes", + "description": "" + }, + { + "value": "toggleTextReplacement", + "description": "" + }, + { + "value": "startSpeaking", + "description": "" + }, + { + "value": "stopSpeaking", + "description": "" + }, + { + "value": "zoom", + "description": "" + }, + { + "value": "front", + "description": "" + }, + { + "value": "appMenu", + "description": "" + }, + { + "value": "fileMenu", + "description": "" + }, + { + "value": "editMenu", + "description": "" + }, + { + "value": "viewMenu", + "description": "" + }, + { + "value": "shareMenu", + "description": "" + }, + { + "value": "recentDocuments", + "description": "" + }, + { + "value": "toggleTabBar", + "description": "" + }, + { + "value": "selectNextTab", + "description": "" + }, + { + "value": "selectPreviousTab", + "description": "" + }, + { + "value": "showAllTabs", + "description": "" + }, + { + "value": "mergeAllWindows", + "description": "" + }, + { + "value": "clearRecentDocuments", + "description": "" + }, + { + "value": "moveTabToNewWindow", + "description": "" + }, + { + "value": "windowMenu", + "description": "" + } + ] + }, + { + "name": "type", + "description": "Can be `normal`, `separator`, `submenu`, `checkbox` or `radio`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "normal", + "description": "" + }, + { + "value": "separator", + "description": "" + }, + { + "value": "submenu", + "description": "" + }, + { + "value": "checkbox", + "description": "" + }, + { + "value": "radio", + "description": "" + } + ] + }, + { + "name": "label", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "sublabel", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "toolTip", + "description": "Hover text for this menu item.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "accelerator", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Accelerator" + }, + { + "name": "icon", + "description": "", + "required": false, + "additionalTags": [], + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "enabled", + "description": "If false, the menu item will be greyed out and unclickable.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "acceleratorWorksWhenHidden", + "description": "default is `true`, and when `false` will prevent the accelerator from triggering the item if the item is not visible.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "visible", + "description": "If false, the menu item will be entirely hidden.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "checked", + "description": "Should only be specified for `checkbox` or `radio` type menu items.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "registerAccelerator", + "description": "If false, the accelerator won't be registered with the system, but it will still be displayed. Defaults to true.", + "required": false, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "sharingItem", + "description": "The item to share when the `role` is `shareMenu`.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "SharingItem" + }, + { + "name": "submenu", + "description": "Should be specified for `submenu` type menu items. If `submenu` is specified, the `type: 'submenu'` can be omitted. If the value is not a `Menu` then it will be automatically converted to one using `Menu.buildFromTemplate`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": [ + { + "collection": true, + "type": "MenuItemConstructorOptions" + }, + { + "collection": false, + "type": "Menu" + } + ] + }, + { + "name": "id", + "description": "Unique within a single menu. If defined then it can be used as a reference to this item by the position attribute.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "before", + "description": "Inserts this item before the item with the specified id. If the referenced item doesn't exist the item will be inserted at the end of the menu. Also implies that the menu item in question should be placed in the same “group” as the item.", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "after", + "description": "Inserts this item after the item with the specified id. If the referenced item doesn't exist the item will be inserted at the end of the menu.", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "beforeGroupContaining", + "description": "Provides a means for a single context menu to declare the placement of their containing group before the containing group of the item with the specified id.", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + }, + { + "name": "afterGroupContaining", + "description": "Provides a means for a single context menu to declare the placement of their containing group after the containing group of the item with the specified id.", + "required": false, + "additionalTags": [], + "collection": true, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [], + "instanceProperties": [ + { + "name": "id", + "description": "A `string` indicating the item's unique id, this property can be dynamically changed.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemid", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "label", + "description": "A `string` indicating the item's visible label.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemlabel", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "click", + "description": "A `Function` that is fired when the MenuItem receives a click event. It can be called with `menuItem.click(event, focusedWindow, focusedWebContents)`.\n\n* `event` KeyboardEvent\n* `focusedWindow` BaseWindow\n* `focusedWebContents` WebContents", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemclick", + "collection": false, + "type": "Function", + "parameters": [ + { + "name": "event", + "description": "", + "required": true, + "collection": false, + "type": "KeyboardEvent" + }, + { + "name": "focusedWindow", + "description": "", + "required": true, + "collection": false, + "type": "BaseWindow" + }, + { + "name": "focusedWebContents", + "description": "", + "required": true, + "collection": false, + "type": "WebContents" + } + ], + "returns": null + }, + { + "name": "submenu", + "description": "A `Menu` (optional) containing the menu item's submenu, if present.", + "required": false, + "additionalTags": [], + "urlFragment": "#menuitemsubmenu", + "collection": false, + "type": "Menu" + }, + { + "name": "type", + "description": "A `string` indicating the type of the item. Can be `normal`, `separator`, `submenu`, `checkbox` or `radio`.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemtype", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "normal", + "description": "" + }, + { + "value": "separator", + "description": "" + }, + { + "value": "submenu", + "description": "" + }, + { + "value": "checkbox", + "description": "" + }, + { + "value": "radio", + "description": "" + } + ] + }, + { + "name": "role", + "description": "A `string` (optional) indicating the item's role, if set. Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `toggleSpellChecker`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`, `stopSpeaking`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `shareMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `showAllTabs`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu`", + "required": false, + "additionalTags": [], + "urlFragment": "#menuitemrole", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "undo", + "description": "" + }, + { + "value": "redo", + "description": "" + }, + { + "value": "cut", + "description": "" + }, + { + "value": "copy", + "description": "" + }, + { + "value": "paste", + "description": "" + }, + { + "value": "pasteAndMatchStyle", + "description": "" + }, + { + "value": "delete", + "description": "" + }, + { + "value": "selectAll", + "description": "" + }, + { + "value": "reload", + "description": "" + }, + { + "value": "forceReload", + "description": "" + }, + { + "value": "toggleDevTools", + "description": "" + }, + { + "value": "resetZoom", + "description": "" + }, + { + "value": "zoomIn", + "description": "" + }, + { + "value": "zoomOut", + "description": "" + }, + { + "value": "toggleSpellChecker", + "description": "" + }, + { + "value": "togglefullscreen", + "description": "" + }, + { + "value": "window", + "description": "" + }, + { + "value": "minimize", + "description": "" + }, + { + "value": "close", + "description": "" + }, + { + "value": "help", + "description": "" + }, + { + "value": "about", + "description": "" + }, + { + "value": "services", + "description": "" + }, + { + "value": "hide", + "description": "" + }, + { + "value": "hideOthers", + "description": "" + }, + { + "value": "unhide", + "description": "" + }, + { + "value": "quit", + "description": "" + }, + { + "value": "startSpeaking", + "description": "" + }, + { + "value": "stopSpeaking", + "description": "" + }, + { + "value": "zoom", + "description": "" + }, + { + "value": "front", + "description": "" + }, + { + "value": "appMenu", + "description": "" + }, + { + "value": "fileMenu", + "description": "" + }, + { + "value": "editMenu", + "description": "" + }, + { + "value": "viewMenu", + "description": "" + }, + { + "value": "shareMenu", + "description": "" + }, + { + "value": "recentDocuments", + "description": "" + }, + { + "value": "toggleTabBar", + "description": "" + }, + { + "value": "selectNextTab", + "description": "" + }, + { + "value": "selectPreviousTab", + "description": "" + }, + { + "value": "showAllTabs", + "description": "" + }, + { + "value": "mergeAllWindows", + "description": "" + }, + { + "value": "clearRecentDocuments", + "description": "" + }, + { + "value": "moveTabToNewWindow", + "description": "" + }, + { + "value": "windowMenu", + "description": "" + } + ] + }, + { + "name": "accelerator", + "description": "An `Accelerator` (optional) indicating the item's accelerator, if set.", + "required": false, + "additionalTags": [], + "urlFragment": "#menuitemaccelerator", + "collection": false, + "type": "Accelerator" + }, + { + "name": "userAccelerator", + "description": "An `Accelerator | null` indicating the item's user-assigned accelerator for the menu item.\n\n**Note:** This property is only initialized after the `MenuItem` has been added to a `Menu`. Either via `Menu.buildFromTemplate` or via `Menu.append()/insert()`. Accessing before initialization will just return `null`.", + "required": true, + "additionalTags": [ + "availability_readonly", + "os_macos" + ], + "urlFragment": "#menuitemuseraccelerator-readonly-macos", + "collection": false, + "type": [ + { + "collection": false, + "type": "Accelerator" + }, + { + "type": "null", + "collection": false + } + ] + }, + { + "name": "icon", + "description": "A `NativeImage | string` (optional) indicating the item's icon, if set.", + "required": false, + "additionalTags": [], + "urlFragment": "#menuitemicon", + "collection": false, + "type": [ + { + "collection": false, + "type": "NativeImage" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + }, + { + "name": "sublabel", + "description": "A `string` indicating the item's sublabel.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemsublabel", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "toolTip", + "description": "A `string` indicating the item's hover text.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#menuitemtooltip-macos", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "enabled", + "description": "A `boolean` indicating whether the item is enabled, this property can be dynamically changed.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemenabled", + "collection": false, + "type": "boolean" + }, + { + "name": "visible", + "description": "A `boolean` indicating whether the item is visible, this property can be dynamically changed.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemvisible", + "collection": false, + "type": "boolean" + }, + { + "name": "checked", + "description": "A `boolean` indicating whether the item is checked, this property can be dynamically changed.\n\nA `checkbox` menu item will toggle the `checked` property on and off when selected.\n\nA `radio` menu item will turn on its `checked` property when clicked, and will turn off that property for all adjacent items in the same menu.\n\nYou can add a `click` function for additional behavior.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemchecked", + "collection": false, + "type": "boolean" + }, + { + "name": "registerAccelerator", + "description": "A `boolean` indicating if the accelerator should be registered with the system or just displayed.\n\nThis property can be dynamically changed.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemregisteraccelerator", + "collection": false, + "type": "boolean" + }, + { + "name": "sharingItem", + "description": "A `SharingItem` indicating the item to share when the `role` is `shareMenu`.\n\nThis property can be dynamically changed.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#menuitemsharingitem-macos", + "collection": false, + "type": "SharingItem" + }, + { + "name": "commandId", + "description": "A `number` indicating an item's sequential unique id.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemcommandid", + "collection": false, + "type": "number" + }, + { + "name": "menu", + "description": "A `Menu` that the item is a part of.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitemmenu", + "collection": false, + "type": "Menu" + } + ], + "instanceEvents": [], + "instanceName": "menuItem" + }, + { + "name": "Menu", + "description": "\n\n### Class: Menu\n\n> Create native application menus and context menus.\n\nProcess: Main", + "slug": "menu", + "websiteUrl": "https://electronjs.org/docs/api/menu", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/menu.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "constructorMethod": { + "signature": "()", + "parameters": [] + }, + "staticMethods": [ + { + "name": "setApplicationMenu", + "signature": "(menu)", + "description": "Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu` will be set as each window's top menu.\n\nAlso on Windows and Linux, you can use a `&` in the top-level item name to indicate which letter should get a generated accelerator. For example, using `&File` for the file menu would result in a generated `Alt-F` accelerator that opens the associated menu. The indicated character in the button label then gets an underline, and the `&` character is not displayed on the button label.\n\nIn order to escape the `&` character in an item name, add a proceeding `&`. For example, `&&File` would result in `&File` displayed on the button label.\n\nPassing `null` will suppress the default menu. On Windows and Linux, this has the additional effect of removing the menu bar from the window.\n\n**Note:** The default menu will be created automatically if the app does not set one. It contains standard items such as `File`, `Edit`, `View`, `Window` and `Help`.", + "parameters": [ + { + "name": "menu", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "Menu" + }, + { + "type": "null", + "collection": false + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#menusetapplicationmenumenu" + }, + { + "name": "getApplicationMenu", + "signature": "()", + "description": "The application menu, if set, or `null`, if not set.\n\n**Note:** The returned `Menu` instance doesn't support dynamic addition or removal of menu items. Instance properties can still be dynamically modified.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "Menu" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#menugetapplicationmenu" + }, + { + "name": "sendActionToFirstResponder", + "signature": "(action)", + "description": "Sends the `action` to the first responder of application. This is used for emulating default macOS menu behaviors. Usually you would use the `role` property of a `MenuItem`.\n\nSee the macOS Cocoa Event Handling Guide for more information on macOS' native actions.", + "parameters": [ + { + "name": "action", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": null, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#menusendactiontofirstresponderaction-macos" + }, + { + "name": "buildFromTemplate", + "signature": "(template)", + "description": "Generally, the `template` is an array of `options` for constructing a MenuItem. The usage can be referenced above.\n\nYou can also attach other fields to the element of the `template` and they will become properties of the constructed menu items.", + "parameters": [ + { + "name": "template", + "description": "", + "required": true, + "collection": true, + "type": [ + { + "collection": false, + "type": "MenuItemConstructorOptions" + }, + { + "collection": false, + "type": "MenuItem" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Menu" + }, + "additionalTags": [], + "urlFragment": "#menubuildfromtemplatetemplate" + } + ], + "staticProperties": [], + "instanceMethods": [ + { + "name": "popup", + "signature": "([options])", + "description": "Pops up this menu as a context menu in the `BrowserWindow`.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "window", + "description": "Default is the focused window.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "BrowserWindow" + }, + { + "name": "x", + "description": "Default is the current mouse cursor position. Must be declared if `y` is declared.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "number" + }, + { + "name": "y", + "description": "Default is the current mouse cursor position. Must be declared if `x` is declared.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "number" + }, + { + "name": "positioningItem", + "description": "The index of the menu item to be positioned under the mouse cursor at the specified coordinates. Default is -1.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "number" + }, + { + "name": "sourceType", + "description": "This should map to the `menuSourceType` provided by the `context-menu` event. It is not recommended to set this value manually, only provide values you receive from other APIs or leave it `undefined`. Can be `none`, `mouse`, `keyboard`, `touch`, `touchMenu`, `longPress`, `longTap`, `touchHandle`, `stylus`, `adjustSelection`, or `adjustSelectionReset`.", + "required": false, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "none", + "description": "" + }, + { + "value": "mouse", + "description": "" + }, + { + "value": "keyboard", + "description": "" + }, + { + "value": "touch", + "description": "" + }, + { + "value": "touchMenu", + "description": "" + }, + { + "value": "longPress", + "description": "" + }, + { + "value": "longTap", + "description": "" + }, + { + "value": "touchHandle", + "description": "" + }, + { + "value": "stylus", + "description": "" + }, + { + "value": "adjustSelection", + "description": "" + }, + { + "value": "adjustSelectionReset", + "description": "" + } + ] + }, + { + "name": "callback", + "description": "Called when menu is closed.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Function", + "parameters": [], + "returns": null + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#menupopupoptions" + }, + { + "name": "closePopup", + "signature": "([browserWindow])", + "description": "Closes the context menu in the `browserWindow`.", + "parameters": [ + { + "name": "browserWindow", + "description": "Default is the focused window.", + "required": false, + "collection": false, + "type": "BrowserWindow" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#menuclosepopupbrowserwindow" + }, + { + "name": "append", + "signature": "(menuItem)", + "description": "Appends the `menuItem` to the menu.", + "parameters": [ + { + "name": "menuItem", + "description": "", + "required": true, + "collection": false, + "type": "MenuItem" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#menuappendmenuitem" + }, + { + "name": "getMenuItemById", + "signature": "(id)", + "description": "the item with the specified `id`", + "parameters": [ + { + "name": "id", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "MenuItem" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#menugetmenuitembyidid" + }, + { + "name": "insert", + "signature": "(pos, menuItem)", + "description": "Inserts the `menuItem` to the `pos` position of the menu.", + "parameters": [ + { + "name": "pos", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + }, + { + "name": "menuItem", + "description": "", + "required": true, + "collection": false, + "type": "MenuItem" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#menuinsertpos-menuitem" + } + ], + "instanceProperties": [ + { + "name": "items", + "description": "A `MenuItem[]` array containing the menu's items.\n\nEach `Menu` consists of multiple `MenuItem`s and each `MenuItem` can have a submenu.", + "required": true, + "additionalTags": [], + "urlFragment": "#menuitems", + "collection": true, + "type": "MenuItem" + } + ], + "instanceEvents": [ + { + "name": "menu-will-show", + "description": "Emitted when `menu.popup()` is called.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-menu-will-show" + }, + { + "name": "menu-will-close", + "description": "Emitted when a popup is closed either manually or with `menu.closePopup()`.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-menu-will-close" + } + ], + "instanceName": "Menu" + }, + { + "name": "MessageChannelMain", + "description": "", + "slug": "message-channel-main", + "websiteUrl": "https://electronjs.org/docs/api/message-channel-main", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/message-channel-main.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [], + "instanceProperties": [ + { + "name": "port1", + "description": "A `MessagePortMain` property.", + "required": true, + "additionalTags": [], + "urlFragment": "#channelport1", + "collection": false, + "type": "MessagePortMain" + }, + { + "name": "port2", + "description": "A `MessagePortMain` property.", + "required": true, + "additionalTags": [], + "urlFragment": "#channelport2", + "collection": false, + "type": "MessagePortMain" + } + ], + "instanceEvents": [], + "instanceName": "channel" + }, + { + "name": "MessagePortMain", + "description": "", + "slug": "message-port-main", + "websiteUrl": "https://electronjs.org/docs/api/message-port-main", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/message-port-main.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "postMessage", + "signature": "(message, [transfer])", + "description": "Sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "any" + }, + { + "name": "transfer", + "description": "", + "required": false, + "collection": true, + "type": "MessagePortMain" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#portpostmessagemessage-transfer" + }, + { + "name": "start", + "signature": "()", + "description": "Starts the sending of messages queued on the port. Messages will be queued until this method is called.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#portstart" + }, + { + "name": "close", + "signature": "()", + "description": "Disconnects the port, so it is no longer active.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#portclose" + } + ], + "instanceProperties": [], + "instanceEvents": [ + { + "name": "message", + "description": "Emitted when a MessagePortMain object receives a message.", + "parameters": [ + { + "name": "messageEvent", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "data", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "any" + }, + { + "name": "ports", + "description": "", + "required": true, + "additionalTags": [], + "collection": true, + "type": "MessagePortMain" + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-message" + }, + { + "name": "close", + "description": "Emitted when the remote end of a MessagePortMain object becomes disconnected.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-close" + } + ], + "instanceName": "port" + }, + { + "name": "nativeImage", + "description": "> Create tray, dock, and application icons using PNG or JPG files.\n\nProcess: Main, Renderer\n\nThe `nativeImage` module provides a unified interface for manipulating system images. These can be handy if you want to provide multiple scaled versions of the same icon or take advantage of macOS template images.\n\nElectron APIs that take image files accept either file paths or `NativeImage` instances. An empty and transparent image will be used when `null` is passed.\n\nFor example, when creating a Tray or setting a BrowserWindow's icon, you can either pass an image file path as a string:\n\n```\nconst { BrowserWindow, Tray } = require('electron')\n\nconst tray = new Tray('/Users/somebody/images/icon.png')\nconst win = new BrowserWindow({ icon: '/Users/somebody/images/window.png' })\n```\n\nor generate a `NativeImage` instance from the same file:\n\n### Supported Formats\n\nCurrently, `PNG` and `JPEG` image formats are supported across all platforms. `PNG` is recommended because of its support for transparency and lossless compression.\n\nOn Windows, you can also load `ICO` icons from file paths. For best visual quality, we recommend including at least the following sizes:\n\n* Small icon\n * 16x16 (100% DPI scale)\n * 20x20 (125% DPI scale)\n * 24x24 (150% DPI scale)\n * 32x32 (200% DPI scale)\n* Large icon\n * 32x32 (100% DPI scale)\n * 40x40 (125% DPI scale)\n * 48x48 (150% DPI scale)\n * 64x64 (200% DPI scale)\n * 256x256\n\nCheck the _Icon Scaling_ section in the Windows App Icon Construction reference.\n\n:::note\n\nEXIF metadata is currently not supported and will not be taken into account during image encoding and decoding.\n\n:::\n\n### High Resolution Image\n\nOn platforms that support high pixel density displays (such as Apple Retina), you can append `@2x` after image's base filename to mark it as a 2x scale high resolution image.\n\nFor example, if `icon.png` is a normal image that has standard resolution, then `icon@2x.png` will be treated as a high resolution image that has double Dots per Inch (DPI) density.\n\nIf you want to support displays with different DPI densities at the same time, you can put images with different sizes in the same folder and use the filename without DPI suffixes within Electron. For example:\n\n```\nimages/\n├── icon.png\n├── icon@2x.png\n└── icon@3x.png\n```\n\n```\nconst { Tray } = require('electron')\nconst appTray = new Tray('/Users/somebody/images/icon.png')\n```\n\nThe following suffixes for DPI are also supported:\n\n* `@1x`\n* `@1.25x`\n* `@1.33x`\n* `@1.4x`\n* `@1.5x`\n* `@1.8x`\n* `@2x`\n* `@2.5x`\n* `@3x`\n* `@4x`\n* `@5x`\n\n### Template Image _macOS_\n\nOn macOS, template images consist of black and an alpha channel. Template images are not intended to be used as standalone images and are usually mixed with other content to create the desired final appearance.\n\nThe most common case is to use template images for a menu bar (Tray) icon, so it can adapt to both light and dark menu bars.\n\nTo mark an image as a template image, its base filename should end with the word `Template` (e.g. `xxxTemplate.png`). You can also specify template images at different DPI densities (e.g. `xxxTemplate@2x.png`).", + "slug": "native-image", + "websiteUrl": "https://electronjs.org/docs/api/native-image", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/native-image.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": true, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "createEmpty", + "signature": "()", + "description": "Creates an empty `NativeImage` instance.", + "parameters": [], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#nativeimagecreateempty" + }, + { + "name": "createThumbnailFromPath", + "signature": "(path, size)", + "description": "fulfilled with the file's thumbnail preview image, which is a NativeImage.\n\nNote: The Windows implementation will ignore `size.height` and scale the height according to `size.width`.", + "parameters": [ + { + "name": "path", + "description": "path to a file that we intend to construct a thumbnail out of.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "size", + "description": "the desired width and height (positive numbers) of the thumbnail.", + "required": true, + "collection": false, + "type": "Size" + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "NativeImage" + } + ] + }, + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#nativeimagecreatethumbnailfrompathpath-size-macos-windows" + }, + { + "name": "createFromPath", + "signature": "(path)", + "description": "Creates a new `NativeImage` instance from a file located at `path`. This method returns an empty image if the `path` does not exist, cannot be read, or is not a valid image.", + "parameters": [ + { + "name": "path", + "description": "path to a file that we intend to construct an image out of.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#nativeimagecreatefrompathpath" + }, + { + "name": "createFromBitmap", + "signature": "(buffer, options)", + "description": "Creates a new `NativeImage` instance from `buffer` that contains the raw bitmap pixel data returned by `toBitmap()`. The specific format is platform-dependent.", + "parameters": [ + { + "name": "buffer", + "description": "", + "required": true, + "collection": false, + "type": "Buffer" + }, + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "width", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Number" + } + ] + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#nativeimagecreatefrombitmapbuffer-options" + }, + { + "name": "createFromBuffer", + "signature": "(buffer[, options])", + "description": "Creates a new `NativeImage` instance from `buffer`. Tries to decode as PNG or JPEG first.", + "parameters": [ + { + "name": "buffer", + "description": "", + "required": true, + "collection": false, + "type": "Buffer" + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "width", + "description": "Required for bitmap buffers.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "Required for bitmap buffers.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Number" + } + ] + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#nativeimagecreatefrombufferbuffer-options" + }, + { + "name": "createFromDataURL", + "signature": "(dataURL)", + "description": "Creates a new `NativeImage` instance from `dataUrl`, a base 64 encoded Data URL string.", + "parameters": [ + { + "name": "dataURL", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#nativeimagecreatefromdataurldataurl" + }, + { + "name": "createFromNamedImage", + "signature": "(imageName[, hslShift])", + "description": "Creates a new `NativeImage` instance from the `NSImage` that maps to the given image name. See Apple's `NSImageName` documentation for a list of possible values.\n\nThe `hslShift` is applied to the image with the following rules:\n\n* `hsl_shift[0]` (hue): The absolute hue value for the image - 0 and 1 map to 0 and 360 on the hue color wheel (red).\n* `hsl_shift[1]` (saturation): A saturation shift for the image, with the following key values: 0 = remove all color. 0.5 = leave unchanged. 1 = fully saturate the image.\n* `hsl_shift[2]` (lightness): A lightness shift for the image, with the following key values: 0 = remove all lightness (make all pixels black). 0.5 = leave unchanged. 1 = full lightness (make all pixels white).\n\nThis means that `[-1, 0, 1]` will make the image completely white and `[-1, 1, 0]` will make the image completely black.\n\nIn some cases, the `NSImageName` doesn't match its string representation; one example of this is `NSFolderImageName`, whose string representation would actually be `NSFolder`. Therefore, you'll need to determine the correct string representation for your image before passing it in. This can be done with the following:\n\nwhere `SYSTEM_IMAGE_NAME` should be replaced with any value from this list.", + "parameters": [ + { + "name": "imageName", + "description": "", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "hslShift", + "description": "", + "required": false, + "collection": true, + "type": "number" + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#nativeimagecreatefromnamedimageimagename-hslshift-macos" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "NativeImage", + "description": "", + "slug": "native-image", + "websiteUrl": "https://electronjs.org/docs/api/native-image", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/native-image.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": true, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "toPNG", + "signature": "([options])", + "description": "A Buffer that contains the image's `PNG` encoded data.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Number" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [], + "urlFragment": "#imagetopngoptions" + }, + { + "name": "toJPEG", + "signature": "(quality)", + "description": "A Buffer that contains the image's `JPEG` encoded data.", + "parameters": [ + { + "name": "quality", + "description": "Between 0 - 100.", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [], + "urlFragment": "#imagetojpegquality" + }, + { + "name": "toBitmap", + "signature": "([options])", + "description": "A Buffer that contains a copy of the image's raw bitmap pixel data.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Number" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [], + "urlFragment": "#imagetobitmapoptions" + }, + { + "name": "toDataURL", + "signature": "([options])", + "description": "The Data URL of the image.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Number" + } + ] + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#imagetodataurloptions" + }, + { + "name": "getBitmap", + "signature": "([options])", + "description": "A Buffer that contains the image's raw bitmap pixel data.\n\nThe difference between `getBitmap()` and `toBitmap()` is that `getBitmap()` does not copy the bitmap data, so you have to use the returned Buffer immediately in current event loop tick; otherwise the data might be changed or destroyed.", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Number" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [], + "urlFragment": "#imagegetbitmapoptions" + }, + { + "name": "getNativeHandle", + "signature": "()", + "description": "A Buffer that stores C pointer to underlying native handle of the image. On macOS, a pointer to `NSImage` instance is returned.\n\nNotice that the returned pointer is a weak pointer to the underlying native image instead of a copy, so you _must_ ensure that the associated `nativeImage` instance is kept around.", + "parameters": [], + "returns": { + "collection": false, + "type": "Buffer" + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#imagegetnativehandle-macos" + }, + { + "name": "isEmpty", + "signature": "()", + "description": "Whether the image is empty.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#imageisempty" + }, + { + "name": "getSize", + "signature": "([scaleFactor])", + "description": "If `scaleFactor` is passed, this will return the size corresponding to the image representation most closely matching the passed value.", + "parameters": [ + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "collection": false, + "type": "Number" + } + ], + "returns": { + "collection": false, + "type": "Size" + }, + "additionalTags": [], + "urlFragment": "#imagegetsizescalefactor" + }, + { + "name": "setTemplateImage", + "signature": "(option)", + "description": "Marks the image as a macOS template image.", + "parameters": [ + { + "name": "option", + "description": "", + "required": true, + "collection": false, + "type": "boolean" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#imagesettemplateimageoption" + }, + { + "name": "isTemplateImage", + "signature": "()", + "description": "Whether the image is a macOS template image.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#imageistemplateimage" + }, + { + "name": "crop", + "signature": "(rect)", + "description": "The cropped image.", + "parameters": [ + { + "name": "rect", + "description": "The area of the image to crop.", + "required": true, + "collection": false, + "type": "Rectangle" + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#imagecroprect" + }, + { + "name": "resize", + "signature": "(options)", + "description": "The resized image.\n\nIf only the `height` or the `width` are specified then the current aspect ratio will be preserved in the resized image.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "width", + "description": "Defaults to the image's width.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "Defaults to the image's height.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "quality", + "description": "The desired quality of the resize image. Possible values include `good`, `better`, or `best`. The default is `best`. These values express a desired quality/speed tradeoff. They are translated into an algorithm-specific method that depends on the capabilities (CPU, GPU) of the underlying platform. It is possible for all three methods to be mapped to the same algorithm on a given platform.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "good", + "description": "" + }, + { + "value": "better", + "description": "" + }, + { + "value": "best", + "description": "" + } + ] + } + ] + } + ], + "returns": { + "collection": false, + "type": "NativeImage" + }, + "additionalTags": [], + "urlFragment": "#imageresizeoptions" + }, + { + "name": "getAspectRatio", + "signature": "([scaleFactor])", + "description": "The image's aspect ratio (width divided by height).\n\nIf `scaleFactor` is passed, this will return the aspect ratio corresponding to the image representation most closely matching the passed value.", + "parameters": [ + { + "name": "scaleFactor", + "description": "Defaults to 1.0.", + "required": false, + "collection": false, + "type": "Number" + } + ], + "returns": { + "collection": false, + "type": "Number" + }, + "additionalTags": [], + "urlFragment": "#imagegetaspectratioscalefactor" + }, + { + "name": "getScaleFactors", + "signature": "()", + "description": "An array of all scale factors corresponding to representations for a given `NativeImage`.", + "parameters": [], + "returns": { + "collection": true, + "type": "Number" + }, + "additionalTags": [], + "urlFragment": "#imagegetscalefactors" + }, + { + "name": "addRepresentation", + "signature": "(options)", + "description": "Add an image representation for a specific scale factor. This can be used to programmatically add different scale factor representations to an image. This can be called on empty images.", + "parameters": [ + { + "name": "options", + "description": "", + "required": true, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "scaleFactor", + "description": "The scale factor to add the image representation for.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Number" + }, + { + "name": "width", + "description": "Defaults to 0. Required if a bitmap buffer is specified as `buffer`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "height", + "description": "Defaults to 0. Required if a bitmap buffer is specified as `buffer`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "buffer", + "description": "The buffer containing the raw image data.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "Buffer" + }, + { + "name": "dataURL", + "description": "The data URL containing either a base 64 encoded PNG or JPEG image.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#imageaddrepresentationoptions" + } + ], + "instanceProperties": [ + { + "name": "isMacTemplateImage", + "description": "A `boolean` property that determines whether the image is considered a template image.\n\nPlease note that this property only has an effect on macOS.", + "required": true, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#nativeimageismactemplateimage-macos", + "collection": false, + "type": "boolean" + } + ], + "instanceEvents": [], + "instanceName": "image" + }, + { + "name": "nativeTheme", + "description": "> Read and respond to changes in Chromium's native color theme.\n\nProcess: Main", + "slug": "native-theme", + "websiteUrl": "https://electronjs.org/docs/api/native-theme", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/native-theme.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [], + "properties": [ + { + "name": "shouldUseDarkColors", + "description": "A `boolean` for if the OS / Chromium currently has a dark mode enabled or is being instructed to show a dark-style UI. If you want to modify this value you should use `themeSource` below.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#nativethemeshouldusedarkcolors-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "themeSource", + "description": "A `string` property that can be `system`, `light` or `dark`. It is used to override and supersede the value that Chromium has chosen to use internally.\n\nSetting this property to `system` will remove the override and everything will be reset to the OS default. By default `themeSource` is `system`.\n\nSettings this property to `dark` will have the following effects:\n\n* `nativeTheme.shouldUseDarkColors` will be `true` when accessed\n* Any UI Electron renders on Linux and Windows including context menus, devtools, etc. will use the dark UI.\n* Any UI the OS renders on macOS including menus, window frames, etc. will use the dark UI.\n* The `prefers-color-scheme` CSS query will match `dark` mode.\n* The `updated` event will be emitted\n\nSettings this property to `light` will have the following effects:\n\n* `nativeTheme.shouldUseDarkColors` will be `false` when accessed\n* Any UI Electron renders on Linux and Windows including context menus, devtools, etc. will use the light UI.\n* Any UI the OS renders on macOS including menus, window frames, etc. will use the light UI.\n* The `prefers-color-scheme` CSS query will match `light` mode.\n* The `updated` event will be emitted\n\nThe usage of this property should align with a classic \"dark mode\" state machine in your application where the user has three options.\n\n* `Follow OS` --> `themeSource = 'system'`\n* `Dark Mode` --> `themeSource = 'dark'`\n* `Light Mode` --> `themeSource = 'light'`\n\nYour application should then always use `shouldUseDarkColors` to determine what CSS to apply.", + "required": true, + "additionalTags": [], + "urlFragment": "#nativethemethemesource", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "system", + "description": "" + }, + { + "value": "light", + "description": "" + }, + { + "value": "dark", + "description": "" + } + ] + }, + { + "name": "shouldUseHighContrastColors", + "description": "A `boolean` for if the OS / Chromium currently has high-contrast mode enabled or is being instructed to show a high-contrast UI.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows", + "availability_readonly" + ], + "urlFragment": "#nativethemeshouldusehighcontrastcolors-macos-windows-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "shouldUseInvertedColorScheme", + "description": "A `boolean` for if the OS / Chromium currently has an inverted color scheme or is being instructed to use an inverted color scheme.", + "required": true, + "additionalTags": [ + "os_macos", + "os_windows", + "availability_readonly" + ], + "urlFragment": "#nativethemeshoulduseinvertedcolorscheme-macos-windows-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "inForcedColorsMode", + "description": "A `boolean` indicating whether Chromium is in forced colors mode, controlled by system accessibility settings. Currently, Windows high contrast is the only system setting that triggers forced colors mode.", + "required": true, + "additionalTags": [ + "os_windows", + "availability_readonly" + ], + "urlFragment": "#nativethemeinforcedcolorsmode-windows-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "prefersReducedTransparency", + "description": "A `boolean` that indicates the whether the user has chosen via system accessibility settings to reduce transparency at the OS level.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#nativethemeprefersreducedtransparency-readonly", + "collection": false, + "type": "boolean" + } + ], + "events": [ + { + "name": "updated", + "description": "Emitted when something in the underlying NativeTheme has changed. This normally means that either the value of `shouldUseDarkColors`, `shouldUseHighContrastColors` or `shouldUseInvertedColorScheme` has changed. You will have to check them to determine which one has changed.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-updated" + } + ], + "exportedClasses": [] + }, + { + "name": "NavigationHistory", + "description": "", + "slug": "navigation-history", + "websiteUrl": "https://electronjs.org/docs/api/navigation-history", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/navigation-history.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": false + }, + "constructorMethod": null, + "staticMethods": [], + "staticProperties": [], + "instanceMethods": [ + { + "name": "canGoBack", + "signature": "()", + "description": "Whether the browser can go back to previous web page.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#navigationhistorycangoback" + }, + { + "name": "canGoForward", + "signature": "()", + "description": "Whether the browser can go forward to next web page.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#navigationhistorycangoforward" + }, + { + "name": "canGoToOffset", + "signature": "(offset)", + "description": "Whether the web page can go to the specified `offset` from the current entry.", + "parameters": [ + { + "name": "offset", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#navigationhistorycangotooffsetoffset" + }, + { + "name": "clear", + "signature": "()", + "description": "Clears the navigation history.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#navigationhistoryclear" + }, + { + "name": "getActiveIndex", + "signature": "()", + "description": "The index of the current page, from which we would go back/forward or reload.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#navigationhistorygetactiveindex" + }, + { + "name": "getEntryAtIndex", + "signature": "(index)", + "description": "Navigation entry at the given index.\n\nIf index is out of bounds (greater than history length or less than 0), null will be returned.", + "parameters": [ + { + "name": "index", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "NavigationEntry" + }, + "additionalTags": [], + "urlFragment": "#navigationhistorygetentryatindexindex" + }, + { + "name": "goBack", + "signature": "()", + "description": "Makes the browser go back a web page.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#navigationhistorygoback" + }, + { + "name": "goForward", + "signature": "()", + "description": "Makes the browser go forward a web page.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#navigationhistorygoforward" + }, + { + "name": "goToIndex", + "signature": "(index)", + "description": "Navigates browser to the specified absolute web page index.", + "parameters": [ + { + "name": "index", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#navigationhistorygotoindexindex" + }, + { + "name": "goToOffset", + "signature": "(offset)", + "description": "Navigates to the specified offset from the current entry.", + "parameters": [ + { + "name": "offset", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#navigationhistorygotooffsetoffset" + }, + { + "name": "length", + "signature": "()", + "description": "History length.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#navigationhistorylength" + }, + { + "name": "removeEntryAtIndex", + "signature": "(index)", + "description": "Removes the navigation entry at the given index. Can't remove entry at the \"current active index\".\n\nWhether the navigation entry was removed from the webContents history.", + "parameters": [ + { + "name": "index", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#navigationhistoryremoveentryatindexindex" + }, + { + "name": "getAllEntries", + "signature": "()", + "description": "WebContents complete history.", + "parameters": [], + "returns": { + "collection": true, + "type": "NavigationEntry" + }, + "additionalTags": [], + "urlFragment": "#navigationhistorygetallentries" + } + ], + "instanceProperties": [], + "instanceEvents": [], + "instanceName": "navigationHistory" + }, + { + "name": "netLog", + "description": "> Logging network events for a session.\n\nProcess: Main\n\n```\nconst { app, netLog } = require('electron')\n\napp.whenReady().then(async () => {\n await netLog.startLogging('/path/to/net-log')\n // After some network events\n const path = await netLog.stopLogging()\n console.log('Net-logs written to', path)\n})\n```\n\nSee `--log-net-log` to log network events throughout the app's lifecycle.\n\n**Note:** All methods unless specified can only be used after the `ready` event of the `app` module gets emitted.", + "slug": "net-log", + "websiteUrl": "https://electronjs.org/docs/api/net-log", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/net-log.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "startLogging", + "signature": "(path[, options])", + "description": "resolves when the net log has begun recording.\n\nStarts recording network events to `path`.", + "parameters": [ + { + "name": "path", + "description": "File path to record network logs.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "captureMode", + "description": "What kinds of data should be captured. By default, only metadata about requests will be captured. Setting this to `includeSensitive` will include cookies and authentication data. Setting it to `everything` will include all bytes transferred on sockets. Can be `default`, `includeSensitive` or `everything`.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "default", + "description": "" + }, + { + "value": "includeSensitive", + "description": "" + }, + { + "value": "everything", + "description": "" + } + ] + }, + { + "name": "maxFileSize", + "description": "When the log grows beyond this size, logging will automatically stop. Defaults to unlimited.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "number" + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#netlogstartloggingpath-options" + }, + { + "name": "stopLogging", + "signature": "()", + "description": "resolves when the net log has been flushed to disk.\n\nStops recording network events. If not called, net logging will automatically end when app quits.", + "parameters": [], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "void" + } + ] + }, + "additionalTags": [], + "urlFragment": "#netlogstoplogging" + } + ], + "properties": [ + { + "name": "currentlyLogging", + "description": "A `boolean` property that indicates whether network logs are currently being recorded.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#netlogcurrentlylogging-readonly", + "collection": false, + "type": "boolean" + } + ], + "events": [], + "exportedClasses": [] + }, + { + "name": "net", + "description": "> Issue HTTP/HTTPS requests using Chromium's native networking library\n\nProcess: Main, Utility\n\nThe `net` module is a client-side API for issuing HTTP(S) requests. It is similar to the HTTP and HTTPS modules of Node.js but uses Chromium's native networking library instead of the Node.js implementation, offering better support for web proxies. It also supports checking network status.\n\nThe following is a non-exhaustive list of why you may consider using the `net` module instead of the native Node.js modules:\n\n* Automatic management of system proxy configuration, support of the wpad protocol and proxy pac configuration files.\n* Automatic tunneling of HTTPS requests.\n* Support for authenticating proxies using basic, digest, NTLM, Kerberos or negotiate authentication schemes.\n* Support for traffic monitoring proxies: Fiddler-like proxies used for access control and monitoring.\n\nThe API components (including classes, methods, properties and event names) are similar to those used in Node.js.\n\nExample usage:\n\n```\nconst { app } = require('electron')\napp.whenReady().then(() => {\n const { net } = require('electron')\n const request = net.request('https://github.com')\n request.on('response', (response) => {\n console.log(`STATUS: ${response.statusCode}`)\n console.log(`HEADERS: ${JSON.stringify(response.headers)}`)\n response.on('data', (chunk) => {\n console.log(`BODY: ${chunk}`)\n })\n response.on('end', () => {\n console.log('No more data in response.')\n })\n })\n request.end()\n})\n```\n\nThe `net` API can be used only after the application emits the `ready` event. Trying to use the module before the `ready` event will throw an error.", + "slug": "net", + "websiteUrl": "https://electronjs.org/docs/api/net", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/net.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": true, + "exported": true + }, + "methods": [ + { + "name": "request", + "signature": "(options)", + "description": "Creates a `ClientRequest` instance using the provided `options` which are directly forwarded to the `ClientRequest` constructor. The `net.request` method would be used to issue both secure and insecure HTTP requests according to the specified protocol scheme in the `options` object.", + "parameters": [ + { + "name": "options", + "description": "The `ClientRequest` constructor options.", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "ClientRequestConstructorOptions" + }, + { + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ], + "returns": { + "collection": false, + "type": "ClientRequest" + }, + "additionalTags": [], + "urlFragment": "#netrequestoptions" + }, + { + "name": "fetch", + "signature": "(input[, init])", + "description": "see Response.\n\nSends a request, similarly to how `fetch()` works in the renderer, using Chrome's network stack. This differs from Node's `fetch()`, which uses Node.js's HTTP stack.\n\nExample:\n\nThis method will issue requests from the default session. To send a `fetch` request from another session, use ses.fetch().\n\nSee the MDN documentation for `fetch()` for more details.\n\nLimitations:\n\n* `net.fetch()` does not support the `data:` or `blob:` schemes.\n* The value of the `integrity` option is ignored.\n* The `.type` and `.url` values of the returned `Response` object are incorrect.\n\nBy default, requests made with `net.fetch` can be made to custom protocols as well as `file:`, and will trigger webRequest handlers if present. When the non-standard `bypassCustomProtocolHandlers` option is set in RequestInit, custom protocol handlers will not be called for this request. This allows forwarding an intercepted request to the built-in handler. webRequest handlers will still be triggered when bypassing custom protocols.\n\nNote: in the utility process custom protocols are not supported.", + "parameters": [ + { + "name": "input", + "description": "", + "required": true, + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "GlobalRequest" + } + ] + }, + { + "name": "init", + "description": "", + "required": false, + "collection": false, + "type": "RequestInit & { bypassCustomProtocolHandlers?: boolean }" + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "GlobalResponse" + } + ] + }, + "additionalTags": [], + "urlFragment": "#netfetchinput-init" + }, + { + "name": "isOnline", + "signature": "()", + "description": "Whether there is currently internet connection.\n\nA return value of `false` is a pretty strong indicator that the user won't be able to connect to remote sites. However, a return value of `true` is inconclusive; even if some link is up, it is uncertain whether a particular connection attempt to a particular remote site will be successful.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#netisonline" + }, + { + "name": "resolveHost", + "signature": "(host, [options])", + "description": "Resolves with the resolved IP addresses for the `host`.\n\nThis method will resolve hosts from the default session. To resolve a host from another session, use ses.resolveHost().", + "parameters": [ + { + "name": "host", + "description": "Hostname to resolve.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "queryType", + "description": "Requested DNS query type. If unspecified, resolver will pick A or AAAA (or both) based on IPv4/IPv6 settings:", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "A", + "description": "Fetch only A records" + }, + { + "value": "AAAA", + "description": "Fetch only AAAA records." + } + ] + }, + { + "name": "source", + "description": "The source to use for resolved addresses. Default allows the resolver to pick an appropriate source. Only affects use of big external sources (e.g. calling the system for resolution or using DNS). Even if a source is specified, results can still come from cache, resolving \"localhost\" or IP literals, etc. One of the following values:", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "any", + "description": "Resolver will pick an appropriate source. Results could come from DNS, MulticastDNS, HOSTS file, etc" + }, + { + "value": "system", + "description": "Results will only be retrieved from the system or OS, e.g. via the `getaddrinfo()` system call" + }, + { + "value": "dns", + "description": "Results will only come from DNS queries" + }, + { + "value": "mdns", + "description": "Results will only come from Multicast DNS queries" + }, + { + "value": "localOnly", + "description": "No external sources will be used. Results will only come from fast local sources that are available no matter the source setting, e.g. cache, hosts file, IP literal resolution, etc." + } + ] + }, + { + "name": "cacheUsage", + "description": "Indicates what DNS cache entries, if any, can be used to provide a response. One of the following values:", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "allowed", + "description": "Results may come from the host cache if non-stale" + }, + { + "value": "staleAllowed", + "description": "Results may come from the host cache even if stale (by expiration or network changes)" + }, + { + "value": "disallowed", + "description": "Results will not come from the host cache." + } + ] + }, + { + "name": "secureDnsPolicy", + "description": "Controls the resolver's Secure DNS behavior for this request. One of the following values:", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "allow", + "description": "" + }, + { + "value": "disable", + "description": "" + } + ] + } + ] + } + ], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "ResolvedHost" + } + ] + }, + "additionalTags": [], + "urlFragment": "#netresolvehosthost-options" + } + ], + "properties": [ + { + "name": "online", + "description": "A `boolean` property. Whether there is currently internet connection.\n\nA return value of `false` is a pretty strong indicator that the user won't be able to connect to remote sites. However, a return value of `true` is inconclusive; even if some link is up, it is uncertain whether a particular connection attempt to a particular remote site will be successful.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#netonline-readonly", + "collection": false, + "type": "boolean" + } + ], + "events": [], + "exportedClasses": [] + }, + { + "name": "Notification", + "description": "> Create OS desktop notifications\n\nProcess: Main\n\n:::info Renderer process notifications\n\nIf you want to show notifications from a renderer process you should use the web Notifications API\n\n:::\n\n### Class: Notification\n\n> Create OS desktop notifications\n\nProcess: Main\n\n`Notification` is an EventEmitter.\n\nIt creates a new `Notification` with native properties as set by the `options`.\n\n### Static Methods\n\nThe `Notification` class has the following static methods:\n\n### `Notification.isSupported()`\n\nReturns `boolean` - Whether or not desktop notifications are supported on the current system", + "slug": "notification", + "websiteUrl": "https://electronjs.org/docs/api/notification", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/notification.md", + "version": "34.0.0-nightly.20240920", + "type": "Class", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "constructorMethod": { + "signature": "([options])", + "parameters": [ + { + "name": "options", + "description": "", + "required": false, + "collection": false, + "type": "Object", + "properties": [ + { + "name": "title", + "description": "A title for the notification, which will be displayed at the top of the notification window when it is shown.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "subtitle", + "description": "A subtitle for the notification, which will be displayed below the title.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "body", + "description": "The body text of the notification, which will be displayed below the title or subtitle.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "silent", + "description": "Whether or not to suppress the OS notification noise when showing the notification.", + "required": false, + "additionalTags": [], + "collection": false, + "type": "boolean" + }, + { + "name": "icon", + "description": "An icon to use in the notification. If a string is passed, it must be a valid path to a local icon file.", + "required": false, + "additionalTags": [], + "collection": false, + "type": [ + { + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "collection": false, + "type": "NativeImage" + } + ] + }, + { + "name": "hasReply", + "description": "Whether or not to add an inline reply option to the notification.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "boolean" + }, + { + "name": "timeoutType", + "description": "The timeout duration of the notification. Can be 'default' or 'never'.", + "required": false, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "default", + "description": "" + }, + { + "value": "never", + "description": "" + } + ] + }, + { + "name": "replyPlaceholder", + "description": "The placeholder to write in the inline reply input field.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "sound", + "description": "The name of the sound file to play when the notification is shown.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "urgency", + "description": "The urgency level of the notification. Can be 'normal', 'critical', or 'low'.", + "required": false, + "additionalTags": [ + "os_linux" + ], + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "normal", + "description": "" + }, + { + "value": "critical", + "description": "" + }, + { + "value": "low", + "description": "" + } + ] + }, + { + "name": "actions", + "description": "Actions to add to the notification. Please read the available actions and limitations in the `NotificationAction` documentation.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": true, + "type": "NotificationAction" + }, + { + "name": "closeButtonText", + "description": "A custom title for the close button of an alert. An empty string will cause the default localized text to be used.", + "required": false, + "additionalTags": [ + "os_macos" + ], + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "toastXml", + "description": "A custom description of the Notification on Windows superseding all properties above. Provides full customization of design and behavior of the notification.", + "required": false, + "additionalTags": [ + "os_windows" + ], + "collection": false, + "type": "String", + "possibleValues": null + } + ] + } + ] + }, + "staticMethods": [ + { + "name": "isSupported", + "signature": "()", + "description": "Whether or not desktop notifications are supported on the current system", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#notificationissupported" + } + ], + "staticProperties": [], + "instanceMethods": [ + { + "name": "show", + "signature": "()", + "description": "Immediately shows the notification to the user. Unlike the web notification API, instantiating a `new Notification()` does not immediately show it to the user. Instead, you need to call this method before the OS will display it.\n\nIf the notification has been shown before, this method will dismiss the previously shown notification and create a new one with identical properties.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#notificationshow" + }, + { + "name": "close", + "signature": "()", + "description": "Dismisses the notification.\n\nOn Windows, calling `notification.close()` while the notification is visible on screen will dismiss the notification and remove it from the Action Center. If `notification.close()` is called after the notification is no longer visible on screen, calling `notification.close()` will try remove it from the Action Center.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#notificationclose" + } + ], + "instanceProperties": [ + { + "name": "title", + "description": "A `string` property representing the title of the notification.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationtitle", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "subtitle", + "description": "A `string` property representing the subtitle of the notification.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationsubtitle", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "body", + "description": "A `string` property representing the body of the notification.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationbody", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "replyPlaceholder", + "description": "A `string` property representing the reply placeholder of the notification.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationreplyplaceholder", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "sound", + "description": "A `string` property representing the sound of the notification.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationsound", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "closeButtonText", + "description": "A `string` property representing the close button text of the notification.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationclosebuttontext", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "silent", + "description": "A `boolean` property representing whether the notification is silent.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationsilent", + "collection": false, + "type": "boolean" + }, + { + "name": "hasReply", + "description": "A `boolean` property representing whether the notification has a reply action.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationhasreply", + "collection": false, + "type": "boolean" + }, + { + "name": "urgency", + "description": "A `string` property representing the urgency level of the notification. Can be 'normal', 'critical', or 'low'.\n\nDefault is 'low' - see NotifyUrgency for more information.", + "required": true, + "additionalTags": [ + "os_linux" + ], + "urlFragment": "#notificationurgency-linux", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "normal", + "description": "" + }, + { + "value": "critical", + "description": "" + }, + { + "value": "low", + "description": "" + } + ] + }, + { + "name": "timeoutType", + "description": "A `string` property representing the type of timeout duration for the notification. Can be 'default' or 'never'.\n\nIf `timeoutType` is set to 'never', the notification never expires. It stays open until closed by the calling API or the user.", + "required": true, + "additionalTags": [ + "os_linux", + "os_windows" + ], + "urlFragment": "#notificationtimeouttype-linux-windows", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "default", + "description": "" + }, + { + "value": "never", + "description": "" + } + ] + }, + { + "name": "actions", + "description": "A `NotificationAction[]` property representing the actions of the notification.", + "required": true, + "additionalTags": [], + "urlFragment": "#notificationactions", + "collection": true, + "type": "NotificationAction" + }, + { + "name": "toastXml", + "description": "A `string` property representing the custom Toast XML of the notification.", + "required": true, + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#notificationtoastxml-windows", + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "instanceEvents": [ + { + "name": "show", + "description": "Emitted when the notification is shown to the user. Note that this event can be fired multiple times as a notification can be shown multiple times through the `show()` method.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-show" + }, + { + "name": "click", + "description": "Emitted when the notification is clicked by the user.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-click" + }, + { + "name": "close", + "description": "Emitted when the notification is closed by manual intervention from the user.\n\nThis event is not guaranteed to be emitted in all cases where the notification is closed.\n\nOn Windows, the `close` event can be emitted in one of three ways: programmatic dismissal with `notification.close()`, by the user closing the notification, or via system timeout. If a notification is in the Action Center after the initial `close` event is emitted, a call to `notification.close()` will remove the notification from the action center but the `close` event will not be emitted again.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-close" + }, + { + "name": "reply", + "description": "Emitted when the user clicks the \"Reply\" button on a notification with `hasReply: true`.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "reply", + "description": "The string the user entered into the inline reply field.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-reply-macos" + }, + { + "name": "action", + "description": "", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "index", + "description": "The index of the action that was activated.", + "collection": false, + "type": "number", + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-action-macos" + }, + { + "name": "failed", + "description": "Emitted when an error is encountered while creating and showing the native notification.", + "parameters": [ + { + "name": "event", + "description": "", + "collection": false, + "type": "Event", + "additionalTags": [], + "required": true + }, + { + "name": "error", + "description": "The error encountered during execution of the `show()` method.", + "collection": false, + "type": "String", + "possibleValues": null, + "additionalTags": [], + "required": true + } + ], + "additionalTags": [ + "os_windows" + ], + "urlFragment": "#event-failed-windows" + } + ], + "instanceName": "Notification" + }, + { + "name": "parentPort", + "description": "> Interface for communication with parent process.\n\nProcess: Utility\n\n`parentPort` is an EventEmitter. _This object is not exported from the `'electron'` module. It is only available as a property of the process object in the Electron API._", + "slug": "parent-port", + "websiteUrl": "https://electronjs.org/docs/api/parent-port", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/parent-port.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": false, + "renderer": false, + "utility": true, + "exported": true + }, + "methods": [ + { + "name": "postMessage", + "signature": "(message)", + "description": "Sends a message from the process to its parent.", + "parameters": [ + { + "name": "message", + "description": "", + "required": true, + "collection": false, + "type": "any" + } + ], + "returns": null, + "additionalTags": [], + "urlFragment": "#parentportpostmessagemessage" + } + ], + "properties": [], + "events": [ + { + "name": "message", + "description": "Emitted when the process receives a message. Messages received on this port will be queued up until a handler is registered for this event.", + "parameters": [ + { + "name": "messageEvent", + "description": "", + "collection": false, + "type": "Object", + "properties": [ + { + "name": "data", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "any" + }, + { + "name": "ports", + "description": "", + "required": true, + "additionalTags": [], + "collection": true, + "type": "MessagePortMain" + } + ], + "additionalTags": [], + "required": true + } + ], + "additionalTags": [], + "urlFragment": "#event-message" + } + ], + "exportedClasses": [] + }, + { + "name": "powerMonitor", + "description": "> Monitor power state changes.\n\nProcess: Main", + "slug": "power-monitor", + "websiteUrl": "https://electronjs.org/docs/api/power-monitor", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/power-monitor.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "getSystemIdleState", + "signature": "(idleThreshold)", + "description": "The system's current idle state. Can be `active`, `idle`, `locked` or `unknown`.\n\nCalculate the system idle state. `idleThreshold` is the amount of time (in seconds) before considered idle. `locked` is available on supported systems only.", + "parameters": [ + { + "name": "idleThreshold", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "active", + "description": "" + }, + { + "value": "idle", + "description": "" + }, + { + "value": "locked", + "description": "" + }, + { + "value": "unknown", + "description": "" + } + ] + }, + "additionalTags": [], + "urlFragment": "#powermonitorgetsystemidlestateidlethreshold" + }, + { + "name": "getSystemIdleTime", + "signature": "()", + "description": "Idle time in seconds\n\nCalculate system idle time in seconds.", + "parameters": [], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#powermonitorgetsystemidletime" + }, + { + "name": "getCurrentThermalState", + "signature": "()", + "description": "The system's current thermal state. Can be `unknown`, `nominal`, `fair`, `serious`, or `critical`.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "unknown", + "description": "" + }, + { + "value": "nominal", + "description": "" + }, + { + "value": "fair", + "description": "" + }, + { + "value": "serious", + "description": "" + }, + { + "value": "critical", + "description": "" + } + ] + }, + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#powermonitorgetcurrentthermalstate-macos" + }, + { + "name": "isOnBatteryPower", + "signature": "()", + "description": "Whether the system is on battery power.\n\nTo monitor for changes in this property, use the `on-battery` and `on-ac` events.", + "parameters": [], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#powermonitorisonbatterypower" + } + ], + "properties": [ + { + "name": "onBatteryPower", + "description": "A `boolean` property. True if the system is on battery power.\n\nSee `powerMonitor.isOnBatteryPower()`.", + "required": true, + "additionalTags": [], + "urlFragment": "#powermonitoronbatterypower", + "collection": false, + "type": "boolean" + } + ], + "events": [ + { + "name": "suspend", + "description": "Emitted when the system is suspending.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-suspend" + }, + { + "name": "resume", + "description": "Emitted when system is resuming.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-resume" + }, + { + "name": "on-ac", + "description": "Emitted when the system changes to AC power.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-on-ac-macos-windows" + }, + { + "name": "on-battery", + "description": "Emitted when system changes to battery power.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-on-battery-macos--windows" + }, + { + "name": "thermal-state-change", + "description": "Emitted when the thermal state of the system changes. Notification of a change in the thermal status of the system, such as entering a critical temperature range. Depending on the severity, the system might take steps to reduce said temperature, for example, throttling the CPU or switching on the fans if available.\n\nApps may react to the new state by reducing expensive computing tasks (e.g. video encoding), or notifying the user. The same state might be received repeatedly.\n\nSee https://developer.apple.com/library/archive/documentation/Performance/Conceptual/power_efficiency_guidelines_osx/RespondToThermalStateChanges.html", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-thermal-state-change-macos" + }, + { + "name": "speed-limit-change", + "description": "Notification of a change in the operating system's advertised speed limit for CPUs, in percent. Values below 100 indicate that the system is impairing processing power due to thermal management.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-speed-limit-change-macos-windows" + }, + { + "name": "shutdown", + "description": "Emitted when the system is about to reboot or shut down. If the event handler invokes `e.preventDefault()`, Electron will attempt to delay system shutdown in order for the app to exit cleanly. If `e.preventDefault()` is called, the app should exit as soon as possible by calling something like `app.quit()`.", + "parameters": [], + "additionalTags": [ + "os_linux", + "os_macos" + ], + "urlFragment": "#event-shutdown-linux-macos" + }, + { + "name": "lock-screen", + "description": "Emitted when the system is about to lock the screen.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-lock-screen-macos-windows" + }, + { + "name": "unlock-screen", + "description": "Emitted as soon as the systems screen is unlocked.", + "parameters": [], + "additionalTags": [ + "os_macos", + "os_windows" + ], + "urlFragment": "#event-unlock-screen-macos-windows" + }, + { + "name": "user-did-become-active", + "description": "Emitted when a login session is activated. See documentation for more information.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-user-did-become-active-macos" + }, + { + "name": "user-did-resign-active", + "description": "Emitted when a login session is deactivated. See documentation for more information.", + "parameters": [], + "additionalTags": [ + "os_macos" + ], + "urlFragment": "#event-user-did-resign-active-macos" + } + ], + "exportedClasses": [] + }, + { + "name": "powerSaveBlocker", + "description": "> Block the system from entering low-power (sleep) mode.\n\nProcess: Main\n\nFor example:", + "slug": "power-save-blocker", + "websiteUrl": "https://electronjs.org/docs/api/power-save-blocker", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/power-save-blocker.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "start", + "signature": "(type)", + "description": "The blocker ID that is assigned to this power blocker.\n\nStarts preventing the system from entering lower-power mode. Returns an integer identifying the power save blocker.\n\n**Note:** `prevent-display-sleep` has higher precedence over `prevent-app-suspension`. Only the highest precedence type takes effect. In other words, `prevent-display-sleep` always takes precedence over `prevent-app-suspension`.\n\nFor example, an API calling A requests for `prevent-app-suspension`, and another calling B requests for `prevent-display-sleep`. `prevent-display-sleep` will be used until B stops its request. After that, `prevent-app-suspension` is used.", + "parameters": [ + { + "name": "type", + "description": "Power save blocker type.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "prevent-app-suspension", + "description": "Prevent the application from being suspended. Keeps system active but allows screen to be turned off. Example use cases: downloading a file or playing audio." + }, + { + "value": "prevent-display-sleep", + "description": "Prevent the display from going to sleep. Keeps system and screen active. Example use case: playing video." + } + ] + } + ], + "returns": { + "collection": false, + "type": "Integer" + }, + "additionalTags": [], + "urlFragment": "#powersaveblockerstarttype" + }, + { + "name": "stop", + "signature": "(id)", + "description": "Stops the specified power save blocker.\n\nWhether the specified `powerSaveBlocker` has been stopped.", + "parameters": [ + { + "name": "id", + "description": "The power save blocker id returned by `powerSaveBlocker.start`.", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#powersaveblockerstopid" + }, + { + "name": "isStarted", + "signature": "(id)", + "description": "Whether the corresponding `powerSaveBlocker` has started.", + "parameters": [ + { + "name": "id", + "description": "The power save blocker id returned by `powerSaveBlocker.start`.", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#powersaveblockerisstartedid" + } + ], + "properties": [], + "events": [], + "exportedClasses": [] + }, + { + "name": "process", + "description": "> Extensions to process object.\n\nProcess: Main, Renderer\n\nElectron's `process` object is extended from the Node.js `process` object. It adds the following events, properties, and methods:\n\n### Sandbox\n\nIn sandboxed renderers the `process` object contains only a subset of the APIs:\n\n* `crash()`\n* `hang()`\n* `getCreationTime()`\n* `getHeapStatistics()`\n* `getBlinkMemoryInfo()`\n* `getProcessMemoryInfo()`\n* `getSystemMemoryInfo()`\n* `getSystemVersion()`\n* `getCPUUsage()`\n* `uptime()`\n* `argv`\n* `execPath`\n* `env`\n* `pid`\n* `arch`\n* `platform`\n* `sandboxed`\n* `contextIsolated`\n* `type`\n* `version`\n* `versions`\n* `mas`\n* `windowsStore`\n* `contextId`", + "slug": "process", + "websiteUrl": "https://electronjs.org/docs/api/process", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/process.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": true, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "crash", + "signature": "()", + "description": "Causes the main thread of the current process crash.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#processcrash" + }, + { + "name": "getCreationTime", + "signature": "()", + "description": "The number of milliseconds since epoch, or `null` if the information is unavailable\n\nIndicates the creation time of the application. The time is represented as number of milliseconds since epoch. It returns null if it is unable to get the process creation time.", + "parameters": [], + "returns": { + "collection": false, + "type": [ + { + "collection": false, + "type": "number" + }, + { + "type": "null", + "collection": false + } + ] + }, + "additionalTags": [], + "urlFragment": "#processgetcreationtime" + }, + { + "name": "getCPUUsage", + "signature": "()", + "description": "", + "parameters": [], + "returns": { + "collection": false, + "type": "CPUUsage" + }, + "additionalTags": [], + "urlFragment": "#processgetcpuusage" + }, + { + "name": "getHeapStatistics", + "signature": "()", + "description": "* `totalHeapSize` Integer\n* `totalHeapSizeExecutable` Integer\n* `totalPhysicalSize` Integer\n* `totalAvailableSize` Integer\n* `usedHeapSize` Integer\n* `heapSizeLimit` Integer\n* `mallocedMemory` Integer\n* `peakMallocedMemory` Integer\n* `doesZapGarbage` boolean\n\nReturns an object with V8 heap statistics. Note that all statistics are reported in Kilobytes.", + "parameters": [], + "returns": { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "totalHeapSize", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "totalHeapSizeExecutable", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "totalPhysicalSize", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "totalAvailableSize", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "usedHeapSize", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "heapSizeLimit", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "mallocedMemory", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "peakMallocedMemory", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "doesZapGarbage", + "description": "", + "required": true, + "additionalTags": [], + "collection": false, + "type": "boolean" + } + ] + }, + "additionalTags": [], + "urlFragment": "#processgetheapstatistics" + }, + { + "name": "getBlinkMemoryInfo", + "signature": "()", + "description": "* `allocated` Integer - Size of all allocated objects in Kilobytes.\n* `total` Integer - Total allocated space in Kilobytes.\n\nReturns an object with Blink memory information. It can be useful for debugging rendering / DOM related memory issues. Note that all values are reported in Kilobytes.", + "parameters": [], + "returns": { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "allocated", + "description": "Size of all allocated objects in Kilobytes.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "total", + "description": "Total allocated space in Kilobytes.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + } + ] + }, + "additionalTags": [], + "urlFragment": "#processgetblinkmemoryinfo" + }, + { + "name": "getProcessMemoryInfo", + "signature": "()", + "description": "Resolves with a ProcessMemoryInfo\n\nReturns an object giving memory usage statistics about the current process. Note that all statistics are reported in Kilobytes. This api should be called after app ready.\n\nChromium does not provide `residentSet` value for macOS. This is because macOS performs in-memory compression of pages that haven't been recently used. As a result the resident set size value is not what one would expect. `private` memory is more representative of the actual pre-compression memory usage of the process on macOS.", + "parameters": [], + "returns": { + "collection": false, + "type": "Promise", + "innerTypes": [ + { + "collection": false, + "type": "ProcessMemoryInfo" + } + ] + }, + "additionalTags": [], + "urlFragment": "#processgetprocessmemoryinfo" + }, + { + "name": "getSystemMemoryInfo", + "signature": "()", + "description": "* `total` Integer - The total amount of physical memory in Kilobytes available to the system.\n* `free` Integer - The total amount of memory not being used by applications or disk cache.\n* `swapTotal` Integer _Windows_ _Linux_ - The total amount of swap memory in Kilobytes available to the system.\n* `swapFree` Integer _Windows_ _Linux_ - The free amount of swap memory in Kilobytes available to the system.\n\nReturns an object giving memory usage statistics about the entire system. Note that all statistics are reported in Kilobytes.", + "parameters": [], + "returns": { + "collection": false, + "type": "Object", + "properties": [ + { + "name": "total", + "description": "The total amount of physical memory in Kilobytes available to the system.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "free", + "description": "The total amount of memory not being used by applications or disk cache.", + "required": true, + "additionalTags": [], + "collection": false, + "type": "Integer" + }, + { + "name": "swapTotal", + "description": "The total amount of swap memory in Kilobytes available to the system.", + "required": true, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "collection": false, + "type": "Integer" + }, + { + "name": "swapFree", + "description": "The free amount of swap memory in Kilobytes available to the system.", + "required": true, + "additionalTags": [ + "os_windows", + "os_linux" + ], + "collection": false, + "type": "Integer" + } + ] + }, + "additionalTags": [], + "urlFragment": "#processgetsystemmemoryinfo" + }, + { + "name": "getSystemVersion", + "signature": "()", + "description": "The version of the host operating system.\n\nExample:\n\n**Note:** It returns the actual operating system version instead of kernel version on macOS unlike `os.release()`.", + "parameters": [], + "returns": { + "collection": false, + "type": "String", + "possibleValues": null + }, + "additionalTags": [], + "urlFragment": "#processgetsystemversion" + }, + { + "name": "takeHeapSnapshot", + "signature": "(filePath)", + "description": "Indicates whether the snapshot has been created successfully.\n\nTakes a V8 heap snapshot and saves it to `filePath`.", + "parameters": [ + { + "name": "filePath", + "description": "Path to the output file.", + "required": true, + "collection": false, + "type": "String", + "possibleValues": null + } + ], + "returns": { + "collection": false, + "type": "boolean" + }, + "additionalTags": [], + "urlFragment": "#processtakeheapsnapshotfilepath" + }, + { + "name": "hang", + "signature": "()", + "description": "Causes the main thread of the current process hang.", + "parameters": [], + "returns": null, + "additionalTags": [], + "urlFragment": "#processhang" + }, + { + "name": "setFdLimit", + "signature": "(maxDescriptors)", + "description": "Sets the file descriptor soft limit to `maxDescriptors` or the OS hard limit, whichever is lower for the current process.", + "parameters": [ + { + "name": "maxDescriptors", + "description": "", + "required": true, + "collection": false, + "type": "Integer" + } + ], + "returns": null, + "additionalTags": [ + "os_macos", + "os_linux" + ], + "urlFragment": "#processsetfdlimitmaxdescriptors-macos-linux" + } + ], + "properties": [ + { + "name": "defaultApp", + "description": "A `boolean`. When the app is started by being passed as parameter to the default Electron executable, this property is `true` in the main process, otherwise it is `undefined`. For example when running the app with `electron .`, it is `true`, even if the app is packaged (`isPackaged`) is `true`. This can be useful to determine how many arguments will need to be sliced off from `process.argv`.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processdefaultapp-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "isMainFrame", + "description": "A `boolean`, `true` when the current renderer context is the \"main\" renderer frame. If you want the ID of the current frame you should use `webFrame.routingId`.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processismainframe-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "mas", + "description": "A `boolean`. For Mac App Store build, this property is `true`, for other builds it is `undefined`.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processmas-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "noAsar", + "description": "A `boolean` that controls ASAR support inside your application. Setting this to `true` will disable the support for `asar` archives in Node's built-in modules.", + "required": true, + "additionalTags": [], + "urlFragment": "#processnoasar", + "collection": false, + "type": "boolean" + }, + { + "name": "noDeprecation", + "description": "A `boolean` that controls whether or not deprecation warnings are printed to `stderr`. Setting this to `true` will silence deprecation warnings. This property is used instead of the `--no-deprecation` command line flag.", + "required": true, + "additionalTags": [], + "urlFragment": "#processnodeprecation", + "collection": false, + "type": "boolean" + }, + { + "name": "resourcesPath", + "description": "A `string` representing the path to the resources directory.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processresourcespath-readonly", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "sandboxed", + "description": "A `boolean`. When the renderer process is sandboxed, this property is `true`, otherwise it is `undefined`.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processsandboxed-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "contextIsolated", + "description": "A `boolean` that indicates whether the current renderer context has `contextIsolation` enabled. It is `undefined` in the main process.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processcontextisolated-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "throwDeprecation", + "description": "A `boolean` that controls whether or not deprecation warnings will be thrown as exceptions. Setting this to `true` will throw errors for deprecations. This property is used instead of the `--throw-deprecation` command line flag.", + "required": true, + "additionalTags": [], + "urlFragment": "#processthrowdeprecation", + "collection": false, + "type": "boolean" + }, + { + "name": "traceDeprecation", + "description": "A `boolean` that controls whether or not deprecations printed to `stderr` include their stack trace. Setting this to `true` will print stack traces for deprecations. This property is instead of the `--trace-deprecation` command line flag.", + "required": true, + "additionalTags": [], + "urlFragment": "#processtracedeprecation", + "collection": false, + "type": "boolean" + }, + { + "name": "traceProcessWarnings", + "description": "A `boolean` that controls whether or not process warnings printed to `stderr` include their stack trace. Setting this to `true` will print stack traces for process warnings (including deprecations). This property is instead of the `--trace-warnings` command line flag.", + "required": true, + "additionalTags": [], + "urlFragment": "#processtraceprocesswarnings", + "collection": false, + "type": "boolean" + }, + { + "name": "type", + "description": "A `string` representing the current process's type, can be:\n\n* `browser` - The main process\n* `renderer` - A renderer process\n* `worker` - In a web worker\n* `utility` - In a node process launched as a service", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processtype-readonly", + "collection": false, + "type": "String", + "possibleValues": [ + { + "value": "browser", + "description": "The main process" + }, + { + "value": "renderer", + "description": "A renderer process" + }, + { + "value": "worker", + "description": "In a web worker" + }, + { + "value": "utility", + "description": "In a node process launched as a service" + } + ] + }, + { + "name": "chrome", + "description": "A `string` representing Chrome's version string.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processversionschrome-readonly", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "electron", + "description": "A `string` representing Electron's version string.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processversionselectron-readonly", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "windowsStore", + "description": "A `boolean`. If the app is running as a Windows Store app (appx), this property is `true`, for otherwise it is `undefined`.", + "required": true, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processwindowsstore-readonly", + "collection": false, + "type": "boolean" + }, + { + "name": "contextId", + "description": "A `string` (optional) representing a globally unique ID of the current JavaScript context. Each frame has its own JavaScript context. When contextIsolation is enabled, the isolated world also has a separate JavaScript context. This property is only available in the renderer process.", + "required": false, + "additionalTags": [ + "availability_readonly" + ], + "urlFragment": "#processcontextid-readonly", + "collection": false, + "type": "String", + "possibleValues": null + }, + { + "name": "parentPort", + "description": "A `Electron.ParentPort` property if this is a `UtilityProcess` (or `null` otherwise) allowing communication with the parent process.", + "required": true, + "additionalTags": [], + "urlFragment": "#processparentport", + "collection": false, + "type": "Electron.ParentPort" + } + ], + "events": [ + { + "name": "loaded", + "description": "Emitted when Electron has loaded its internal initialization script and is beginning to load the web page or the main script.", + "parameters": [], + "additionalTags": [], + "urlFragment": "#event-loaded" + } + ], + "exportedClasses": [] + }, + { + "name": "protocol", + "description": "> Register a custom protocol and intercept existing protocol requests.\n\nProcess: Main\n\nAn example of implementing a protocol that has the same effect as the `file://` protocol:\n\n```\nconst { app, protocol, net } = require('electron')\nconst path = require('node:path')\nconst url = require('node:url')\n\napp.whenReady().then(() => {\n protocol.handle('atom', (request) => {\n const filePath = request.url.slice('atom://'.length)\n return net.fetch(url.pathToFileURL(path.join(__dirname, filePath)).toString())\n })\n})\n```\n\n**Note:** All methods unless specified can only be used after the `ready` event of the `app` module gets emitted.\n\n### Using `protocol` with a custom `partition` or `session`\n\nA protocol is registered to a specific Electron `session` object. If you don't specify a session, then your `protocol` will be applied to the default session that Electron uses. However, if you define a `partition` or `session` on your `browserWindow`'s `webPreferences`, then that window will use a different session and your custom protocol will not work if you just use `electron.protocol.XXX`.\n\nTo have your custom protocol work in combination with a custom session, you need to register it to that session explicitly.\n\n```\nconst { app, BrowserWindow, net, protocol, session } = require('electron')\nconst path = require('node:path')\nconst url = require('url')\n\napp.whenReady().then(() => {\n const partition = 'persist:example'\n const ses = session.fromPartition(partition)\n\n ses.protocol.handle('atom', (request) => {\n const filePath = request.url.slice('atom://'.length)\n return net.fetch(url.pathToFileURL(path.resolve(__dirname, filePath)).toString())\n })\n\n const mainWindow = new BrowserWindow({ webPreferences: { partition } })\n})\n```", + "slug": "protocol", + "websiteUrl": "https://electronjs.org/docs/api/protocol", + "repoUrl": "https://github.com/electron/electron/blob/v34.0.0-nightly.20240920/docs/api/protocol.md", + "version": "34.0.0-nightly.20240920", + "type": "Module", + "process": { + "main": true, + "renderer": false, + "utility": false, + "exported": true + }, + "methods": [ + { + "name": "registerSchemesAsPrivileged", + "signature": "(customSchemes)", + "description": "**Note:** This method can only be used before the `ready` event of the `app` module gets emitted and can be called only once.\n\nRegisters the `scheme` as standard, secure, bypasses content security policy for resources, allows registering ServiceWorker, supports fetch API, streaming video/audio, and V8 code cache. Specify a privilege with the value of `true` to enable the capability.\n\nAn example of registering a privileged scheme, that bypasses Content Security Policy:\n\nA standard scheme adheres to what RFC 3986 calls generic URI syntax. For example `http` and `https` are standard schemes, while `file` is not.\n\nRegistering a scheme as standard allows relative and absolute resources to be resolved correctly when served. Otherwise the scheme will behave like the `file` protocol, but without the ability to resolve relative URLs.\n\nFor example when you load following page with custom protocol without registering it as standard scheme, the image will not be loaded because non-standard schemes can not recognize relative URLs:\n\nRegistering a scheme as standard will allow access to files through the FileSystem API. Otherwise the renderer will throw a security error for the scheme.\n\nBy default web storage apis (localStorage, sessionStorage, webSQL, indexedDB, cookies) are disabled for non standard schemes. So in general if you want to register a custom protocol to replace the `http` protocol, you have to register it as a standard scheme.\n\nProtocols that use streams (http and stream protocols) should set `stream: true`. The `