UNPKG

aws-sdk-js-codemod

Version:

Collection of codemod scripts that help update AWS SDK for JavaScript APIs

18 lines (17 loc) 599 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWaiterConfig = void 0; const getWaiterConfig = (originalConfig) => { for (const property of originalConfig.properties) { if (property.type !== "Property" && property.type !== "ObjectProperty") { continue; } if (property.key.type !== "Identifier" || property.value.type !== "ObjectExpression") { continue; } if (property.key.name === "$waiter") { return property.value; } } }; exports.getWaiterConfig = getWaiterConfig;