Skip to content

Commit

Permalink
fix: Update TAR.package to TAR.packager in Modularizer.js
Browse files Browse the repository at this point in the history
The package function in TAR.js was renamed to packager for ES6 strict mode compatibility (Unitech#5680),
but the reference in Modularizer.js was not updated accordingly.
  • Loading branch information
AYOKINYA committed Oct 25, 2024
1 parent 7fc9df1 commit f57a22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/API/Modules/Modularizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Modularizer.package = function(CLI, module_path, cb) {
var fullpath = process.cwd()
if (module_path)
fullpath = require('path').resolve(module_path)
TAR.package(fullpath, process.cwd(), cb)
TAR.packager(fullpath, process.cwd(), cb)
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/API/Modules/TAR.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ function packager(module_path, target_path, cb) {

var tar = exec(cmd, (err, sto, ste) => {
if (err) {
console.log(sto.toString().trim())
console.log(ste.toString().trim())
console.error(sto.toString().trim())
console.error(ste.toString().trim())
}
})

Expand Down

0 comments on commit f57a22a

Please sign in to comment.