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

poi-plugin-ship-info

Package Overview
Dependencies
Maintainers
5
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poi-plugin-ship-info - npm Package Compare versions

Comparing version 4.6.3 to 4.6.4

2

package.json
{
"name": "poi-plugin-ship-info",
"version": "4.6.3",
"version": "4.6.4",
"description": "Show detailed information of all owned ship girls",

@@ -5,0 +5,0 @@ "main": "index.es",

@@ -47,3 +47,4 @@ 'use strict';

try {
require('poi-plugin-translator').pluginDidLoad(); // eslint-disable-line global-require
require('poi-plugin-translator').pluginDidLoad // eslint-disable-line global-require
();
} catch (error) {

@@ -54,4 +55,4 @@ console.warn(error);

window.__ = i18n.__.bind(i18n);
window.__r = i18n.resources.__.bind(i18n.resources); // eslint-disable-line no-underscore-dangle
document.title = window.__('Ship Girls Info');
window.__r = i18n.resources.__.bind(i18n.resources // eslint-disable-line no-underscore-dangle
);document.title = window.__('Ship Girls Info'

@@ -73,3 +74,3 @@ // // augment font size with poi zoom level

// remember window size
window.shipInfoWindow = _electron.remote.getCurrentWindow();
);window.shipInfoWindow = _electron.remote.getCurrentWindow();
window.shipInfoContents = _electron.remote.getCurrentWebContents();

@@ -76,0 +77,0 @@

@@ -255,7 +255,7 @@ 'use strict';

const beforeShipMapSelector = (0, _reselect.createSelector)([ourShipsSelector], $ships => (0, _lodash2.default)($ships).filter(ship => +(ship.api_aftershipid || 0) > 0).map(ship => [ship.api_aftershipid, ship.api_id]).fromPairs().value());
const beforeShipMapSelector = (0, _reselect.createSelector)([ourShipsSelector], $ships => (0, _lodash2.default)($ships).filter(ship => +(ship.api_aftershipid || 0) > 0).map(ship => [ship.api_aftershipid, ship.api_id]).fromPairs().value()
// the chain starts from each ship, thus incomplete if the ship is not the starting one
// the adjustedRemodelChainsSelector will return complete chains for all ships
const remodelChainsSelector = (0, _reselect.createSelector)([ourShipsSelector], $ships => (0, _lodash2.default)($ships).mapValues(({ api_id: shipId }) => {
);const remodelChainsSelector = (0, _reselect.createSelector)([ourShipsSelector], $ships => (0, _lodash2.default)($ships).mapValues(({ api_id: shipId }) => {
let current = $ships[shipId];

@@ -262,0 +262,0 @@ let next = +(current.api_aftershipid || 0);

@@ -80,5 +80,5 @@ 'use strict';

this.onSelect = (eventKey = this.state.query) => {
const settings = (0, _lodash.get)(this.props.bookmarks, eventKey, {});
const settings = (0, _lodash.get)(this.props.bookmarks, eventKey, {}
// comvert old settings to new
if ('shipTypeChecked' in settings) {
);if ('shipTypeChecked' in settings) {
settings.shipTypes = (0, _utils.boolArrayToInt)(settings.shipTypeChecked);

@@ -142,4 +142,4 @@ }

const result = query.length > 0 ? Object.entries(this.fuse.search(query)).map(([key, value]) => value) // eslint-disable-line no-unused-vars
.map(value => value.name) : Object.keys(this.props.bookmarks);
const result = query.length > 0 ? Object.entries(this.fuse.search(query)).map(([key, value]) => value // eslint-disable-line no-unused-vars
).map(value => value.name) : Object.keys(this.props.bookmarks);
return _react2.default.createElement(

@@ -146,0 +146,0 @@ 'ul',

@@ -50,6 +50,6 @@ 'use strict';

const defaultChecked = Array(mapname.length + 1).fill(true);
let checked = (0, _lodash.get)(state.config, 'plugin.ShipInfo.sallyAreaChecked', defaultChecked);
let checked = (0, _lodash.get)(state.config, 'plugin.ShipInfo.sallyAreaChecked', defaultChecked
// reset config values if updated
checked = mapname.length + 1 === checked.length ? checked : defaultChecked;
);checked = mapname.length + 1 === checked.length ? checked : defaultChecked;
const checkedAll = checked.reduce((a, b) => a && b, true);

@@ -56,0 +56,0 @@

@@ -177,3 +177,3 @@ 'use strict';

this.updateWindowSize();
window.addEventListener('resize', this.updateWindowSize);
window.addEventListener('resize', this.updateWindowSize
// console.log(document.querySelectorAll('.ReactVirtualized__Grid'))

@@ -183,9 +183,11 @@ // document.querySelectorAll('.ReactVirtualized__Grid').forEach((target) => {

// })
);
};
this.componentWillUnmount = () => {
window.removeListener('resize', this.updateWindowSize);
window.removeListener('resize', this.updateWindowSize
// document.querySelectorAll('.ReactVirtualized__Grid').forEach((target) => {
// target.removeEventListener('scroll', this.handleScroll)
// })
);
};

@@ -192,0 +194,0 @@

@@ -47,3 +47,3 @@ 'use strict';

{ id: `item-${item.api_id}`, className: 'info-tooltip' },
window.i18n.resources.__(item.api_name),
window.i18n.resources.__(item.api_name || ''),
item.api_level > 0 ? _react2.default.createElement(

@@ -71,4 +71,4 @@ 'strong',

_react2.default.createElement(_icon.SlotitemIcon, {
alt: window.i18n.resources.__(item.api_name),
slotitemId: item.api_type[3],
alt: window.i18n.resources.__(item.api_name || ''),
slotitemId: (0, _lodash.get)(item, 'api_type.3', -1),
style: { zIndex: 1 }

@@ -99,3 +99,3 @@ }),

const items = (0, _lodash.map)((0, _lodash.filter)(slot, itemId => itemId > 0), itemId => {
const [item, $item] = (0, _selectors.equipDataSelectorFactory)(itemId)(state);
const [item = {}, $item = {}] = (0, _selectors.equipDataSelectorFactory)(itemId)(state) || [];
return _extends({}, $item, item);

@@ -105,3 +105,3 @@ });

if (exslot > 0) {
const [item, $item] = (0, _selectors.equipDataSelectorFactory)(exslot)(state);
const [item = {}, $item = {}] = (0, _selectors.equipDataSelectorFactory)(exslot)(state) || [];
exitem = _extends({}, $item, item);

@@ -108,0 +108,0 @@ }

@@ -235,3 +235,3 @@ 'use strict';

const getKanaSortValues = exports.getKanaSortValues = str => katakanaToHiragana(str).split('').map(s => s.charCodeAt());
const getKanaSortValues = exports.getKanaSortValues = str => katakanaToHiragana(str).split('').map(s => s.charCodeAt()

@@ -242,3 +242,3 @@ // following function is used to convert betweern array of booleans and int

// [true, false, false] => [true, true, false, false] => '1100' => 12
const intToBoolArray = exports.intToBoolArray = (int = 0) => {
);const intToBoolArray = exports.intToBoolArray = (int = 0) => {
const boolArray = int.toString(2).split('').map(s => !!+s);

@@ -245,0 +245,0 @@ boolArray.shift();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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