mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 19:45: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,10 +1,8 @@
|
||||
import * as currency from "m3o/currency";
|
||||
const { CurrencyService } = require("m3o/currency");
|
||||
|
||||
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
|
||||
async function Convert10usdToGbp() {
|
||||
let currencyService = new currency.CurrencyService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
);
|
||||
async function convert10usdToGbp() {
|
||||
let currencyService = new CurrencyService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await currencyService.convert({
|
||||
amount: 10,
|
||||
from: "USD",
|
||||
@@ -13,4 +11,4 @@ async function Convert10usdToGbp() {
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await Convert10usdToGbp();
|
||||
convert10usdToGbp();
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import * as currency from "m3o/currency";
|
||||
const { CurrencyService } = require("m3o/currency");
|
||||
|
||||
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
|
||||
async function ConvertUsdToGbp() {
|
||||
let currencyService = new currency.CurrencyService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
);
|
||||
async function convertUsdToGbp() {
|
||||
let currencyService = new CurrencyService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await currencyService.convert({
|
||||
from: "USD",
|
||||
to: "GBP",
|
||||
@@ -12,4 +10,4 @@ async function ConvertUsdToGbp() {
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await ConvertUsdToGbp();
|
||||
convertUsdToGbp();
|
||||
|
||||
Reference in New Issue
Block a user