nativescript-urban-airship
Advanced tools
Comparing version 1.2.1 to 1.3.0
{ | ||
"name": "nativescript-urban-airship", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Urban Airship plugin for NativeScript.", | ||
@@ -53,9 +53,7 @@ "main": "urbanairship", | ||
"conventional-changelog-cli": "^1.2.0", | ||
"prompt": "^1.0.0", | ||
"rimraf": "^2.5.0", | ||
"tns-core-modules": "^2.3.0", | ||
"tns-platform-declarations": "^2.3.0", | ||
"typescript": "~2.0.7" | ||
"tns-core-modules": "~2.5.1", | ||
"tns-platform-declarations": "~2.5.0", | ||
"typescript": "~2.1.0" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -162,2 +162,3 @@ # NativeScript Urban Airship plugin | ||
resetBadgeCount(): void; | ||
getRegistrationToken(): string; | ||
} | ||
@@ -164,0 +165,0 @@ ``` |
@@ -1,2 +0,6 @@ | ||
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" /> | ||
/// <reference path="./node_modules/typescript/lib/lib.d.ts" /> | ||
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.es2016.d.ts" /> | ||
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" /> | ||
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" /> | ||
/// <reference path="./objc!AirshipKit.d.ts" /> | ||
/// <reference path="./com.urbanairship.d.ts" /> |
@@ -11,3 +11,3 @@ { | ||
"lib": [ | ||
"dom" | ||
"es2016" | ||
], | ||
@@ -36,2 +36,2 @@ "sourceMap": true, | ||
"compileOnSave": false | ||
} | ||
} |
@@ -14,3 +14,4 @@ import { UrbanAirshipSettings, CommonUrbanAirship } from './urbanairship.common'; | ||
getChannelID(): string; | ||
getRegistrationToken(): string; | ||
resetBadgeCount(): void; | ||
} |
@@ -49,7 +49,10 @@ "use strict"; | ||
}; | ||
NsUrbanairship.prototype.getRegistrationToken = function () { | ||
return com.urbanairship.UAirship.shared().getPushManager().getRegistrationToken(); | ||
}; | ||
NsUrbanairship.prototype.resetBadgeCount = function () { }; | ||
NsUrbanairship.instance = new NsUrbanairship(); | ||
return NsUrbanairship; | ||
}()); | ||
NsUrbanairship.instance = new NsUrbanairship(); | ||
exports.NsUrbanairship = NsUrbanairship; | ||
//# sourceMappingURL=urbanairship.android.js.map |
@@ -19,2 +19,3 @@ export interface UrbanAirshipSettings { | ||
resetBadgeCount(): void; | ||
getRegistrationToken(): string; | ||
} |
@@ -14,3 +14,4 @@ import { UrbanAirshipSettings, CommonUrbanAirship } from './urbanairship.common'; | ||
getChannelID(): string; | ||
getRegistrationToken(): string; | ||
resetBadgeCount(): void; | ||
} |
@@ -48,9 +48,12 @@ "use strict"; | ||
}; | ||
NsUrbanairship.prototype.getRegistrationToken = function () { | ||
return ""; | ||
}; | ||
NsUrbanairship.prototype.resetBadgeCount = function () { | ||
UAirship.push().resetBadge(); | ||
}; | ||
NsUrbanairship.instance = new NsUrbanairship(); | ||
return NsUrbanairship; | ||
}()); | ||
NsUrbanairship.instance = new NsUrbanairship(); | ||
exports.NsUrbanairship = NsUrbanairship; | ||
//# sourceMappingURL=urbanairship.ios.js.map |
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
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
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
419697
4
25
7265
171