Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-electron

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-electron - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

19

dist/index.d.ts

@@ -8,4 +8,23 @@ import { type Configuration } from 'vite-electron-plugin';

renderer?: Parameters<typeof import('vite-plugin-electron-renderer').default>[0];
/**
* nuxt-electron will modify some options by default
*
* ```js
* export default defineNuxtConfig({
* ssr: false,
* app: {
* buildAssetsDir: '/',
* baseURL: './',
* },
* runtimeConfig: {
* app: {
* baseURL: './',
* },
* },
* })
* ```
*/
disableDefaultOptions?: boolean;
}
declare const _default: NuxtModule<ElectronOptions>;
export default _default;

14

package.json
{
"name": "nuxt-electron",
"version": "0.4.3",
"version": "0.4.4",
"description": "Nuxt Integration with Electron",

@@ -41,9 +41,9 @@ "main": "./dist/index.cjs",

"devDependencies": {
"@types/node": "^18.13.0",
"esbuild": "^0.17.8",
"nuxt": "^3.2.0",
"@types/node": "^18.15.11",
"esbuild": "^0.17.14",
"nuxt": "^3.2.2",
"typescript": "^4.9.5",
"vite": "^4.1.1",
"vite-electron-plugin": "^0.7.4",
"vite-plugin-electron-renderer": "^0.12.1"
"vite": "^4.1.4",
"vite-electron-plugin": "latest",
"vite-plugin-electron-renderer": "latest"
},

@@ -50,0 +50,0 @@ "files": [

@@ -66,4 +66,2 @@ <p align="center">

> This is based on the `vite-electron-plugin`, see the **[Documents](https://github.com/electron-vite/vite-electron-plugin#configuration)** for more detailed options
Here is the default `electron` options

@@ -83,16 +81,34 @@

Use Node.js in Renderer process
Full types definition
> This is based on the `vite-electron-plugin`, see the **[Documents](https://github.com/electron-vite/vite-electron-plugin#configuration)** for more detailed options
```ts
export default defineNuxtConfig({
modules: [
'nuxt-electron',
],
electron: {
/**
* @see https://github.com/electron-vite/vite-plugin-electron-renderer
*/
renderer: {},
},
})
import type { Configuration } from 'vite-electron-plugin'
export interface ElectronOptions extends Partial<Configuration> {
/**
* @see https://github.com/electron-vite/vite-plugin-electron-renderer
*/
renderer?: Parameters<typeof import('vite-plugin-electron-renderer').default>[0]
/**
* nuxt-electron will modify some options by default
*
* ```js
* export default defineNuxtConfig({
* ssr: false,
* app: {
* buildAssetsDir: '/',
* baseURL: './',
* },
* runtimeConfig: {
* app: {
* baseURL: './',
* },
* },
* })
* ```
*/
disableDefaultOptions?: boolean
}
```

@@ -127,2 +143,4 @@

If you want to fully customize the default behavior, you can disable it by `disableDefaultOptions`
<!-- Badges -->

@@ -129,0 +147,0 @@ [npm-version-src]: https://img.shields.io/npm/v/nuxt-electron/latest.svg?style=flat&colorA=18181B&colorB=28CF8D

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc