New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

geobatch

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geobatch - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

20

CHANGELOG.md

@@ -0,1 +1,21 @@

<a name="1.4.2"></a>
## [1.4.2](https://github.com/ubilabs/node-geobatch/compare/1.4.1...v1.4.2) (2016-07-14)
### Bug Fixes
* **geocode-stream:** fix a bug with low QPS limits ([48fe3fd](https://github.com/ubilabs/node-geobatch/commit/48fe3fd))
<a name="1.4.2"></a>
## [1.4.2](https://github.com/ubilabs/node-geobatch/compare/1.4.1...v1.4.2) (2016-07-14)
### Bug Fixes
* **geocode-stream:** fix a bug with low QPS limits ([48fe3fd](https://github.com/ubilabs/node-geobatch/commit/48fe3fd))
### 1.4.1 (2016-07-07)

@@ -2,0 +22,0 @@

13

dist/geocode-stream.js

@@ -21,6 +21,2 @@ 'use strict';

var _defaults = require('./defaults');
var _defaults2 = _interopRequireDefault(_defaults);
/**

@@ -37,2 +33,3 @@ * A streaming object for the geocode

* @param {Object} geocoder A geocoder.
* @param {Number} queriesPerSecond The number of queries per second
* @param {Object} stats A statistics object.

@@ -44,10 +41,10 @@ * @param {Function} accessor An accessor function that returns the address

function GeocodeStream(geocoder, stats) {
var accessor = arguments.length <= 2 || arguments[2] === undefined ? function (address) {
function GeocodeStream(geocoder, queriesPerSecond, stats) {
var accessor = arguments.length <= 3 || arguments[3] === undefined ? function (address) {
return address;
} : arguments[2];
} : arguments[3];
_classCallCheck(this, GeocodeStream);
_get(Object.getPrototypeOf(GeocodeStream.prototype), 'constructor', this).call(this, _defaults2['default'].maxQueriesPerSecond, { objectMode: true });
_get(Object.getPrototypeOf(GeocodeStream.prototype), 'constructor', this).call(this, queriesPerSecond, { objectMode: true });

@@ -54,0 +51,0 @@ this.geocoder = geocoder;

@@ -82,3 +82,5 @@ /* eslint-disable one-var */

* Constructs a geocoder.
* @param {Object} options Geocoder options.
* @param {Object} options Geocoder options.
* @param {Object} geocoder The Google geocoding API class
* @param {Object} GeoCache The Cache class
*/

@@ -130,2 +132,3 @@

* @param {Function} reject The Promise reject function
* @param {Number} retries The number of times this query has been tried
* @return {?} Something to get out

@@ -152,2 +155,3 @@ */

this.startGeocode(address, resolve, reject, retries);
return null;
}

@@ -189,2 +193,3 @@

* @param {Function} reject The Promise reject function
* @param {Number} retries The number of times this query has been tried
*/

@@ -191,0 +196,0 @@ }, {

@@ -92,2 +92,3 @@ /* eslint-disable one-var */

this.accessor = accessor;
this.queriesPerSecond = queriesPerSecond;
}

@@ -130,3 +131,3 @@

var geocodeStream = new this.GeocodeStream(this.geocoder, stats, this.accessor);
var geocodeStream = new this.GeocodeStream(this.geocoder, this.queriesPerSecond, stats, this.accessor);
inputStream.pipe(geocodeStream);

@@ -133,0 +134,0 @@

@@ -33,3 +33,3 @@ 'use strict';

* Inits a google maps API instance with give clientID and privateKey.
* @param {Object} Config Object
* @param {Object} options Config Object
* @return {Object} Instance of google maps API

@@ -36,0 +36,0 @@ */

@@ -117,2 +117,3 @@ 'use strict';

this.ondrain = done;
return null;
}

@@ -119,0 +120,0 @@

{
"name": "geobatch",
"description": "Batch geocode addresses from multiple sources.",
"version": "1.4.1",
"version": "1.4.2",
"license": "MIT",
"author": {

@@ -32,3 +33,3 @@ "name": "Robert Katzki",

"test": "mocha --compilers js:babel-core/register",
"generatechangelog": "conventional-changelog-generator",
"generatechangelog": "conventional-changelog -i CHANGELOG.md -s -p angular",
"commitchangelog": "git add CHANGELOG.md && git commit -m \"chore(changelog): new version\" && git push origin master",

@@ -42,3 +43,3 @@ "changelog": "npm run generatechangelog && git reset package.json && npm run commitchangelog && git add package.json",

"cyclist": "^1.0.1",
"flat-file-db": "^0.1.4",
"flat-file-db": "^1.0.0",
"googlemaps": "^1.6.0",

@@ -50,10 +51,8 @@ "into-stream": "^2.0.0"

"babel-core": "^5.8.25",
"conventional-changelog-generator": "0.0.3",
"eslint": "^1.6.0",
"into-stream": "^2.0.0",
"conventional-changelog-cli": "^1.2.0",
"eslint": "^2.13.1",
"lie": "^3.0.1",
"mocha": "2.1.0",
"release-it": "0.0.15",
"should": "^7.1.0",
"should-promised": "^0.1.0",
"mocha": "^2.5.0",
"release-it": "^2.4.0",
"should": "^9.0.0",
"sinon": "^1.17.1",

@@ -60,0 +59,0 @@ "stream-assert": "^2.0.3"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc