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

@turf/line-slice

Package Overview
Dependencies
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-slice - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

13

dist/js/index.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var invariant = require('@turf/invariant');
var helpers = require('@turf/helpers');
var nearestPointOnLine = _interopDefault(require('@turf/nearest-point-on-line'));
var nearestPointOnLine = require('@turf/nearest-point-on-line');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var nearestPointOnLine__default = /*#__PURE__*/_interopDefaultLegacy(nearestPointOnLine);
/**

@@ -44,4 +46,4 @@ * Takes a {@link LineString|line}, a start {@link Point}, and a stop point

var startVertex = nearestPointOnLine(line, startPt);
var stopVertex = nearestPointOnLine(line, stopPt);
var startVertex = nearestPointOnLine__default['default'](line, startPt);
var stopVertex = nearestPointOnLine__default['default'](line, stopPt);
var ends;

@@ -66,1 +68,2 @@ if (startVertex.properties.index <= stopVertex.properties.index) {

module.exports = lineSlice;
module.exports.default = lineSlice;
{
"name": "@turf/line-slice",
"version": "6.4.0",
"version": "6.5.0",
"description": "turf line-slice module",

@@ -15,2 +15,3 @@ "author": "Turf Authors",

},
"funding": "https://opencollective.com/turf",
"publishConfig": {

@@ -51,3 +52,3 @@ "access": "public"

"devDependencies": {
"@turf/truncate": "^6.4.0",
"@turf/truncate": "^6.5.0",
"benchmark": "*",

@@ -61,7 +62,7 @@ "load-json-file": "*",

"dependencies": {
"@turf/helpers": "^6.4.0",
"@turf/invariant": "^6.4.0",
"@turf/nearest-point-on-line": "^6.4.0"
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"@turf/nearest-point-on-line": "^6.5.0"
},
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac"
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}
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