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

@koopjs/winnow

Package Overview
Dependencies
Maintainers
7
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koopjs/winnow - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

package.json
{
"name": "@koopjs/winnow",
"version": "4.0.0",
"version": "4.0.1",
"description": "Apply sql-like filters to GeoJSON",

@@ -12,3 +12,3 @@ "main": "src/index.js",

"test:cov": "nyc --reporter=text-summary --reporter=html tape '**/*.spec.js' | tap-spec",
"test:cov:unit": "nyc --reporter=text-summary --reporter=html tape 'lib/**/*.spec.js' | tap-spec",
"test:cov:unit": "nyc --reporter=text-summary --reporter=html tape 'src/**/*.spec.js' | tap-spec",
"benchmark": "node benchmark/index.js",

@@ -15,0 +15,0 @@ "benchmark:ci": "node benchmark/index.js | tee benchmark-result.txt"

@@ -6,3 +6,5 @@ const createAggregationSelect = require('./aggregation-select');

function createSelectSql (options = {}) {
if (options.aggregates) return createAggregationSelect(options.aggregates, options.groupBy, options.esri);
if (options.aggregates) {
return createAggregationSelect(options.aggregates, options.groupBy, options.esri);
}

@@ -12,12 +14,14 @@ return createStandardSelect(options);

function createStandardSelect (options = {}) {
function createStandardSelect (options) {
const select = options.distinct ? 'SELECT DISTINCT' : 'SELECT';
const fieldsList = createFieldsSelectFragment(options);
if (options.returnGeometry === false) {
return (`SELECT ${fieldsList} FROM ?`);
return (`${select} ${fieldsList} FROM ?`);
}
return (`SELECT ${fieldsList}, ${createGeometrySelectFragment(options)} FROM ?`);
return (`${select} ${fieldsList}, ${createGeometrySelectFragment(options)} FROM ?`);
}
module.exports = createSelectSql;
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