Socket
Socket
Sign inDemoInstall

egg-mock

Package Overview
Dependencies
Maintainers
5
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-mock - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

History.md
3.0.1 / 2017-02-22
==================
* fix: app.close in right order (#30)
3.0.0 / 2017-02-13

@@ -3,0 +8,0 @@ ==================

23

lib/app.js

@@ -119,11 +119,16 @@ 'use strict';

this.closed = true;
const arr = [];
if (this._agent) arr.push(this._agent.close());
if (this._app) arr.push(this._app.close());
let p = Promise.all(arr);
/* istanbul ignore if */
if (os.platform() === 'win32') {
p = p.then(() => sleep(1000));
}
return p;
const self = this;
return co(function* () {
if (self._app) {
yield self._app.close();
} else {
// when app init throws an exception, must wait for app quit gracefully
yield sleep(200);
}
if (self._agent) yield self._agent.close();
/* istanbul ignore if */
if (os.platform() === 'win32') yield sleep(1000);
});
}

@@ -130,0 +135,0 @@

{
"name": "egg-mock",
"version": "3.0.0",
"version": "3.0.1",
"eggPlugin": {

@@ -5,0 +5,0 @@ "name": "egg-mock"

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