Skip to content

Commit 3fb3474

Browse files
committed
remove gVerbosity from edge.js when producing proxy zip
1 parent c080b80 commit 3fb3474

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/edge.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// library of functions for Apigee Edge.
55
//
66
// created: Mon Jun 6 17:32:20 2016
7-
// last saved: <2017-May-04 10:29:06>
7+
// last saved: <2017-May-17 18:22:25>
88

99
(function (){
1010
var path = require('path'),
@@ -381,7 +381,7 @@
381381
});
382382
}
383383

384-
function produceBundleZip(srcDir, assetType, cb) {
384+
function produceBundleZip(srcDir, assetType, verbosity, cb) {
385385
var pathToZip = path.resolve(path.join(srcDir, assetType));
386386
var checkName = function(name) {
387387
if (name.endsWith('~')) return false;
@@ -398,7 +398,7 @@
398398
var archive = archiver('zip');
399399

400400
os.on('close', function () {
401-
if (gVerbosity>0) {
401+
if (verbosity>0) {
402402
utility.logWrite('zipped ' + archive.pointer() + ' total bytes');
403403
}
404404
cb(null, archiveName);
@@ -457,7 +457,7 @@
457457
if (conn.verbosity>0) {
458458
utility.logWrite(sprintf('import %s %s from dir %s', assetType, name, path.resolve(srcDir)));
459459
}
460-
produceBundleZip(srcDir, assetType, function(e, archiveName) {
460+
produceBundleZip(srcDir, assetType, conn.verbosity, function(e, archiveName) {
461461
if (e) return cb(e);
462462

463463
internalImportBundleFromZip(conn, name, assetType, archiveName, function(e, result) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apigee-edge-js",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "The nodejs library for the administration API for Apigee Edge.",
55
"main" : "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)