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 5.0.0 to 5.0.1

2

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

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

@@ -7,4 +7,2 @@ 'use strict';

var _bluebird = require('bluebird');
var _fsExtra = require('fs-extra');

@@ -28,16 +26,12 @@

constructor() {
this.writing = false;
this._queue = [];
}
var _this = this;
write(path, data, options, callback) {
this._queue.push([path, data, options, callback]);
this._continueWriting();
}
this.write = (path, data, options, callback) => {
this._queue.push([path, data, options, callback]);
this._continueWriting();
};
_continueWriting() {
var _this = this;
return _asyncToGenerator(function* () {
this._continueWriting = _asyncToGenerator(function* () {
if (_this.writing) {
setTimeout(_this._continueWriting, 100); // FIXME: is this necessary ?
return;

@@ -48,4 +42,3 @@ }

const [path, data, options, callback] = _this._queue.shift();
yield (0, _bluebird.promisify)(_fsExtra.ensureDir)((0, _pathExtra.dirname)(path));
const err = yield (0, _bluebird.promisify)(_fsExtra.outputJson)(path, data, options);
const err = yield (0, _fsExtra.outputJson)(path, data, options);
if (callback) {

@@ -56,6 +49,10 @@ callback(err);

_this.writing = false;
})();
});
this.writing = false;
this._queue = [];
}
}
exports.default = FileWriter;
module.exports = exports['default'];

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