'use strict';

var StorageHelpers = require('./storage-helpers');

function saveBundle(where, info, cb) {
    StorageHelpers.saveBundle.call(this, where, info.name, info.bundleString, function(localSaveErr, localSaveInfo) {
        info.bundleVersionRef = localSaveInfo.bundleVersionRef;
        info.bundlePath = localSaveInfo.bundlePath;
        info.bundleURL = localSaveInfo.bundleURL;
        console.log('Built bundle of `' + info.name + '` (' + info.bundleRef + ') to ' + info.bundlePath);
        cb(null, info);
    });
}

module.exports = saveBundle;

'use strict';

var StorageHelpers = require('./storage-helpers');

function saveBundle(where, info, cb) {
    StorageHelpers.saveBundle.call(this, where, info.name, info.bundleString, function(localSaveErr, localSaveInfo) {
        info.bundleVersionRef = localSaveInfo.bundleVersionRef;
        info.bundlePath = localSaveInfo.bundlePath;
        info.bundleURL = localSaveInfo.bundleURL;
        console.log('Built bundle of `' + info.name + '` (' + info.bundleVersionRef + ') to ' + info.bundlePath);
        cb(null, info);
    });
}

module.exports = saveBundle;

Correct typo of reference to version ref
Correct typo of reference to version ref
