Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

confederate

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confederate - npm Package Compare versions

Comparing version 0.8.7 to 0.8.8

tsconfig.json

4

dist-cjs/confederate.d.ts

@@ -1,3 +0,3 @@

export declare function Confiscate(appName: string, confFilePath?: string): {
export declare function Confederate(appName: string, confFilePath?: string): {
[key: string]: any;
} | undefined;
};

@@ -5,4 +5,4 @@ "use strict";

const cabler_1 = require("cabler");
const log = cabler_1.Cabler("confiscate");
function Confiscate(appName, confFilePath) {
const log = cabler_1.Cabler("confederate");
function Confederate(appName, confFilePath) {
const args = process.argv.slice(2);

@@ -26,4 +26,4 @@ const maybeFirstArg = args[0] || "";

else {
// The else clause is needed because process.exit() doesn't seem to be
// typed as NoReturn, or TypeScript inference is just too shallow, don't
// The else clause is needed because process.exit() doesn't seem to be
// typed as NoReturn, or TypeScript inference is just too shallow, don't
// know which

@@ -57,4 +57,6 @@ try {

}
// Makes life easier for TypeScript ;-)
return {};
}
exports.Confiscate = Confiscate;
exports.Confederate = Confederate;
function loadConfFile(confFilePath, requireConf = false) {

@@ -89,2 +91,2 @@ let confDoc = "{}";

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmVkZXJhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uZmVkZXJhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5QkFBd0I7QUFDeEIsbUNBQStCO0FBQy9CLE1BQU0sR0FBRyxHQUFHLGVBQU0sQ0FBQyxZQUFZLENBQUMsQ0FBQTtBQUloQyxvQkFBMkIsT0FBZSxFQUFFLFlBQXFCO0lBQzdELE1BQU0sSUFBSSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0F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UFDO1FBQ0QsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUE7SUFDOUIsQ0FBQztJQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDVCxHQUFHLENBQUMsQ0FBQyxDQUFDLHNCQUFzQixHQUFHLFlBQVksR0FBRyxtREFBbUQsRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLGdCQUFnQixFQUFFLE9BQU8sQ0FBQyxDQUFBO1FBQ3RJLE1BQU0sQ0FBQyxDQUFBO0lBQ1gsQ0FBQztBQUNMLENBQUM7QUFFRCxtQkFBbUIsR0FBZSxFQUFFLEdBQWU7SUFDL0MsTUFBTSxHQUFHLEdBQUcsRUFBRSxDQUFDLGNBQWMsQ0FBQTtJQUM3QixHQUFHLENBQUMsQ0FBQyxNQUFNLEdBQUcsSUFBSSxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQ3BCLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUNyQixHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFBO1FBQ3ZCLENBQUM7SUFDTCxDQUFDO0lBQ0QsTUFBTSxDQUFDLEdBQUcsQ0FBQTtBQUNkLENBQUMifQ==
{
"name": "confederate",
"version": "0.8.7",
"version": "0.8.8",
"description": "Narrow road conf-loader suitable for confederates of apps (for instance suits of microserviceses)",

@@ -5,0 +5,0 @@ "main": "dist-cjs/confederate.js",

import * as fs from "fs"
import { Cabler } from "cabler"
const log = Cabler("confiscate")
const log = Cabler("confederate")
type JsonHash = { [key: string]: any }
type JsonObject = { [key: string]: any }
export function Confiscate(appName: string, confFilePath?: string) {
export function Confederate(appName: string, confFilePath?: string) {
const args = process.argv.slice(2)

@@ -27,8 +27,8 @@ const maybeFirstArg: string = args[0] || ""

} else {
// The else clause is needed because process.exit() doesn't seem to be
// typed as NoReturn, or TypeScript inference is just too shallow, don't
// The else clause is needed because process.exit() doesn't seem to be
// typed as NoReturn, or TypeScript inference is just too shallow, don't
// know which
try {
const stat = fs.statSync(confFilePath)
let conf: JsonHash = {}
let conf: JsonObject = {}
if (stat.isDirectory()) {

@@ -56,5 +56,8 @@ try {

}
// Makes life easier for TypeScript ;-)
return {}
}
function loadConfFile(confFilePath: string, requireConf = false): JsonHash {
function loadConfFile(confFilePath: string, requireConf = false): JsonObject {
let confDoc = "{}"

@@ -80,3 +83,3 @@

function mergeHash(obj: JsonHash, src: JsonHash): JsonHash {
function mergeHash(obj: JsonObject, src: JsonObject): JsonObject {
const own = {}.hasOwnProperty

@@ -83,0 +86,0 @@ for (const key in src) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc