Skip to content

Commit

Permalink
chore(all): prepare release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Apr 5, 2017
1 parent 17d2eb7 commit f151cf1
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-pal-browser",
"version": "1.2.0",
"version": "1.2.1",
"description": "The browser-specific implementation of Aurelia's platform abstraction layer.",
"keywords": [
"aurelia",
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/aurelia-pal-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
if (typeof FEATURE_NO_IE === 'undefined') {
var test = function test() {};

if (!test.name) {
if (test.name === undefined) {
Object.defineProperty(Function.prototype, 'name', {
get: function get() {
var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
Expand Down
4 changes: 3 additions & 1 deletion dist/aurelia-pal-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ if (typeof FEATURE_NO_IE === 'undefined') {
// Fix Function#name on browsers that do not support it (IE):
function test() {}

if (!test.name) {
// Fix: don't shorten to `!test.name` as minifiers may remove the `test` function name,
// which results in `test.name === ''`, which is falsy.
if (test.name === undefined) {
Object.defineProperty(Function.prototype, 'name', {
get: function() {
let name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/aurelia-pal-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var _PLATFORM = exports._PLATFORM = {
if (typeof FEATURE_NO_IE === 'undefined') {
var test = function test() {};

if (!test.name) {
if (test.name === undefined) {
Object.defineProperty(Function.prototype, 'name', {
get: function get() {
var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
Expand Down
2 changes: 1 addition & 1 deletion dist/es2015/aurelia-pal-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const _PLATFORM = {
if (typeof FEATURE_NO_IE === 'undefined') {
function test() {}

if (!test.name) {
if (test.name === undefined) {
Object.defineProperty(Function.prototype, 'name', {
get: function () {
let name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
Expand Down
2 changes: 1 addition & 1 deletion dist/native-modules/aurelia-pal-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export var _PLATFORM = {
if (typeof FEATURE_NO_IE === 'undefined') {
var test = function test() {};

if (!test.name) {
if (test.name === undefined) {
Object.defineProperty(Function.prototype, 'name', {
get: function get() {
var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
Expand Down
2 changes: 1 addition & 1 deletion dist/system/aurelia-pal-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ System.register(['aurelia-pal'], function (_export, _context) {
if (typeof FEATURE_NO_IE === 'undefined') {
test = function test() {};

if (!test.name) {
if (test.name === undefined) {
Object.defineProperty(Function.prototype, 'name', {
get: function get() {
var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
Expand Down
10 changes: 10 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.2.1"></a>
## [1.2.1](https://github.com/aurelia/pal-browser/compare/1.2.0...v1.2.1) (2017-04-05)


### Bug Fixes

* **pal-browser:** regression in Function.name polyfill on iOS ([#20](https://github.com/aurelia/pal-browser/issues/20)) ([17d2eb7](https://github.com/aurelia/pal-browser/commit/17d2eb7))



<a name="1.2.0"></a>
# [1.2.0](https://github.com/aurelia/pal-browser/compare/1.1.0...v1.2.0) (2017-03-23)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-pal-browser",
"version": "1.2.0",
"version": "1.2.1",
"description": "The browser-specific implementation of Aurelia's platform abstraction layer.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit f151cf1

Please sign in to comment.