@percy/core
Advanced tools
Comparing version 1.30.3-alpha.3 to 1.30.3-beta.0
import fs from 'fs'; | ||
import path, { dirname, resolve } from 'path'; | ||
import path from 'path'; | ||
import { createRequire } from 'module'; | ||
import logger from '@percy/logger'; | ||
@@ -8,11 +9,4 @@ import { normalize } from '@percy/config/utils'; | ||
import { handleSyncJob } from './snapshot.js'; | ||
// Previously, we used `createRequire(import.meta.url).resolve` to resolve the path to the module. | ||
// This approach relied on `createRequire`, which is Node.js-specific and less compatible with modern ESM (ECMAScript Module) standards. | ||
// This was leading to hard coded paths when CLI is used as a dependency in another project. | ||
// Now, we use `fileURLToPath` and `path.resolve` to determine the absolute path in a way that's more aligned with ESM conventions. | ||
// This change ensures better compatibility and avoids relying on Node.js-specific APIs that might cause issues in ESM environments. | ||
import { fileURLToPath } from 'url'; | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
export const PERCY_DOM = resolve(__dirname, 'node_modules/@percy/dom'); | ||
// need require.resolve until import.meta.resolve can be transpiled | ||
export const PERCY_DOM = createRequire(import.meta.url).resolve('@percy/dom'); | ||
@@ -19,0 +13,0 @@ // Returns a URL encoded string of nested query params |
{ | ||
"name": "@percy/core", | ||
"version": "1.30.3-alpha.3", | ||
"version": "1.30.3-beta.0", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "alpha" | ||
"tag": "beta" | ||
}, | ||
@@ -47,7 +47,7 @@ "engines": { | ||
"dependencies": { | ||
"@percy/client": "1.30.3-alpha.3", | ||
"@percy/config": "1.30.3-alpha.3", | ||
"@percy/dom": "1.30.3-alpha.3", | ||
"@percy/logger": "1.30.3-alpha.3", | ||
"@percy/webdriver-utils": "1.30.3-alpha.3", | ||
"@percy/client": "1.30.3-beta.0", | ||
"@percy/config": "1.30.3-beta.0", | ||
"@percy/dom": "1.30.3-beta.0", | ||
"@percy/logger": "1.30.3-beta.0", | ||
"@percy/webdriver-utils": "1.30.3-beta.0", | ||
"content-disposition": "^0.5.4", | ||
@@ -65,3 +65,3 @@ "cross-spawn": "^7.0.3", | ||
}, | ||
"gitHead": "4d36bd849268e2aa9987509c9fdd5d1224ce5157" | ||
"gitHead": "8f5a9cb4b287900c4b053302452ea6f84d20c2f1" | ||
} |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
412659
25
5567
31
+ Added@percy/client@1.30.3-beta.0(transitive)
+ Added@percy/config@1.30.3-beta.0(transitive)
+ Added@percy/dom@1.30.3-beta.0(transitive)
+ Added@percy/env@1.30.3-beta.0(transitive)
+ Added@percy/logger@1.30.3-beta.0(transitive)
+ Added@percy/sdk-utils@1.30.3-beta.0(transitive)
+ Added@percy/webdriver-utils@1.30.3-beta.0(transitive)
- Removed@percy/client@1.30.3-alpha.3(transitive)
- Removed@percy/config@1.30.3-alpha.3(transitive)
- Removed@percy/dom@1.30.3-alpha.3(transitive)
- Removed@percy/env@1.30.3-alpha.3(transitive)
- Removed@percy/logger@1.30.3-alpha.3(transitive)
- Removed@percy/sdk-utils@1.30.3-alpha.3(transitive)
- Removed@percy/webdriver-utils@1.30.3-alpha.3(transitive)
- Removed@tootallnate/quickjs-emscripten@0.23.0(transitive)
- Removedagent-base@7.1.3(transitive)
- Removedast-types@0.13.4(transitive)
- Removedbasic-ftp@5.0.5(transitive)
- Removeddata-uri-to-buffer@6.0.2(transitive)
- Removeddegenerator@5.0.1(transitive)
- Removedescodegen@2.1.0(transitive)
- Removedesprima@4.0.1(transitive)
- Removedestraverse@5.3.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedget-uri@6.0.4(transitive)
- Removedhttp-proxy-agent@7.0.2(transitive)
- Removedhttps-proxy-agent@7.0.6(transitive)
- Removedip-address@9.0.5(transitive)
- Removedjsbn@1.1.0(transitive)
- Removednetmask@2.0.2(transitive)
- Removedpac-proxy-agent@7.1.0(transitive)
- Removedpac-resolver@7.0.1(transitive)
- Removedsmart-buffer@4.2.0(transitive)
- Removedsocks@2.8.3(transitive)
- Removedsocks-proxy-agent@8.0.5(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsprintf-js@1.1.3(transitive)
- Removedtslib@2.8.1(transitive)
Updated@percy/client@1.30.3-beta.0
Updated@percy/config@1.30.3-beta.0
Updated@percy/dom@1.30.3-beta.0
Updated@percy/logger@1.30.3-beta.0