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

bbox-fns

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbox-fns - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

validate.js

4

index.js

@@ -20,2 +20,3 @@ "use_strict";

const scale = require("./scale.js");
const validate = require("./validate.js");

@@ -39,3 +40,4 @@ const bboxfns = {

reproject,
scale
scale,
validate
};

@@ -42,0 +44,0 @@

{
"name": "bbox-fns",
"version": "0.11.0",
"version": "0.12.0",
"description": "Light-weight JavaScript Bounding Box Utility Functions",

@@ -24,3 +24,4 @@ "main": "index.js",

"precise/divide.js",
"precise/reproject.js"
"precise/reproject.js",
"validate.js"
],

@@ -48,4 +49,4 @@ "scripts": {

"dependencies": {
"preciso": "^0.11.0"
"preciso": "^0.12.0"
}
}

@@ -24,2 +24,3 @@ # bbox-fns: work in progress

- [reproject](#reproject)
- [validate](#validate)

@@ -222,2 +223,18 @@ ### bboxArea

### validate
```js
import validate from "bbox-fns/validate.js";
validate([-180, 0, 180, 45])
true
// invalid length
validate([-180, 0, 0, 180, 45, 0])
false
// xmin greater than xmax
validate([-45, 10, -90, 20])
false
```
### projection support

@@ -224,0 +241,0 @@ If you are looking for a library with greater projection support and a class-based approach, try [geo-extent](https://github.com/danieljdufour/geo-extent)!

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