@nativescript/local-notifications
Advanced tools
Comparing version 5.0.0 to 5.1.0
// Export any shared classes, constants, etc. | ||
export * from "./local-notifications-common"; | ||
export * from './common'; | ||
/** | ||
* iOS and Android apis should match. | ||
* It doesn't matter if you export `.ios` or `.android`, either one but only one. | ||
*/ | ||
export * from "./local-notifications.ios"; | ||
import { LocalNotificationsApi, LocalNotificationsCommon, ReceivedNotification, ScheduleOptions } from './common'; | ||
export declare class LocalNotificationsImpl extends LocalNotificationsCommon implements LocalNotificationsApi { | ||
hasPermission(): Promise<boolean>; | ||
requestPermission(): Promise<boolean>; | ||
addOnMessageReceivedCallback(onReceived: (data: ReceivedNotification) => void): Promise<any>; | ||
addOnMessageClearedCallback(onReceived: (data: ReceivedNotification) => void): Promise<any>; | ||
cancel(id: number): Promise<boolean>; | ||
cancelAll(): Promise<void>; | ||
getScheduledIds(): Promise<number[]>; | ||
schedule(scheduleOptions: ScheduleOptions[]): Promise<Array<number>>; | ||
} | ||
export declare const LocalNotifications: LocalNotificationsImpl; |
{ | ||
"name": "@nativescript/local-notifications", | ||
"version": "5.0.0", | ||
"description": "The Local Notifications plugin allows your app to show notifications when the app is not running. Just like remote push notifications, but a few orders of magnitude easier to set up.", | ||
"main": "local-notifications", | ||
"version": "5.1.0", | ||
"description": "The Local Notifications plugin allows your app to show notifications when the app is not running.", | ||
"main": "index.js", | ||
"typings": "index.d.ts", | ||
@@ -13,29 +13,5 @@ "nativescript": { | ||
}, | ||
"scripts": { | ||
"clean": "npx rimraf node_modules package-lock.json && npm i", | ||
"build": "npm i && tsc --skipLibCheck", | ||
"demo.ios": "npm run build && cd ../demo && tns run ios", | ||
"demo.android": "npm run build && cd ../demo && tns run android", | ||
"demo-ng.ios": "npm run build && cd ../demo-ng && tns run ios", | ||
"demo-ng.android": "npm run build && cd ../demo-ng && tns run android", | ||
"demo-vue.ios": "npm run build && cd ../demo-vue && tns run ios --bundle", | ||
"demo-vue.android": "npm run build && cd ../demo-vue && tns run android --bundle", | ||
"test": "npm run tslint && npm run tslint.demo && cd ../demo && tns build ios && tns build android", | ||
"test.ios": "cd ../demo && tns test ios --emulator", | ||
"test.ios.device": "cd ../demo && tns test ios", | ||
"test.android": "cd ../demo && tns test android --justlaunch", | ||
"plugin.link": "npm link && cd ../demo && npm link nativescript-mapbox && cd ../src", | ||
"preparedemo": "npm run build && cd ../demo && tns plugin remove nativescript-mapbox && tns plugin add ../src && tns install", | ||
"setup": "npm run build && cd ../demo && npm i", | ||
"setupandinstall": "npm i && cd ../demo && npm i && cd ../src && npm run build && cd ../demo && tns plugin add ../src && cd ../src", | ||
"tslint": "tslint --config '../tslint.json' '*.ts' --exclude '**/node_modules/**'", | ||
"tslint.demo": "tslint --config '../tslint.json' '../demo/app/*.ts' --exclude '**/node_modules/**'", | ||
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'", | ||
"prepublishOnly": "npm run build", | ||
"development.setup": "npm run setup && npm link && cd ../demo && npm link nativescript-mapbox && cd ../src", | ||
"generate.typings.ios": "cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/eddyverbruggen/nativescript-local-notifications.git" | ||
"url": "https://github.com/NativeScript/plugins/tree/master/packages/local-notifications" | ||
}, | ||
@@ -61,11 +37,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/eddyverbruggen/nativescript-local-notifications/issues" | ||
"url": "https://github.com/nativescript/plugins/issues" | ||
}, | ||
"homepage": "https://github.com/eddyverbruggen/nativescript-local-notifications", | ||
"devDependencies": { | ||
"@nativescript/core": "rc", | ||
"@nativescript/types": "rc", | ||
"typescript": "~3.9.0", | ||
"tslint": "^6.1.3" | ||
}, | ||
"homepage": "https://github.com/nativescript/plugins", | ||
"dependencies": { | ||
@@ -72,0 +42,0 @@ "@nativescript/shared-notification-delegate": "~1.0.0" |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
522055
0
21
1114
1
228
1
2