Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

featureservice

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

featureservice - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

test/fixtures/layerUnknown.json

6

CHANGELOG.md

@@ -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

9

index.js

@@ -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": {

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