@microtica/code-repository
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -8,2 +8,3 @@ "use strict"; | ||
const archiver = require("archiver"); | ||
const path = require("path"); | ||
class Bitbucket { | ||
@@ -117,3 +118,4 @@ constructor(accessToken) { | ||
// at this point we have what we need. | ||
const name = entry.path.split(`${bitbucketPathPrefix}/${subPath}/`)[1]; | ||
const normalizedPath = path.normalize(`${bitbucketPathPrefix}/${subPath}/`); | ||
const name = entry.path.split(normalizedPath)[1]; | ||
console.log('[INFO] Zip:', name); | ||
@@ -126,3 +128,4 @@ packageArchive.append(entry, { name }); | ||
.on('entry', (entry) => { | ||
const name = entry.path.substring(entry.path.indexOf('/') + 1); | ||
const normalizedPath = path.normalize(`${bitbucketPathPrefix}/${subPath}/`); | ||
const name = entry.path.split(normalizedPath)[1]; | ||
if (hooks[name]) { | ||
@@ -129,0 +132,0 @@ console.log("[FILE HOOK]", name); |
{ | ||
"name": "@microtica/code-repository", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Integration module with git repository providers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15296
218