crossdomainxml
Advanced tools
Comparing version 1.0.3 to 1.0.4
11
index.js
@@ -124,8 +124,9 @@ 'use strict'; | ||
fs.writeFile(path.join(options.dest, 'crossdomain.xml'), $.xml(), function (error) { | ||
if (error) { | ||
throw error; | ||
var contents = $.xml(); | ||
fs.writeFile(path.join(options.dest, 'crossdomain.xml'), contents, function (error) { | ||
if (callback) { | ||
callback(error, contents); | ||
} else { | ||
if (callback) { | ||
callback(); | ||
if (error) { | ||
throw new Error(error); | ||
} | ||
@@ -132,0 +133,0 @@ } |
{ | ||
"name": "crossdomainxml", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Generate crossdomain.xml file and middleware for express/connect framework", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
7103
145