Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ambl-on/lcu-ambl-on-common

Package Overview
Dependencies
Maintainers
2
Versions
420
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ambl-on/lcu-ambl-on-common - npm Package Compare versions

Comparing version 0.2.402-integration to 0.2.403-map

7

esm2015/lib/services/map.service.js

@@ -317,4 +317,7 @@ /**

loc.iconName = loc.Icon.toLowerCase();
loc.iconName = loc.Icon === 'hotel' ? 'lodging' : loc.iconName;
loc.iconName = loc.iconName === 'hotel' ? 'lodging' : loc.iconName;
loc.iconName = loc.Icon.toLowerCase() === 'unesco' ? 'UNESCO' : loc.iconName;
loc.title = loc.Title;
loc.lat = loc.Latitude;
loc.lng = loc.Longitude;
}));

@@ -446,2 +449,2 @@ return locations;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQXlCLE1BQU0sNkJBQTZCLENBQUM7QUFDbkYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDekQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUQsT0FB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c3RyaW5nKTogdm9pZCB7XHJcbiAgICB0aGlzLk1hcENoYW5nZWQuZW1pdCh0aGlzLnByaW1hcnlNYXApO1xyXG4gIH1cclxuXHJcbiAgcHJvdGVjdGVkIGNvbnZlcnRMb2NhdGlvbkRhdGFUb01hcE1hcmtlcnMobG9jYXRpb25zOiBhbnlbXSkge1xyXG4gICAgcmV0dXJuIGxvY2F0aW9ucy5tYXAobG9jYXRpb24gPT4ge1xyXG4gICAgICByZXR1cm4gPE1hcE1hcmtlcj57XHJcbiAgICAgICAgYWRkcmVzczogbG9jYXRpb24uQWRkcmVzcyxcclxuICAgICAgICBpY29uTmFtZTogbG9jYXRpb24uSWNvbixcclxuICAgICAgICB0aXRsZTogbG9jYXRpb24uVGl0bGUsXHJcbiAgICAgICAgbGF0OiBsb2NhdGlvbi5MYXRpdHVkZSxcclxuICAgICAgICBsbmc6IGxvY2F0aW9uLkxvbmdpdHVkZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeVxyXG4gICAgICB9O1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQXlCLE1BQU0sNkJBQTZCLENBQUM7QUFDbkYsT0FBTyxFQUFFLGt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kZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeVxyXG4gICAgICB9O1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==

@@ -522,4 +522,7 @@ /**

loc.iconName = loc.Icon.toLowerCase();
loc.iconName = loc.Icon === 'hotel' ? 'lodging' : loc.iconName;
loc.iconName = loc.iconName === 'hotel' ? 'lodging' : loc.iconName;
loc.iconName = loc.Icon.toLowerCase() === 'unesco' ? 'UNESCO' : loc.iconName;
loc.title = loc.Title;
loc.lat = loc.Latitude;
loc.lng = loc.Longitude;
}));

@@ -699,2 +702,2 @@ return locations;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQXlCLE1BQU0sNkJBQTZCLENBQUM7QUFDbkYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDekQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNL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mV0dXJuIGxvY2F0aW9ucy5tYXAobG9jYXRpb24gPT4ge1xyXG4gICAgICByZXR1cm4gPE1hcE1hcmtlcj57XHJcbiAgICAgICAgYWRkcmVzczogbG9jYXRpb24uQWRkcmVzcyxcclxuICAgICAgICBpY29uTmFtZTogbG9jYXRpb24uSWNvbixcclxuICAgICAgICB0aXRsZTogbG9jYXRpb24uVGl0bGUsXHJcbiAgICAgICAgbGF0OiBsb2NhdGlvbi5MYXRpdHVkZSxcclxuICAgICAgICBsbmc6IGxvY2F0aW9uLkxvbmdpdHVkZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeVxyXG4gICAgICB9O1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQXlCLE1BQU0sNkJBQTZCLENBQUM7QUFDbkYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDekQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0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gc2Vjb25kYXJ5IG1hcHMgdG8gYSBsaXN0IG9mIGFsbCB0aGUgbWFwcyBtaW51cyB0aGF0IHdpdGggdGhlIHBhc3NlZCBpZFxyXG4gICAqXHJcbiAgICogRW1pdHMgdGhlIG5ldyBwcmltYXJ5IG1hcFxyXG4gICAqL1xyXG4gIHByb3RlY3RlZCBzZXRNYXBzV2l0aFByaW1hcnlJZChpZDogc3RyaW5nKTogdm9pZCB7XHJcbiAgICB0aGlzLk1hcENoYW5nZWQuZW1pdCh0aGlzLnByaW1hcnlNYXApO1xyXG4gIH1cclxuXHJcbiAgcHJvdGVjdGVkIGNvbnZlcnRMb2NhdGlvbkRhdGFUb01hcE1hcmtlcnMobG9jYXRpb25zOiBhbnlbXSkge1xyXG4gICAgcmV0dXJuIGxvY2F0aW9ucy5tYXAobG9jYXRpb24gPT4ge1xyXG4gICAgICByZXR1cm4gPE1hcE1hcmtlcj57XHJcbiAgICAgICAgYWRkcmVzczogbG9jYXRpb24uQWRkcmVzcyxcclxuICAgICAgICBpY29uTmFtZTogbG9jYXRpb24uSWNvbixcclxuICAgICAgICB0aXRsZTogbG9jYXRpb24uVGl0bGUsXHJcbiAgICAgICAgbGF0OiBsb2NhdGlvbi5MYXRpdHVkZSxcclxuICAgICAgICBsbmc6IGxvY2F0aW9uLkxvbmdpdHVkZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeVxyXG4gICAgICB9O1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
{
"name": "@ambl-on/lcu-ambl-on-common",
"version": "0.2.402-integration",
"version": "0.2.403-map",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^7.2.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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