🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@nteract/mythic-configuration

Package Overview
Dependencies
Maintainers
18
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nteract/mythic-configuration - npm Package Compare versions

Comparing version

to
1.0.12

20

lib/index.js

@@ -12,6 +12,12 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.allDeprecations = exports.configOption = exports.allConfigOptions = exports.allConfigOptionDefinitions = exports.createConfigCollection = exports.createDeprecatedConfigOption = exports.defineConfigOption = void 0;
const immutable_1 = require("immutable");
const lodash_1 = require("lodash");
const isEqual_1 = __importDefault(require("lodash/isEqual"));
const result_1 = __importDefault(require("lodash/result"));
const set_1 = __importDefault(require("lodash/set"));
const unset_1 = __importDefault(require("lodash/unset"));
const set_config_at_key_1 = require("./myths/set-config-at-key");

@@ -31,5 +37,5 @@ const package_1 = require("./package");

const definition = Object.assign({}, option);
lodash_1.unset(definition, "value");
lodash_1.unset(definition, "selector");
lodash_1.unset(definition, "action");
unset_1.default(definition, "value");
unset_1.default(definition, "selector");
unset_1.default(definition, "action");
return definition;

@@ -44,3 +50,3 @@ };

const newSpec = strippedToDefinition(props);
if (!lodash_1.isEqual(oldSpec, newSpec)) {
if (!isEqual_1.default(oldSpec, newSpec)) {
console.group(`Duplicate configuration option "${props.key}"`);

@@ -79,4 +85,4 @@ console.log("old config option spec:", oldSpec);

.filter(([optionKey, _]) => optionKey.startsWith(`${key}.`))
.filter(([optionKey, _]) => lodash_1.result(actual, optionKey) === undefined)
.forEach(([optionKey, option]) => lodash_1.set(actual, optionKey, option.defaultValue));
.filter(([optionKey, _]) => result_1.default(actual, optionKey) === undefined)
.forEach(([optionKey, option]) => set_1.default(actual, optionKey, option.defaultValue));
return actual[key];

@@ -83,0 +89,0 @@ });

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.toggleConfigAtKey = void 0;
const lodash_1 = require("lodash");
const findIndex_1 = __importDefault(require("lodash/findIndex"));
const rxjs_1 = require("rxjs");

@@ -14,3 +17,3 @@ const index_1 = require("../index");

const value = state.getIn(["current", ...action.payload.key.split(".")]);
const index = lodash_1.findIndex(values, { value });
const index = findIndex_1.default(values, { value });
return rxjs_1.of(set_config_at_key_1.setConfigAtKey.create({

@@ -17,0 +20,0 @@ key: action.payload.key,

{
"name": "@nteract/mythic-configuration",
"version": "1.0.11",
"version": "1.0.12",
"description": "A configuration system based on the myths redux framework",

@@ -98,4 +98,3 @@ "main": "lib/index.js",

]
},
"gitHead": "53c6d0ec6038dfc1124345c0385e10cff43a18c5"
}
}
import { isImmutable, List } from "immutable";
import { isEqual, result, set, unset } from "lodash";
import isEqual from "lodash/isEqual";
import result from "lodash/result";
import set from "lodash/set";
import unset from "lodash/unset";
import { setConfigAtKey } from "./myths/set-config-at-key";

@@ -4,0 +7,0 @@ import { configuration } from "./package";

@@ -1,2 +0,2 @@

import { findIndex } from "lodash";
import findIndex from "lodash/findIndex";
import { of } from "rxjs";

@@ -3,0 +3,0 @@ import { configOption } from "../index";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet