@sap/html5-app-deployer
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
{"processes":{"ebbf7fa4-f666-4694-982f-224308912b42":{"parent":null,"children":[]}},"files":{"/xmake/data/xmake/j/prod-build10310/w/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/deployerHandler.js":["ebbf7fa4-f666-4694-982f-224308912b42"],"/xmake/data/xmake/j/prod-build10310/w/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/utils.js":["ebbf7fa4-f666-4694-982f-224308912b42"],"/xmake/data/xmake/j/prod-build10310/w/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/request-utils.js":["ebbf7fa4-f666-4694-982f-224308912b42"],"/xmake/data/xmake/j/prod-build10310/w/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/destination-utils.js":["ebbf7fa4-f666-4694-982f-224308912b42"],"/xmake/data/xmake/j/prod-build10310/w/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/gacd-handler.js":["ebbf7fa4-f666-4694-982f-224308912b42"]},"externalIds":{}} | ||
{"processes":{"b9950ed2-3e8d-4367-856a-5a41c8c3671e":{"parent":null,"children":[]}},"files":{"/data/xmake/prod-build10310/workspace/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/deployerHandler.js":["b9950ed2-3e8d-4367-856a-5a41c8c3671e"],"/data/xmake/prod-build10310/workspace/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/utils.js":["b9950ed2-3e8d-4367-856a-5a41c8c3671e"],"/data/xmake/prod-build10310/workspace/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/request-utils.js":["b9950ed2-3e8d-4367-856a-5a41c8c3671e"],"/data/xmake/prod-build10310/workspace/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/destination-utils.js":["b9950ed2-3e8d-4367-856a-5a41c8c3671e"],"/data/xmake/prod-build10310/workspace/final-assembly/final-assembly-html5-app-deployer-SP-REL-linuxx86_64_indirectshipment/gen/out/module/lib/gacd-handler.js":["b9950ed2-3e8d-4367-856a-5a41c8c3671e"]},"externalIds":{}} |
@@ -8,2 +8,7 @@ # Change Log | ||
## 6.4.1 - 2024-07-28 | ||
### Fixed | ||
- Passing cdm.json in GACD client | ||
## 6.4.0 - 2024-07-01 | ||
@@ -10,0 +15,0 @@ |
@@ -16,4 +16,2 @@ /* eslint-disable no-console */ | ||
const CDM_JSON = 'cdm.json'; | ||
exports.startDeployer = startDeployer; | ||
@@ -72,3 +70,3 @@ exports.testDeployer = testDeployer; | ||
let resourcesPath = path.join(cwd, resourcesFolder); | ||
let cdmFilePath = path.join(resourcesPath, CDM_JSON); | ||
let cdmFilePath = path.join(resourcesPath, utils.CDM_JSON); | ||
let buildDirectory = path.join(resourcesPath, '../deploymentTemp'); | ||
@@ -111,3 +109,3 @@ let resourceFolderContents = fs.readdirSync(resourcesPath); | ||
if (process.env.ASYNC_UPLOAD) { | ||
utils.archiveFiles(appsZips, buildDirectory, contentZipPath) | ||
utils.archiveFiles(appsZips, buildDirectory, contentZipPath, cdmFilePath) | ||
.then(() => gacdHandler.upload()) | ||
@@ -114,0 +112,0 @@ .then(() => gacdHandler.deploy()) |
@@ -19,2 +19,3 @@ /* eslint-disable no-console */ | ||
exports.isZipFile = isZipFile; | ||
exports.CDM_JSON = 'cdm.json'; | ||
@@ -64,3 +65,3 @@ exports.getService = function () { | ||
let entryPath = path.join(resourcesPath, entry); | ||
if (!fs.lstatSync(entryPath).isDirectory() && !isZipFile(entryPath) && entry !== 'cdm.json') { | ||
if (!fs.lstatSync(entryPath).isDirectory() && !isZipFile(entryPath) && entry !== exports.CDM_JSON) { | ||
throw Error('The resources folder is invalid because it contains the file - ' + entry + | ||
@@ -81,3 +82,3 @@ '; the resources folder should contain application folders and/or zip files.'); | ||
exports.archiveFiles = function (appsZips, buildDirectory, buildFile) { | ||
exports.archiveFiles = function (appsZips, buildDirectory, buildFile, cdmFilePath) { | ||
return new Promise((resolve, reject) => { | ||
@@ -105,2 +106,5 @@ if (!fs.existsSync(buildDirectory)) { | ||
}); | ||
if (cdmFilePath && fs.existsSync(cdmFilePath) && fs.lstatSync(cdmFilePath).isFile()) { | ||
archive.append(fs.createReadStream(cdmFilePath), {name: exports.CDM_JSON}); | ||
} | ||
archive.finalize(); | ||
@@ -107,0 +111,0 @@ }); |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "HTML5 application deployer", | ||
@@ -34,3 +34,4 @@ "main": "index.js", | ||
"sonarqube-scanner": "2.8.2", | ||
"nyc": "15.1.0" | ||
"nyc": "15.1.0", | ||
"jszip": "3.6.0" | ||
}, | ||
@@ -37,0 +38,0 @@ "license": "SEE LICENSE IN LICENSE", |
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
195801
0.63%927
0.32%14
7.69%