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.1.301-my-atlas to 0.1.302-map

5

esm2015/lib/services/map.service.js

@@ -42,3 +42,3 @@ /**

this.MarkerList = Constants.DEFAULT_MARKER_INFO;
this.primaryMap = this.tempStorage.GetMapList()[0];
this.primaryMap = this.tempStorage.GetLastUsedId() !== '' ? this.tempStorage.GetMapById(this.tempStorage.GetLastUsedId()) : this.tempStorage.GetMapList()[0];
this.mapList = this.tempStorage.GetMapList().filter((/**

@@ -366,2 +366,3 @@ * @param {?} map

setMapsWithPrimaryId(id) {
this.tempStorage.SetLastUsedId(id);
this.primaryMap = this.tempStorage.GetMapById(id);

@@ -442,2 +443,2 @@ this.mapList = this.tempStorage.GetMapList().filter((/**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQ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GggOiAzMDB9eCR7aGVpZ2h0ICYmIHdpZHRoID8gaGVpZ2h0IDogMzAwfVxyXG4gICAgJmtleT1BSXphU3lBc0toNF9UWHBZVjU3U0JzN2ozYjZxRmNKVUc2Zk5Ib1VgO1xyXG4gIH1cclxuXHJcbiAgLyoqXHJcbiAgICpcclxuICAgKiBAcGFyYW0gaWQgVGhlIGlkIG9mIHRoZSBuZXcgcHJpbWFyeSBtYXBcclxuICAgKlxyXG4gICAqIFNldHMgdGhlIHByaW1hcnkgbWFwIHRvIHRoYXQgd2l0aCB0aGUgcGFzc2VkIGlkLFxyXG4gICAqXHJcbiAgICogU2V0cyB0aGUgc2Vjb25kYXJ5IG1hcHMgdG8gYSBsaXN0IG9mIGFsbCB0aGUgbWFwcyBtaW51cyB0aGF0IHdpdGggdGhlIHBhc3NlZCBpZFxyXG4gICAqXHJcbiAgICogRW1pdHMgdGhlIG5ldyBwcmltYXJ5IG1hcFxyXG4gICAqL1xyXG4gIHByb3RlY3RlZCBzZXRNYXBzV2l0aFByaW1hcnlJZChpZDogc3RyaW5nKTogdm9pZCB7XHJcbiAgICB0aGlzLnRlbXBTdG9yYWdlLlNldExhc3RVc2VkSWQoaWQpO1xyXG4gICAgdGhpcy5wcmltYXJ5TWFwID0gdGhpcy50ZW1wU3RvcmFnZS5HZXRNYXBCeUlkKGlkKTtcclxuICAgIHRoaXMubWFwTGlzdCA9IHRoaXMudGVtcFN0b3JhZ2UuR2V0TWFwTGlzdCgpLmZpbHRlcihtYXAgPT4gbWFwLmlkICE9PSBpZCk7XHJcbiAgICB0aGlzLk1hcENoYW5nZWQuZW1pdCh0aGlzLnByaW1hcnlNYXApO1xyXG4gIH1cclxuXHJcbn1cclxuIl19

@@ -39,3 +39,3 @@ /**

this.MarkerList = Constants.DEFAULT_MARKER_INFO;
this.primaryMap = this.tempStorage.GetMapList()[0];
this.primaryMap = this.tempStorage.GetLastUsedId() !== '' ? this.tempStorage.GetMapById(this.tempStorage.GetLastUsedId()) : this.tempStorage.GetMapList()[0];
this.mapList = this.tempStorage.GetMapList().filter((/**

@@ -657,2 +657,3 @@ * @param {?} map

function (id) {
this.tempStorage.SetLastUsedId(id);
this.primaryMap = this.tempStorage.GetMapById(id);

@@ -735,2 +736,2 @@ this.mapList = this.tempStorage.GetMapList().filter((/**

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

2

package.json
{
"name": "@ambl-on/lcu-ambl-on-common",
"version": "0.1.301-my-atlas",
"version": "0.1.302-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