@elastic/ems-client
Advanced tools
Comparing version 8.5.3 to 8.6.0
{ | ||
"upstream": "elastic/ems-client", | ||
"branches": [ | ||
{ | ||
"name": "8.4", | ||
"checked": true | ||
}, | ||
{ | ||
"name": "7.17", | ||
"checked": true | ||
} | ||
], | ||
"labels": [ | ||
"backport" | ||
] | ||
} | ||
"repoOwner": "elastic", | ||
"repoName": "ems-file-service", | ||
"targetBranches": ["7.17"], | ||
"targetPRLabels": ["backport"], | ||
"commitConflicts": true, | ||
"autoMerge": true, | ||
"autoMergeMethod": "squash", | ||
"fork": false | ||
} |
@@ -49,3 +49,3 @@ /* | ||
...emsClientPackageJson['dependencies'], | ||
...emsClientPackageJson['devDependencies'] | ||
// ...emsClientPackageJson['devDependencies'] | ||
}; | ||
@@ -52,0 +52,0 @@ |
@@ -6,9 +6,15 @@ # Changelog | ||
## [8.5.3] - 2024-07-10 | ||
## [8.6.0] - 2024-12-13 | ||
### Added | ||
- Include color options for new EMS styles #478 | ||
### Changed | ||
- Dependencies reorganization and validation against Kibana #289 | ||
- Update dependencies (search PRs for `is:pr label:8.5.4,dependencies`) | ||
## [8.5.3] - 2024-07-10 | ||
### Changed | ||
- Update dependencies #242 | ||
## [8.5.2] - 2024-07-05 | ||
## Changed | ||
@@ -18,3 +24,2 @@ - Update dependencies #232 #233 #234 #235 | ||
## [8.5.1] - 2023-11-09 | ||
### Added | ||
@@ -31,3 +36,2 @@ - Add a new `getEmsVersion` method #204 | ||
## [8.5.0] - 2023-08-23 | ||
- Migration from Jenkins to Buildkite for automatic testing #145 #147 | ||
@@ -39,3 +43,2 @@ - Detached the releases of EMS Client from the services consumed #185 | ||
## [8.4.0] - 2023-01-11 | ||
- Default EMS version is 8.4 | ||
@@ -46,3 +49,2 @@ - Add types to colorOperationDefaults #123 | ||
## [8.3.3] - 2022-05-24 | ||
- Make percentage an optional parameter #117 | ||
@@ -52,3 +54,2 @@ - Make color and operation optional parameters #118 | ||
## [8.3.2] - 2022-05-16 | ||
- Export `blendMode` type #111 | ||
@@ -58,3 +59,2 @@ - Fix transforming color definitions with stops #112 | ||
## [8.3.1] - 2022-05-06 | ||
- Added static methods to help translating basemap labels and blending colors to paint properties #105 | ||
@@ -64,3 +64,2 @@ - Add optional `format` argument to `getMinZoom` and `getMaxZoom` #90 | ||
## [8.3.0] - 2022-04-18 | ||
### Changed | ||
@@ -71,3 +70,2 @@ - Default EMS version is 8.3 #104 | ||
## [8.2.0] - 2022-03-24 | ||
### Changed | ||
@@ -78,3 +76,2 @@ - Default EMS version is 8.2 | ||
## [8.1.0] - 2021-11-09 | ||
### Changed | ||
@@ -86,3 +83,2 @@ - Default EMS version is 8.1 | ||
## [8.0.0] - 2021-10-20 | ||
### Changed | ||
@@ -93,3 +89,2 @@ - Default EMS version is 8.0 | ||
## [7.16.0] - 2021-10-13 | ||
### Changed | ||
@@ -101,3 +96,2 @@ - Default EMS version is 7.16 | ||
## [7.15.1] - 2021-09-01 | ||
### Changed | ||
@@ -107,3 +101,2 @@ - Unpinned `semver` dependency [#77](https://github.com/elastic/ems-client/pull/77) | ||
## [7.15.0] - 2021-08-12 | ||
### Changed | ||
@@ -113,9 +106,8 @@ - Default EMS version is 7.15 | ||
- Fix linting issues | ||
## [7.14.0] - 2021-06-15 | ||
### Added | ||
- New getters for optional field metadata `alias`, `regex`, and `values` #69 | ||
### Changed | ||
- Default EMS version is 7.14 | ||
@@ -134,3 +126,2 @@ - **Breaking change** @elastic/ems-client is now licensed under the Elastic License v2. See the LICENSE.txt file in this repository #64 | ||
## [7.10.0] - 2020-08-17 | ||
@@ -162,3 +153,2 @@ ### Changed | ||
## [7.8.1] - 2020-04-06 | ||
@@ -198,3 +188,2 @@ ### Fixed | ||
## [7.6.0] - 2020-01-13 | ||
### Added | ||
@@ -204,5 +193,3 @@ - Two new parameters were introduced, `tileApiUrl` and `fileApiUrl`. These should be used instead of `manifestServiceUrl`. These parameters should be set to their respective domains (e.g. `https://tiles.maps.elastic.co`, `https://vector.maps.elastic.co`). [#13](https://github.com/elastic/ems-client/pull/13) | ||
### Changed | ||
- Starting with v7.6, new Elastic Maps Service (EMS) versions will be released with every matching major and minor release of the Elastic Stack. New releases of ems-client will also be released to match the EMS versions. | ||
- Handle relative URLs in EMS v7.6 manifests. | ||
@@ -229,3 +216,2 @@ | ||
## [1.0.2] - 2019-10-15 | ||
@@ -242,3 +228,2 @@ | ||
## [1.0.0] - 2019-08-26 | ||
- Initial release. Compatible with Elastic Maps Service v7.2.0. |
{ | ||
"name": "@elastic/ems-client", | ||
"version": "8.5.3", | ||
"version": "8.6.0", | ||
"description": "JavaScript client library for the Elastic Maps Service", | ||
@@ -34,41 +34,42 @@ "main": "target/node/index.js", | ||
"dependencies": { | ||
"@types/geojson": "^7946.0.14", | ||
"@types/topojson-client": "^3.1.4", | ||
"@types/topojson-specification": "^1.0.5", | ||
"chroma-js": "^2.1.0", | ||
"@types/geojson": "7946.0.15", | ||
"@types/topojson-client": "3.1.5", | ||
"chroma-js": "^2.6.0", | ||
"lodash": "^4.17.21", | ||
"lru-cache": "^4.1.5", | ||
"semver": "^7.6.2", | ||
"maplibre-gl": "3.1.0", | ||
"node-fetch": "2.7.0", | ||
"semver": "^7.6.3", | ||
"topojson-client": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.4", | ||
"@babel/core": "^7.5.5", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/preset-typescript": "^7.9.0", | ||
"@eslint/js": "^9.3.0", | ||
"@types/chroma-js": "^2.1.3", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/jest": "^29.5.12", | ||
"@types/lodash": "^4.14.150", | ||
"@types/lru-cache": "^5.1.0", | ||
"@types/node": "^20.12.13", | ||
"@types/node-fetch": "^2.5.7", | ||
"@types/semver": "^7.1.0", | ||
"@typescript-eslint/eslint-plugin": "^7.11.0", | ||
"@typescript-eslint/parser": "^7.11.0", | ||
"babel-jest": "^29.7.0", | ||
"eslint": "^9.3.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"globals": "^15.3.0", | ||
"husky": "^9.0.11", | ||
"jest": "^29.7.0", | ||
"maplibre-gl": "3.1.0", | ||
"node-fetch": "^2.7.0", | ||
"prettier": "^3.2.5", | ||
"ts-jest": "^29.1.4", | ||
"typescript": "^5.4.5", | ||
"typescript-eslint": "^7.11.0" | ||
"@babel/cli": "7.26.4", | ||
"@babel/core": "7.26.0", | ||
"@babel/plugin-proposal-class-properties": "7.18.6", | ||
"@babel/preset-env": "7.26.0", | ||
"@babel/preset-typescript": "7.26.0", | ||
"@eslint/core": "0.9.1", | ||
"@eslint/js": "9.17.0", | ||
"@types/chroma-js": "2.4.5", | ||
"@types/eslint__js": "8.42.3", | ||
"@types/jest": "29.5.14", | ||
"@types/lodash": "4.17.13", | ||
"@types/lru-cache": "5.1.1", | ||
"@types/node": "20.17.10", | ||
"@types/node-fetch": "2.6.12", | ||
"@types/semver": "7.5.8", | ||
"@types/topojson-specification": "1.0.5", | ||
"@typescript-eslint/eslint-plugin": "8.18.1", | ||
"@typescript-eslint/parser": "8.18.1", | ||
"babel-jest": "29.7.0", | ||
"eslint": "9.17.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-prettier": "5.2.1", | ||
"globals": "15.14.0", | ||
"husky": "9.1.7", | ||
"jest": "29.7.0", | ||
"prettier": "3.4.2", | ||
"ts-jest": "29.2.5", | ||
"typescript": "5.7.2", | ||
"typescript-eslint": "8.18.1" | ||
}, | ||
@@ -75,0 +76,0 @@ "engines": { |
@@ -22,2 +22,3 @@ /* | ||
import LRUCache from 'lru-cache'; | ||
import { RequestInfo } from 'node-fetch'; | ||
@@ -105,6 +106,6 @@ const REST_API_REGEX = /\d{4}-\d{2}-\d{2}/; | ||
emsVersion?: string; | ||
htmlSanitizer?: Function; | ||
htmlSanitizer?: (x: string) => string; | ||
language?: string; | ||
landingPageUrl?: string; | ||
fetchFunction: Function; | ||
fetchFunction: (url: RequestInfo) => Promise<Response>; | ||
proxyPath?: string; | ||
@@ -214,4 +215,4 @@ cacheSize?: number; | ||
private readonly _appVersion: string; | ||
private readonly _fetchFunction: Function; | ||
private readonly _sanitizer: Function; | ||
private readonly _fetchFunction: (url: RequestInfo) => Promise<Response>; | ||
private readonly _sanitizer: (x: string) => string; | ||
private readonly _fileApiUrl: string; | ||
@@ -229,7 +230,7 @@ private readonly _tileApiUrl: string; | ||
*/ | ||
private _getMainCatalog!: Function; | ||
private _getDefaultTMSCatalog!: Function; | ||
private _getDefaultFileCatalog!: Function; | ||
private _loadTMSServices!: Function; | ||
private _loadFileLayers!: Function; | ||
private _getMainCatalog!: () => Promise<EmsCatalogManifest>; | ||
private _getDefaultTMSCatalog!: () => Promise<EmsTmsCatalog>; | ||
private _getDefaultFileCatalog!: () => Promise<EmsFileCatalog>; | ||
private _loadTMSServices!: () => Promise<TMSService[]>; | ||
private _loadFileLayers!: () => Promise<FileLayer[]>; | ||
@@ -236,0 +237,0 @@ constructor(config: ClientConfig | DeprecatedClientConfig) { |
@@ -135,2 +135,5 @@ /* | ||
{ style: 'dark_map', operation: 'dodge', percentage: 0.25 }, | ||
{ style: 'high_contrast', operation: 'screen', percentage: 0.25 }, | ||
{ style: 'road_map_desaturated_v9', operation: 'screen', percentage: 0.25 }, | ||
{ style: 'dark_map_v9', operation: 'dodge', percentage: 0.25 }, | ||
]; | ||
@@ -137,0 +140,0 @@ |
@@ -8,3 +8,3 @@ /* | ||
import chroma, { ChromaStatic } from 'chroma-js'; | ||
import chroma, { ChromaStatic, Color } from 'chroma-js'; | ||
import { | ||
@@ -67,3 +67,6 @@ ColorSpecification, | ||
*/ | ||
function transformColor(paintColor: mbColorDefinition, func: Function): mbColorDefinition { | ||
function transformColor( | ||
paintColor: mbColorDefinition, | ||
func: (color: string) => Color | ||
): mbColorDefinition { | ||
if (typeof paintColor == 'string') { | ||
@@ -70,0 +73,0 @@ const modifiedColor = func(paintColor); |
import { TMSService } from './tms_service'; | ||
import { EMSFormatType, FileLayer } from './file_layer'; | ||
import { FeatureCollection } from 'geojson'; | ||
import { Response } from 'node-fetch'; | ||
import { RequestInfo } from 'node-fetch'; | ||
export declare const LATEST_API_URL_PATH = "latest"; | ||
@@ -14,6 +16,6 @@ type LocalizedStrings = { | ||
emsVersion?: string; | ||
htmlSanitizer?: Function; | ||
htmlSanitizer?: (x: string) => string; | ||
language?: string; | ||
landingPageUrl?: string; | ||
fetchFunction: Function; | ||
fetchFunction: (url: RequestInfo) => Promise<Response>; | ||
proxyPath?: string; | ||
@@ -20,0 +22,0 @@ cacheSize?: number; |
@@ -502,2 +502,14 @@ "use strict"; | ||
percentage: 0.25 | ||
}, { | ||
style: 'high_contrast', | ||
operation: 'screen', | ||
percentage: 0.25 | ||
}, { | ||
style: 'road_map_desaturated_v9', | ||
operation: 'screen', | ||
percentage: 0.25 | ||
}, { | ||
style: 'dark_map_v9', | ||
operation: 'dodge', | ||
percentage: 0.25 | ||
}]); |
@@ -167,3 +167,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
value: (function () { | ||
var _getManifest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(endpointUrl) { | ||
var _getManifest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(endpointUrl) { | ||
var url, response; | ||
@@ -244,3 +244,3 @@ return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
value: function () { | ||
var _getMainManifest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { | ||
var _getMainManifest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { | ||
return _regeneratorRuntime().wrap(function _callee2$(_context2) { | ||
@@ -267,3 +267,3 @@ while (1) switch (_context2.prev = _context2.next) { | ||
value: function () { | ||
var _getDefaultFileManifest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { | ||
var _getDefaultFileManifest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { | ||
return _regeneratorRuntime().wrap(function _callee3$(_context3) { | ||
@@ -290,3 +290,3 @@ while (1) switch (_context3.prev = _context3.next) { | ||
value: function () { | ||
var _getDefaultTMSManifest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { | ||
var _getDefaultTMSManifest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { | ||
return _regeneratorRuntime().wrap(function _callee4$(_context4) { | ||
@@ -313,3 +313,3 @@ while (1) switch (_context4.prev = _context4.next) { | ||
value: function () { | ||
var _getFileLayers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
var _getFileLayers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
return _regeneratorRuntime().wrap(function _callee5$(_context5) { | ||
@@ -336,3 +336,3 @@ while (1) switch (_context5.prev = _context5.next) { | ||
value: function () { | ||
var _getTMSServices = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() { | ||
var _getTMSServices = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() { | ||
return _regeneratorRuntime().wrap(function _callee6$(_context6) { | ||
@@ -402,3 +402,3 @@ while (1) switch (_context6.prev = _context6.next) { | ||
value: function () { | ||
var _findFileLayerById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(id) { | ||
var _findFileLayerById = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(id) { | ||
var fileLayers, i; | ||
@@ -441,3 +441,3 @@ return _regeneratorRuntime().wrap(function _callee7$(_context7) { | ||
value: function () { | ||
var _findTMSServiceById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(id) { | ||
var _findTMSServiceById = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(id) { | ||
var tmsServices, i; | ||
@@ -512,3 +512,3 @@ return _regeneratorRuntime().wrap(function _callee8$(_context8) { | ||
this._cache.reset(); | ||
this._getMainCatalog = _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() { | ||
this._getMainCatalog = _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() { | ||
var services, version, _version; | ||
@@ -542,3 +542,3 @@ return _regeneratorRuntime().wrap(function _callee9$(_context9) { | ||
}))); | ||
this._getDefaultTMSCatalog = _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() { | ||
this._getDefaultTMSCatalog = _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10() { | ||
var catalogue, firstService, url; | ||
@@ -574,3 +574,3 @@ return _regeneratorRuntime().wrap(function _callee10$(_context10) { | ||
}))); | ||
this._getDefaultFileCatalog = _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() { | ||
this._getDefaultFileCatalog = _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11() { | ||
var catalogue, firstService, url; | ||
@@ -608,3 +608,3 @@ return _regeneratorRuntime().wrap(function _callee11$(_context11) { | ||
//Cache the actual instances of TMSService as these in turn cache sub-manifests for the style-files | ||
this._loadTMSServices = _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() { | ||
this._loadTMSServices = _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12() { | ||
var tmsManifest; | ||
@@ -627,3 +627,3 @@ return _regeneratorRuntime().wrap(function _callee12$(_context12) { | ||
}))); | ||
this._loadFileLayers = _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() { | ||
this._loadFileLayers = _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13() { | ||
var fileManifest; | ||
@@ -630,0 +630,0 @@ return _regeneratorRuntime().wrap(function _callee13$(_context13) { |
@@ -48,3 +48,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
value: function () { | ||
var _getGeoJson = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
var _getGeoJson = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
var cachedGeoJson, format, fetchUrl, geojson, fetchedJson, _meta$feature_collect, meta, featureCollectionPath; | ||
@@ -51,0 +51,0 @@ return _regeneratorRuntime().wrap(function _callee$(_context) { |
@@ -43,3 +43,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
_defineProperty(_this, "_config", void 0); | ||
_defineProperty(_this, "_getRasterStyleJson", _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
_defineProperty(_this, "_getRasterStyleJson", _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() { | ||
var rasterUrl, url; | ||
@@ -64,3 +64,3 @@ return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
})))); | ||
_defineProperty(_this, "_getVectorStyleJsonRaw", _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { | ||
_defineProperty(_this, "_getVectorStyleJsonRaw", _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { | ||
var vectorUrl, url, vectorJson; | ||
@@ -89,3 +89,3 @@ return _regeneratorRuntime().wrap(function _callee2$(_context2) { | ||
})))); | ||
_defineProperty(_this, "_getVectorStyleJsonInlined", _.once( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { | ||
_defineProperty(_this, "_getVectorStyleJsonInlined", _.once(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { | ||
var vectorJson, inlinedSources, sources, _iterator, _step, _sourceName, url, _sourceJson$tiles, sourceUrl, extendedUrl, sourceJson, tiles; | ||
@@ -186,3 +186,3 @@ return _regeneratorRuntime().wrap(function _callee3$(_context3) { | ||
value: function () { | ||
var _getDefaultRasterStyle = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { | ||
var _getDefaultRasterStyle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { | ||
var _this2 = this; | ||
@@ -223,3 +223,3 @@ var tileJson, tiles; | ||
value: function () { | ||
var _getUrlTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
var _getUrlTemplate = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
var tileJson, directUrl; | ||
@@ -255,3 +255,3 @@ return _regeneratorRuntime().wrap(function _callee5$(_context5) { | ||
value: function () { | ||
var _getUrlTemplateForVector = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(sourceId) { | ||
var _getUrlTemplateForVector = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(sourceId) { | ||
var _tileJson$sources$sou; | ||
@@ -289,3 +289,3 @@ var tileJson, url, directUrl; | ||
value: function () { | ||
var _getVectorStyleSheet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() { | ||
var _getVectorStyleSheet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() { | ||
return _regeneratorRuntime().wrap(function _callee7$(_context7) { | ||
@@ -312,3 +312,3 @@ while (1) switch (_context7.prev = _context7.next) { | ||
value: function () { | ||
var _getVectorStyleSheetRaw = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() { | ||
var _getVectorStyleSheetRaw = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8() { | ||
return _regeneratorRuntime().wrap(function _callee8$(_context8) { | ||
@@ -335,3 +335,3 @@ while (1) switch (_context8.prev = _context8.next) { | ||
value: function () { | ||
var _getSpriteSheetMeta = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() { | ||
var _getSpriteSheetMeta = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() { | ||
var isRetina, | ||
@@ -384,3 +384,3 @@ metaUrl, | ||
value: function () { | ||
var _getSpriteSheetJsonPath = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() { | ||
var _getSpriteSheetJsonPath = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10() { | ||
var isRetina, | ||
@@ -420,3 +420,3 @@ spriteSheetRootPath, | ||
value: function () { | ||
var _getSpriteSheetPngPath = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() { | ||
var _getSpriteSheetPngPath = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11() { | ||
var isRetina, | ||
@@ -461,3 +461,3 @@ spriteSheetRootPath, | ||
value: function () { | ||
var _getMinZoom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() { | ||
var _getMinZoom = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12() { | ||
var format, | ||
@@ -526,3 +526,3 @@ _ref4, | ||
value: function () { | ||
var _getMaxZoom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() { | ||
var _getMaxZoom = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13() { | ||
var format, | ||
@@ -629,3 +629,3 @@ _ref6, | ||
value: function () { | ||
var _getSpriteSheetRootPath2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() { | ||
var _getSpriteSheetRootPath2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14() { | ||
var vectorStyleJson; | ||
@@ -660,3 +660,3 @@ return _regeneratorRuntime().wrap(function _callee14$(_context14) { | ||
value: function () { | ||
var _getUrlTemplateForGlyphs2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() { | ||
var _getUrlTemplateForGlyphs2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15() { | ||
var vectorStyleJson; | ||
@@ -947,2 +947,14 @@ return _regeneratorRuntime().wrap(function _callee15$(_context15) { | ||
percentage: 0.25 | ||
}, { | ||
style: 'high_contrast', | ||
operation: 'screen', | ||
percentage: 0.25 | ||
}, { | ||
style: 'road_map_desaturated_v9', | ||
operation: 'screen', | ||
percentage: 0.25 | ||
}, { | ||
style: 'dark_map_v9', | ||
operation: 'dodge', | ||
percentage: 0.25 | ||
}]); |
@@ -45,3 +45,3 @@ /* | ||
.spyOn(emsClient, 'getManifest') | ||
.mockImplementation(async (url: string): Promise<Object | unknown> => { | ||
.mockImplementation(async (url: string): Promise<object | unknown> => { | ||
//simulate network calls | ||
@@ -48,0 +48,0 @@ if (url.startsWith('https://foobar')) { |
Sorry, the diff of this file is not supported yet
797053
81
25029
9
+ Addedmaplibre-gl@3.1.0
+ Addednode-fetch@2.7.0
+ Added@mapbox/geojson-rewind@0.5.2(transitive)
+ Added@mapbox/jsonlint-lines-primitives@2.0.2(transitive)
+ Added@mapbox/point-geometry@0.1.0(transitive)
+ Added@mapbox/tiny-sdf@2.0.6(transitive)
+ Added@mapbox/unitbezier@0.0.1(transitive)
+ Added@mapbox/vector-tile@1.3.1(transitive)
+ Added@mapbox/whoots-js@3.1.0(transitive)
+ Added@maplibre/maplibre-gl-style-spec@19.3.3(transitive)
+ Added@types/geojson@7946.0.15(transitive)
+ Added@types/mapbox__point-geometry@0.1.4(transitive)
+ Added@types/mapbox__vector-tile@1.3.4(transitive)
+ Added@types/pbf@3.0.5(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedbytewise@1.1.0(transitive)
+ Addedbytewise-core@1.2.3(transitive)
+ Addedearcut@2.2.4(transitive)
+ Addedextend-shallow@2.0.13.0.2(transitive)
+ Addedgeojson-vt@3.2.1(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedgl-matrix@3.4.3(transitive)
+ Addedglobal-prefix@3.0.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-extendable@0.1.11.0.1(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedjson-stringify-pretty-compact@3.0.0(transitive)
+ Addedkdbush@4.0.2(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedmaplibre-gl@3.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmurmurhash-js@1.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedpbf@3.3.0(transitive)
+ Addedpotpack@2.0.0(transitive)
+ Addedprotocol-buffers-schema@3.6.0(transitive)
+ Addedquickselect@2.0.0(transitive)
+ Addedresolve-protobuf-schema@2.1.0(transitive)
+ Addedrw@1.3.3(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedsort-asc@0.2.0(transitive)
+ Addedsort-desc@0.2.0(transitive)
+ Addedsort-object@3.0.3(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedsupercluster@8.0.1(transitive)
+ Addedtinyqueue@2.0.3(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedtypewise@1.0.3(transitive)
+ Addedtypewise-core@1.2.0(transitive)
+ Addedunion-value@1.0.1(transitive)
+ Addedvt-pbf@3.1.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwhich@1.3.1(transitive)
- Removed@types/topojson-specification@^1.0.5
- Removed@types/geojson@7946.0.16(transitive)
Updated@types/geojson@7946.0.15
Updated@types/topojson-client@3.1.5
Updatedchroma-js@^2.6.0
Updatedsemver@^7.6.3