Comparing version 0.2.2 to 0.2.3
@@ -5,3 +5,4 @@ #!/usr/bin/env node | ||
showHelp = require( './showHelp' ), | ||
command; | ||
command, | ||
sorcery = require( '../' ); | ||
@@ -31,4 +32,17 @@ command = minimist( process.argv.slice( 2 ), { | ||
else if ( !command.input ) { | ||
console.error( 'Error: You must supply an --input (-i) argument. Type sorcery --help for more info' ); | ||
} | ||
else { | ||
require( './runSorcery' )( command ); | ||
sorcery.load( command.input ).then( function ( chain ) { | ||
return chain.write( command.output || command.input, { | ||
inline: command.datauri, | ||
includeContent: !command.excludeContent | ||
}); | ||
}).catch( function ( err ) { | ||
setTimeout( function () { | ||
throw err; | ||
}); | ||
}); | ||
} |
{ | ||
"name": "sorcery", | ||
"description": "Resolve a chain of sourcemaps back to the original source", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "Rich Harris", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/Rich-Harris/sorcery", |
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
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
17907
16
419