Socket
Socket
Sign inDemoInstall

jackspeak

Package Overview
Dependencies
11
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

1

dist/cjs/index.d.ts

@@ -67,2 +67,3 @@ /// <reference types="node" />

} & MultiType<M>;
export declare const isConfigType: (t: string) => t is ConfigType;
/**

@@ -69,0 +70,0 @@ * A set of {@link ConfigOptionBase} objects, referenced by their longOption

5

dist/cjs/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.jack = exports.Jack = void 0;
exports.jack = exports.Jack = exports.isConfigType = void 0;
const node_util_1 = require("node:util");

@@ -53,2 +53,3 @@ const parse_args_js_1 = require("./parse-args.js");

(t === 'string' || t === 'number' || t === 'boolean');
exports.isConfigType = isConfigType;
const undefOrType = (v, t) => v === undefined || typeof v === t;

@@ -67,3 +68,3 @@ const isValidValue = (v, type, multi) => {

typeof o === 'object' &&
isConfigType(o.type) &&
(0, exports.isConfigType)(o.type) &&
o.type === type &&

@@ -70,0 +71,0 @@ undefOrType(o.short, 'string') &&

@@ -67,2 +67,3 @@ /// <reference types="node" />

} & MultiType<M>;
export declare const isConfigType: (t: string) => t is ConfigType;
/**

@@ -69,0 +70,0 @@ * A set of {@link ConfigOptionBase} objects, referenced by their longOption

@@ -44,3 +44,3 @@ import { inspect } from 'node:util';

: +env.trim());
const isConfigType = (t) => typeof t === 'string' &&
export const isConfigType = (t) => typeof t === 'string' &&
(t === 'string' || t === 'number' || t === 'boolean');

@@ -47,0 +47,0 @@ const undefOrType = (v, t) => v === undefined || typeof v === t;

{
"name": "jackspeak",
"version": "2.0.1",
"version": "2.0.2",
"description": "A very strict and proper argument parser.",

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc