Comparing version 4.0.0 to 5.0.0
@@ -29,3 +29,3 @@ "use strict"; | ||
'Content-Type': 'application/json', | ||
Authorization: `apikey ${this.centOptions.token}` | ||
'X-API-Key': this.centOptions.apiKey | ||
} | ||
@@ -32,0 +32,0 @@ }); |
export interface CentOptions { | ||
url: string; | ||
token?: string; | ||
apiKey?: string; | ||
timeout?: number; | ||
} |
{ | ||
"name": "cent.js", | ||
"description": "Javascript library to communicate with Centrifugo HTTP API", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"scripts": { | ||
@@ -27,21 +27,21 @@ "build": "rimraf -rf dist && tsc -p tsconfig.json", | ||
"dependencies": { | ||
"undici": "5.27.0" | ||
"undici": "6.10.2" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "18.2.0", | ||
"@commitlint/config-angular": "18.1.0", | ||
"@types/jest": "29.5.7", | ||
"@types/node": "20.8.10", | ||
"@commitlint/cli": "19.2.1", | ||
"@commitlint/config-angular": "19.1.0", | ||
"@types/jest": "29.5.12", | ||
"@types/node": "20.11.30", | ||
"@typescript-eslint/eslint-plugin": "5.62.0", | ||
"@typescript-eslint/parser": "5.62.0", | ||
"eslint": "8.52.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-plugin-import": "2.29.0", | ||
"husky": "8.0.3", | ||
"eslint": "8.57.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-import": "2.29.1", | ||
"husky": "9.0.11", | ||
"jest": "29.7.0", | ||
"prettier": "3.0.3", | ||
"release-it": "16.2.1", | ||
"prettier": "3.2.5", | ||
"release-it": "17.1.1", | ||
"rimraf": "5.0.5", | ||
"ts-jest": "29.1.1", | ||
"typescript": "5.2.2" | ||
"ts-jest": "29.1.2", | ||
"typescript": "5.4.3" | ||
}, | ||
@@ -48,0 +48,0 @@ "repository": { |
@@ -23,3 +23,3 @@ # cent.js | ||
url: 'http://localhost:8000/api', | ||
token: 'XXX' | ||
apiKey: 'XXX' | ||
}); | ||
@@ -26,0 +26,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55415
+ Addedundici@6.10.2(transitive)
- Removed@fastify/busboy@2.1.1(transitive)
- Removedundici@5.27.0(transitive)
Updatedundici@6.10.2