Skip to content

Commit

Permalink
Merge pull request #230 from apivideo/fix-nodejs-postinstall
Browse files Browse the repository at this point in the history
Fix nodejs postinstall script
  • Loading branch information
bot-api-video authored Oct 17, 2024
2 parents d0bc801 + 71a3de5 commit fb634b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [2.6.5] - 2024-10-17
- Fix postinstall script

## [2.6.4] - 2024-10-08
- Add transcript feature

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@api.video/nodejs-client",
"version": "2.6.4",
"version": "2.6.5",
"description": "api.video nodejs API client",
"keywords": [
"api.video",
Expand Down Expand Up @@ -34,7 +34,7 @@
"test": "jest",
"eslint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
"prettier": "prettier --ignore-path .gitignore --write \"**/*.ts\" && npx eslint src/ test/ --fix",
"postinstall": "if [ ! -d \"lib\" ]; then npm run build; fi"
"postinstall": "node -e \"const { execSync } = require('child_process'); const { existsSync } = require('fs'); if (!existsSync('lib')) execSync('npm run build', { stdio: 'inherit' });\""
},
"dependencies": {
"axios": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/HttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class HttpClient {
this.chunkSize = params.chunkSize;
this.headers = new AxiosHeaders({
Accept: 'application/json, */*;q=0.8',
'AV-Origin-Client': 'nodejs:2.6.4',
'AV-Origin-Client': 'nodejs:2.6.5',
Authorization: this.apiKey ? `Basic ${encode(`${this.apiKey}:`)}` : '',
...(params.applicationName && params.applicationVersion
? {
Expand Down

0 comments on commit fb634b2

Please sign in to comment.