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

@applitools/dom-capture

Package Overview
Dependencies
Maintainers
21
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/dom-capture - npm Package Compare versions

Comparing version 7.2.4 to 7.2.5

4

CHANGELOG.md

@@ -7,2 +7,6 @@

## 7.2.5 - 2020/7/22
- add X-DomCapture header to fetch requests
## 7.2.4 - 2020/6/3

@@ -9,0 +13,0 @@

@@ -1,2 +0,2 @@

/* @applitools/dom-capture@7.2.4 */
/* @applitools/dom-capture@7.2.5 */

@@ -184,6 +184,19 @@ function __captureDom() {

let TEST_disableCache = false;
try {
if (window && window.DOM_CAPTURE_TEST_disableCache) {
TEST_disableCache = true;
}
} catch (err) {
/* ignore error*/
}
function makeFetchCss(fetch, {fetchTimeLimit} = {}) {
return async function fetchCss(url) {
const controller = new AbortController();
const response = fetch(url, {cache: 'force-cache', signal: controller.signal})
const response = fetch(url, {
cache: TEST_disableCache ? undefined : 'force-cache',
headers: {'X-DomCapture': '1'},
signal: controller.signal,
})
.then(response => {

@@ -449,3 +462,3 @@ if (response.ok) {

capturedFrame.version = API_VERSION;
capturedFrame.scriptVersion = '7.2.4';
capturedFrame.scriptVersion = '7.2.5';

@@ -452,0 +465,0 @@ const iframePrefix = iframeCors.length ? `${iframeCors.join('\n')}\n` : '';

@@ -1,2 +0,2 @@

/* @applitools/dom-capture@7.2.4 */
/* @applitools/dom-capture@7.2.5 */

@@ -184,6 +184,19 @@ function __captureDomAndPoll() {

let TEST_disableCache = false;
try {
if (window && window.DOM_CAPTURE_TEST_disableCache) {
TEST_disableCache = true;
}
} catch (err) {
/* ignore error*/
}
function makeFetchCss(fetch, {fetchTimeLimit} = {}) {
return async function fetchCss(url) {
const controller = new AbortController();
const response = fetch(url, {cache: 'force-cache', signal: controller.signal})
const response = fetch(url, {
cache: TEST_disableCache ? undefined : 'force-cache',
headers: {'X-DomCapture': '1'},
signal: controller.signal,
})
.then(response => {

@@ -449,3 +462,3 @@ if (response.ok) {

capturedFrame.version = API_VERSION;
capturedFrame.scriptVersion = '7.2.4';
capturedFrame.scriptVersion = '7.2.5';

@@ -452,0 +465,0 @@ const iframePrefix = iframeCors.length ? `${iframeCors.join('\n')}\n` : '';

@@ -1,2 +0,2 @@

/* @applitools/dom-capture@7.2.4 */
/* @applitools/dom-capture@7.2.5 */
'use strict';

@@ -181,6 +181,19 @@

let TEST_disableCache = false;
try {
if (window && window.DOM_CAPTURE_TEST_disableCache) {
TEST_disableCache = true;
}
} catch (err) {
/* ignore error*/
}
function makeFetchCss(fetch, {fetchTimeLimit} = {}) {
return async function fetchCss(url) {
const controller = new AbortController();
const response = fetch(url, {cache: 'force-cache', signal: controller.signal})
const response = fetch(url, {
cache: TEST_disableCache ? undefined : 'force-cache',
headers: {'X-DomCapture': '1'},
signal: controller.signal,
})
.then(response => {

@@ -446,3 +459,3 @@ if (response.ok) {

capturedFrame.version = API_VERSION;
capturedFrame.scriptVersion = '7.2.4';
capturedFrame.scriptVersion = '7.2.5';

@@ -449,0 +462,0 @@ const iframePrefix = iframeCors.length ? `${iframeCors.join('\n')}\n` : '';

6

package.json
{
"name": "@applitools/dom-capture",
"version": "7.2.4",
"version": "7.2.5",
"main": "index.js",
"license": "SEE LICENSE IN LICENSE",
"scripts": {
"test": "mocha --no-timeouts test/**/*.test.js",
"test": "mocha --no-timeouts --parallel test/**/*.test.js",
"lint:node": "eslint '**/*.js' --ignore-pattern 'src/browser'",

@@ -41,3 +41,3 @@ "lint:browser": "eslint -c 'src/browser/.eslintrc.json' 'src/browser/**/*.js'",

"jsdom": "^13.2.0",
"mocha": "5.2.0",
"mocha": "^8.0.1",
"node-fetch": "^2.6.0",

@@ -44,0 +44,0 @@ "prettier": "^1.19.1",

'use strict';
let TEST_disableCache = false;
try {
if (window && window.DOM_CAPTURE_TEST_disableCache) {
TEST_disableCache = true;
}
} catch (err) {
/* ignore error*/
}
function makeFetchCss(fetch, {fetchTimeLimit} = {}) {
return async function fetchCss(url) {
const controller = new AbortController();
const response = fetch(url, {cache: 'force-cache', signal: controller.signal})
const response = fetch(url, {
cache: TEST_disableCache ? undefined : 'force-cache',
headers: {'X-DomCapture': '1'},
signal: controller.signal,
})
.then(response => {

@@ -8,0 +21,0 @@ if (response.ok) {

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

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