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

@turf/line-chunk

Package Overview
Dependencies
Maintainers
6
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-chunk - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

2

dist/es/index.js
import length from '@turf/length';
import lineSliceAlong from '@turf/line-slice-along';
import { flattenEach } from '@turf/meta';
import { featureCollection, isObject } from '@turf/helpers';
import { isObject, featureCollection } from '@turf/helpers';

@@ -6,0 +6,0 @@ /**

'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var length = _interopDefault(require('@turf/length'));
var lineSliceAlong = _interopDefault(require('@turf/line-slice-along'));
var length = require('@turf/length');
var lineSliceAlong = require('@turf/line-slice-along');
var meta = require('@turf/meta');
var helpers = require('@turf/helpers');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var length__default = /*#__PURE__*/_interopDefaultLegacy(length);
var lineSliceAlong__default = /*#__PURE__*/_interopDefaultLegacy(lineSliceAlong);
/**

@@ -68,3 +71,3 @@ * Divides a {@link LineString} into chunks of a specified length.

function sliceLineSegments(line, segmentLength, units, callback) {
var lineLength = length(line, { units: units });
var lineLength = length__default['default'](line, { units: units });

@@ -82,3 +85,3 @@ // If the line is shorter than the segment length then the orginal line is returned.

for (var i = 0; i < numberOfSegments; i++) {
var outline = lineSliceAlong(
var outline = lineSliceAlong__default['default'](
line,

@@ -94,1 +97,2 @@ segmentLength * i,

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

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

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

@@ -56,3 +57,3 @@ "access": "public"

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

@@ -66,8 +67,8 @@ "load-json-file": "*",

"dependencies": {
"@turf/helpers": "^6.4.0",
"@turf/length": "^6.4.0",
"@turf/line-slice-along": "^6.4.0",
"@turf/meta": "^6.4.0"
"@turf/helpers": "^6.5.0",
"@turf/length": "^6.5.0",
"@turf/line-slice-along": "^6.5.0",
"@turf/meta": "^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