@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/dist/index.cjs +5 -1172
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +5 -1172
- package/dist/index.es.js.map +1 -1
- package/migrate/v8.js +1 -2
- package/package.json +1 -1
- package/flow-typed/jsdom.js +0 -16
- package/flow-typed/sinon.js +0 -29
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
|
|
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
package/flow-typed/jsdom.js
DELETED
|
@@ -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
|
-
}
|
package/flow-typed/sinon.js
DELETED
|
@@ -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
|
-
}
|