@devo/js-helper
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -5,2 +5,6 @@ # Devo JavaScript SDK Helper Library | ||
## Version 1.4.0 | ||
* Accept option `ipAsString`. | ||
## Version 1.3.0 | ||
@@ -35,2 +39,1 @@ | ||
First public release. | ||
@@ -58,2 +58,3 @@ 'use strict'; | ||
* - destination: optional destination for the data. | ||
* - ipAsString: optional return ip as string. | ||
* @param format optionally the format to use, has precedence on | ||
@@ -86,2 +87,3 @@ * options.format. | ||
} | ||
if (options.ipAsString) opc.body.ipAsString = options.ipAsString; | ||
if (options.destination) { | ||
@@ -186,2 +188,1 @@ opc.body.destination = { | ||
} | ||
{ | ||
"name": "@devo/js-helper", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Devo JavaScript helper library", | ||
@@ -5,0 +5,0 @@ "author": "Devo Dev Team", |
@@ -181,3 +181,16 @@ 'use strict'; | ||
}); | ||
it('parses valid config with ipAsString', () => { | ||
const opc = config.create({ | ||
url, | ||
apiKey, | ||
apiSecret, | ||
}).parseQuery({ | ||
dateFrom, | ||
dateTo, | ||
query, | ||
ipAsString: true | ||
}); | ||
config.validate(opc).should.equal(true); | ||
}); | ||
}); | ||
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14611
370
1