This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as dotenv from "dotenv"; | |
| import fetch from "node-fetch"; | |
| dotenv.config(); | |
| const workflowId = "3THnDj08TlJBoAM5oJofWn"; //for the GET request | |
| const originEnvironment = "Workflow-Test"; | |
| const destinationEnvironment = "master"; | |
| //get a workflow definition from the origin environment | |
| const workflowJson = await getWorkflowDefinition(workflowId, originEnvironment); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Run this script in the browser console to get all strings with zero-width characters in the DOM. | |
| // Copy them to and file and then use methods in index to validate and decode them. | |
| const zeroWidthRegex = /[\u200B-\u200D\u200E\u200F\uFEFF]/; | |
| const stringsWithZeroWidth = [...document.querySelectorAll("*")] | |
| .flatMap((element) => [...element.childNodes]) | |
| .filter( | |
| (node) => | |
| node.nodeType === 3 && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as dotenv from "dotenv"; | |
| import fetch from "node-fetch"; | |
| dotenv.config(); | |
| const workflowId = "3THnDj08TlJBoAM5oJorrrrfWn"; //These three could be .env file strings or cli params | |
| const originEnvironment = "Workflow-Test"; | |
| const destinationEnvironment = "master"; | |
| //get a workflow definition from the origin environment | |
| const workflowJson = await getWorkflowDefinition(workflowId, originEnvironment); |