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

fly-coffee

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fly-coffee - npm Package Compare versions

Comparing version 0.4.2 to 0.6.0

8

index.js
module.exports = function () {
return this.filter("coffee", function (source, options) {
try { return require("coffee-script").compile(source, options) }
catch (e) { throw e }
}, { ext: ".js" })
return this.filter("coffee", (data, options) => {
const result = require("coffee-script").compile(data.toString(), options)
return { code: result.js || result, map: result.v3SourceMap, ext: ".js" }
})
}
{
"name": "fly-coffee",
"version": "0.4.2",
"version": "0.6.0",
"description": "CoffeeScript plugin for Fly",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -7,8 +7,10 @@ const test = require("tape").test

coffee.call({
filter: function (name, transform, options) {
filter: function (name, transform) {
const result = transform("@a")
t.equal(name, "coffee", "add coffee filter")
t.ok(/this\.a/.test(transform("@a")), "coffee transform")
t.equal(options.ext, ".js", "extension is .js")
t.ok(/this\.a/.test(result.code), "coffee transform")
console.log(result)
t.equal(result.ext, ".js", "extension is .js")
}
})
})
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