Skip to content

Commit

Permalink
stable
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoulder4 committed Aug 21, 2023
1 parent 5f883be commit e1eb953
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
19 changes: 5 additions & 14 deletions dist/src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const findTrains_1 = require("./findTrains");
const trackTrain_1 = require("./trackTrain");
const util = require("util");
// const util = require("util");
module.exports = {
findTrains: findTrains_1.default,
trackTrain: trackTrain_1.trackTrain,
Expand All @@ -24,7 +15,7 @@ module.exports = {
// console.log(util.inspect(data, false, null, true));
// });
// });
(() => __awaiter(void 0, void 0, void 0, function* () {
const data = yield (0, findTrains_1.default)("ABC", "2023-08-19");
console.log(util.inspect(data, false, null, true));
}))();
// (async () => {
// const data = await findTrains("BHM", "2023-08-19")
// console.log(util.inspect(data, false, null, true));
// })();
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import findTrains from "./findTrains";
import { trackTrain } from "./trackTrain";
const util = require("util");
// const util = require("util");
module.exports = {
findTrains,
trackTrain,
Expand All @@ -14,7 +14,7 @@ module.exports = {
// console.log(util.inspect(data, false, null, true));
// });
// });
(async () => {
const data = await findTrains("ABC", "2023-08-19")
console.log(util.inspect(data, false, null, true));
})();
// (async () => {
// const data = await findTrains("BHM", "2023-08-19")
// console.log(util.inspect(data, false, null, true));
// })();

0 comments on commit e1eb953

Please sign in to comment.