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

buster-coffee

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buster-coffee - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

.travis.yml

1

lib/buster-coffee.js

@@ -11,2 +11,3 @@ var coffee = require("coffee-script");

path: jsPath,
etag: coffeeResource.etag,
content: function () {

@@ -13,0 +14,0 @@ if (coffeeResource.encoding === "base64") {

2

package.json
{
"name": "buster-coffee",
"version": "0.1.3",
"version": "0.1.4",
"description": "Buster.JS extension: Automatically compile CoffeeScript files before running tests",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/jodal/buster-coffee",

# buster-coffee
[![Build Status](https://secure.travis-ci.org/jodal/buster-coffee.png)](http://travis-ci.org/jodal/buster-coffee)
An extension for [Buster.JS](http://busterjs.org) to automatically compile your

@@ -34,2 +36,11 @@ [CoffeeScript](http://coffeescript.org) files before running tests.

## Example web project using AMD/RequireJS
If you are using buster-amd, you don't need buster-coffee to compile
your CoffeeScript files, but can instead use e.g. the require-cs AMD loader
plugin. See the `demo-amd/` dir for an extensive example project, using
Buster.JS to test AMD modules written in CoffeeScript and loaded with
RequireJS.
## Node.js and `require()`

@@ -45,2 +56,8 @@

### 0.1.4 (2013-01-06)
- Set the ETag on the generated JavaScript resource to the same as the original
CoffeeScript resource. This ensures that any generated JavaScript cached by
Buster.JS will be invalidated when the CoffeeScript source changes.
### 0.1.3 (2012-05-24)

@@ -47,0 +64,0 @@

@@ -12,2 +12,3 @@ var buster = require("buster");

path: "/bar.js",
etag: "22eea2d643fdeb0867fb4233a334cd04a3490652",
content: "var bar = 7;"

@@ -19,2 +20,3 @@ });

path: "/cafe.coffee",
etag: "9996f32e9ec29ec814ab89182bb4dd05d36e13f6",
content: "a = 42",

@@ -27,2 +29,3 @@ encoding: "utf-8" // This should not be base64 encoded

path: "/diner.js",
etag: "212e9b7214acf4f2df671a0679e8167a9c230324",
content: "bar = 8;"

@@ -67,2 +70,12 @@ });

"reuse the etag of the .coffee resource on the .js resource": function () {
extension.configure(this.config);
this.config.emit("load:resources", this.resourceSet);
var coffeeResource = this.resourceSet.get("/cafe.coffee");
var jsResource = this.resourceSet.get("/cafe.coffee.js");
assert.defined(coffeeResource.etag);
assert.equals(coffeeResource.etag, jsResource.etag);
},
"handles base64 encoded .coffee resources": function (done) {

@@ -76,3 +89,3 @@ // XXX resource.mimeType() may think that .coffee files are binary

path: "/more.coffee",
content: new Buffer("b = 42").toString('base64')
content: new Buffer("b = 42").toString("base64")
});

@@ -94,4 +107,4 @@ this.resourceSet.loadPath.append("/more.coffee");

path: "/invalid.coffee",
content: '. # invalid CoffeeScript',
encoding: 'utf-8'
content: ". # invalid CoffeeScript",
encoding: "utf-8"
});

@@ -98,0 +111,0 @@ this.resourceSet.loadPath.append("/invalid.coffee");

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