From 096fbc51d4129c218c79627a27739ccb417d7f73 Mon Sep 17 00:00:00 2001 From: vitorveiga Date: Tue, 4 Jul 2023 09:52:30 +0100 Subject: [PATCH] feat(clientId): set up --- protect/src/utils/build-params-from-inputs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protect/src/utils/build-params-from-inputs.ts b/protect/src/utils/build-params-from-inputs.ts index 9afafb4..1caffa9 100644 --- a/protect/src/utils/build-params-from-inputs.ts +++ b/protect/src/utils/build-params-from-inputs.ts @@ -1,6 +1,8 @@ import {readFile} from 'fs/promises'; import type {InputParams} from './get-inputs'; +const JSCRAMBLER_CLIENT_ID = 7; + export default async function buildParamsFromInputs(params: InputParams) { let finalParams: any; if (params.jscramblerConfigPath !== undefined) { @@ -24,5 +26,8 @@ export default async function buildParamsFromInputs(params: InputParams) { delete finalParams.jscramblerConfigPath; delete finalParams.sourceMapsOutputPath; delete finalParams.symbolTableOutputPath; + + finalParams.clientId = JSCRAMBLER_CLIENT_ID; + return {finalParams, sourceMapsOutputPath, symbolTableOutputPath}; }