while I was there, I had to fix an issue with the dynamic-dropdown project template, where https://swapi.dev/api/people can have empty species if the person is a human.
add --local-port flag for auth start subcommand so that the local port can be different from the one you specify in --redirect-uri, which is essential if you're doing port forwarding
fix an issue where --inputData @file.json didn't really work
turns out if you're using fs Promises API (require('node:fs/promises')), you can't use fs.createReadStream(); you need to open the file first with const fd = await fs.open() and then fd.createReadStream()
fix an issue where the rendered HTML command docs had redundant line breaks
The zapier invoke auth refresh command is available for session and oauth2 auth types.
For oauth2, it invokes authentication.oauth2Config.refreshAccessToken using the existing auth data in the .env file. It gets the new auth data and appends it to .env.
For session auth, it's the same except for it invokes authentication.sessionConfig.perform.
Changes:
invoke auth refresh
subcommandinvoke
command to smoke testsdynamic-dropdown
project template, where https://swapi.dev/api/people can have emptyspecies
if the person is a human.--local-port
flag forauth start
subcommand so that the local port can be different from the one you specify in--redirect-uri
, which is essential if you're doing port forwarding--inputData @file.json
didn't really workfs
Promises API (require('node:fs/promises')
), you can't usefs.createReadStream()
; you need to open the file first withconst fd = await fs.open()
and thenfd.createReadStream()
The
zapier invoke auth refresh
command is available forsession
andoauth2
auth types.For
oauth2
, it invokesauthentication.oauth2Config.refreshAccessToken
using the existing auth data in the.env
file. It gets the new auth data and appends it to.env
.For
session
auth, it's the same except for it invokesauthentication.sessionConfig.perform
.