Comparing version 0.1.2 to 0.1.3
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -18,2 +37,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
const toml_1 = __importDefault(require("toml")); | ||
const logger = __importStar(require("./logger")); | ||
const getConfig = () => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -27,4 +47,4 @@ try { | ||
catch (err) { | ||
console.log(err); | ||
throw err; | ||
logger.error('Cannot find config.toml in this directory'); | ||
process.exit(1); | ||
} | ||
@@ -31,0 +51,0 @@ }); |
{ | ||
"name": "lba-cli", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Lebronaire" |
@@ -5,2 +5,3 @@ import fs from 'fs'; | ||
import { LbaConfig } from './types'; | ||
import * as logger from './logger'; | ||
@@ -16,5 +17,5 @@ export const getConfig = async (): Promise<LbaConfig> => { | ||
} catch (err) { | ||
console.log(err); | ||
throw err; | ||
logger.error('Cannot find config.toml in this directory'); | ||
process.exit(1); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90377
1527