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

gulp-angular-tpl2js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-angular-tpl2js - npm Package Compare versions

Comparing version 0.0.5 to 1.0.0

.idea/gulp-angular-tpl2js.iml

56

index.js

@@ -10,40 +10,40 @@ var objectAssign = require('object-assign');

options = options || {};
options = options || {};
return new Transform({
objectMode: true,
transform: function modifyContents(file, enc, cb) {
return new Transform({
objectMode: true,
transform: function modifyContents(file, enc, cb) {
var self = this;
var self = this;
var run = new VinylBufferStream(function (buf, done) {
var fileOptions = objectAssign({target: file.path, gulp: true}, options);
var run = new VinylBufferStream(function (buf, done) {
var fileOptions = objectAssign({target: file.path, gulp: true}, options);
if (fileOptions.relativeTo === undefined && (fileOptions.root || file.path)) {
fileOptions.relativeTo = path.dirname(path.resolve(options.root || file.path));
}
if (fileOptions.relativeTo === undefined && (fileOptions.root || file.path)) {
fileOptions.relativeTo = path.dirname(path.resolve(options.root || file.path));
}
tpl2js.inline(buf, fileOptions || {}, function (err, result) {
tpl2js.inline(buf, fileOptions || {}, function (err, result) {
if(err) {
done(err);
return;
}
if (err) {
done(err);
return;
}
done(null, new Buffer(result));
});
});
done(null, new Buffer(result));
});
});
run(file, function (err, contents) {
run(file, function (err, contents) {
if (err) {
self.emit('error', new PluginError('gulp-angular-tpl2js', err, {fileName: file.path}));
} else {
file.contents = contents;
self.push(file);
}
cb();
});
if (err) {
self.emit('error', new PluginError('gulp-angular-tpl2js', err, {fileName: file.path}));
} else {
file.contents = contents;
self.push(file);
}
});
cb();
});
}
});
};
{
"name": "gulp-angular-tpl2js",
"version": "0.0.5",
"version": "1.0.0",
"description": "Use gulp to convert Angular templates to inline JavaScript",
"files": [
"index.js"
],
"main": "index.js",
"repository": {

@@ -15,17 +13,17 @@ "type": "git",

"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"gulp": "^3.9.1",
"gulp-istanbul": "^0.10.4",
"gulp-mocha": "^2.2.0",
"mocha": "^2.4.5",
"vinyl": "^1.1.1",
"vinyl-fs-fake": "^1.1.0"
"chai": "4.0.2",
"coveralls": "2.13.1",
"gulp": "3.9.1",
"gulp-istanbul": "1.1.2",
"gulp-mocha": "4.3.1",
"mocha": "3.4.2",
"vinyl": "2.0.2",
"vinyl-fs-fake": "1.1.0"
},
"dependencies": {
"angular-tpl2js": "^0.0.10",
"gulp-util": "^3.0.7",
"object-assign": "^4.0.1",
"readable-stream": "^2.1.0",
"vinyl-bufferstream": "^1.0.1"
"angular-tpl2js": "1.0.0",
"gulp-util": "3.0.8",
"object-assign": "4.1.1",
"readable-stream": "2.3.3",
"vinyl-bufferstream": "1.0.1"
},

@@ -32,0 +30,0 @@ "scripts": {

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