New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hook-emitter

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hook-emitter - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

39

gulpfile.js

@@ -6,2 +6,3 @@ 'use strict';

const gulp = require('gulp');
const manifest = require('./package.json');
const path = require('path');

@@ -11,2 +12,3 @@

const distDir = path.join(__dirname, 'dist');
const docsDir = path.join(__dirname, 'docs');

@@ -16,16 +18,20 @@ /*

*/
gulp.task('clean', ['clean-build', 'clean-coverage']);
gulp.task('clean', ['clean-coverage', 'clean-dist', 'clean-docs']);
gulp.task('clean-build', function (done) {
del([distDir]).then(function () { done(); });
});
gulp.task('clean-coverage', function (done) {
del([coverageDir]).then(function () { done(); });
});
gulp.task('clean-coverage', function (done) {
del([coverageDir]).then(function () { done(); });
});
gulp.task('clean-dist', function (done) {
del([distDir]).then(function () { done(); });
});
gulp.task('clean-docs', function (done) {
del([docsDir]).then(function () { done(); });
});
/*
* build tasks
*/
gulp.task('build', ['clean-build', 'lint-src'], function () {
gulp.task('build', ['clean-dist', 'lint-src'], function () {
return gulp

@@ -41,2 +47,16 @@ .src('src/**/*.js')

gulp.task('docs', ['lint-src', 'clean-docs'], function () {
return gulp.src('src')
.pipe($.plumber())
.pipe($.debug({ title: 'docs' }))
.pipe($.esdoc({
// debug: true,
destination: docsDir,
plugins: [
{ name: "esdoc-es7-plugin" }
],
title: manifest.name
}));
});
/*

@@ -67,3 +87,3 @@ * lint tasks

.pipe($.plumber())
.pipe($.debug({ title: 'compile' }))
.pipe($.debug({ title: 'build' }))
.pipe($.babel())

@@ -90,3 +110,2 @@ .pipe($.injectModules())

.pipe($.babelIstanbul.writeReports())
.pipe($.babelIstanbul.enforceThresholds({ thresholds: { global: 90 } }))
.on('end', cb);

@@ -93,0 +112,0 @@ });

{
"name": "hook-emitter",
"version": "0.1.6",
"version": "0.1.7",
"description": "Event emitter with support for asynchronous handlers and a sweet function hook mechanism.",

@@ -14,4 +14,5 @@ "main": "./dist/index.js",

"build": "gulp build",
"coverage": "gulp coverage",
"docs": "gulp docs",
"prepublish": "gulp build",
"coverage": "gulp coverage",
"test": "gulp test"

@@ -30,8 +31,10 @@ },

"del": "^2.2.0",
"esdoc-es7-plugin": "0.0.3",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-babel-istanbul": "^0.12.0",
"gulp-babel-istanbul": "^1.0.0",
"gulp-debug": "^2.1.2",
"gulp-esdoc": "^0.2.0",
"gulp-eslint": "^2.0.0",
"gulp-filter": "git+https://github.com/appcelerator/gulp-filter.git#cwd-fix",
"gulp-filter": "^4.0.0",
"gulp-inject-modules": "^0.1.0",

@@ -38,0 +41,0 @@ "gulp-load-plugins": "^1.2.0",

Sorry, the diff of this file is not supported yet

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