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 3.7.1 to 3.7.2

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [3.7.2](https://github.com/kaisermann/svelte-preprocess/compare/v3.7.1...v3.7.2) (2020-04-21)
### Bug Fixes
* 🐛 add `bare: true` to coffee compiler ([7d38bfd](https://github.com/kaisermann/svelte-preprocess/commit/7d38bfde34b6fafeca7e8df490348fd2004cdb1a)), closes [#134](https://github.com/kaisermann/svelte-preprocess/issues/134)
## [3.7.1](https://github.com/kaisermann/svelte-preprocess/compare/v3.7.0...v3.7.1) (2020-03-29)

@@ -2,0 +11,0 @@

2

dist/transformers/coffeescript.js

@@ -1,1 +0,1 @@

"use strict";var __importDefault=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(exports,"__esModule",{value:!0});const coffeescript_1=__importDefault(require("coffeescript")),transformer=({content:a,filename:b,options:c})=>{const{js:d,sourceMap:e}=coffeescript_1.default.compile(a,{filename:b,sourceMap:!0,...c});return{code:d,map:e}};exports.default=transformer;
"use strict";var __importDefault=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(exports,"__esModule",{value:!0});const coffeescript_1=__importDefault(require("coffeescript")),transformer=({content:a,filename:b,options:c})=>{const{js:d,sourceMap:e}=coffeescript_1.default.compile(a,{filename:b,sourceMap:!0,bare:!1,...c});return{code:d,map:e}};exports.default=transformer;
{
"name": "svelte-preprocess",
"version": "3.7.1",
"version": "3.7.2",
"license": "MIT",

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

@@ -352,3 +352,3 @@ ![](https://github.com/kaisermann/svelte-preprocess/workflows/CI/badge.svg)

sveltePreprocess({ /* svelte-preprocess options */ }),
msdvex({ /* mdsvex options */ })
mdsvex({ /* mdsvex options */ })
],

@@ -572,2 +572,17 @@ }

#### Svelte Element directives
Syntax for use Svelte Element directives with Pug
```pug
input(bind:value="{foo}")
input(on:input="{bar}")
```
### `coffeescript`
#### Safety wrapper
Since `coffeescript` transpiles variables to `var` definitions, it uses a safety mechanism to prevent variables from bleeding to outside contexts. This mechanism consists of wrapping your `coffeescript` code inside an IIFE which, unfortunately, prevents `svelte` from finding your variables. To bypass this behavior, `svelte-preprocess` sets the [`bare` coffeescript compiler option](https://coffeescript.org/#lexical-scope) to `true`.
## FAQ

@@ -574,0 +589,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