Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-vdt

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-vdt - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

9

index.js

@@ -29,3 +29,8 @@ var through = require('through2'),

var contents = Vdt.compile(file.contents.toString(), options.autoReturn).source;
// if is a js file return
if (/\.js$/.test(file.path)) {
return cb();
}
var contents = Vdt.compile(file.contents.toString(), options).source;
if (options.amd) {

@@ -42,2 +47,2 @@ contents = 'define(function(require) {\n return ' + contents + '\n})';

});
};
};
{
"name": "gulp-vdt",
"description": "a plugin of gulp for compiling vdt template",
"version": "0.0.1",
"version": "0.0.3",
"main": "index.js",

@@ -6,0 +6,0 @@ "repository": {

@@ -8,2 +8,8 @@ var gulp = require('gulp'),

.pipe(gulp.dest('tpl'));
});
});
gulp.task('js', function() {
gulp.src('tpl/**/*.js')
.pipe(vdt())
.pipe(gulp.dest('tpl'));
});
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