Skip to content

Commit

Permalink
chore(all): prepare release 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Apr 27, 2017
1 parent 8bb1a87 commit 720db64
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 17 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-i18n",
"version": "1.5.1",
"version": "1.6.0",
"description": "A plugin that provides i18n support.",
"keywords": [
"aurelia",
Expand Down
4 changes: 2 additions & 2 deletions dist/amd/df.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['exports', 'aurelia-logging', './i18n', 'aurelia-templating-resources', 'aurelia-binding'], function (exports, _aureliaLogging, _i18n, _aureliaTemplatingResources, _aureliaBinding) {
define(['exports', 'aurelia-logging', './i18n', 'aurelia-templating-resources', 'aurelia-binding', './utils'], function (exports, _aureliaLogging, _i18n, _aureliaTemplatingResources, _aureliaBinding, _utils) {
'use strict';

Object.defineProperty(exports, "__esModule", {
Expand Down Expand Up @@ -52,7 +52,7 @@ define(['exports', 'aurelia-logging', './i18n', 'aurelia-templating-resources',
df = this.service.df(dfOrOptions, locale || this.service.getLocale());
}

if (typeof value === 'string' && isNaN(value) && !Number.isInteger(value)) {
if (typeof value === 'string' && isNaN(value) && !(0, _utils.isInteger)(value)) {
value = new Date(value);
}

Expand Down
6 changes: 5 additions & 1 deletion dist/amd/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(['exports', 'aurelia-dependency-injection'], function (exports, _aureliaD
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LazyOptional = exports.assignObjectToKeys = exports.extend = undefined;
exports.LazyOptional = exports.assignObjectToKeys = exports.isInteger = exports.extend = undefined;



Expand All @@ -24,6 +24,10 @@ define(['exports', 'aurelia-dependency-injection'], function (exports, _aureliaD
return destination;
};

var isInteger = exports.isInteger = Number.isInteger || function (value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
};

var assignObjectToKeys = exports.assignObjectToKeys = function assignObjectToKeys(root, obj) {
if (obj === undefined || obj === null) {
return obj;
Expand Down
1 change: 1 addition & 0 deletions dist/aurelia-i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
/*eslint no-irregular-whitespace: 0*/
export declare const translations: any;
export declare let extend: any;
export declare const isInteger: any;
export declare let assignObjectToKeys: any;
export declare class LazyOptional {
constructor(key?: any);
Expand Down
8 changes: 7 additions & 1 deletion dist/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ export let extend = (destination, source) => {
return destination;
};

export const isInteger = Number.isInteger || function(value) {
return typeof value === 'number' &&
isFinite(value) &&
Math.floor(value) === value;
};

export let assignObjectToKeys = (root, obj) => {
if (obj === undefined || obj === null) {
return obj;
Expand Down Expand Up @@ -860,7 +866,7 @@ export class DfValueConverter {
df = this.service.df(dfOrOptions, locale || this.service.getLocale());
}

if (typeof value === 'string' && isNaN(value) && !Number.isInteger(value)) {
if (typeof value === 'string' && isNaN(value) && !isInteger(value)) {
value = new Date(value);
}

Expand Down
4 changes: 3 additions & 1 deletion dist/commonjs/df.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var _aureliaTemplatingResources = require('aurelia-templating-resources');

var _aureliaBinding = require('aurelia-binding');

var _utils = require('./utils');

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }


Expand Down Expand Up @@ -44,7 +46,7 @@ var DfValueConverter = exports.DfValueConverter = function () {
df = this.service.df(dfOrOptions, locale || this.service.getLocale());
}

if (typeof value === 'string' && isNaN(value) && !Number.isInteger(value)) {
if (typeof value === 'string' && isNaN(value) && !(0, _utils.isInteger)(value)) {
value = new Date(value);
}

Expand Down
6 changes: 5 additions & 1 deletion dist/commonjs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LazyOptional = exports.assignObjectToKeys = exports.extend = undefined;
exports.LazyOptional = exports.assignObjectToKeys = exports.isInteger = exports.extend = undefined;

var _dec, _class;

Expand All @@ -21,6 +21,10 @@ var extend = exports.extend = function extend(destination, source) {
return destination;
};

var isInteger = exports.isInteger = Number.isInteger || function (value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
};

var assignObjectToKeys = exports.assignObjectToKeys = function assignObjectToKeys(root, obj) {
if (obj === undefined || obj === null) {
return obj;
Expand Down
3 changes: 2 additions & 1 deletion dist/es2015/df.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as LogManager from 'aurelia-logging';
import { I18N } from './i18n';
import { SignalBindingBehavior } from 'aurelia-templating-resources';
import { ValueConverter } from 'aurelia-binding';
import { isInteger } from './utils';

export let DfValueConverter = class DfValueConverter {
static inject() {
Expand All @@ -25,7 +26,7 @@ export let DfValueConverter = class DfValueConverter {
df = this.service.df(dfOrOptions, locale || this.service.getLocale());
}

if (typeof value === 'string' && isNaN(value) && !Number.isInteger(value)) {
if (typeof value === 'string' && isNaN(value) && !isInteger(value)) {
value = new Date(value);
}

Expand Down
4 changes: 4 additions & 0 deletions dist/es2015/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export let extend = (destination, source) => {
return destination;
};

export const isInteger = Number.isInteger || function (value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
};

export let assignObjectToKeys = (root, obj) => {
if (obj === undefined || obj === null) {
return obj;
Expand Down
3 changes: 2 additions & 1 deletion dist/native-modules/df.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as LogManager from 'aurelia-logging';
import { I18N } from './i18n';
import { SignalBindingBehavior } from 'aurelia-templating-resources';
import { ValueConverter } from 'aurelia-binding';
import { isInteger } from './utils';

export var DfValueConverter = function () {
DfValueConverter.inject = function inject() {
Expand All @@ -30,7 +31,7 @@ export var DfValueConverter = function () {
df = this.service.df(dfOrOptions, locale || this.service.getLocale());
}

if (typeof value === 'string' && isNaN(value) && !Number.isInteger(value)) {
if (typeof value === 'string' && isNaN(value) && !isInteger(value)) {
value = new Date(value);
}

Expand Down
4 changes: 4 additions & 0 deletions dist/native-modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export var extend = function extend(destination, source) {
return destination;
};

export var isInteger = Number.isInteger || function (value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
};

export var assignObjectToKeys = function assignObjectToKeys(root, obj) {
if (obj === undefined || obj === null) {
return obj;
Expand Down
8 changes: 5 additions & 3 deletions dist/system/df.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

System.register(['aurelia-logging', './i18n', 'aurelia-templating-resources', 'aurelia-binding'], function (_export, _context) {
System.register(['aurelia-logging', './i18n', 'aurelia-templating-resources', 'aurelia-binding', './utils'], function (_export, _context) {
"use strict";

var LogManager, I18N, SignalBindingBehavior, ValueConverter, DfValueConverter, DfBindingBehavior;
var LogManager, I18N, SignalBindingBehavior, ValueConverter, isInteger, DfValueConverter, DfBindingBehavior;



Expand All @@ -16,6 +16,8 @@ System.register(['aurelia-logging', './i18n', 'aurelia-templating-resources', 'a
SignalBindingBehavior = _aureliaTemplatingResources.SignalBindingBehavior;
}, function (_aureliaBinding) {
ValueConverter = _aureliaBinding.ValueConverter;
}, function (_utils) {
isInteger = _utils.isInteger;
}],
execute: function () {
_export('DfValueConverter', DfValueConverter = function () {
Expand Down Expand Up @@ -43,7 +45,7 @@ System.register(['aurelia-logging', './i18n', 'aurelia-templating-resources', 'a
df = this.service.df(dfOrOptions, locale || this.service.getLocale());
}

if (typeof value === 'string' && isNaN(value) && !Number.isInteger(value)) {
if (typeof value === 'string' && isNaN(value) && !isInteger(value)) {
value = new Date(value);
}

Expand Down
8 changes: 7 additions & 1 deletion dist/system/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
System.register(['aurelia-dependency-injection'], function (_export, _context) {
"use strict";

var resolver, _dec, _class, _typeof, extend, assignObjectToKeys, LazyOptional;
var resolver, _dec, _class, _typeof, extend, isInteger, assignObjectToKeys, LazyOptional;



Expand All @@ -28,6 +28,12 @@ System.register(['aurelia-dependency-injection'], function (_export, _context) {

_export('extend', extend);

_export('isInteger', isInteger = Number.isInteger || function (value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
});

_export('isInteger', isInteger);

_export('assignObjectToKeys', assignObjectToKeys = function assignObjectToKeys(root, obj) {
if (obj === undefined || obj === null) {
return obj;
Expand Down
8 changes: 6 additions & 2 deletions dist/temp/aurelia-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RtBindingBehavior = exports.RtValueConverter = exports.TBindingBehavior = exports.TCustomAttribute = exports.TParamsCustomAttribute = exports.TValueConverter = exports.RelativeTime = exports.NfBindingBehavior = exports.NfValueConverter = exports.DfBindingBehavior = exports.DfValueConverter = exports.BaseI18N = exports.Backend = exports.I18N = exports.LazyOptional = exports.assignObjectToKeys = exports.extend = exports.translations = undefined;
exports.RtBindingBehavior = exports.RtValueConverter = exports.TBindingBehavior = exports.TCustomAttribute = exports.TParamsCustomAttribute = exports.TValueConverter = exports.RelativeTime = exports.NfBindingBehavior = exports.NfValueConverter = exports.DfBindingBehavior = exports.DfValueConverter = exports.BaseI18N = exports.Backend = exports.I18N = exports.LazyOptional = exports.assignObjectToKeys = exports.isInteger = exports.extend = exports.translations = undefined;

var _dec, _class, _class2, _temp, _class3, _temp2, _class4, _temp3, _dec2, _class5, _class6, _temp4, _dec3, _class7, _class8, _temp5, _class9, _temp6;

Expand Down Expand Up @@ -456,6 +456,10 @@ var extend = exports.extend = function extend(destination, source) {
return destination;
};

var isInteger = exports.isInteger = Number.isInteger || function (value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
};

var assignObjectToKeys = exports.assignObjectToKeys = function assignObjectToKeys(root, obj) {
if (obj === undefined || obj === null) {
return obj;
Expand Down Expand Up @@ -875,7 +879,7 @@ var DfValueConverter = exports.DfValueConverter = function () {
df = this.service.df(dfOrOptions, locale || this.service.getLocale());
}

if (typeof value === 'string' && isNaN(value) && !Number.isInteger(value)) {
if (typeof value === 'string' && isNaN(value) && !isInteger(value)) {
value = new Date(value);
}

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.6.0"></a>
# [1.6.0](https://github.com/aurelia/i18n/compare/1.5.1...v1.6.0) (2017-04-27)


### Bug Fixes

* **df:** Number.isInteger helper ([8bb1a87](https://github.com/aurelia/i18n/commit/8bb1a87))



<a name="1.5.0"></a>
# [1.5.0](https://github.com/aurelia/i18n/compare/1.4.0...v1.5.0) (2017-04-10)

Expand Down
2 changes: 1 addition & 1 deletion doc/api.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-i18n",
"version": "1.5.1",
"version": "1.6.0",
"description": "A plugin that provides i18n support.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 720db64

Please sign in to comment.