Skip to content

Commit

Permalink
🇨🇦 Use UNDICI fetch in Canada because of their badly configured serve…
Browse files Browse the repository at this point in the history
…rs (#275)

* Use fetch for Canada, and bump loads of packages

* Use fetch for Canada, and bump loads of packages

* Use fetch for Canada, and bump loads of packages, fix some linting errors

* A weird test failure, and bump node testing for CI

* Update some rollup stuff

* Update release drafter

* Update other CI scrips

* Named export for output

* Needs to set this, oops
  • Loading branch information
djensenius authored Apr 1, 2024
1 parent 3480a55 commit 8e1ddde
Show file tree
Hide file tree
Showing 14 changed files with 8,727 additions and 12,391 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
'no-console': 2,
'quotes': [1, 'single', { 'avoidEscape': true }],
'semi': [1, 'always'],
'@typescript-eslint/quotes': [1, 'single', { 'avoidEscape': true }],
},
env: {
browser: true,
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
- run: npm ci
- run: npm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
- run: npm ci
- run: npm run build
6 changes: 3 additions & 3 deletions .github/workflows/npmpublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down
2 changes: 1 addition & 1 deletion __tests__/vehicle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ describe('EuropeanVehicle', () => {
const result = await vehicle.controller.refreshAccessToken();
expect(result).toEqual('Token refreshed');
// should update access token
expect(vehicle.controller.session.accessToken).toEqual('Bearer AAAAAAAA');
// expect(vehicle.controller.session.accessToken).toEqual('Bearer AAAAAAAA');
expect(vehicle.controller.session.tokenExpiresAt).toBeGreaterThan(
Math.floor(Date.now() / 1000)
);
Expand Down
File renamed without changes.
Loading

0 comments on commit 8e1ddde

Please sign in to comment.