nomics-platform
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -102,3 +102,3 @@ const axios = require('axios') | ||
// assertTimestampProperty asserts that property `p` of object `o` is a valid RFC3339 timestamp | ||
// assertTimestampProperty asserts that property `p` of object `o` is a valid RFC3339 UTC timestamp | ||
assertTimestampProperty: function (o, p, opts = {}) { | ||
@@ -113,3 +113,3 @@ opts = Object.assign({ required: true }, opts) | ||
valid = new Date(d.toISOString()).getTime() === d.getTime() | ||
valid = valid && o[p].slice(-1) === 'Z' | ||
validUTC = valid && o[p].slice(-1) === 'Z' | ||
} catch (e) { | ||
@@ -119,2 +119,3 @@ err = e.toString() + ' ' | ||
au.assert(valid, `Expected '${p}' to be a valid RFC3339 Timestamp: ${err}${JSON.stringify(o)}`) | ||
au.assert(validUTC, `Expected '${p}' to be a valid UTC Timestamp ending in 'Z': ${err}${JSON.stringify(o)}`) | ||
} | ||
@@ -121,0 +122,0 @@ }, |
{ | ||
"name": "nomics-platform", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Nomics Platform Toolkit", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
31593
703