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

@turf/sample

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/sample - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

9

index.js

@@ -14,7 +14,10 @@ // http://stackoverflow.com/questions/11935175/sampling-a-random-subset-from-an-array

*
* //=points
*
* var sample = turf.sample(points, 10);
*
* //=sample
* //addToMap
* var addToMap = [points, sample]
* turf.featureEach(sample, function (currentFeature) {
* currentFeature.properties['marker-size'] = 'large';
* currentFeature.properties['marker-color'] = '#000';
* });
*/

@@ -21,0 +24,0 @@ module.exports = function (featurecollection, num) {

{
"name": "@turf/sample",
"version": "4.1.0",
"version": "4.2.0",
"description": "turf sample module",

@@ -34,7 +34,7 @@ "main": "index.js",

"tape": "^3.5.0",
"@turf/helpers": "^4.1.0"
"@turf/helpers": "^4.2.0"
},
"dependencies": {
"@turf/helpers": "^4.1.0"
"@turf/helpers": "^4.2.0"
}
}

@@ -17,7 +17,10 @@ # @turf/sample

//=points
var sample = turf.sample(points, 10);
//=sample
//addToMap
var addToMap = [points, sample]
turf.featureEach(sample, function (currentFeature) {
currentFeature.properties['marker-size'] = 'large';
currentFeature.properties['marker-color'] = '#000';
});
```

@@ -24,0 +27,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