@mapbox/mapbox-gl-style-spec 14.2.0-beta.1 → 14.2.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/migrate/v8.js CHANGED
@@ -1,5 +1,4 @@
1
1
  // @noflow
2
- import URL from 'url';
3
2
  import {eachSource, eachLayer, eachProperty} from '../visit.js';
4
3
 
5
4
  function eachLayout(layer, callback) {
@@ -109,7 +108,7 @@ export default function(style) {
109
108
  });
110
109
 
111
110
  function migrateFontstackURL(input) {
112
- const inputParsed = URL.parse(input);
111
+ const inputParsed = new URL(input);
113
112
  const inputPathnameParts = inputParsed.pathname.split('/');
114
113
 
115
114
  if (inputParsed.protocol !== 'mapbox:') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapbox/mapbox-gl-style-spec",
3
3
  "description": "a specification for mapbox gl styles",
4
- "version": "14.2.0-beta.1",
4
+ "version": "14.2.0",
5
5
  "author": "Mapbox",
6
6
  "keywords": [
7
7
  "mapbox",
@@ -1,16 +0,0 @@
1
- // @flow strict
2
-
3
- declare module "jsdom" {
4
- declare class JSDOM {
5
- constructor(content: string, options: Object): JSDOM;
6
- window: WindowProxy;
7
- }
8
- declare class VirtualConsole {
9
- constructor(): VirtualConsole;
10
- sendTo(console: typeof console): VirtualConsole;
11
- }
12
- declare module.exports: {
13
- JSDOM: typeof JSDOM,
14
- VirtualConsole: typeof VirtualConsole
15
- };
16
- }
@@ -1,29 +0,0 @@
1
- // @flow strict
2
- declare module "sinon" {
3
- declare type SpyCall = {
4
- args: Array<mixed>
5
- };
6
- declare type Spy = {
7
- (): any,
8
- calledOnce: number,
9
- getCall(i: number): SpyCall
10
- };
11
- declare type Stub = {
12
- returns(fn: mixed): Spy,
13
- callsFake(fn: mixed): Spy
14
- };
15
- declare class FakeServer {
16
- xhr: XMLHttpRequest
17
- }
18
- declare type Sandbox = {
19
- xhr: {supportsCORS: boolean},
20
- fakeServer: {create: () => FakeServer},
21
-
22
- createSandbox(options: mixed): Sandbox,
23
- stub(obj?: mixed, prop?: string): Stub,
24
- spy(obj?: mixed, prop?: string): Spy,
25
- restore(): void;
26
- };
27
-
28
- declare module.exports: Sandbox;
29
- }