New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-sonner

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-sonner - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

2

lib/nuxt/module.json

@@ -7,3 +7,3 @@ {

},
"version": "1.2.4",
"version": "1.2.5",
"builder": {

@@ -10,0 +10,0 @@ "@nuxt/module-builder": "0.8.4",

{
"name": "vue-sonner",
"version": "1.2.4",
"version": "1.2.5",
"type": "module",

@@ -58,2 +58,3 @@ "author": "xiaoluoboding <xiaoluoboding@gmail.com>",

"@nuxt/devtools": "^1.6.0",
"@nuxt/kit": "^3.13.2",
"@nuxt/module-builder": "^0.8.4",

@@ -77,8 +78,5 @@ "@nuxt/schema": "^3.13.2",

"vue": "^3.5.12",
"vue-sonner": "^1.2.3",
"vue-sonner": "^1.2.4",
"vue-tsc": "^2.1.6"
},
"dependencies": {
"@nuxt/kit": "^3.13.2"
}
}

@@ -36,2 +36,4 @@ # Sonner for Vue

- [Test](#test)
- [Launching the test](#launching-the-test)
- [Build and watch for change in order to fix the test](#build-and-watch-for-change-in-order-to-fix-the-test)
- [Usage](#usage)

@@ -124,16 +126,9 @@ - [For Vue 3](#for-vue-3)

Define a nuxt plugin
Use `vue-sonner/nuxt` module
```ts
// plugins/sonner.client.ts
import { Toaster, toast } from 'vue-sonner'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component('Toaster', Toaster)
return {
provide: {
toast
}
}
// nuxt.config.ts
export default defineNuxtConfig({
...
modules: ['vue-sonner/nuxt']
})

@@ -148,3 +143,2 @@ ```

<div>
<NuxtPage />
<Toaster position="top-right" />

@@ -156,3 +150,2 @@ <button @click="() => $toast('My first toast')">Render a toast</button>

<script setup lang="ts">
// alternatively, you can also use it here
const { $toast } = useNuxtApp()

@@ -162,16 +155,2 @@ </script>

Add the build transpile for `vue-sonner`
```ts
// nuxt.config.ts
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
...
build: {
transpile: ['vue-sonner']
}
})
```
### CDN Link

@@ -178,0 +157,0 @@

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