@livechat/developer-studio-api 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -170,7 +170,7 @@ function getGithubClientRequestConfig(options = {}) {
|
|
|
170
170
|
authorization: defaultAuthorization != null ? defaultAuthorization : options.token ? `Bearer ${options.token}` : void 0
|
|
171
171
|
};
|
|
172
172
|
if (options.ensureAuthorizationToken && !headers.authorization) {
|
|
173
|
-
throw new UnauthorizeApiError("
|
|
173
|
+
throw new UnauthorizeApiError("github");
|
|
174
174
|
}
|
|
175
175
|
return {
|
|
176
176
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
package/dist/index.mjs
CHANGED
|
@@ -86,7 +86,7 @@ function getGithubClientRequestConfig(options = {}) {
|
|
|
86
86
|
authorization: defaultAuthorization != null ? defaultAuthorization : options.token ? `Bearer ${options.token}` : void 0
|
|
87
87
|
};
|
|
88
88
|
if (options.ensureAuthorizationToken && !headers.authorization) {
|
|
89
|
-
throw new UnauthorizeApiError("
|
|
89
|
+
throw new UnauthorizeApiError("github");
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"tsconfig": "0.0.0",
|
|
21
|
-
"types": "0.0.1",
|
|
22
20
|
"config": "0.0.0",
|
|
21
|
+
"types": "0.0.1",
|
|
22
|
+
"tsconfig": "0.0.0",
|
|
23
23
|
"eslint-config-custom-lib": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|