@mapbox/mapbox-gl-style-spec 14.1.0 → 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/composite.js +1 -0
- package/dist/index.cjs +70 -1248
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +70 -1248
- package/dist/index.es.js.map +1 -1
- package/expression/compound_expression.js +1 -1
- package/expression/definitions/index.js +18 -7
- package/expression/definitions/number_format.js +0 -28
- package/expression/evaluation_context.js +3 -1
- package/expression/index.js +9 -9
- package/expression/parsing_context.js +5 -1
- package/expression/types/collator.js +0 -32
- package/flow-typed/intl.js +58 -0
- package/flow-typed/webgl2.js +10 -1
- package/format.js +1 -0
- package/function/index.js +1 -0
- package/migrate/v8.js +2 -3
- package/migrate/v9.js +1 -1
- package/migrate.js +1 -0
- package/package.json +1 -1
- package/read_style.js +2 -0
- package/reference/v8.json +25 -54
- package/rollup.config.js +2 -0
- package/style-spec.js +1 -1
- package/test.js +1 -0
- package/util/properties.js +3 -1
- package/validate/validate_source.js +2 -2
- package/validate/validate_style.js +1 -1
- package/flow-typed/jsdom.js +0 -16
- package/flow-typed/sinon.js +0 -29
|
@@ -9,7 +9,7 @@ import type {ValidationOptions} from './validate.js';
|
|
|
9
9
|
import type {StyleSpecification} from '../types.js';
|
|
10
10
|
|
|
11
11
|
type StyleValidationOptions = {
|
|
12
|
-
key?: ValidationOptions
|
|
12
|
+
key?: $PropertyType<ValidationOptions, 'key'>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export default function validateStyle(style: StyleSpecification, styleSpec: Object = latestStyleSpec, options: StyleValidationOptions = {}): ValidationError[] {
|
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
|
-
}
|