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

@turf/truncate

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/truncate - npm Package Compare versions

Comparing version 3.13.0 to 4.0.0

6

index.js

@@ -26,6 +26,6 @@ /**

module.exports = function (layer, precision, coordinates) {
precision = precision || 6;
coordinates = coordinates || 2;
precision = (precision !== undefined) ? precision : 6;
coordinates = (coordinates !== undefined) ? coordinates : 2;
if (layer === undefined) { throw new Error('layer is required'); }
if (layer === undefined) throw new Error('layer is required');

@@ -32,0 +32,0 @@ switch (layer.type) {

{
"name": "@turf/truncate",
"version": "3.13.0",
"version": "4.0.0",
"description": "turf truncate module",

@@ -32,2 +32,3 @@ "main": "index.js",

"devDependencies": {
"@turf/helpers": "^4.0.0",
"benchmark": "^1.0.0",

@@ -34,0 +35,0 @@ "load-json-file": "^2.0.0",

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