Socket
Socket
Sign inDemoInstall

gulp-decomment

Package Overview
Dependencies
18
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

6

index.js

@@ -5,3 +5,3 @@ 'use strict';

const decomment = require('decomment');
const PluginError = require('gulp-util').PluginError;
const PluginError = require('plugin-error');

@@ -15,5 +15,5 @@ function main(options, func) {

if (file.isStream()) {
cb(new PluginError('gulp-decomment', 'Streaming not supported.'));
cb(new PluginError({plugin:'gulp-decomment', message: 'Streaming not supported.'}));
}
file.contents = new Buffer(func(file.contents.toString(), options));
file.contents = Buffer.from(func(file.contents.toString(), options));
this.push(file);

@@ -20,0 +20,0 @@ return cb();

{
"name": "gulp-decomment",
"version": "0.2.0",
"version": "0.2.1",
"description": "Removes comments from JSON, JavaScript, CSS, HTML, etc.",
"scripts": {
"test": "jasmine-node test",
"coverage": "istanbul cover ./node_modules/jasmine-node/bin/jasmine-node test",
"travis": "npm run lint && istanbul cover ./node_modules/jasmine-node/bin/jasmine-node test --captureExceptions && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"lint": "./node_modules/.bin/eslint ./index.js ./test"
"test": "jasmine test/*.test.js",
"coverage": "nyc npm run test",
"lint": "eslint ./index.js ./test",
"travis": "npm run lint && npm run coverage && nyc report --reporter=text-lcov | coveralls && rm -rf ./.nyc_output"
},

@@ -37,16 +37,16 @@ "files": [

"engines": {
"node": ">=4.0",
"npm": ">=2.15"
"node": ">=10"
},
"dependencies": {
"decomment": "~0.9.1",
"gulp-util": "~3.0.8",
"through2": "^2.0.3"
"decomment": "0.9.3",
"plugin-error": "1.0.1",
"through2": "4.0.2"
},
"devDependencies": {
"coveralls": "~2.11.16",
"eslint": "~4.7.0",
"istanbul": "~0.4.5",
"jasmine-node": "~1.14.5"
"coveralls": "3.1.0",
"eslint": "7.22.0",
"jasmine": "3.6.4",
"nyc": "15.1.0",
"vinyl": "2.2.1"
}
}

@@ -12,3 +12,3 @@ gulp-decomment

```
$ npm install gulp-decomment
$ npm i gulp-decomment
```

@@ -30,10 +30,10 @@

```js
var gulp = require('gulp');
var decomment = require('gulp-decomment');
const gulp = require('gulp');
const decomment = require('gulp-decomment');
gulp.task('default', function () {
return gulp.src('input.js')
gulp.task('default', () =>
gulp.src('input.js')
.pipe(decomment({trim: true}))
.pipe(gulp.dest('dest'));
});
.pipe(gulp.dest('dest'))
);
```

@@ -51,5 +51,5 @@

Copyright © 2016 [Vitaly Tomilov](https://github.com/vitaly-t);
Copyright © 2021 [Vitaly Tomilov](https://github.com/vitaly-t);
Released under the MIT license.
[decomment]:https://github.com/vitaly-t/decomment
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