Socket
Socket
Sign inDemoInstall

gulp-gh-pages

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-gh-pages - npm Package Compare versions

Comparing version 0.6.0-2 to 0.6.0-3

14

index.js

@@ -8,2 +8,4 @@ 'use strict';

const git = require('./lib.js');
const inspectWithKind = require('inspect-with-kind');
const {isVinyl} = require('vinyl');
const PluginError = require('plugin-error');

@@ -37,2 +39,14 @@ const vinylFs = require('vinyl-fs');

transform(file, enc, cb) {
if (!isVinyl(file)) {
if (file !== null && typeof file === 'object' && typeof file.isNull === 'function') {
cb(new PluginError('gulp-gh-pages', 'gulp-gh-pages doesn\'t support gulp <= v3.x. Update your project to use gulp >= v4.0.0.'));
return;
}
cb(new PluginError('gulp-gh-pages', `Expected a stream created by gulp-gh-pages to receive Vinyl objects https://github.com/gulpjs/vinyl, but got ${
inspectWithKind(file)
}.`));
return;
}
if (file.isNull()) {

@@ -39,0 +53,0 @@ cb(null, file);

8

package.json
{
"name": "gulp-gh-pages",
"version": "0.6.0-2",
"version": "0.6.0-3",
"description": "gulp plugin to publish contents to Github pages",

@@ -38,4 +38,6 @@ "repository": "shinnn/gulp-gh-pages",

"gift": "^0.10.2",
"inspect-with-kind": "^1.0.4",
"plugin-error": "^1.0.1",
"rimraf": "^2.6.2",
"vinyl": "^2.2.0",
"vinyl-fs": "^3.0.3"

@@ -46,7 +48,7 @@ },

"eslint": "^5.2.0",
"lodash": "^4.17.10",
"mocha": "^5.2.0",
"nyc": "^12.0.2",
"octonode": "^0.9.3",
"read-remove-file": "^5.0.1",
"vinyl": "^2.2.0"
"read-remove-file": "^5.0.1"
},

@@ -53,0 +55,0 @@ "eslintConfig": {

@@ -15,3 +15,3 @@ # gulp-gh-pages

```
npm install --save-dev gulp-gh-pages
npm install --save-dev gulp@next gulp-gh-pages
```

@@ -24,6 +24,6 @@

```javascript
const gulp = require('gulp');
const {src, task}= require('gulp');
const ghPages = require('gulp-gh-pages');
gulp.task('deploy', () => gulp.src('./dist/**/*').pipe(ghPages()));
task('deploy', () => src('./dist/**/*').pipe(ghPages()));
```

@@ -92,3 +92,3 @@

Type: `String`
Type: `string`
Default: `"Update [timestamp]"`

@@ -95,0 +95,0 @@

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