From 893fbb64fe4eddd2a2a160ec3a13037695d57458 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Thu, 12 Nov 2015 13:28:30 -0500 Subject: [PATCH] chore(all): prepare release 0.17.2 --- bower.json | 2 +- dist/amd/sanitize-html.js | 2 +- dist/commonjs/sanitize-html.js | 2 +- dist/es6/sanitize-html.js | 2 +- dist/system/sanitize-html.js | 2 +- doc/CHANGELOG.md | 8 ++++++++ package.json | 2 +- 7 files changed, 14 insertions(+), 6 deletions(-) diff --git a/bower.json b/bower.json index c3f3aca..6a442e6 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-resources", - "version": "0.17.1", + "version": "0.17.2", "description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.", "keywords": [ "aurelia", diff --git a/dist/amd/sanitize-html.js b/dist/amd/sanitize-html.js index 6cf92a9..c4d6dc7 100644 --- a/dist/amd/sanitize-html.js +++ b/dist/amd/sanitize-html.js @@ -13,7 +13,7 @@ define(['exports', 'aurelia-binding', 'aurelia-dependency-injection', './html-sa } SanitizeHTMLValueConverter.prototype.toView = function toView(untrustedMarkup) { - if (untrustedMarkup === null) { + if (untrustedMarkup === null || untrustedMarkup === undefined) { return null; } diff --git a/dist/commonjs/sanitize-html.js b/dist/commonjs/sanitize-html.js index f5f97a1..50a4014 100644 --- a/dist/commonjs/sanitize-html.js +++ b/dist/commonjs/sanitize-html.js @@ -18,7 +18,7 @@ var SanitizeHTMLValueConverter = (function () { } SanitizeHTMLValueConverter.prototype.toView = function toView(untrustedMarkup) { - if (untrustedMarkup === null) { + if (untrustedMarkup === null || untrustedMarkup === undefined) { return null; } diff --git a/dist/es6/sanitize-html.js b/dist/es6/sanitize-html.js index 04aefe7..2cec2d5 100644 --- a/dist/es6/sanitize-html.js +++ b/dist/es6/sanitize-html.js @@ -10,7 +10,7 @@ export class SanitizeHTMLValueConverter { } toView(untrustedMarkup) { - if (untrustedMarkup === null) { + if (untrustedMarkup === null || untrustedMarkup === undefined) { return null; } diff --git a/dist/system/sanitize-html.js b/dist/system/sanitize-html.js index cee6c03..f6d7578 100644 --- a/dist/system/sanitize-html.js +++ b/dist/system/sanitize-html.js @@ -22,7 +22,7 @@ System.register(['aurelia-binding', 'aurelia-dependency-injection', './html-sani } SanitizeHTMLValueConverter.prototype.toView = function toView(untrustedMarkup) { - if (untrustedMarkup === null) { + if (untrustedMarkup === null || untrustedMarkup === undefined) { return null; } diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 38083e9..2a01f81 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +### 0.17.2 (2015-11-12) + + +#### Bug Fixes + +* **sanitize-html:** change toView to return null when untrustedMarkup is undefined ([ab684b08](http://github.com/aurelia/templating-resources/commit/ab684b08b429c71e9209f836ee2632084e3bdf17)) + + ### 0.17.1 (2015-11-11) diff --git a/package.json b/package.json index 2cab3ae..2bfd476 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-resources", - "version": "0.17.1", + "version": "0.17.2", "description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.", "keywords": [ "aurelia",