Socket
Socket
Sign inDemoInstall

gulp-edit-xml

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-edit-xml - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

10

package.json
{
"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>');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc