Socket
Socket
Sign inDemoInstall

@mapbox/mvt-fixtures

Package Overview
Dependencies
Maintainers
14
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/mvt-fixtures - npm Package Compare versions

Comparing version 3.5.1 to 3.6.0-dev1

fixtures/062/info.json

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",

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