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

test-agent

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-agent - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

5

HISTORY.md

@@ -0,1 +1,6 @@

# 0.5.2
- export-error can now handle strings correctly for
cases like window.onerror when a string is given instead of an
Error instance.
# 0.5.1

@@ -2,0 +7,0 @@ - Added option to specify websocket server in test-agent test

13

lib/test-agent/export-error.js

@@ -72,13 +72,12 @@ (function(window) {

errorObject.stack = this.formatStack(err);
errorObject.message = err.message;
errorObject.type = err.type;
errorObject.constructorName = err.constructor.name;
errorObject.expected = err.expected;
errorObject.actual = err.actual;
errorObject.stack = this.formatStack(err) || '';
errorObject.message = err.message || err.toString();
errorObject.type = err.type || 'Error';
errorObject.constructorName = err.constructor.name || '';
errorObject.expected = err.expected || '';
errorObject.actual = err.actual || '';
return errorObject;
};
}(this));
{
"name": "test-agent",
"version": "0.5.1",
"version": "0.5.2",
"author": "James Lal",

@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli",

@@ -17,3 +17,3 @@ (function(window) {

groupTestsByDomain: function(test) {
var result = {
var result = {
domain: './proxy.html',

@@ -20,0 +20,0 @@ test: test,

@@ -12,3 +12,3 @@ (function(window) {

worker.use(TestAgent.BrowserWorker.MochaDriver, {
mochaUrl: '/mocha/mocha.js',
mochaUrl: '/vendor/mocha/mocha.js',
testHelperUrl: '/test/helper.js',

@@ -15,0 +15,0 @@ //don't need a reporter for proxy

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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