Socket
Socket
Sign inDemoInstall

@percy/config

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/config - npm Package Compare versions

Comparing version 1.6.4 to 1.7.0

2

dist/load.js

@@ -14,3 +14,3 @@ import fs from 'fs';

cache: false,
searchPlaces: ['package.json', '.percyrc', '.percy.json', '.percy.yaml', '.percy.yml', '.percy.js', 'percy.config.js']
searchPlaces: ['package.json', '.percyrc', '.percy.json', '.percy.yaml', '.percy.yml', '.percy.js', '.percy.cjs', 'percy.config.js', 'percy.config.cjs']
}); // Searches within a provided directory, or loads the provided config path

@@ -17,0 +17,0 @@

{
"name": "@percy/config",
"version": "1.6.4",
"version": "1.7.0",
"license": "MIT",

@@ -37,3 +37,3 @@ "repository": {

"dependencies": {
"@percy/logger": "1.6.4",
"@percy/logger": "1.7.0",
"ajv": "^8.6.2",

@@ -46,3 +46,3 @@ "cosmiconfig": "^7.0.0",

},
"gitHead": "651c0fad62f128053723f9b8d565c69496dc51e4"
"gitHead": "f1418fb1effdaad2d32c65d1a358282ab1f9ec32"
}

@@ -31,2 +31,5 @@ import fs from 'fs';

// Used to mock javascript modules
const JS_FILE_REG = /\.(c|m)?js$/;
// Mock and spy on fs methods using an in-memory filesystem

@@ -49,3 +52,3 @@ export async function mockfs({

spyOn(vol, 'writeFileSync').and.callFake((...args) => {
if (args[0].endsWith('.js')) mockFileModule(...args);
if (JS_FILE_REG.test(args[0])) mockFileModule(...args);
return vol.writeFileSync.and.originalFn.apply(vol, args);

@@ -52,0 +55,0 @@ });

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