Socket
Socket
Sign inDemoInstall

ispapi-apiconnector

Package Overview
Dependencies
0
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.14 to 4.0.15

2

client.spec.js

@@ -23,3 +23,3 @@ /* jshint -W024 */

describe("client.js", function() {
this.timeout(250000);
this.timeout(300000);
this.slow(1000);

@@ -26,0 +26,0 @@

@@ -0,1 +1,7 @@

4.0.15 / 2017-07-12 [FUTURE RELEASE]
===================
* consider new API socket timeout in tests
* deactivated timeout test [nock.js issue 754](https://github.com/node-nock/nock/issues/754)
* dep bump of devDependencies
4.0.14 / 2017-07-12

@@ -2,0 +8,0 @@ ===================

{
"name": "ispapi-apiconnector",
"description": "1API API Connector for node.js",
"version": "4.0.14",
"version": "4.0.15",
"author": {

@@ -53,10 +53,10 @@ "name": "Kai Schwarz",

"devDependencies": {
"chai": "3.5.0",
"cross-env": "4.0.0",
"chai": "4.1.0",
"cross-env": "5.0.1",
"istanbul": "0.4.5",
"mocha": "3.2.0",
"nock": "9.0.11",
"nyc": "10.2.0"
"mocha": "3.4.2",
"nock": "9.0.13",
"nyc": "11.0.3"
},
"dependencies": {}
}

@@ -15,6 +15,6 @@ /* jshint -W024 */

describe("request.js", function() {
this.timeout(250000);
this.timeout(300000);
this.slow(1000);
after(function(){
after(function() {
nock.cleanAll();

@@ -61,8 +61,10 @@ });

it("check connection error [connection timeout]", function(done) {
//Skipping in favor of: https://github.com/node-nock/nock/issues/754
//socketDelay not working in nock 9.0.8++ in node.js 6
it.skip("check connection error [connection timeout]", function(done) {
nock('http://coreapi.1api.net')
.post('/api/call.cgi')
.socketDelay(300000) //300s; API timeout is 250s
.socketDelay(300000) //300s; API timeout is 300s
.reply(200, Response.responses.expired);
//note: even though timeout is defined, app comes directly backorder
//note: even though timeout is defined, app comes directly back
//but as requested: as a timeout! great!

@@ -69,0 +71,0 @@ var c = new Request({

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc