@angular-builders/timestamp
Advanced tools
Comparing version 9.0.2-beta.1 to 9.0.2
@@ -6,18 +6,14 @@ # Change Log | ||
## <small>9.0.2-beta.1 (2020-04-20)</small> | ||
## <small>9.0.2 (2020-06-23)</small> | ||
* chore(deps): bump ts-node from 8.8.2 to 8.9.0 ([c78c0d3](https://github.com/just-jeb/angular-builders/tree/master/packages/timestamp/commit/c78c0d3)) | ||
**Note:** Version bump only for package @angular-builders/timestamp | ||
## <small>9.0.2-beta.1 (2020-04-20)</small> | ||
- chore(deps): bump ts-node from 8.8.2 to 8.9.0 ([c78c0d3](https://github.com/just-jeb/angular-builders/tree/master/packages/timestamp/commit/c78c0d3)) | ||
## <small>9.0.2-beta.0 (2020-04-10)</small> | ||
* chore(deps-dev): bump karma from 4.4.1 to 5.0.1 ([ca08d01](https://github.com/just-jeb/angular-builders/tree/master/packages/timestamp/commit/ca08d01)) | ||
- chore(deps-dev): bump karma from 4.4.1 to 5.0.1 ([ca08d01](https://github.com/just-jeb/angular-builders/tree/master/packages/timestamp/commit/ca08d01)) | ||
## <small>9.0.1 (2020-04-05)</small> | ||
@@ -24,0 +20,0 @@ |
@@ -27,3 +27,3 @@ "use strict"; | ||
if (typ.jsonToJS === undefined) { | ||
var map = {}; | ||
const map = {}; | ||
typ.props.forEach((p) => map[p.json] = { key: p.js, typ: p.typ }); | ||
@@ -36,3 +36,3 @@ typ.jsonToJS = map; | ||
if (typ.jsToJSON === undefined) { | ||
var map = {}; | ||
const map = {}; | ||
typ.props.forEach((p) => map[p.js] = { key: p.json, typ: p.typ }); | ||
@@ -51,5 +51,5 @@ typ.jsToJSON = map; | ||
// val must validate against one typ in typs | ||
var l = typs.length; | ||
for (var i = 0; i < l; i++) { | ||
var typ = typs[i]; | ||
const l = typs.length; | ||
for (let i = 0; i < l; i++) { | ||
const typ = typs[i]; | ||
try { | ||
@@ -73,3 +73,3 @@ return transform(val, typ, getProps); | ||
} | ||
function transformDate(typ, val) { | ||
function transformDate(val) { | ||
if (val === null) { | ||
@@ -88,3 +88,3 @@ return null; | ||
} | ||
var result = {}; | ||
const result = {}; | ||
Object.getOwnPropertyNames(props).forEach(key => { | ||
@@ -124,3 +124,3 @@ const prop = props[key]; | ||
if (typ === Date && typeof val !== "number") | ||
return transformDate(typ, val); | ||
return transformDate(val); | ||
return transformPrimitive(typ, val); | ||
@@ -127,0 +127,0 @@ } |
{ | ||
"name": "@angular-builders/timestamp", | ||
"version": "9.0.2-beta.1", | ||
"version": "9.0.2", | ||
"repository": { | ||
@@ -35,3 +35,3 @@ "type": "git", | ||
}, | ||
"gitHead": "c7d2643083ebe98c2e0e652775ac2c84df92d946" | ||
"gitHead": "f59ace8f2ecea735e72a05df2c0cdd88c3c0dbea" | ||
} |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
22335
1