feat(medusa): Payment Collection endpoints (#2525)

This commit is contained in:
Carlos R. L. Rodrigues
2022-11-11 14:28:45 -03:00
committed by GitHub
parent 27184f3878
commit 755ba90c05
58 changed files with 1190 additions and 484 deletions

View File

@@ -12,17 +12,16 @@ function replacePath(requirePath, package, concatPackage = true) {
const idx = requirePath.indexOf(package)
const packPath = requirePath.substring(idx + package.length)
let newPath = path.resolve(
let newPath =
medusaCore +
"/" +
(concatPackage ? package + "/" : "") +
packPath.replace("/dist", "/src").replace(".js", "")
)
"/" +
(concatPackage ? package + "/" : "") +
packPath.replace("/dist", "/src").replace(".js", "")
if (!newPath.includes("/src")) {
newPath += "/src"
}
return newPath
return path.resolve(newPath)
}
Module.prototype.require = function (...args) {