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.2 to 1.0.4

23

lib/mpns.js

@@ -16,4 +16,4 @@ // Copyright 2011 Jeff Wilcox

var url = require("url");
var http = require("http");
var url = require('url');
var http = require('http');

@@ -90,5 +90,5 @@ // Important note about Windows Phone 7.5:

if (res.headers) {
result.deviceConnectionStatus = res.headers["x-deviceconnectionstatus"];
result.notificationStatus = res.headers["x-notificationstatus"];
result.subscriptionStatus = res.headers["x-subscriptionstatus"];
result.deviceConnectionStatus = res.headers['x-deviceconnectionstatus'];
result.notificationStatus = res.headers['x-notificationstatus'];
result.subscriptionStatus = res.headers['x-subscriptionstatus'];
}

@@ -155,5 +155,10 @@

// 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 escapeAmpersands(str) {
return str.replace(/\&/g,'&');
function escapeXml(value) {
if (value && value.replace) {
value = value.replace(/\&/g,'&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;');
}
return value;
}

@@ -179,3 +184,3 @@

function wrapValue(object, key, name) {
return object[key] ? startTag(name) + escapeAmpersands(object[key]) + endTag(name) : null;
return object[key] ? startTag(name) + escapeXml(object[key]) + endTag(name) : null;
}

@@ -182,0 +187,0 @@

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

@@ -12,3 +12,3 @@ "contributors": [

"main": "./lib/mpns.js",
"engines": { "node":">= 0.5.0 < 0.7.0" }
"engines": { "node":">= 0.5.0 <= 0.9.0" }
}

@@ -5,4 +5,2 @@ #mpns

This is one of my very first Node.js projects so feedback and patience appreciated. I hope it helps!
## Installation

@@ -82,7 +80,11 @@

Written and maintained by [Jeff Wilcox].
NPM module written and maintained by [Jeff Wilcox] with contributions from:
- Jeff Wilcox : https://github.com/jeffwilcox
- Shawn Burke : https://github.com/shawnburke
- Jeremie Pelletier : https://github.com/ddude
## License
Copyright 2011 Jeff Wilcox
Copyright Jeff Wilcox

@@ -106,6 +108,15 @@ Licensed under the Apache License, Version 2.0 (the "License");

1.0.0:
1.0.4:
* Initial implementation offering basic live tile and toast (no raw) support.
* Adds support for Node.js through 0.9.0
1.0.3:
* Addresses issues when using numbers to set the tile data
* Cleans up string encoding functions.
1.0.2:
* Fixes some small formatting issues.
1.0.1:

@@ -115,4 +126,4 @@

1.0.2:
1.0.0:
* Fixes some small formatting issues.
* Initial implementation offering basic live tile and toast (no raw) support.
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