@onesignal/onesignal-vue3
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -115,3 +115,3 @@ import { App } from 'vue'; | ||
} | ||
export declare const useOneSignal: () => unknown; | ||
export declare const useOneSignal: () => IOneSignal; | ||
declare const OneSignalVuePlugin: { | ||
@@ -118,0 +118,0 @@ install(app: App, options: IInitObject): void; |
@@ -1,2 +0,1 @@ | ||
import { inject } from 'vue'; | ||
const ONESIGNAL_SDK_ID = 'onesignal-sdk'; | ||
@@ -698,5 +697,4 @@ const ONE_SIGNAL_SCRIPT_SRC = 'https://cdn.onesignal.com/sdks/OneSignalSDK.js'; | ||
}; | ||
const INJECT_KEY = "onesignal"; | ||
export const useOneSignal = () => { | ||
return inject(INJECT_KEY); | ||
return OneSignalVue; | ||
}; | ||
@@ -707,3 +705,2 @@ const OneSignalVuePlugin = { | ||
app.config.globalProperties.$OneSignal.init(options); | ||
app.provide(INJECT_KEY, OneSignalVue); | ||
} | ||
@@ -710,0 +707,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { App, inject } from 'vue'; | ||
import { App } from 'vue'; | ||
@@ -877,6 +877,4 @@ const ONESIGNAL_SDK_ID = 'onesignal-sdk'; | ||
const INJECT_KEY = "onesignal"; | ||
export const useOneSignal = () => { | ||
return inject(INJECT_KEY); | ||
return OneSignalVue; | ||
} | ||
@@ -888,3 +886,2 @@ | ||
app.config.globalProperties.$OneSignal.init(options); | ||
app.provide(INJECT_KEY, OneSignalVue); | ||
} | ||
@@ -891,0 +888,0 @@ } |
{ | ||
"name": "@onesignal/onesignal-vue3", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Vue 3 OneSignal Plugin: Make it easy to integrate OneSignal with your Vue App!", | ||
"author": "rgomezp", | ||
"contributors": [ | ||
{ | ||
"name": "Rodrigo Gomez-Palacio" | ||
} | ||
{ "name": "Rodrigo Gomez-Palacio" }, | ||
{ "name": "Enzo Innocenzi" } | ||
], | ||
@@ -11,0 +10,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
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
85216
1681