anvil.concat
Advanced tools
Comparing version 0.0.2 to 0.0.3
/* | ||
anvil.concat - An anvil core plugin that provides file concatenation support | ||
version: 0.0.1 | ||
version: 0.0.3 | ||
author: Alex Robson <alex@sharplearningcurve.com> (http://sharplearningcurve.com) | ||
@@ -95,3 +95,3 @@ copyright: 2011 - 2012 | ||
if( !error ) { | ||
self.list = JSON.parse( content ); | ||
self.list = JSON.safeParse( content ); | ||
} | ||
@@ -134,3 +134,3 @@ done(); | ||
transformJson: function( file, content, done ) { | ||
var list = JSON.parse( content ); | ||
var list = JSON.safeParse( content ); | ||
if( list.imports && _.isArray( list.imports ) ) { | ||
@@ -137,0 +137,0 @@ anvil.log.debug( "transforming json to yaml imports" ); |
@@ -5,3 +5,3 @@ { | ||
"description": "An anvil core plugin that provides file concatenation support", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -86,3 +86,3 @@ var yaml = require( "yaml-js" ); | ||
if( !error ) { | ||
self.list = JSON.parse( content ); | ||
self.list = JSON.safeParse( content ); | ||
} | ||
@@ -125,3 +125,3 @@ done(); | ||
transformJson: function( file, content, done ) { | ||
var list = JSON.parse( content ); | ||
var list = JSON.safeParse( content ); | ||
if( list.imports && _.isArray( list.imports ) ) { | ||
@@ -128,0 +128,0 @@ anvil.log.debug( "transforming json to yaml imports" ); |
9717