diff --git a/CHANGELOG.md b/CHANGELOG.md index 9747c0f..2c29c74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index e45b583..b3ff0e4 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/HttpClient.ts b/src/HttpClient.ts index d60ad71..0fba0fa 100644 --- a/src/HttpClient.ts +++ b/src/HttpClient.ts @@ -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 ? {