reflect-node
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "reflect-node", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Node interface for the Reflect API", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -24,4 +24,9 @@ /** | ||
const params = Object.keys(options).reduce((opts, option) => { | ||
opts[option] = JSON.stringify(options[option]); | ||
let value = options[option]; | ||
if (typeof value !== 'string') { | ||
value = JSON.stringify(value); | ||
} | ||
opts[option] = value; | ||
return opts; | ||
@@ -28,0 +33,0 @@ }, {}); |
@@ -12,3 +12,3 @@ const chai = require('chai'); | ||
const rep = new Reporting(mockClient); | ||
const options = { test: true }; | ||
const options = { test: true, timezone: 'Etc/UTC' }; | ||
@@ -24,2 +24,3 @@ rep.report('my-project', ['My dimension'], ['My metric'], options); | ||
test: 'true', | ||
timezone: 'Etc/UTC', | ||
}); | ||
@@ -26,0 +27,0 @@ }); |
1134615
1724