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 5.0.0 to 5.0.1

10

index.js

@@ -41,4 +41,10 @@ const cssPrefix = require('postcss-prefix')

if (options.global !== true) p = p.use(cssPrefix('.' + prefix))
css = p.process(css).toString()
return done(null, css, prefix)
try {
css = p.process(css).toString()
return done(null, css, prefix)
} catch (e) {
return done(e)
}
})

@@ -45,0 +51,0 @@

2

package.json
{
"name": "sheetify",
"version": "5.0.0",
"version": "5.0.1",
"description": "Modular CSS bundler",

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

@@ -88,2 +88,21 @@ # sheetify

By using `:host` we are able to provide styles for the parent element:
```css
._60ed23ec9f {
background-color: blue;
}
._60ed23ec9f > h1 {
text-decoration: underline;
}
```
```html
<section class="_60ed23ec9f">
<h1>My beautiful, centered title</h1>
</style>
```
## External files

@@ -90,0 +109,0 @@ To include an external CSS file you can pass a path to sheetify as

@@ -54,7 +54,13 @@ const cssResolve = require('style-resolve').sync

const nodes = []
const src = Buffer.concat(bufs).toString('utf8')
var mname = null
const src = Buffer.concat(bufs).toString('utf8')
const tmpAst = falafel(src, { ecmaVersion: 6 }, identifyModuleName)
const ast = falafel(tmpAst.toString(), { ecmaVersion: 6 }, extractNodes)
var ast
try {
const tmpAst = falafel(src, { ecmaVersion: 6 }, identifyModuleName)
ast = falafel(tmpAst.toString(), { ecmaVersion: 6 }, extractNodes)
} catch (err) {
return self.emit('error', err)
}
// transform all detected nodes and

@@ -61,0 +67,0 @@ // close stream when done

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