Skip to content

Commit

Permalink
upgrade node
Browse files Browse the repository at this point in the history
to fix "Error: Unable to find Node version '12.x' for platform darwin and architecture arm64."
  • Loading branch information
Almenon committed Nov 15, 2024
1 parent b8abefc commit 2e3f489
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 20.x
- run: npm ci
- run: npm run vscode:prepublish
- run: npm run unitTests
Expand Down
52 changes: 35 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^9.1.1",
"@types/node": "^12.11.7",
"@types/node": "^20.17.6",
"@types/vscode": "^1.36.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
Expand All @@ -290,7 +290,7 @@
"mocha": "^10.8.2",
"source-map-support": "^0.5.13",
"ts-node": "^8.6.2",
"typescript": "^3.9.6",
"typescript": "^5.6.3",
"vscode-uri": "^2.1.2"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/throttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export class Limit{
public callQueue = []
public lastCall
public interval: NodeJS.Timer
public interval: NodeJS.Timeout

/**
* Returns a version of your function that can be called at most every W milliseconds, where W is wait.
Expand Down

0 comments on commit 2e3f489

Please sign in to comment.