Socket
Socket
Sign inDemoInstall

gulp-tsreflect

Package Overview
Dependencies
60
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

18

index.js

@@ -25,7 +25,13 @@ // (c) Rogier Schouten <rogier.schouten@gmail.com>

if (file.isNull()) {
// return empty file
return cb(null, file);
// return empty file, replace extension by .json
var jsonFile = new File({
cwd: file.cwd,
base: file.base,
path: path.join(path.dirname(file.path), path.basename(file.path, path.extname(file.path)) + ".json"),
contents: new Buffer("{}", "utf8")
});
me.push(jsonFile);
}
if (file.isStream()) {
me.emit('error', new PluginError(PLUGIN_NAME, 'Streams are not supported!'));
me.emit("error", new PluginError(PLUGIN_NAME, "Streams are not supported!"));
return cb();

@@ -56,3 +62,3 @@ }

}
text = "";
return undefined;
}

@@ -107,3 +113,3 @@ return text;

}
// all done

@@ -114,2 +120,2 @@ cb();

module.exports = plugin;
module.exports = plugin;
{
"name": "gulp-tsreflect",
"version": "2.0.2",
"version": "2.0.3",
"description": "Gulp plugin for the tsreflect-compiler.",

@@ -22,7 +22,7 @@ "repository": {

"dependencies": {
"gulp-util": "~2.2.14",
"through2": "^0.6.3",
"tsreflect-compiler": "^0.1.3",
"vinyl": "^0.4.6"
"gulp-util": "^3.0.8",
"through2": "^2.0.3",
"tsreflect-compiler": "^0.1.10",
"vinyl": "^2.1.0"
}
}

@@ -1,2 +0,2 @@

# Gulp-TsReflect
# gulp-tsreflect

@@ -10,7 +10,7 @@ [![NPM version](https://badge.fury.io/js/gulp-tsreflect.svg)](http://badge.fury.io/js/gulp-tsreflect)

Gulp plugin to execute the tsreflect-compiler (https://github.com/artifacthealth/tsreflect-compiler)
Gulp plugin to use the tsreflect-compiler (https://github.com/artifacthealth/tsreflect-compiler)
## Installation
You do not need to install tsreflect-compiler separately, just install gulp-tsreflect:
You do NOT need to install tsreflect-compiler separately.

@@ -41,2 +41,10 @@ ```shell

### 2.0.3
* Update dependencies
* Bugfix for empty files - output json and not js
### 2.0.2
Typo in README.md
### 2.0.1

@@ -49,3 +57,3 @@ Remove unused package from package.json.

### 1.0.0
Initial veresion
Initial version

@@ -52,0 +60,0 @@ ## License

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc