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

svelte-preprocess

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-preprocess - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

3

package.json
{
"name": "svelte-preprocess",
"version": "2.1.1",
"version": "2.1.2",
"license": "MIT",

@@ -30,2 +30,3 @@ "main": "src/index.js",

"coffeescript": "^2.3.0",
"cosmiconfig": "^5.0.5",
"eslint": "^4.19.1",

@@ -32,0 +33,0 @@ "eslint-config-prettier": "^2.9.0",

const postcss = require('postcss')
const { PATHS } = require('../utils.js')
const { existsSync } = require('fs')
const { resolve } = require('path')
const cosmiconfig = require('cosmiconfig')
const postcssConfig = cosmiconfig('postcss').searchSync()
const postcssConfigPath = resolve(PATHS.CWD, 'postcss.config.js')
const hasPostcssConfig = existsSync(postcssConfigPath)
module.exports = ({ content, filename, options, map = false }) => {
/** Try to use postcss.config.js if no config was passed */
if (!options && hasPostcssConfig) {
options = require(postcssConfigPath)
if (!options && postcssConfig) {
options = require(postcssConfig.filepath)
}

@@ -14,0 +10,0 @@

@@ -10,4 +10,2 @@ const { readFileSync } = require('fs')

}
exports.PATHS = PATHS
const LANG_DICT = new Map([

@@ -14,0 +12,0 @@ ['postcss', 'css'],

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