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

sheetify

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sheetify - npm Package Compare versions

Comparing version 4.0.7 to 4.1.0

5

index.js

@@ -53,4 +53,5 @@ const cssPrefix = require('postcss-prefix')

function applyTransforms (filename, src, options, done) {
var use = options.use || []
use = Array.isArray(use) ? use.slice() : [ use ]
options.u = options.u || []
options.use = options.use || []
var use = [].concat(options.use).concat(options.u)

@@ -57,0 +58,0 @@ mapLimit(use, 1, iterate, function (err) {

2

package.json
{
"name": "sheetify",
"version": "4.0.7",
"version": "4.1.0",
"description": "Modular CSS bundler",

@@ -5,0 +5,0 @@ "repository": "sheetify/sheetify",

@@ -25,3 +25,3 @@ const cssResolve = require('style-resolve').sync

// obj -> (str, opts) -> str
function transform (filename, opts) {
function transform (filename, options) {
const bufs = []

@@ -31,5 +31,4 @@ const nodes = []

opts = opts || {}
const opts = xtend(options || {})
opts.basedir = opts.basedir || process.cwd()
opts = xtend(opts)

@@ -91,2 +90,3 @@ // argv parsing

node.update('"' + prefix + '"')
ws.emit('file', filename)
ws.write(css)

@@ -111,2 +111,4 @@ done()

function walk (node) {
opts.global = false
// transform require calls

@@ -147,3 +149,5 @@ if (node.type === 'CallExpression' &&

try {
var resolvePath = cssResolve(node.arguments[0].value, { basedir: opts.basedir })
var resolvePath = cssResolve(node.arguments[0].value, {
basedir: opts.basedir
})
} catch (err) {

@@ -150,0 +154,0 @@ if (err.message.substring(0, 18) !== 'Cannot find module') {

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