gulp-edit-xml
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "gulp-edit-xml", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Gulp plugin for editing xml files", | ||
@@ -27,10 +27,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"gulp-util": "^3.0.1", | ||
"lodash": "^2.4.1", | ||
"xml2js": "^0.4.4" | ||
"gulp-util": "^3.0.4", | ||
"lodash": "^3.8.0", | ||
"xml2js": "^0.4.8" | ||
}, | ||
"devDependencies": { | ||
"event-stream": "^3.1.7", | ||
"event-stream": "^3.3.1", | ||
"jasmine-node": "^1.14.5" | ||
} | ||
} |
@@ -6,6 +6,6 @@ var xmlEdit = require('../index.js'), | ||
describe('gulp-xml-edit', function(){ | ||
it('should work in buffer mode', function(done){ | ||
var stream = xmlEdit(), | ||
fakeBuffer = new Buffer('<svg></svg>'), | ||
fakeBuffer = new Buffer('<svg/>'), | ||
fakeFile = new gutil.File({ contents: fakeBuffer }); | ||
@@ -16,7 +16,7 @@ | ||
}); | ||
stream.on('end', function() { | ||
done(); | ||
}); | ||
stream.write(fakeFile); | ||
@@ -32,3 +32,3 @@ stream.end(); | ||
n = 0; | ||
stream.pipe(es.through(function(file) { | ||
@@ -42,3 +42,3 @@ expect(file.path).toBe('null.md'); | ||
})); | ||
stream.write(fakeFile); | ||
@@ -54,11 +54,11 @@ stream.end(); | ||
}), | ||
fakeBuffer = new Buffer("<svg><g><circle cx='20' cy='20' cr='20' transform='translate(20 20)'/></g></svg>"), | ||
fakeFile = new gutil.File({ | ||
contents: fakeBuffer | ||
}), | ||
}), | ||
n = 0; | ||
stream.pipe(es.through(function(file) { | ||
@@ -65,0 +65,0 @@ expect(file.contents.toString()).toBe('<svg><g><circle cx="20" cy="20" cr="20"/></g></svg>'); |
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
9064
+ Addedlodash@3.10.1(transitive)
- Removedlodash@2.4.2(transitive)
Updatedgulp-util@^3.0.4
Updatedlodash@^3.8.0
Updatedxml2js@^0.4.8