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

coffee-loader

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffee-loader - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

19

index.js

@@ -5,16 +5,9 @@ /*

*/
module.exports = function(contents, options, callback) {
module.exports = function() {
var coffee = require("coffee-script");
var Module = require("module");
if(contents.length !== 1)
throw new Error("coffee-loader should only get one file");
var content = contents[0];
var compiled = coffee.compile(content);
if(callback) {
callback(null, compiled);
} else {
var mod = new Module(options.request, module);
mod._compile(compiled, options.filename);
return mod.exports;
}
var results = [null];
arguments.forEach(function(content, idx) {
results[idx+1] = coffee.compile(content);
});
this.callback.apply(null, results);
}
{
"name": "coffee-loader",
"version": "0.1.1",
"version": "0.1.2",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "coffee loader module for webpack",

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