Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

nomics-platform

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nomics-platform - npm Package Compare versions

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": [