Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apn

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apn - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

11

lib/notification.js

@@ -295,9 +295,8 @@ /**

if (this.truncateAtWordEnd === true) {
var lastSpaceIndexInResult = result.lastIndexOf(' ');
var lastSpaceIndexInResult = result.lastIndexOf(' ');
// Only truncate the string further if the remainder isn't a whole word
// which we can tell by checking the *next* character in the original string
if(lastSpaceIndexInResult != -1 && string.charAt(result.length + 1) != ' '){
result=result.substr(0,lastSpaceIndexInResult);
}
// Only truncate the string further if the remainder isn't a whole word
// which we can tell by checking the *next* character in the original string
if(lastSpaceIndexInResult != -1 && string.charAt(result.length + 1) != ' '){
result=result.substr(0,lastSpaceIndexInResult);
}

@@ -304,0 +303,0 @@ }

{
"name": "apn",
"description": "An interface to the Apple Push Notification service for Node.js",
"version": "1.4.0",
"version": "1.4.1",
"author": "Andrew Naylor <argon@mkbot.net>",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc