@turf/random
Advanced tools
Comparing version 7.0.0 to 7.1.0-alpha.7
@@ -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, |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44962
352
1
1