Skip to content

Commit

Permalink
Add retry (#31)
Browse files Browse the repository at this point in the history
add retry logic for swaggerCall
  • Loading branch information
shulkaolka committed Nov 30, 2023
1 parent ecd64dd commit 1b7d367
Show file tree
Hide file tree
Showing 12 changed files with 4,025 additions and 113 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,17 @@
module.exports = {
env: {
es6: true,
node: true,
},
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: 2019,
sourceType: "module",
},
rules: {
indent: ["error", 2],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
};
9 changes: 9 additions & 0 deletions lib/utils/templates.js
Expand Up @@ -11,6 +11,9 @@ const packagelockTemplate = readTemplate("package-lock.json");
const helpersTemplate = readTemplate("lib/utils/helpers.js");
const paginatorTemplate = readTemplate("lib/utils/paginator.js");
const lookupTemplate = readTemplate("lib/lookups/lookup.js");
const actionSpecTemplate = readTemplate("spec-integration/action.spec.js");
const testCommonTemplate = readTemplate("spec-integration/common.js");
const triggerSpecTemplate = readTemplate("spec-integration/trigger.spec.js");

function readTemplate(file) {
return fse.readFileSync(path.join(__dirname, "../../", "templates", file), "utf-8");
Expand All @@ -25,11 +28,17 @@ module.exports = {
packagelockTemplate,
helpersTemplate,
paginatorTemplate,
actionSpecTemplate,
testCommonTemplate,
triggerSpecTemplate,
},
contentPathArray: [
{ template: triggerTemplate, path: "lib/triggers/trigger.js" },
{ template: actionTemplate, path: "lib/actions/action.js" },
{ template: lookupTemplate, path: "lib/lookups/lookup.js" },
{ template: actionSpecTemplate, path: "spec-integration/action.spec.js" },
{ template: testCommonTemplate, path: "spec-integration/common.js" },
{ template: triggerSpecTemplate, path: "spec-integration/trigger.spec.js" },
],
templatesToCopy: [
["gitignore", ".gitignore"],
Expand Down

0 comments on commit 1b7d367

Please sign in to comment.