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

mpns

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mpns - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

42

lib/mpns.js

@@ -33,7 +33,7 @@ // Copyright 2011 Jeff Wilcox

return new PushMessage('toast', '2', 'toast', options);
}
};
var LiveTile = function(options) {
return new PushMessage('tile', '1', 'token', options);
}
};

@@ -47,3 +47,3 @@ var RawNotification = function(payload, options) {

return new PushMessage('raw', '3', undefined, options);
}
};

@@ -125,3 +125,3 @@ function PushMessage(pushType, quickNotificationClass, targetName, options) {

req.end();
}
};

@@ -148,3 +148,3 @@ function copyOfInterest(source, destination, fieldsOfInterest) {

}
}
};

@@ -155,3 +155,3 @@ PushMessage.prototype.validate = function() {

}
}
};

@@ -164,4 +164,4 @@ // This is a little lazy, really more needs to be escaped and I'm sure there's a standard function for that hotness too.

function getPushHeader(type) {
return '<?xml version="1.0" encoding="utf-8"?><wp:Notification xmlns:wp="WPNotification">'
+ startTag(type);
return '<?xml version="1.0" encoding="utf-8"?><wp:Notification xmlns:wp="WPNotification">' +
startTag(type);
}

@@ -187,7 +187,7 @@

var type = 'Toast';
return getPushHeader(type)
+ wrapValue(options, 'text1', 'Text1')
+ wrapValue(options, 'text2', 'Text2')
+ wrapValue(options, 'param', 'Param')
+ getPushFooter(type);
return getPushHeader(type) +
wrapValue(options, 'text1', 'Text1') +
wrapValue(options, 'text2', 'Text2') +
wrapValue(options, 'param', 'Param') +
getPushFooter(type);
}

@@ -197,10 +197,10 @@

var type = 'Tile';
return getPushHeader(type)
+ wrapValue(options, 'backgroundImage', 'BackgroundImage')
+ wrapValue(options, 'count', 'Count')
+ wrapValue(options, 'title', 'Title')
+ wrapValue(options, 'backBackgroundImage', 'BackBackgroundImage')
+ wrapValue(options, 'backTitle', 'BackTitle')
+ wrapValue(options, 'backContent', 'BackContent')
+ getPushFooter(type);
return getPushHeader(type) +
wrapValue(options, 'backgroundImage', 'BackgroundImage') +
wrapValue(options, 'count', 'Count') +
wrapValue(options, 'title', 'Title') +
wrapValue(options, 'backBackgroundImage', 'BackBackgroundImage') +
wrapValue(options, 'backTitle', 'BackTitle') +
wrapValue(options, 'backContent', 'BackContent') +
getPushFooter(type);
}

@@ -207,0 +207,0 @@

{
"name": "mpns",
"description": "A Node.js interface to the Microsoft Push Notification Service (MPNS) for Windows Phone.",
"version": "1.0.1",
"version": "1.0.2",
"author": "Jeff Wilcox <jeffwilcox+github@gmail.com>",

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

@@ -111,1 +111,5 @@ #mpns

* Adds raw notification type support.
1.0.2:
* Fixes some small formatting issues.
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