Files
pathfinder/public/js/v2.2.0/app/worker/map.js
Sam 15a0fcee0f Bug fixes for v2.2.0 (#81)
* util.js: decode shipname for popover

* Bump version to 2.2.0

* Bump react/promise-stream from 1.2.0 to 1.3.0 (#46)

Bumps [react/promise-stream](https://github.com/reactphp/promise-stream) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/reactphp/promise-stream/releases)
- [Changelog](https://github.com/reactphp/promise-stream/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactphp/promise-stream/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: react/promise-stream
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump monolog/monolog from 2.3.4 to 2.3.5 (#37)

Bumps [monolog/monolog](https://github.com/Seldaek/monolog) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/Seldaek/monolog/releases)
- [Changelog](https://github.com/Seldaek/monolog/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Seldaek/monolog/compare/2.3.4...2.3.5)

---
updated-dependencies:
- dependency-name: monolog/monolog
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam <30859143+samoneilll@users.noreply.github.com>

* Bump slash from 3.0.0 to 4.0.0 (#34)

Bumps [slash](https://github.com/sindresorhus/slash) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/sindresorhus/slash/releases)
- [Commits](https://github.com/sindresorhus/slash/compare/v3.0.0...v4.0.0)

---
updated-dependencies:
- dependency-name: slash
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump gulp-imagemin from 7.1.0 to 8.0.0 (#33)

Bumps [gulp-imagemin](https://github.com/sindresorhus/gulp-imagemin) from 7.1.0 to 8.0.0.
- [Release notes](https://github.com/sindresorhus/gulp-imagemin/releases)
- [Commits](https://github.com/sindresorhus/gulp-imagemin/compare/v7.1.0...v8.0.0)

---
updated-dependencies:
- dependency-name: gulp-imagemin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump gulp-sourcemaps from 2.6.5 to 3.0.0 (#32)

Bumps [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps) from 2.6.5 to 3.0.0.
- [Release notes](https://github.com/gulp-sourcemaps/gulp-sourcemaps/releases)
- [Commits](https://github.com/gulp-sourcemaps/gulp-sourcemaps/compare/v2.6.5...v3.0.0)

---
updated-dependencies:
- dependency-name: gulp-sourcemaps
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump gulp-filter from 6.0.0 to 7.0.0 (#30)

Bumps [gulp-filter](https://github.com/sindresorhus/gulp-filter) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/sindresorhus/gulp-filter/releases)
- [Commits](https://github.com/sindresorhus/gulp-filter/compare/v6.0.0...v7.0.0)

---
updated-dependencies:
- dependency-name: gulp-filter
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump gulp-autoprefixer from 7.0.1 to 8.0.0 (#31)

Bumps [gulp-autoprefixer](https://github.com/sindresorhus/gulp-autoprefixer) from 7.0.1 to 8.0.0.
- [Release notes](https://github.com/sindresorhus/gulp-autoprefixer/releases)
- [Commits](https://github.com/sindresorhus/gulp-autoprefixer/compare/v7.0.1...v8.0.0)

---
updated-dependencies:
- dependency-name: gulp-autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam <30859143+samoneilll@users.noreply.github.com>

* Bump cache/filesystem-adapter from 1.0.0 to 1.1.0 (#29)

Bumps [cache/filesystem-adapter](https://github.com/php-cache/filesystem-adapter) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/php-cache/filesystem-adapter/releases)
- [Changelog](https://github.com/php-cache/filesystem-adapter/blob/master/Changelog.md)
- [Commits](https://github.com/php-cache/filesystem-adapter/compare/1.0.0...1.1.0)

---
updated-dependencies:
- dependency-name: cache/filesystem-adapter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam <30859143+samoneilll@users.noreply.github.com>

* Bump react/socket from 1.3.0 to 1.9.0 (#27)

Bumps [react/socket](https://github.com/reactphp/socket) from 1.3.0 to 1.9.0.
- [Release notes](https://github.com/reactphp/socket/releases)
- [Changelog](https://github.com/reactphp/socket/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactphp/socket/compare/v1.3.0...v1.9.0)

---
updated-dependencies:
- dependency-name: react/socket
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam <30859143+samoneilll@users.noreply.github.com>

* Bump cache/redis-adapter from 1.0.0 to 1.1.0 (#28)

Bumps [cache/redis-adapter](https://github.com/php-cache/redis-adapter) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/php-cache/redis-adapter/releases)
- [Changelog](https://github.com/php-cache/redis-adapter/blob/master/Changelog.md)
- [Commits](https://github.com/php-cache/redis-adapter/compare/1.0.0...1.1.0)

---
updated-dependencies:
- dependency-name: cache/redis-adapter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam <30859143+samoneilll@users.noreply.github.com>

* requirements.ini: bumps memory requirement to 256M

* package.json: downgrades imagemin to 7.1.0

* package-lock.json: resolves npm-audit dependency warnings

* AbstractRallyWebhookHandler.php: Convert Truesec value to str

* CorporationModel.php: resets corporationStructureModel instance to avoid overwriting the same record

* Updates wormhole minimum jump mass

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 11:28:03 +01:00

3 lines
2.1 KiB
JavaScript

"use strict";let window={};self.importScripts(self.name);let MsgWorker=window.MsgWorker,socket=null,ports=[],characterPorts=[],initSocket=t=>{let e=new MsgWorker("ws:open");null===socket?((socket=new WebSocket(t)).onopen=(t=>{e.meta({readyState:socket.readyState}),sendToCurrentPort(e)}),socket.onmessage=(t=>{let e=JSON.parse(t.data),r=new MsgWorker("ws:send");r.task(e.task),r.meta({readyState:this.readyState,characterIds:e.characterIds}),r.data(e.load),broadcastPorts(r)}),socket.onclose=(t=>{let e=new MsgWorker("ws:closed");e.meta({readyState:socket.readyState,code:t.code,reason:t.reason,wasClean:t.wasClean}),broadcastPorts(e),socket=null}),socket.onerror=(t=>{let e=new MsgWorker("ws:error");e.meta({readyState:socket.readyState}),sendToCurrentPort(e)})):(e.meta({readyState:socket.readyState}),sendToCurrentPort(e))},sendToCurrentPort=t=>{ports[ports.length-1].postMessage(t)},broadcastPorts=t=>{let e=ports,r=t.meta();r&&r.characterIds&&"undefined"!==r.characterIds&&r.characterIds instanceof Array&&(e=getPortsByCharacterIds(r.characterIds));for(let r=0;r<e.length;r++)e[r].postMessage(t)},addPort=(t,e)=>{(e=parseInt(e))>0?characterPorts.push({characterId:e,port:t}):ports.push(t)},getPortsByCharacterIds=t=>{let e=[];for(let r=0;r<characterPorts.length;r++)for(let a=0;a<t.length;a++)characterPorts[r].characterId===t[a]&&e.push(characterPorts[r].port);return e},removePort=t=>{let e=[],r=characterPorts.length;for(;r--;)characterPorts[r].port===t&&(e.push(characterPorts[r].characterId),characterPorts.splice(r,1));let a=ports.length;for(;a--;)ports[a]===t&&ports.splice(a,1);return[...new Set(e)]};self.addEventListener("connect",t=>{let e=t.ports[0];addPort(e),e.addEventListener("message",t=>{let r=t.data;switch(Object.setPrototypeOf(r,MsgWorker.prototype),r.command){case"ws:init":let t=r.data();addPort(e,t.characterId),initSocket(t.uri);break;case"ws:send":socket.send(JSON.stringify({task:r.task(),load:r.data()}));break;case"sw:closePort":e.close();let a=removePort(e);getPortsByCharacterIds(a).length||socket.send(JSON.stringify({task:r.task(),load:a}))}},!1),e.start()},!1);
//# sourceMappingURL=map.js.map