autopilot-sdk
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -135,3 +135,3 @@ 'use strict'; | ||
var value = obj[key]; | ||
if ((typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object') { | ||
if ((typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object' && !(value instanceof Date)) { | ||
throw new Error('Invalid value type: expected values are string, integer, date, boolean, float'); | ||
@@ -138,0 +138,0 @@ } |
@@ -49,3 +49,3 @@ import axios from 'axios'; | ||
const value = obj[key]; | ||
if (typeof value === 'object') { | ||
if (typeof value === 'object' && !(value instanceof Date)) { | ||
throw new Error( | ||
@@ -52,0 +52,0 @@ 'Invalid value type: expected values are string, integer, date, boolean, float', |
{ | ||
"name": "autopilot-sdk", | ||
"description": "Node SDK for Autopilot", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"author": "Samuel Amoah <sa.am@programmer.net>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
34796