Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
minhlucvan committed Nov 26, 2022
1 parent 6849048 commit eed6898
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions nodes/Browserless/BrowserlessDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ export const browserlessBrowserOptionsFields: INodeProperties = {
description: 'Any parameter that starts with "--" is treated as a command-line flag and is passed directly to chrome when it starts. See https://peter.sh/experiments/chromium-command-line-switches/ for a list of possible parameters.',
type: 'string',
default: '',
}
]
}
},
],
};

export const browserlessPageOptionsFileds: INodeProperties = {
displayName: 'Additional Options',
Expand Down Expand Up @@ -399,7 +399,7 @@ export const browserlessPageOptionsFileds: INodeProperties = {
gotoOptions: {
'timeout': 0,
'waitUntil': 'load',
}
},
},
typeOptions: {
multipleValues: false,
Expand Down
6 changes: 3 additions & 3 deletions nodes/Browserless/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export async function browserlessApiRequestScrape(
encoding: 'arraybuffer',
json: false,
returnFullResponse: true,
timeout
timeout,
}) as IN8nHttpFullResponse;
const binaryData = await prepareBinaryResponse.call(this, response, 'data.pdf');
return binaryData;
Expand Down Expand Up @@ -196,7 +196,7 @@ export function getCommonOptions(this: IExecuteFunctions, i: number) {

options['setExtraHTTPHeaders'].push({
name: 'Cache-Control',
value: 'no-cache'
value: 'no-cache',
});

if(options['addScriptTag']) {
Expand All @@ -221,7 +221,7 @@ export function getNodeCommoonOptions(this: IExecuteFunctions): BrowserlessCommo
const browserOptionsRaw = this.getNodeParameter('browserOptions', 0) as any;
const browserOptions = parseBrowserOptions(browserOptionsRaw);
return {
browserOptions
browserOptions,
};
}

Expand Down
12 changes: 6 additions & 6 deletions nodes/Browserless/__test__/GenericFunctions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ describe('parseFixedCollectionOptions', () => {
"gotoOptions": {
"gotoOptions": {
"timeout": 0,
"waitUntil": "load"
}
}
"waitUntil": "load",
},
},
};

const parsedFixedCollectionOptions = parseCollectionOptions(browserlessPageOptionsFileds, collectionOptions);
Expand All @@ -65,8 +65,8 @@ describe('parseFixedCollectionOptions', () => {
expect(results.value).toMatchSnapshot({
gotoOptions: {
"timeout": 0,
"waitUntil": "load"
}
})
"waitUntil": "load",
},
});
});
});
4 changes: 2 additions & 2 deletions nodes/Browserless/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export type BrowserlessBrowserOptions = {
trackingId?: string;
keepalive?: number;
flags?: string;
}
};

export type BrowserlessCommonOptions = {
browserOptions: BrowserlessBrowserOptions;
}
};

export type browserlessApiRequestOptions<T> = {
common: BrowserlessCommonOptions;
Expand Down

0 comments on commit eed6898

Please sign in to comment.