@bitgenics/fab-upload-cli
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -5,3 +5,3 @@ "use strict"; | ||
const log_1 = require("../utils/log"); | ||
const uploadMetadata_1 = require("../utils/uploadMetadata"); | ||
const requests_1 = require("../utils/requests"); | ||
const handleServerError_1 = require("./handleServerError"); | ||
@@ -12,3 +12,3 @@ const handleBuildFailure = async (sitename, api_key, build_info) => { | ||
log_1.log("Uploading commit data to Linc"); | ||
const response = await uploadMetadata_1.default({ | ||
const response = await requests_1.uploadMetadata({ | ||
sitename, | ||
@@ -15,0 +15,0 @@ api_key, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const handleServerError_1 = require("./handleServerError"); | ||
const utils_1 = require("../utils"); | ||
const requests_1 = require("../utils/requests"); | ||
const utils_2 = require("../utils"); | ||
const log_1 = require("../utils/log"); | ||
const uploadMetadata_1 = require("../utils/uploadMetadata"); | ||
const handleServerError_1 = require("./handleServerError"); | ||
const duplicateBundle = async (sitename, api_key, bundle_info, buildInfo) => { | ||
@@ -12,3 +12,3 @@ log_1.log("Gathering commit data"); | ||
log_1.log("Uploading commit data to Linc"); | ||
const response = await uploadMetadata_1.default({ | ||
const response = await requests_1.uploadMetadata({ | ||
sitename, | ||
@@ -15,0 +15,0 @@ api_key, |
@@ -6,8 +6,7 @@ "use strict"; | ||
const log_1 = require("../utils/log"); | ||
const uploadMetadata_1 = require("../utils/uploadMetadata"); | ||
const uploadBundleToS3_1 = require("../utils/uploadBundleToS3"); | ||
const requests_1 = require("../utils/requests"); | ||
const handleServerError_1 = require("./handleServerError"); | ||
const handleUniqueBundle = async (signedRequest, sitename, api_key, bundle_info, build_info) => { | ||
log_1.log("Uploading FAB to Linc"); | ||
const s3Response = await uploadBundleToS3_1.default(signedRequest, "./fab.zip"); | ||
const s3Response = await requests_1.uploadBundleToS3(signedRequest, "./fab.zip"); | ||
if (s3Response.statusText === "OK") { | ||
@@ -18,3 +17,3 @@ log_1.log("FAB successfully uploaded!"); | ||
log_1.log("Uploading commit data to Linc"); | ||
const response = await uploadMetadata_1.default({ | ||
const response = await requests_1.uploadMetadata({ | ||
sitename, | ||
@@ -21,0 +20,0 @@ api_key, |
@@ -5,9 +5,9 @@ "use strict"; | ||
const utils_1 = require("./utils"); | ||
const getSignedRequest_1 = require("./utils/getSignedRequest"); | ||
const requests_1 = require("./utils/requests"); | ||
const generateFab_1 = require("./utils/generateFab"); | ||
const enums_1 = require("./enums"); | ||
const handleBuildFailure_1 = require("./handlers/handleBuildFailure"); | ||
const handleDuplicateBundle_1 = require("./handlers/handleDuplicateBundle"); | ||
const handleServerError_1 = require("./handlers/handleServerError"); | ||
const handleDuplicateBundle_1 = require("./handlers/handleDuplicateBundle"); | ||
const handleUniqueBundle_1 = require("./handlers/handleUniqueBundle"); | ||
const handleBuildFailure_1 = require("./handlers/handleBuildFailure"); | ||
const FAB_FILE_PATH = "./fab.zip"; | ||
@@ -32,3 +32,6 @@ class LincFabUpload extends command_1.Command { | ||
log_1.log("Validating FAB with Linc"); | ||
const srResponse = await getSignedRequest_1.default({ api_key: LINC_API_KEY, sitename: LINC_SITE_NAME, bundle_id }); | ||
const srResponse = await requests_1.getSignedRequest({ | ||
api_key: LINC_API_KEY, | ||
sitename: LINC_SITE_NAME, bundle_id | ||
}); | ||
if (srResponse.ok) { | ||
@@ -35,0 +38,0 @@ const { unique_bundle } = srResponse; |
{ | ||
"name": "@bitgenics/fab-upload-cli", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "Tom Trinca @plexey", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
26
25472
30
568