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

@probe.gl/test-utils

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@probe.gl/test-utils - npm Package Compare versions

Comparing version 3.0.0-alpha.2 to 3.0.0-alpha.3

dist/es5/utils/log-to-dom.js

9

dist/es5/browser-automation/browser-test-driver.js

@@ -76,5 +76,2 @@ "use strict";

var exposeFunctions = Object.assign({}, config.exposeFunctions, {
browserTestDriver_isHeadless: function browserTestDriver_isHeadless() {
return _this2.headless;
},
browserTestDriver_fail: function browserTestDriver_fail() {

@@ -92,2 +89,8 @@ return _this2.failures++;

if (_this2.headless) {
exposeFunctions.browserTestDriver_isHeadless = function () {
return true;
};
}
if (config.exposeFunction) {

@@ -94,0 +97,0 @@ _this2.logger.removed('exposeFunction', 'browserTestDriver_sendMessage');

@@ -32,2 +32,8 @@ "use strict";

});
Object.defineProperty(exports, "_enableDOMLogging", {
enumerable: true,
get: function get() {
return _logToDom.enableDOMLogging;
}
});

@@ -41,2 +47,4 @@ var _makeSpy = require("./make-spy");

var _diffImages = _interopRequireDefault(require("./utils/diff-images"));
var _logToDom = require("./utils/log-to-dom");
//# sourceMappingURL=index.js.map

@@ -35,3 +35,2 @@ import BrowserDriver from './browser-driver';

const exposeFunctions = Object.assign({}, config.exposeFunctions, {
browserTestDriver_isHeadless: () => this.headless,
browserTestDriver_fail: () => this.failures++,

@@ -43,2 +42,6 @@ browserTestDriver_finish: message => resolve(message),

if (this.headless) {
exposeFunctions.browserTestDriver_isHeadless = () => true;
}
if (config.exposeFunction) {

@@ -45,0 +48,0 @@ this.logger.removed('exposeFunction', 'browserTestDriver_sendMessage');

@@ -5,2 +5,3 @@ export { makeSpy } from './make-spy';

export { default as _diffImages } from './utils/diff-images';
export { enableDOMLogging as _enableDOMLogging } from './utils/log-to-dom';
//# sourceMappingURL=index.js.map

@@ -59,5 +59,2 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

var exposeFunctions = Object.assign({}, config.exposeFunctions, {
browserTestDriver_isHeadless: function browserTestDriver_isHeadless() {
return _this2.headless;
},
browserTestDriver_fail: function browserTestDriver_fail() {

@@ -75,2 +72,8 @@ return _this2.failures++;

if (_this2.headless) {
exposeFunctions.browserTestDriver_isHeadless = function () {
return true;
};
}
if (config.exposeFunction) {

@@ -77,0 +80,0 @@ _this2.logger.removed('exposeFunction', 'browserTestDriver_sendMessage');

@@ -5,2 +5,3 @@ export { makeSpy } from './make-spy';

export { default as _diffImages } from './utils/diff-images';
export { enableDOMLogging as _enableDOMLogging } from './utils/log-to-dom';
//# sourceMappingURL=index.js.map

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.3",
"keywords": [

@@ -30,5 +30,5 @@ "integration test",

"pixelmatch": "^4.0.2",
"probe.gl": "^3.0.0-alpha.1",
"probe.gl": "^3.0.0-alpha.3",
"puppeteer": "1.8.0"
}
}

@@ -61,3 +61,2 @@ // Copyright (c) 2015 - 2017 Uber Technologies, Inc.

const exposeFunctions = Object.assign({}, config.exposeFunctions, {
browserTestDriver_isHeadless: () => this.headless,
browserTestDriver_fail: () => this.failures++,

@@ -70,2 +69,9 @@ browserTestDriver_finish: message => resolve(message),

// Puppeteer can only inject functions, not values, into the global scope
// In headless mode, we inject the function so it's truthy
// In non-headless mode, we don't inject the function so it's undefined
if (this.headless) {
exposeFunctions.browserTestDriver_isHeadless = () => true;
}
// Legacy config

@@ -72,0 +78,0 @@ if (config.exposeFunction) {

@@ -10,1 +10,3 @@ export {makeSpy} from './make-spy';

export {default as _diffImages} from './utils/diff-images';
// DOM logging
export {enableDOMLogging as _enableDOMLogging} from './utils/log-to-dom';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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