capacitor-jok-helper
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -27,3 +27,3 @@ declare module "@capacitor/core" { | ||
}>; | ||
getPushNotificationsState(): Promise<PushNotificationState>; | ||
getPushNotificationsState(): Promise<PushNotificationState | null>; | ||
askPushNotificationsPermission(): Promise<{ | ||
@@ -30,0 +30,0 @@ accepted: boolean; |
import { WebPlugin } from '@capacitor/core'; | ||
import { JokHelperPlugin, SetKeychainItemProps, SetOrientationLockProps, PushNotificationState } from './definitions'; | ||
import { JokHelperPlugin, SetKeychainItemProps, SetOrientationLockProps } from './definitions'; | ||
export declare class JokHelperWeb extends WebPlugin implements JokHelperPlugin { | ||
@@ -25,3 +25,3 @@ constructor(); | ||
}>; | ||
getPushNotificationsState(): Promise<PushNotificationState>; | ||
getPushNotificationsState(): Promise<any>; | ||
askPushNotificationsPermission(): Promise<{ | ||
@@ -28,0 +28,0 @@ accepted: boolean; |
@@ -10,3 +10,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { WebPlugin } from '@capacitor/core'; | ||
import { PushNotificationStateUserStatus } from './definitions'; | ||
export class JokHelperWeb extends WebPlugin { | ||
@@ -61,10 +60,3 @@ constructor() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return { | ||
userId: null, | ||
hasPrompted: false, | ||
userStatus: PushNotificationStateUserStatus.OSNotificationPermissionNotDetermined, | ||
pushToken: '', | ||
isSubscribed: false, | ||
userSubscriptionSetting: false, | ||
}; | ||
return Promise.resolve(null); | ||
}); | ||
@@ -71,0 +63,0 @@ } |
{ | ||
"name": "capacitor-jok-helper", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Helper functions for jok projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
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
130091
194