@turf/isobands 6.4.0 → 7.0.0-alpha.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/isobands",
3
- "version": "6.4.0",
3
+ "version": "7.0.0-alpha.0",
4
4
  "description": "turf isobands module",
5
5
  "author": "Turf Authors",
6
6
  "contributors": [
@@ -15,6 +15,7 @@
15
15
  "type": "git",
16
16
  "url": "git://github.com/Turfjs/turf.git"
17
17
  },
18
+ "funding": "https://opencollective.com/turf",
18
19
  "publishConfig": {
19
20
  "access": "public"
20
21
  },
@@ -36,25 +37,26 @@
36
37
  "require": "./dist/js/index.js"
37
38
  }
38
39
  },
39
- "types": "index.d.ts",
40
+ "types": "dist/js/index.d.ts",
40
41
  "sideEffects": false,
41
42
  "files": [
42
- "dist",
43
- "index.d.ts"
43
+ "dist"
44
44
  ],
45
45
  "scripts": {
46
- "bench": "node -r esm bench.js",
47
- "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
46
+ "bench": "ts-node bench.js",
47
+ "build": "npm-run-all build:*",
48
+ "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
49
+ "build:js": "tsc",
48
50
  "docs": "node ../../scripts/generate-readmes",
49
51
  "test": "npm-run-all test:*",
50
- "test:tape": "node -r esm test.js"
52
+ "test:tape": "ts-node -r esm test.js"
51
53
  },
52
54
  "devDependencies": {
53
- "@turf/envelope": "^6.4.0",
54
- "@turf/point-grid": "^6.4.0",
55
- "@turf/random": "^6.4.0",
56
- "@turf/rhumb-destination": "^6.4.0",
57
- "@turf/truncate": "^6.4.0",
55
+ "@turf/envelope": "^7.0.0-alpha.0",
56
+ "@turf/point-grid": "^7.0.0-alpha.0",
57
+ "@turf/random": "^7.0.0-alpha.0",
58
+ "@turf/rhumb-destination": "^7.0.0-alpha.0",
59
+ "@turf/truncate": "^7.0.0-alpha.0",
58
60
  "benchmark": "*",
59
61
  "chroma-js": "*",
60
62
  "load-json-file": "*",
@@ -62,17 +64,20 @@
62
64
  "npm-run-all": "*",
63
65
  "rollup": "*",
64
66
  "tape": "*",
67
+ "ts-node": "*",
68
+ "tslint": "*",
69
+ "typescript": "*",
65
70
  "write-json-file": "*"
66
71
  },
67
72
  "dependencies": {
68
- "@turf/area": "^6.4.0",
69
- "@turf/bbox": "^6.4.0",
70
- "@turf/boolean-point-in-polygon": "^6.4.0",
71
- "@turf/explode": "^6.4.0",
72
- "@turf/helpers": "^6.4.0",
73
- "@turf/invariant": "^6.4.0",
74
- "@turf/meta": "^6.4.0",
75
- "object-assign": "*"
73
+ "@turf/area": "^7.0.0-alpha.0",
74
+ "@turf/bbox": "^7.0.0-alpha.0",
75
+ "@turf/boolean-point-in-polygon": "^7.0.0-alpha.0",
76
+ "@turf/explode": "^7.0.0-alpha.0",
77
+ "@turf/helpers": "^7.0.0-alpha.0",
78
+ "@turf/invariant": "^7.0.0-alpha.0",
79
+ "@turf/meta": "^7.0.0-alpha.0",
80
+ "tslib": "^2.3.0"
76
81
  },
77
- "gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac"
82
+ "gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
78
83
  }
package/index.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import {
2
- Point,
3
- MultiPolygon,
4
- FeatureCollection,
5
- Properties,
6
- } from "@turf/helpers";
7
-
8
- /**
9
- * http://turfjs.org/docs/#isobands
10
- */
11
- export default function isobands(
12
- points: FeatureCollection<Point>,
13
- breaks: number[],
14
- options?: {
15
- zProperty?: string;
16
- commonProperties?: Properties;
17
- breaksProperties?: Properties[];
18
- }
19
- ): FeatureCollection<MultiPolygon>;