Socket
Socket
Sign inDemoInstall

opentok-annotation

Package Overview
Dependencies
0
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

dist/opentok-annotation.min.js

35

gulpfile.js

@@ -6,2 +6,4 @@ var gulp = require('gulp');

var zip = require('gulp-zip');
var rename = require('gulp-rename');
var merge = require('merge-stream');

@@ -13,6 +15,15 @@ var dist = 'dist';

gulp.task('js', function () {
return gulp.src(['src/annotation-widget.js', 'src/annotation-acc-pack.js'])
var accPack = gulp.src(['src/annotation-widget.js', 'src/acc-pack-annotation.js'])
.pipe(concat('opentok-annotation.js'))
.pipe(gulp.dest(dist));
var min = gulp.src('dist/opentok-annotation.js')
.pipe(uglify())
.pipe(rename({
suffix: '.min',
}))
.pipe(gulp.dest(dist));
return merge(accPack, min);
});

@@ -36,13 +47,13 @@

gulp.task('zip', function () {
return gulp.src(
[
'dist/annotation.css',
'dist/images/**',
'dist/opentok-annotation.js',
], { base: 'dist/' })
.pipe(zip('opentok-js-annotation-1.0.0.zip'))
.pipe(gulp.dest(dist));
});
// gulp.task('zip', function () {
// return gulp.src(
// [
// 'dist/annotation.css',
// 'dist/images/**',
// 'dist/opentok-annotation.js',
// ], { base: 'dist/' })
// .pipe(zip('opentok-js-annotation-1.0.0.zip'))
// .pipe(gulp.dest(dist));
// });
gulp.task('dist', ['js', 'css', 'images', 'zip']);
gulp.task('dist', ['js', 'css', 'images']);
{
"name": "opentok-annotation",
"version": "1.0.5",
"version": "1.0.6",
"description": "OpenTok annotation accelerator pack",

@@ -36,2 +36,3 @@ "main": "dist/opentok-annotation.js",

"gulp-inline-css": "^3.1.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.5.3",

@@ -48,2 +49,3 @@ "gulp-webserver": "^0.9.1",

"karma-sinon": "^1.0.4",
"merge-stream": "^1.0.0",
"mocha": "^2.3.3",

@@ -50,0 +52,0 @@ "rimraf": "^2.4.3",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc