testee-client
Advanced tools
Comparing version 0.4.0-pre.6 to 0.4.0
@@ -5,3 +5,3 @@ const path = require('path'); | ||
stealTools.export({ | ||
system: { | ||
steal: { | ||
config: path.join(__dirname, 'package.json!npm') | ||
@@ -8,0 +8,0 @@ }, |
{ | ||
"name": "testee-client", | ||
"version": "0.4.0-pre.6", | ||
"version": "0.4.0", | ||
"description": "Testee testing framework client adapters", | ||
@@ -30,3 +30,3 @@ "main": "src/index", | ||
], | ||
"system": { | ||
"steal": { | ||
"main": "testee-client/index", | ||
@@ -40,3 +40,3 @@ "directories": { | ||
}, | ||
"socket.io-client/socket.io": { | ||
"socket.io-client/dist/socket.io": { | ||
"format": "amd" | ||
@@ -54,3 +54,3 @@ } | ||
"feathers-rest": "^1.5.0", | ||
"superagent": "^2.3.0" | ||
"superagent": "^3.0.0" | ||
}, | ||
@@ -73,3 +73,3 @@ "devDependencies": { | ||
"qunitjs": "^1.23.1", | ||
"socket.io-client": "^1.4.8", | ||
"socket.io-client": "^1.7.2", | ||
"steal": "^1.0.0-rc.3", | ||
@@ -76,0 +76,0 @@ "steal-tools": "^1.0.0-rc.1" |
@@ -10,3 +10,3 @@ require('core-js/client/core'); | ||
var superagent = require('superagent/lib/client'); | ||
var io = require('socket.io-client/socket.io'); | ||
var io = require('socket.io-client/dist/socket.io'); | ||
var socketio = require('feathers-socketio/client'); | ||
@@ -13,0 +13,0 @@ |
@@ -63,3 +63,4 @@ var _ = { | ||
data = Object.assign({ | ||
status: 'passed' | ||
status: 'passed', | ||
state: 'passed' | ||
}, data); | ||
@@ -71,3 +72,4 @@ this.call('tests', 'patch', data.id, data); | ||
data = Object.assign({ | ||
status: 'failed' | ||
status: 'failed', | ||
state: 'failed' | ||
}, data); | ||
@@ -74,0 +76,0 @@ this.call('tests', 'patch', data.id, data); |
@@ -0,1 +1,5 @@ | ||
function inRange(expected, current, range) { | ||
return (current - range) <= expected && (current + range) >= expected; | ||
} | ||
// Recursively compares if an actual object has the same properties | ||
@@ -12,2 +16,4 @@ var compare = window.compare = function(reference, actual, name) { | ||
compare(expected, current, name + ' ' + key); | ||
} else if(key === 'duration') { | ||
ok(inRange(expected, current, 20), name + ' ' + key + ' === ' + expected + '(+/- 20)'); | ||
} else { | ||
@@ -14,0 +20,0 @@ equal(expected, current, name + ' ' + key + ' === ' + expected); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1147795
20881
12
20
+ Addedasynckit@0.4.0(transitive)
+ Addedform-data@2.5.1(transitive)
+ Addedsuperagent@3.8.3(transitive)
- Removedasync@1.5.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedform-data@1.0.0-rc4(transitive)
- Removedms@2.0.0(transitive)
- Removedsuperagent@2.3.0(transitive)
Updatedsuperagent@^3.0.0