@turf/square 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
@@ -7,11 +7,11 @@
7
7
  Takes a bounding box and calculates the minimum square bounding box that
8
8
  would contain the input.
9
9
 
10
- **Parameters**
10
+ ### Parameters
11
11
 
12
- - `bbox` **[BBox][1]** extent in [west, south, east, north] order
12
+ * `bbox` **[BBox][1]** extent in \[west, south, east, north] order
13
13
 
14
- **Examples**
14
+ ### Examples
15
15
 
16
16
  ```javascript
17
17
  var bbox = [-20, -20, -15, 0];
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 { BBox } from "@turf/helpers";
1
+ import { BBox } from "geojson";
2
2
 
3
3
  /**
4
4
  * http://turfjs.org/docs/#square
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/square",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "turf square 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,21 +39,22 @@
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/distance": "^6.5.0",
55
- "@turf/helpers": "^6.5.0"
56
+ "@turf/distance": "^7.0.0-alpha.1",
57
+ "@turf/helpers": "^7.0.0-alpha.1"
56
58
  },
57
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
59
+ "gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
58
60
  }