Netlify-sdk V0.8.5 - deleteEnvironmentVariables

This codemod changes deleteEnvironmentVariables to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5.

Netlify SDK
jscodeshift
Estimated time saving
~3 minutes/occurrence
Change mode
Autonomous
Applicability criteria

Netlify SDK v0.8.5 or higher.

Made by
Codemod.com
Codemod.com

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod netlify/0.8.5/deleteEnvironmentVariables
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

This codemod changes deleteEnvironmentVariables to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5.

Before

deleteEnvironmentVariables(accountId, siteId, variables);

After

deleteEnvironmentVariables({
	accountId: accountId,
	siteId: siteId,
	variables: variables,
});