Comparing version 1.0.1 to 1.0.2
@@ -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. |
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
26808
115