Skip to content

Commit

Permalink
Switch Ky to Got to remove random ESM issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nad-au committed Feb 5, 2024
1 parent 30d5573 commit 3d391f2
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 29 deletions.
2 changes: 1 addition & 1 deletion monorepo/actionstep-auth-function/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dbc-tech/actionstep-auth-function",
"version": "1.6.0",
"version": "1.7.0",
"description": "ActionStep API integration - Azure Function (Auth)",
"repository": "https://github.com/dbc-tech/actionstep",
"author": "DBC",
Expand Down
4 changes: 2 additions & 2 deletions monorepo/actionstep-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dbc-tech/actionstep",
"version": "1.6.0",
"version": "1.7.0",
"description": "ActionStep API integration",
"repository": "https://github.com/dbc-tech/actionstep",
"author": "DBC",
Expand All @@ -18,7 +18,7 @@
"build": "rimraf ./dist && tsc --build tsconfig.build.json"
},
"dependencies": {
"ky": "^1.2.0",
"got-cjs": "^12.5.4",
"simple-oauth2": "^5.0.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions monorepo/actionstep-client/src/action-stop-token-client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ky from 'ky'
import got from 'got-cjs'
import { ActionStepToken, ActionStepTokenClient } from './types'

export const actionStepTokenClient = (
Expand All @@ -7,7 +7,7 @@ export const actionStepTokenClient = (
): ActionStepTokenClient => {
return {
token: async () => {
return await ky.get(tokenUrl).json<ActionStepToken>()
return await got.get(tokenUrl).json<ActionStepToken>()
},
apiapi_url: apiUrl,
}
Expand Down
Loading

0 comments on commit 3d391f2

Please sign in to comment.