Comparing version 0.5.3 to 0.5.4
{ | ||
"name": "asana", | ||
"main": "dist/asana.js", | ||
"version": "0.3.4", | ||
"version": "0.5.3", | ||
"homepage": "https://github.com/Asana/node-asana", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -6,2 +6,4 @@ var browserify = require('browserify'); | ||
var mocha = require('gulp-mocha'); | ||
var uglify = require('gulp-uglify'); | ||
var vinylBuffer = require('vinyl-buffer'); | ||
var vinylSourceStream = require('vinyl-source-stream'); | ||
@@ -21,14 +23,26 @@ | ||
gulp.task('test', ['bundle', 'spec']); | ||
gulp.task('bundle', ['browser', 'browser-min']); | ||
/** | ||
* Bundles the code | ||
* Bundles the code, full version to `asana.js` and minified to `asana-min.js` | ||
*/ | ||
gulp.task('bundle', function() { | ||
return browserify({ | ||
entries: [index], | ||
standalone: 'Asana' | ||
}).bundle() | ||
.pipe(vinylSourceStream('asana.js')) | ||
.pipe(gulp.dest('dist')); | ||
}); | ||
function browserTask(minify) { | ||
return function() { | ||
var task = browserify( | ||
{ | ||
entries: [index], | ||
standalone: 'Asana' | ||
}) | ||
.bundle() | ||
.pipe(vinylSourceStream('asana' + (minify ? '-min' : '') + '.js')); | ||
if (minify) { | ||
task = task | ||
.pipe(vinylBuffer()) | ||
.pipe(uglify()); | ||
} | ||
return task.pipe(gulp.dest('dist')); | ||
}; | ||
} | ||
gulp.task('browser', browserTask(false)); | ||
gulp.task('browser-min', browserTask(true)); | ||
@@ -35,0 +49,0 @@ /** |
{ | ||
"name": "asana", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "A node.js client for the Asana API", | ||
@@ -35,2 +35,3 @@ "main": "index.js", | ||
"gulp-mocha": "^2.0.0", | ||
"gulp-uglify": "^1.0.2", | ||
"jshint-stylish": "^1.0.0", | ||
@@ -37,0 +38,0 @@ "rewire": "^2.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
659062
46
14653
12
2
14
11