Skip to content

Commit fb634b2

Browse files
Merge pull request #230 from apivideo/fix-nodejs-postinstall
Fix nodejs postinstall script
2 parents d0bc801 + 71a3de5 commit fb634b2

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [2.6.5] - 2024-10-17
5+
- Fix postinstall script
6+
47
## [2.6.4] - 2024-10-08
58
- Add transcript feature
69

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@api.video/nodejs-client",
3-
"version": "2.6.4",
3+
"version": "2.6.5",
44
"description": "api.video nodejs API client",
55
"keywords": [
66
"api.video",
@@ -34,7 +34,7 @@
3434
"test": "jest",
3535
"eslint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
3636
"prettier": "prettier --ignore-path .gitignore --write \"**/*.ts\" && npx eslint src/ test/ --fix",
37-
"postinstall": "if [ ! -d \"lib\" ]; then npm run build; fi"
37+
"postinstall": "node -e \"const { execSync } = require('child_process'); const { existsSync } = require('fs'); if (!existsSync('lib')) execSync('npm run build', { stdio: 'inherit' });\""
3838
},
3939
"dependencies": {
4040
"axios": "^1.4.0",

src/HttpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class HttpClient {
5959
this.chunkSize = params.chunkSize;
6060
this.headers = new AxiosHeaders({
6161
Accept: 'application/json, */*;q=0.8',
62-
'AV-Origin-Client': 'nodejs:2.6.4',
62+
'AV-Origin-Client': 'nodejs:2.6.5',
6363
Authorization: this.apiKey ? `Basic ${encode(`${this.apiKey}:`)}` : '',
6464
...(params.applicationName && params.applicationVersion
6565
? {

0 commit comments

Comments
 (0)