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

jest-file-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-file-loader - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

index.js

@@ -11,4 +11,5 @@ const path = require('path');

return {
process(src, filename, config, options) {
const exportedPath = JSON.stringify(slash(path.relative(config.rootDir, filename)));
process(src, filename, options) {
const rootDir = options.rootDir || options.config.rootDir;
const exportedPath = JSON.stringify(slash(path.relative(rootDir, filename)));

@@ -15,0 +16,0 @@ return `${esModule ? 'export default' : 'module.exports ='} ${exportedPath};`;

2

package.json
{
"name": "jest-file-loader",
"description": "A jest transformer similar to webpack's file-loader",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",

@@ -6,0 +6,0 @@ "license": "MIT",

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