featureservice
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -5,2 +5,7 @@ # Change Log | ||
## [1.2.6] - 2015-09-02 | ||
### Fixed | ||
* Don't set a layer id with a query string | ||
* Don't set a url with a query string | ||
## [1.2.5] - 2015-09-02 | ||
@@ -112,2 +117,3 @@ ### Fixed | ||
[1.2.6]: https://github.com/koopjs/featureservice/compare/v1.2.5...v1.2.6 | ||
[1.2.5]: https://github.com/koopjs/featureservice/compare/v1.2.4...v1.2.5 | ||
@@ -114,0 +120,0 @@ [1.2.4]: https://github.com/koopjs/featureservice/compare/v1.2.3...v1.2.4 |
@@ -27,8 +27,11 @@ var queue = require('async').queue | ||
if (parseInt(end, 10) >= 0) { | ||
layer = end | ||
// protect against layers coming in with query strings | ||
layer = end.split('?')[0] | ||
var len = ('' + layer).length | ||
url = url.substring(0, url.length - ((len || 2) + 1)) | ||
// protect against urls with query strings | ||
// TODO clean up this confusing logic | ||
url = url.substring(0, url.length - ((len || 2) + 1)).split('?')[0] | ||
} | ||
this.url = url | ||
this.url = url.split('?')[0] | ||
this.options = options || {} | ||
@@ -35,0 +38,0 @@ this.options.size = this.options.size || 5000 |
{ | ||
"name": "featureservice", | ||
"description": "Get all features from an Esri Feature Service", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"author": "Chris Helm", | ||
@@ -6,0 +6,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1259382
29
1584