mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 12:04:41 +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,12 +1,10 @@
|
||||
import * as holidays from "m3o/holidays";
|
||||
const { HolidaysService } = require("m3o/holidays");
|
||||
|
||||
// Get the list of countries that are supported by this API
|
||||
async function ListCountries() {
|
||||
let holidaysService = new holidays.HolidaysService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
);
|
||||
async function listCountries() {
|
||||
let holidaysService = new HolidaysService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await holidaysService.countries({});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await ListCountries();
|
||||
listCountries();
|
||||
|
||||
Reference in New Issue
Block a user