Socket
Socket
Sign inDemoInstall

@barchart/events-api-common

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@barchart/events-api-common - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

39

gulpfile.js
const gulp = require('gulp');
const bump = require('gulp-bump'),
const exec = require('child_process').exec,
git = require('gulp-git'),
gitStatus = require('git-get-status'),
jasmine = require('gulp-jasmine'),
jshint = require('gulp-jshint');
jshint = require('gulp-jshint'),
prompt = require('gulp-prompt');

@@ -25,8 +26,29 @@ const fs = require('fs');

gulp.task('bump-version', () => {
return gulp.src([ './package.json' ])
.pipe(bump({ type: 'patch' }))
.pipe(gulp.dest('./'));
gulp.task('bump-choice', (cb) => {
const processor = prompt.prompt({
type: 'list',
name: 'bump',
message: 'What type of bump would you like to do?',
choices: ['patch', 'minor', 'major'],
}, (res) => {
global.bump = res.bump;
return cb();
});
return gulp.src(['./package.json']).pipe(processor);
});
gulp.task('bump-version', (cb) => {
exec(`npm version ${global.bump || 'patch'} --no-git-tag-version`, {
cwd: './'
}, (error) => {
if (error) {
cb(error);
}
cb();
});
});
gulp.task('commit-changes', () => {

@@ -63,2 +85,3 @@ return gulp.src([ './', './package.json' ])

'ensure-clean-working-directory',
'bump-choice',
'bump-version',

@@ -71,4 +94,4 @@ 'commit-changes',

gulp.task('lint', () => {
return gulp.src([ './**/*.js', './test/specs/**/*.js', '!./node_modules/**', '!./test/dist/**' ])
.pipe(jshint({'esversion': 6}))
return gulp.src([ './**/*.js', './test/specs/**/*.js', '!./node_modules/**' ])
.pipe(jshint({ esversion: 9 }))
.pipe(jshint.reporter('default'))

@@ -75,0 +98,0 @@ .pipe(jshint.reporter('fail'));

{
"name": "@barchart/events-api-common",
"version": "1.4.2",
"version": "1.4.3",
"description": "Common classes used by the Barchart Event Tracking System",

@@ -16,3 +16,3 @@ "author": {

"dependencies": {
"@barchart/common-js": "^3.5.1",
"@barchart/common-js": "^3.8.0",
"uuid": "^3.4.0"

@@ -23,9 +23,9 @@ },

"gulp": "^4.0.2",
"gulp-bump": "~1.0.0",
"gulp-git": "^2.9.0",
"gulp-jasmine": "^2.2.1",
"gulp-jshint": "~2.1.0",
"jshint": "2.9.5"
"gulp-prompt": "^1.2.0",
"jshint": "^2.10.3"
},
"license": "MIT"
}

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