vue3-cookies
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "vue3-cookies", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A simple Vue.js 3 plugin for handling browser cookies", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,6 +16,9 @@ # vue3-cookies | ||
Usage - via composition API (recommended): | ||
## Usage - via composition API (recommended): | ||
``` | ||
// MyComponent.vue | ||
<script> | ||
import { useCookies } from "vue3-cookies"; | ||
export default defineComponent({ | ||
@@ -26,3 +29,5 @@ setup() { | ||
}, | ||
// <data, methods...> | ||
mounted() { | ||
@@ -34,4 +39,5 @@ let my_cookie_value = this.$cookies.get("myCoookie"); | ||
} | ||
</script> | ||
``` | ||
Optional global cookies config: | ||
### Optional global cookies config: | ||
``` | ||
@@ -55,3 +61,3 @@ // Optional - global config at main.ts / main.js | ||
Usage - as vue plugin | ||
## Usage - as vue plugin (legacy) | ||
@@ -58,0 +64,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30017
279
0