Skip to content

Commit

Permalink
feat(clientId): set up
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorveiga committed Jul 4, 2023
1 parent f29c064 commit 096fbc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protect/src/utils/build-params-from-inputs.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -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};
}

0 comments on commit 096fbc5

Please sign in to comment.