mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 11:35:26 +00:00
Change build setup of JS clients, reintroduce beta publishing after losing it due to unmerged code (#238)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import * as sunnah from "m3o/sunnah";
|
||||
const { SunnahService } = require("m3o/sunnah");
|
||||
|
||||
// Hadiths returns a list of hadiths and their corresponding text for a
|
||||
// given book within a collection.
|
||||
async function ListTheHadithsInAbook() {
|
||||
let sunnahService = new sunnah.SunnahService(process.env.MICRO_API_TOKEN);
|
||||
async function listTheHadithsInAbook() {
|
||||
let sunnahService = new SunnahService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await sunnahService.hadiths({
|
||||
book: 1,
|
||||
collection: "bukhari",
|
||||
@@ -11,4 +11,4 @@ async function ListTheHadithsInAbook() {
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await ListTheHadithsInAbook();
|
||||
listTheHadithsInAbook();
|
||||
|
||||
Reference in New Issue
Block a user