New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@elastic/ems-client

Package Overview
Dependencies
Maintainers
61
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/ems-client - npm Package Compare versions

Comparing version 7.2.0 to 7.2.1

.ci/jobs/defaults.yml

14

babel.config.js

@@ -26,5 +26,17 @@ module.exports = {

]
},
test: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current'
}
}
]
]
}
},
plugins: [

@@ -31,0 +43,0 @@ '@babel/plugin-proposal-class-properties'

@@ -7,2 +7,7 @@ # Changelog

## [7.2.1] - 2019-12-11
### Fixed
- Inject correct attribution into vector tile sources [#14](https://github.com/elastic/ems-client/pull/14/files)
## [7.2.0] - 2019-11-12

@@ -9,0 +14,0 @@ Bump version to match the corresponding Elastic Maps Service version. This release does not introduce any changes.

2

package.json
{
"name": "@elastic/ems-client",
"version": "7.2.0",
"version": "7.2.1",
"description": "JavaScript client library for the Elastic Maps Service",

@@ -5,0 +5,0 @@ "main": "target/node/index.js",

@@ -50,5 +50,8 @@ /*

});
// Override the attribution in the sources with the localized attribution
const htmlAttribution = await this.getHTMLAttribution()
inlinedSources[sourceName] = {
type: 'vector',
...sourceJson,
attribution: htmlAttribution,
tiles: extendedTileUrls

@@ -55,0 +58,0 @@ };

@@ -47,6 +47,9 @@ "use strict";

return this._emsClient.extendUrlWithParams(url);
});
}); // Override the attribution in the sources with the localized attribution
const htmlAttribution = await this.getHTMLAttribution();
inlinedSources[sourceName] = {
type: 'vector',
...sourceJson,
attribution: htmlAttribution,
tiles: extendedTileUrls

@@ -53,0 +56,0 @@ };

@@ -99,3 +99,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

regeneratorRuntime.mark(function _callee3() {
var vectorJson, inlinedSources, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, sourceName, sourceUrl, extendedUrl, sourceJson, extendedTileUrls;
var vectorJson, inlinedSources, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, sourceName, sourceUrl, extendedUrl, sourceJson, extendedTileUrls, htmlAttribution;

@@ -120,3 +120,3 @@ return regeneratorRuntime.wrap(function _callee3$(_context3) {

if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
_context3.next = 21;
_context3.next = 24;
break;

@@ -136,10 +136,17 @@ }

return _this._emsClient.extendUrlWithParams(url);
});
}); // Override the attribution in the sources with the localized attribution
_context3.next = 19;
return _this.getHTMLAttribution();
case 19:
htmlAttribution = _context3.sent;
inlinedSources[sourceName] = _objectSpread({
type: 'vector'
}, sourceJson, {
attribution: htmlAttribution,
tiles: extendedTileUrls
});
case 18:
case 21:
_iteratorNormalCompletion = true;

@@ -149,8 +156,8 @@ _context3.next = 9;

case 21:
_context3.next = 27;
case 24:
_context3.next = 30;
break;
case 23:
_context3.prev = 23;
case 26:
_context3.prev = 26;
_context3.t0 = _context3["catch"](7);

@@ -160,5 +167,5 @@ _didIteratorError = true;

case 27:
_context3.prev = 27;
_context3.prev = 28;
case 30:
_context3.prev = 30;
_context3.prev = 31;

@@ -169,7 +176,7 @@ if (!_iteratorNormalCompletion && _iterator["return"] != null) {

case 30:
_context3.prev = 30;
case 33:
_context3.prev = 33;
if (!_didIteratorError) {
_context3.next = 33;
_context3.next = 36;
break;

@@ -180,9 +187,9 @@ }

case 33:
case 36:
return _context3.finish(33);
case 37:
return _context3.finish(30);
case 34:
return _context3.finish(27);
case 35:
case 38:
_context3.t1 = _objectSpread;

@@ -192,6 +199,6 @@ _context3.t2 = {};

_context3.t4 = inlinedSources;
_context3.next = 41;
_context3.next = 44;
return _this._getSpriteSheetRootPath();
case 41:
case 44:
_context3.t5 = _context3.sent;

@@ -204,3 +211,3 @@ _context3.t6 = {

case 44:
case 47:
case "end":

@@ -210,3 +217,3 @@ return _context3.stop();

}
}, _callee3, null, [[7, 23, 27, 35], [28,, 30, 34]]);
}, _callee3, null, [[7, 26, 30, 38], [31,, 33, 37]]);
}))));

@@ -213,0 +220,0 @@

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