fly-coffee
Advanced tools
Comparing version 0.0.1 to 0.0.2
17
index.js
module.exports = function () { | ||
this.coffee = function (opts) { | ||
return this | ||
.filter((data) => { | ||
try { | ||
return require("coffee-script").compile(data, opts) | ||
} catch (e) { | ||
this.notify("plugin_error", { | ||
plugin: "coffee", | ||
error: e | ||
}) | ||
} | ||
}).notify("plugin_run", { plugin: "coffee" }) | ||
} | ||
return this.filter("coffee", (src, opts) => { | ||
try { return require("coffee-script").compile(src, opts) } | ||
catch (e) { throw e } | ||
}) | ||
} |
{ | ||
"name": "fly-coffee", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Fly plugin for CoffeeScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -47,3 +47,3 @@ <div align="center"> | ||
[fly]: https://www.github.com/bucaran/fly | ||
[fly]: https://www.github.com/flyjs/fly | ||
@@ -50,0 +50,0 @@ [fly-badge]: https://img.shields.io/badge/fly-JS-05B3E1.svg?style=flat-square |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2888
6
1