Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-transform-css

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-transform-css - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

5

index.js
const fs = require("fs");
const crypto = require("crypto");
const crossSpawn = require("cross-spawn");
const path = require("path");
const stripIndent = require("common-tags/lib/stripIndent");

@@ -62,7 +63,7 @@ const THIS_FILE = fs.readFileSync(__filename);

// https://twitter.com/kentcdodds/status/1043194634338324480
const postcssRunner = `${__dirname}/postcss-runner.js`;
const postcssRunner = JSON.stringify(path.join(__dirname, "postcss-runner.js"));
const result = crossSpawn.sync("node", [
"-e",
stripIndent`
require("${postcssRunner}")(
require(${postcssRunner})(
${JSON.stringify({

@@ -69,0 +70,0 @@ src,

2

package.json
{
"name": "jest-transform-css",
"description": "Jest transformer to import CSS into Jest's `jsdom`",
"version": "6.0.0",
"version": "6.0.1",
"main": "index.js",

@@ -6,0 +6,0 @@ "author": "Dominik Ferber <dominik.ferber+npm@gmail.com> (http://dferber.de/)",

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