nativescript-in-app-notifications
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -1,5 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var InAppNotifications = (function () { | ||
function InAppNotifications() { | ||
export class InAppNotifications { | ||
constructor() { | ||
if (InAppNotifications.instance) { | ||
@@ -10,11 +8,9 @@ throw new Error("Error: Instance failed: Use InAppNotifications.getInstance() instead of new."); | ||
} | ||
InAppNotifications.getInstance = function () { | ||
static getInstance() { | ||
return InAppNotifications.instance; | ||
}; | ||
InAppNotifications.prototype.showNotification = function (message, title, tapHandler, sound) { | ||
}; | ||
InAppNotifications.instance = new InAppNotifications(); | ||
return InAppNotifications; | ||
}()); | ||
exports.InAppNotifications = InAppNotifications; | ||
} | ||
showNotification(message, title, tapHandler, sound) { | ||
} | ||
} | ||
InAppNotifications.instance = new InAppNotifications(); | ||
//# sourceMappingURL=in-app-notifications.android.js.map |
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=in-app-notifications.common.js.map |
@@ -1,5 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var InAppNotifications = (function () { | ||
function InAppNotifications() { | ||
export class InAppNotifications { | ||
constructor() { | ||
if (InAppNotifications.instance) { | ||
@@ -10,8 +8,7 @@ throw new Error('Error: Instance failed: Use InAppNotifications.getInstance() instead of new.'); | ||
} | ||
InAppNotifications.getInstance = function () { | ||
static getInstance() { | ||
return InAppNotifications.instance; | ||
}; | ||
InAppNotifications.prototype.showNotification = function (message, title, tapHandler, sound) { | ||
if (sound === void 0) { sound = ''; } | ||
var params = { | ||
} | ||
showNotification(message, title, tapHandler, sound = '') { | ||
const params = { | ||
'aps': { | ||
@@ -26,9 +23,7 @@ 'category': '', | ||
}; | ||
var notification = new BSForegroundNotification(); | ||
let notification = new BSForegroundNotification(); | ||
notification.presentNotificationWithUserInfoCompletion(params, tapHandler); | ||
}; | ||
InAppNotifications.instance = new InAppNotifications(); | ||
return InAppNotifications; | ||
}()); | ||
exports.InAppNotifications = InAppNotifications; | ||
} | ||
} | ||
InAppNotifications.instance = new InAppNotifications(); | ||
//# sourceMappingURL=in-app-notifications.ios.js.map |
{ | ||
"name": "nativescript-in-app-notifications", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Your awesome NativeScript plugin.", | ||
@@ -15,12 +15,11 @@ "main": "in-app-notifications", | ||
"tsc": "npm i && tsc", | ||
"build": "npm run tsc && npm run build.native", | ||
"build.native": "node scripts/build-native.js", | ||
"build": "npm i && ts-patch install && tsc -skipLibCheck", | ||
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"", | ||
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'", | ||
"prepack": "npm run build.native", | ||
"demo.ios": "npm i && cd ../demo && tns run ios", | ||
"demo.android": "npm i && cd ../demo && tns run android", | ||
"demo.ios": "npm run build && cd ../demo && ns run ios", | ||
"demo.android": "npm run build && cd ../demo && ns run android", | ||
"demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json", | ||
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-in-app-notifications && tns plugin add ../src", | ||
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i" | ||
"plugin.prepare": "npm run build && cd ../demo && ns plugin remove nativescript-in-app-notifications && ns plugin add ../src", | ||
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm run setup", | ||
"setup": "npm i && ts-patch install && tsc" | ||
}, | ||
@@ -46,9 +45,12 @@ "repository": { | ||
"devDependencies": { | ||
"tns-core-modules": "^6.0.0", | ||
"tns-platform-declarations": "^6.0.0", | ||
"typescript": "~3.4.5", | ||
"@nativescript/core": "~7.0.3", | ||
"@nativescript/types": "~7.0.3", | ||
"@nativescript/webpack": "^4.1.0", | ||
"prompt": "^1.0.0", | ||
"rimraf": "^2.6.3", | ||
"tslint": "^5.12.1", | ||
"semver": "^5.6.0" | ||
"rimraf": "^3.0.2", | ||
"semver": "^6.2.0", | ||
"ts-patch": "^1.3.0", | ||
"ts-node": "^9.0.0", | ||
"tslint": "^6.1.3", | ||
"typescript": "~4.0.0" | ||
}, | ||
@@ -55,0 +57,0 @@ "dependencies": {}, |
@@ -1,2 +0,1 @@ | ||
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" /> | ||
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" /> | ||
/// <reference path="./node_modules/@nativescript/types/index.d.ts" /> |
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
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
0
10564
10
65