crossdomainxml
Advanced tools
+6
-5
@@ -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 @@ } |
+1
-1
| { | ||
| "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", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
7103
0.84%145
0.69%