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

@percy/core

Package Overview
Dependencies
Maintainers
1
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/core - npm Package Compare versions

Comparing version 1.30.3-alpha.3 to 1.30.3-beta.0

14

dist/api.js
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"
}
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