@youversion/platform-core 0.4.3 → 0.4.4
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -4
- package/dist/index.js +2 -4
- package/package.json +1 -1
- package/src/__tests__/authentication.test.ts +1 -0
- package/src/__tests__/bible.test.ts +1 -0
- package/src/__tests__/highlights.test.ts +1 -0
- package/src/__tests__/languages.test.ts +1 -0
- package/src/client.ts +2 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @youversion/platform-core@0.4.
|
|
2
|
+
> @youversion/platform-core@0.4.4 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/core
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m39.59 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 39ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m37.59 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 41ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 2375ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m34.08 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m34.08 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -56,11 +56,9 @@ var ApiClient = class {
|
|
|
56
56
|
this.config = {
|
|
57
57
|
...config
|
|
58
58
|
};
|
|
59
|
-
const apiHost = config.apiHost
|
|
59
|
+
const apiHost = config.apiHost || "api.youversion.com";
|
|
60
60
|
if (!apiHost) {
|
|
61
|
-
throw new Error(
|
|
62
|
-
"ApiClient requires a host name. Provide an apiHost in the config or set the YVP_API_HOST environment variable."
|
|
63
|
-
);
|
|
61
|
+
throw new Error("ApiClient requires a host name. Provide an apiHost in the config.");
|
|
64
62
|
}
|
|
65
63
|
this.baseURL = "https://" + apiHost;
|
|
66
64
|
this.timeout = config.timeout || 1e4;
|
package/dist/index.js
CHANGED
|
@@ -13,11 +13,9 @@ var ApiClient = class {
|
|
|
13
13
|
this.config = {
|
|
14
14
|
...config
|
|
15
15
|
};
|
|
16
|
-
const apiHost = config.apiHost
|
|
16
|
+
const apiHost = config.apiHost || "api.youversion.com";
|
|
17
17
|
if (!apiHost) {
|
|
18
|
-
throw new Error(
|
|
19
|
-
"ApiClient requires a host name. Provide an apiHost in the config or set the YVP_API_HOST environment variable."
|
|
20
|
-
);
|
|
18
|
+
throw new Error("ApiClient requires a host name. Provide an apiHost in the config.");
|
|
21
19
|
}
|
|
22
20
|
this.baseURL = "https://" + apiHost;
|
|
23
21
|
this.timeout = config.timeout || 1e4;
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -23,11 +23,9 @@ export class ApiClient {
|
|
|
23
23
|
this.config = {
|
|
24
24
|
...config,
|
|
25
25
|
};
|
|
26
|
-
const apiHost = config.apiHost
|
|
26
|
+
const apiHost = config.apiHost || 'api.youversion.com';
|
|
27
27
|
if (!apiHost) {
|
|
28
|
-
throw new Error(
|
|
29
|
-
'ApiClient requires a host name. Provide an apiHost in the config or set the YVP_API_HOST environment variable.',
|
|
30
|
-
);
|
|
28
|
+
throw new Error('ApiClient requires a host name. Provide an apiHost in the config.');
|
|
31
29
|
}
|
|
32
30
|
this.baseURL = 'https://' + apiHost;
|
|
33
31
|
this.timeout = config.timeout || 10000;
|