Upgrade the node implementation to ESM by changing the type
in the package.json
to module
.
const { log, utils } = require("@boomerang-io/worker-core");
becomes
import { log, params, results, result } from "@boomerang-io/task-core";
Change
const taskProps = utils.resolveInputParameters();
const { token, team, types } = taskProps;
to
const { token, team, types } = params;
Change
utils.setOutputParameter("response", JSON.stringify(body));
```
to
```