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

@turf/random

Package Overview
Dependencies
Maintainers
0
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/random - npm Package Compare versions

Comparing version 7.0.0 to 7.1.0-alpha.7

14

dist/esm/index.js

@@ -1,4 +0,1 @@

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// index.ts

@@ -18,3 +15,2 @@ import {

}
__name(randomPosition, "randomPosition");
function randomPositionUnchecked(bbox) {

@@ -29,3 +25,2 @@ if (Array.isArray(bbox)) {

}
__name(randomPositionUnchecked, "randomPositionUnchecked");
function checkBBox(bbox) {

@@ -40,3 +35,2 @@ if (bbox == null) {

}
__name(checkBBox, "checkBBox");
function randomPoint(count, options = {}) {

@@ -53,3 +47,2 @@ checkBBox(options.bbox);

}
__name(randomPoint, "randomPoint");
function randomPolygon(count, options = {}) {

@@ -89,3 +82,2 @@ checkBBox(options.bbox);

}
__name(randomPolygon, "randomPolygon");
function randomLineString(count, options = {}) {

@@ -132,3 +124,2 @@ options = options || {};

}
__name(randomLineString, "randomLineString");
function vertexToCoordinate(hub) {

@@ -139,15 +130,11 @@ return (cur) => {

}
__name(vertexToCoordinate, "vertexToCoordinate");
function rnd() {
return Math.random() - 0.5;
}
__name(rnd, "rnd");
function lon() {
return rnd() * 360;
}
__name(lon, "lon");
function lat() {
return rnd() * 180;
}
__name(lat, "lat");
function coordInBBox(bbox) {

@@ -159,3 +146,2 @@ return [

}
__name(coordInBBox, "coordInBBox");
export {

@@ -162,0 +148,0 @@ randomLineString,

6

package.json
{
"name": "@turf/random",
"version": "7.0.0",
"version": "7.1.0-alpha.7+0ce6ecca0",
"description": "turf random module",

@@ -63,6 +63,6 @@ "author": "Turf Authors",

"dependencies": {
"@turf/helpers": "^7.0.0",
"@turf/helpers": "^7.1.0-alpha.7+0ce6ecca0",
"tslib": "^2.6.2"
},
"gitHead": "3d3a7917025fbabe191dbddbc89754b86f9c7739"
"gitHead": "0ce6ecca05829690270fec6d6bed2003495fe0ea"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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