@turf/sample 6.5.0 → 7.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,12 +6,12 @@
6
6
 
7
7
  Takes a [FeatureCollection][1] and returns a FeatureCollection with given number of [features][2] at random.
8
8
 
9
- **Parameters**
9
+ ### Parameters
10
10
 
11
- - `featurecollection` **[FeatureCollection][3]** set of input features
12
- - `num` **[number][4]** number of features to select
11
+ * `featurecollection` **[FeatureCollection][3]** set of input features
12
+ * `num` **[number][4]** number of features to select
13
13
 
14
- **Examples**
14
+ ### Examples
15
15
 
16
16
  ```javascript
17
17
  var points = turf.randomPoint(100, {bbox: [-80, 30, -60, 60]});
package/dist/es/index.js CHANGED
File without changes
package/dist/js/index.js CHANGED
File without changes
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FeatureCollection, GeometryObject } from "@turf/helpers";
1
+ import { FeatureCollection, GeometryObject } from "geojson";
2
2
 
3
3
  /**
4
4
  * http://turfjs.org/docs/#sample
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/sample",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "turf sample module",
5
5
  "author": "Turf Authors",
6
6
  "license": "MIT",
@@ -27,6 +27,7 @@
27
27
  "exports": {
28
28
  "./package.json": "./package.json",
29
29
  ".": {
30
+ "types": "./index.d.ts",
30
31
  "import": "./dist/es/index.js",
31
32
  "require": "./dist/js/index.js"
32
33
  }
@@ -38,20 +39,21 @@
38
39
  "index.d.ts"
39
40
  ],
40
41
  "scripts": {
41
- "bench": "node -r esm bench.js",
42
+ "bench": "tsx bench.js",
42
43
  "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
43
- "docs": "node ../../scripts/generate-readmes",
44
+ "docs": "tsx ../../scripts/generate-readmes",
44
45
  "test": "npm-run-all test:*",
45
- "test:tape": "node -r esm test.js"
46
+ "test:tape": "tsx test.js"
46
47
  },
47
48
  "devDependencies": {
48
49
  "benchmark": "*",
49
50
  "npm-run-all": "*",
50
51
  "rollup": "*",
51
- "tape": "*"
52
+ "tape": "*",
53
+ "tsx": "*"
52
54
  },
53
55
  "dependencies": {
54
- "@turf/helpers": "^6.5.0"
56
+ "@turf/helpers": "^7.0.0-alpha.1"
55
57
  },
56
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
58
+ "gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
57
59
  }