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

@vueuse/nuxt

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vueuse/nuxt - npm Package Compare versions

Comparing version 7.0.0-alpha.3 to 7.2.1

49

index.d.ts

@@ -1,48 +0,1 @@

import * as vue_demi from 'vue-demi';
import { ConfigurableWindow } from '@vueuse/core';
export * from '@vueuse/core';
interface UseNuxtDarkOptions extends ConfigurableWindow {
/**
* HTML attribute applying the target element
*
* @default 'class'
*/
attribute?: string;
/**
* Value applying to the target element when isDark=true
*
* @default 'dark'
*/
valueDark?: string;
/**
* Value applying to the target element when isDark=false
*
* @default 'light'
*/
valueLight?: string;
/**
* A custom handler for handle the updates.
* When specified, the default behavior will be overridded.
*
* @default undefined
*/
onChanged?: (isDark: boolean) => void;
/**
* Key to persist the data into Nuxt's useCookie.
*
* Pass `null` to disable persistence
*
* @default 'vueuse-color-schema'
*/
cookieKey?: string;
}
/**
* Reactive dark mode with auto data persistence for Nuxt.
*
* @see https://vueuse.org/useNuxtDark
* @param options
*/
declare function useNuxtDark(options?: UseNuxtDarkOptions): vue_demi.WritableComputedRef<boolean>;
export { UseNuxtDarkOptions, useNuxtDark };
export default function(): void

22

indexes.json

@@ -29,9 +29,12 @@ {

"description": "VueUse Nuxt Module",
"manualImport": true,
"addon": true,
"iife": false,
"cjs": false,
"dts": false,
"target": "node14",
"external": [
"@vueuse/core",
"@vueuse/shared",
"nuxt3",
"#app"
"local-pkg"
],

@@ -138,3 +141,2 @@ "dir": "packages/nuxt",

"@Integrations",
"@Nuxt",
"@Router",

@@ -798,2 +800,9 @@ "@RxJS",

{
"name": "useFocusWithin",
"package": "core",
"docs": "https://vueuse.org/core/useFocusWithin/",
"category": "Sensors",
"description": "reactive utility to track if an element or one of its decendants has focus"
},
{
"name": "useFps",

@@ -1224,9 +1233,2 @@ "package": "core",

{
"name": "useNuxtDark",
"package": "nuxt",
"docs": "https://vueuse.org/nuxt/useNuxtDark/",
"category": "@Nuxt",
"description": "reactive dark mode with auto data persistence for Nuxt"
},
{
"name": "useRouteHash",

@@ -1233,0 +1235,0 @@ "package": "router",

{
"name": "@vueuse/nuxt",
"version": "7.0.0-alpha.3",
"version": "7.2.1",
"description": "VueUse Nuxt Module",

@@ -26,8 +26,3 @@ "keywords": [

},
"./*": "./*",
"./module": {
"import": "./module.mjs",
"require": "./module.cjs",
"types": "./module.d.ts"
}
"./*": "./*"
},

@@ -43,8 +38,6 @@ "main": "./index.cjs",

"dependencies": {
"@vueuse/core": "7.1.1",
"@vueuse/core": "7.2.1",
"local-pkg": "^0.4.0",
"vue-demi": "*"
},
"devDependencies": {
"nuxt3": "latest"
}
}

@@ -5,6 +5,4 @@ # @vueuse/nuxt

> This is an add-on of [VueUse](https://github.com/vueuse/vueuse), provides Nuxt specific composables and auto-import capabilities.
> This is an add-on of [VueUse](https://github.com/vueuse/vueuse), which provides better Nuxt integration auto-import capabilities.
> Experimental. **Will NOT follow semvar**.
## Install

@@ -21,3 +19,3 @@

buildModules: [
'@vueuse/nuxt/module'
'@vueuse/nuxt'
]

@@ -27,15 +25,4 @@ })

## Functions
`@vueuse/nuxt` provides the following functions
<!--GENERATED LIST, DO NOT MODIFY MANUALLY-->
<!--FUNCTIONS_LIST_STARTS-->
- [`useNuxtDark`](https://vueuse.org/nuxt/useNuxtDark/) — reactive dark mode with auto data persistence for Nuxt
<!--FUNCTIONS_LIST_ENDS-->
## License
[MIT License](https://github.com/vueuse/vueuse/blob/master/LICENSE) © 2021-PRESENT [Anthony Fu](https://github.com/antfu)

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