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

gemini-configparser

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemini-configparser - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

CHANGELOG.md

21

lib/core.js
'use strict';
var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
var _Object$keys = require('babel-runtime/core-js/object/keys')['default'];

@@ -9,6 +7,5 @@

_Object$defineProperty(exports, '__esModule', {
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.option = option;

@@ -79,3 +76,3 @@ exports.section = section;

throw new _errors.UnknownKeysError(unknownKeys.map(function (key) {
return '' + locator.name + '.' + key;
return locator.name + '.' + key;
}));

@@ -123,9 +120,11 @@ }

function root(rootParser) {
return function (_ref2) {
var options = _ref2.options;
var env = _ref2.env;
var argv = _ref2.argv;
function root(rootParser, _ref2) {
var envPrefix = _ref2.envPrefix;
var rootLocator = (0, _locator2['default'])({ options: options, env: env, argv: argv });
return function (_ref3) {
var options = _ref3.options;
var env = _ref3.env;
var argv = _ref3.argv;
var rootLocator = (0, _locator2['default'])({ options: options, env: env, argv: argv, envPrefix: envPrefix });
var parsed = {};

@@ -132,0 +131,0 @@ rootParser(rootLocator, parsed);

'use strict';
var _get = require('babel-runtime/helpers/get')['default'];
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _get = require('babel-runtime/helpers/get')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
_Object$defineProperty(exports, '__esModule', {
Object.defineProperty(exports, '__esModule', {
value: true

@@ -16,6 +14,8 @@ });

var MissingOptionError = (function (_Error) {
_inherits(MissingOptionError, _Error);
function MissingOptionError(optionName) {
_classCallCheck(this, MissingOptionError);
var message = '' + optionName + ' is required';
var message = optionName + ' is required';
_get(Object.getPrototypeOf(MissingOptionError.prototype), 'constructor', this).call(this, message);

@@ -29,4 +29,2 @@ this.name = 'MissingOptionError';

_inherits(MissingOptionError, _Error);
return MissingOptionError;

@@ -38,2 +36,4 @@ })(Error);

var UnknownKeysError = (function (_Error2) {
_inherits(UnknownKeysError, _Error2);
function UnknownKeysError(keys) {

@@ -51,4 +51,2 @@ _classCallCheck(this, UnknownKeysError);

_inherits(UnknownKeysError, _Error2);
return UnknownKeysError;

@@ -55,0 +53,0 @@ })(Error);

'use strict';
var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
_Object$defineProperty(exports, '__esModule', {
Object.defineProperty(exports, '__esModule', {
value: true

@@ -7,0 +5,0 @@ });

@@ -5,4 +5,2 @@ 'use strict';

var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
var _Symbol = require('babel-runtime/core-js/symbol')['default'];

@@ -12,8 +10,9 @@

var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
_Object$defineProperty(exports, '__esModule', {
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.buildLazyObject = buildLazyObject;

@@ -20,0 +19,0 @@ exports.forceParsing = forceParsing;

'use strict';
var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
_Object$defineProperty(exports, '__esModule', {
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = initLocator;

@@ -17,3 +14,2 @@

var ENV_PREFIX = 'gemini_';
var CLI_PREFIX = '--';

@@ -25,2 +21,4 @@

var argv = _ref.argv;
var _ref$envPrefix = _ref.envPrefix;
var envPrefix = _ref$envPrefix === undefined ? 'gemini_' : _ref$envPrefix;

@@ -48,3 +46,3 @@ argv = argv.reduce(function (argv, arg) {

var subOption = _lodash2['default'].get(option, subKey);
var newName = '' + namePrefix + '.' + subKey;
var newName = namePrefix + '.' + subKey;

@@ -59,4 +57,4 @@ return mkLocator({

namePrefix: newName,
envPrefix: '' + envName + '_',
cliPrefix: '' + cliFlag + '-'
envPrefix: envName + '_',
cliPrefix: cliFlag + '-'
});

@@ -86,3 +84,3 @@ };

namePrefix: '',
envPrefix: ENV_PREFIX,
envPrefix: envPrefix,
cliPrefix: CLI_PREFIX

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

{
"name": "gemini-configparser",
"version": "0.2.0",
"version": "0.3.0",
"description": "Config parser module for gemini",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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