Socket
Socket
Sign inDemoInstall

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.14.1 to 2.14.3

12

CHANGELOG.md

@@ -10,2 +10,14 @@ # Changelog

## [v2.14.3](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.2...v2.14.3) - 2019-07-01
### Commits
- fix: 🐛 pass less @imports as dependencies to svelte [`55e9d28`](https://github.com/kaisermann/svelte-preprocess/commit/55e9d28fd03a2a1bf07c4d1b9ec3517fe2ce0cb3)
## [v2.14.2](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.1...v2.14.2) - 2019-06-29
### Commits
- fix: pug mixin elseif (#45) [`98ad9ca`](https://github.com/kaisermann/svelte-preprocess/commit/98ad9ca996c70da25666e4f1e9286d4dfd15fb36)
## [v2.14.1](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.0...v2.14.1) - 2019-06-28

@@ -12,0 +24,0 @@

2

package.json
{
"name": "svelte-preprocess",
"version": "2.14.1",
"version": "2.14.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "src/index.js",

const less = require('less/lib/less-node')
module.exports = ({ content, filename, options }) => {
return less
.render(content, {
sourceMap: {},
...options,
})
.then(output => ({
code: output.css,
map: output.map,
}))
module.exports = async ({ content, filename, options }) => {
const { css, map, imports } = await less.render(content, {
sourceMap: {},
filename,
...options,
})
return {
code: css,
map,
dependencies: imports,
}
}

@@ -15,3 +15,3 @@ const pug = require('pug')

mixin elseif(condition)
| {:elseif !{condition}}
| {:else if !{condition}}
block

@@ -18,0 +18,0 @@

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