Socket
Socket
Sign inDemoInstall

@barchart/events-client-js

Package Overview
Dependencies
16
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.2 to 1.5.0

37

gulpfile.js
const gulp = require('gulp');
const fs = require('fs');
const exec = require('child_process').exec,
fs = require('fs');

@@ -9,3 +10,2 @@ const AWS = require('aws-sdk'),

buffer = require('vinyl-buffer'),
bump = require('gulp-bump'),
git = require('gulp-git'),

@@ -16,2 +16,3 @@ gitStatus = require('git-get-status'),

jshint = require('gulp-jshint'),
prompt = require('gulp-prompt'),
rename = require('gulp-rename'),

@@ -35,8 +36,29 @@ replace = require('gulp-replace'),

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('embed-version', () => {

@@ -145,2 +167,3 @@ const version = getVersionFromPackage();

'execute-tests',
'bump-choice',
'bump-version',

@@ -160,3 +183,3 @@ 'embed-version',

return gulp.src([ './**/*.js', './test/specs/**/*.js', '!./node_modules/**', '!./test/SpecRunner.js', '!./example/browser/example.event.js', '!./example/browser/example.report.js' ])
.pipe(jshint({'esversion': 6}))
.pipe(jshint({'esversion': 9}))
.pipe(jshint.reporter('default'))

@@ -163,0 +186,0 @@ .pipe(jshint.reporter('fail'));

2

lib/meta.js

@@ -5,4 +5,4 @@ module.exports = (() => {

return {
version: '1.4.2'
version: '1.5.0'
};
})();
{
"name": "@barchart/events-client-js",
"version": "1.4.2",
"version": "1.5.0",
"description": "JavaScript library for interfacing with Barchart's Events API",

@@ -19,8 +19,8 @@ "author": {

"dependencies": {
"@barchart/common-js": "^3.5.1",
"@barchart/events-api-common": "^1.4.2"
"@barchart/common-js": "^3.8.0",
"@barchart/events-api-common": "^1.6.0"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"aws-sdk": "^2.546.0",
"@babel/core": "^7.10.1",
"aws-sdk": "^2.686.0",
"babel-preset-es2015": "^6.24.1",

@@ -33,3 +33,2 @@ "babelify": "^10.0.0",

"gulp-awspublish": "^4.0.0",
"gulp-bump": "~1.0.0",
"gulp-git": "^2.5.1",

@@ -40,3 +39,4 @@ "gulp-jasmine": "^2.2.1",

"gulp-replace": "^0.5.4",
"jshint": "2.9.5",
"gulp-prompt": "^1.2.0",
"jshint": "^2.10.3",
"vinyl-buffer": "^1.0.1",

@@ -43,0 +43,0 @@ "vinyl-source-stream": "^2.0.0"

# @barchart/events-client-js
## A usage guide for generating reports (using the API directly)

@@ -4,0 +3,0 @@ The Barchart Event Tracking System collects usage statistics from various software systems. This document will describe how to export data from the system, presumably for analysis by external tools (e.g. Tableua, Grafana, etc) using the HTTP API directly.

# @barchart/events-client-js
## A usage guide for generating reports (using this SDK)

@@ -4,0 +3,0 @@ The Barchart Event Tracking System collects usage statistics from various software systems. This document will describe how to export data from the system, presumably for analysis by external tools (e.g. Tableua, Grafana, etc) using the HTTP API directly.

@@ -11,4 +11,4 @@ # @barchart/events-client-js

- Accepts and _saves events_ (e.g. Job Started, Pizza Ordered, Lightning Struck, etc).
- Accepts _requests to generate log files_ containing events, given a customer, product type, and optional start and end dates.
- Accepts and **saves events** (e.g. Job Started, Pizza Ordered, Lightning Struck, etc).
- Accepts requests to **generate log files** containing events (given a customer, product type, and optional start and end dates).

@@ -15,0 +15,0 @@ This SDK simplifies interaction with the Barchart Event Tracking System, by exposing JavaScript classes with simple functions:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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