@mapbox/mvt-fixtures
Advanced tools
Comparing version 3.5.1 to 3.6.0-dev1
40
API.md
@@ -6,3 +6,7 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
- [get][1] | ||
- [each][2] | ||
- [Parameters][2] | ||
- [Examples][3] | ||
- [each][4] | ||
- [Parameters][5] | ||
- [Examples][6] | ||
@@ -13,7 +17,7 @@ ## get | ||
**Parameters** | ||
### Parameters | ||
- `id` **([String][3] \| [Number][4])** the id of the fixture as specified in [FIXTURES.md][5] | ||
- `id` **([String][7] \| [Number][8])** the id of the fixture as specified in [FIXTURES.md][9] | ||
**Examples** | ||
### Examples | ||
@@ -31,3 +35,3 @@ ```javascript | ||
Returns **[Object][6]** fixture - a fixture object | ||
Returns **[Object][10]** fixture - a fixture object | ||
@@ -38,8 +42,8 @@ ## each | ||
**Parameters** | ||
### Parameters | ||
- `fn` | ||
- `function` **[Function][7]** a synchronously running function to execute on each fixture | ||
- `function` **[Function][11]** a synchronously running function to execute on each fixture | ||
**Examples** | ||
### Examples | ||
@@ -57,12 +61,20 @@ ```javascript | ||
[2]: #each | ||
[2]: #parameters | ||
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String | ||
[3]: #examples | ||
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number | ||
[4]: #each | ||
[5]: FIXTURES.md | ||
[5]: #parameters-1 | ||
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object | ||
[6]: #examples-1 | ||
[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function | ||
[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String | ||
[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number | ||
[9]: FIXTURES.md | ||
[10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object | ||
[11]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function |
@@ -61,1 +61,2 @@ id|description|valid v1|valid v2 | ||
061|A linestring feature that includes a ClosePath command. A tile with such a command was added as a test fixture in https://github.com/mapbox/mapbox-gl-native/pull/2721, suggesting that such tiles may exist in practice, e.g. in old mapbox-gl-native offline databases. - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/1.0.1/vector_tile.proto) - recommended error handling `fatal`|:white_check_mark:|:x: | ||
062|points with different values for the same property - helpful for filtering tests - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark: |
@@ -40,3 +40,3 @@ 'use strict'; | ||
mvt.Tile.write(json, pbf); | ||
return new Buffer(pbf.finish()); | ||
return new Buffer.from(pbf.finish()); | ||
}; |
{ | ||
"name": "@mapbox/mvt-fixtures", | ||
"version": "3.5.1", | ||
"version": "3.6.0-dev1", | ||
"description": "A require-able test fixture suite of valid and invalid Mapbox Vector Tiles", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
32801644
480
5170
1