@youversion/platform-core 0.5.5 → 0.5.7
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 +5 -5
- package/CHANGELOG.md +12 -0
- package/README.md +18 -14
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @youversion/platform-core@0.5.
|
|
2
|
+
> @youversion/platform-core@0.5.7 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
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m39.59 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 34ms
|
|
13
11
|
[32mESM[39m [1mdist/index.js [22m[32m37.59 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 36ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m39.59 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 36ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 1786ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m34.21 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m34.21 KB[39m
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -27,24 +27,28 @@ Get your App Key at [platform.youversion.com](https://platform.youversion.com/)
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
|
-
import { ApiClient, BibleClient } from '@youversion/platform-core'
|
|
30
|
+
import { ApiClient, BibleClient } from '@youversion/platform-core';
|
|
31
31
|
|
|
32
|
-
// Initialize API client
|
|
33
32
|
const apiClient = new ApiClient({
|
|
34
|
-
appKey:
|
|
35
|
-
})
|
|
33
|
+
appKey: 'YOUR_APP_KEY',
|
|
34
|
+
});
|
|
35
|
+
const bibleClient = new BibleClient(apiClient);
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
// Find available Bible versions in English
|
|
38
|
+
const versions = await bibleClient.getVersions('en*');
|
|
39
|
+
console.log(versions.data[0].title);
|
|
38
40
|
|
|
39
|
-
//
|
|
40
|
-
const
|
|
41
|
-
console.log(
|
|
42
|
-
|
|
43
|
-
// Get a specific passage
|
|
44
|
-
const passage = await bibleClient.getPassage(111, 'JHN.3.16')
|
|
45
|
-
console.log(passage.content) // "For God so loved the world..."
|
|
41
|
+
// Fetch the html text of John 3:16 in that first Bible version
|
|
42
|
+
const passage = await bibleClient.getPassage(versions.data[0].id, 'JHN.3.16');
|
|
43
|
+
console.log(passage.content);
|
|
46
44
|
```
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
## Documentation and API Reference
|
|
47
|
+
* [developers.youversion.com/sdks/typescript](https://developers.youversion.com/sdks/typescript)
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
This SDK is licensed under [Apache 2.0](./LICENSE).
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
Licensing information for the Bible versions is available
|
|
54
|
+
at the [YouVersion Platform](https://platform.youversion.com/) site.
|