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.4 to 4.0.5

2

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

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -6,10 +6,17 @@ const _ = require('lodash');

const collectionCrs = _.get(collection, 'crs.properties.name');
if (!collectionCrs) return;
if (!collectionCrs) {
return;
}
const crs = collectionCrs.toLowerCase().replace(/urn:ogc:def:crs:/, '');
if (crs === OGC_WGS84) return;
if (crs === OGC_WGS84) {
return;
}
const crsRegex = /(?<authority>[a-z]+)(::|:)(?<srid>.+)/;
const crsRegex = /(?<authority>epsg|esri|sr-org|iau2000)(::|:)(?<srid>.+)/;
const result = crsRegex.exec(crs);
if (!result) return;
if (!result) {
return;
}
const { groups: { srid } } = result;

@@ -16,0 +23,0 @@ return srid;

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