Skip to content

Commit

Permalink
fixed for ES6 strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
juaneth authored Oct 2, 2023
1 parent 311c532 commit 7685b87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/API/Modules/TAR.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
uninstall,
start,
publish,
package
packager
}

/**
Expand Down Expand Up @@ -270,7 +270,7 @@ function getModuleName(module_filepath, cb) {
});
}

function package(module_path, target_path, cb) {
function packager(module_path, target_path, cb) {
var base_folder = path.dirname(module_path)
var module_folder_name = path.basename(module_path)
var pkg = require(path.join(module_path, 'package.json'))
Expand Down Expand Up @@ -316,7 +316,7 @@ function publish(PM2, folder, cb) {

Common.logMod(`Starting publishing procedure for ${module_name}@${pkg.version}`)

package(current_path, target_path, (err, res) => {
packager(current_path, target_path, (err, res) => {
if (err) {
Common.errMod('Can\'t package, exiting')
process.exit(1)
Expand Down

0 comments on commit 7685b87

Please sign in to comment.