You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

gulp-cson

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-cson - npm Package Compare versions

Comparing version
0.2.1
to
0.3.0
+1
-1
examples/gulpfile.coffee

@@ -9,2 +9,2 @@ gulp = require 'gulp'

gulp.task 'default', ['cson']
gulp.task 'default', ['cson']
{
"name": "gulp-cson",
"description": "Parse cson with gulp",
"version": "0.2.1",
"version": "0.3.0",
"homepage": "http://github.com/stevelacy/gulp-cson",

@@ -13,4 +13,4 @@ "repository": {

"dependencies": {
"coffee-script": "^1.9.0",
"cson": "^2.0.0",
"coffee-script": "^1.9.1",
"cson": "^3.0.1",
"map-stream": "^0.1.0",

@@ -17,0 +17,0 @@ "replace-ext": "0.0.1"

@@ -8,3 +8,3 @@ #gulp-cson

<table>
<tr>
<tr>
<td>Package</td><td>gulp-cson</td>

@@ -11,0 +11,0 @@ </tr>

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

fs = require "fs"
path = require "path"
should = require "should"
gutil = require "gulp-util"
gcson = require "../"
fs = require 'fs'
path = require 'path'
should = require 'should'
gutil = require 'gulp-util'
gcson = require '../'
require "mocha"
require 'mocha'
describe "gulp-cson", ->
it "should parse cson to json", (done) ->
describe 'gulp-cson', ->
it 'should parse cson to json', (done) ->
myFunction = gcson()
fakeFile = new gutil.File
base: "test/fixtures"
cwd: "test/"
path: "test/fixtures/normal.cson"
contents: fs.readFileSync path.join __dirname, "/fixtures/normal.cson"
base: 'test/fixtures'
cwd: 'test/'
path: 'test/fixtures/normal.cson'
contents: fs.readFileSync path.join __dirname, '/fixtures/normal.cson'
myFunction.once "data", (newFile) ->
myFunction.once 'data', (newFile) ->
should.exist newFile
should.exist newFile.contents
should.equal newFile.path, 'test/fixtures/normal.json'
String(newFile.contents).should.equal String fs.readFileSync path.join __dirname, "/expected/normal.json"
String(newFile.contents).should.equal String fs.readFileSync path.join __dirname, '/expected/normal.json'
done()

@@ -27,16 +27,16 @@

it "should return error on error", (done) ->
it 'should return error on error', (done) ->
myFunction = gcson()
fakeFile = new gutil.File
base: "test/fixtures"
cwd: "test/"
path: "test/fixtures/normal.cson"
contents: fs.readFileSync path.join __dirname, "/fixtures/error.cson"
base: 'test/fixtures'
cwd: 'test/'
path: 'test/fixtures/normal.cson'
contents: fs.readFileSync path.join __dirname, '/fixtures/error.cson'
myFunction.once "error", (err) ->
myFunction.once 'error', (err) ->
should.exist err
should.equal String(err.message), "[stdin]:12:1: error: unmatched }\n\u001b[1;31m}\u001b[0m\n\u001b[1;31m^\u001b[0m"
should.equal err.name, 'SyntaxError'
should.equal err.message, 'unmatched }'
done()
myFunction.write fakeFile