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

arg-capturer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arg-capturer - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

3

dist/structures/BaseFlagParser.d.ts

@@ -0,6 +1,9 @@

import { FlagType } from "../typings/enums/FlagType";
export declare class BaseFlagParser<Type, Options> {
options: Options;
constructor(options?: Partial<Options>);
get type(): FlagType;
get stringType(): keyof typeof FlagType;
protected read(value: string): Type;
}
//# sourceMappingURL=BaseFlagParser.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseFlagParser = void 0;
const FlagType_1 = require("../typings/enums/FlagType");
class BaseFlagParser {

@@ -15,2 +16,8 @@ options = {};

}
get type() {
throw new Error("Unimplemented Method");
}
get stringType() {
return FlagType_1.FlagType[this.type];
}
read(value) {

@@ -17,0 +24,0 @@ throw new Error("Unimplemented Method");

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

import { FlagType } from "../typings/enums/FlagType";
import { BigIntOptions } from "../typings/interfaces/BigIntOptions";

@@ -7,4 +8,5 @@ import { UnwrapBigIntTuple } from "../typings/types/UnwrapTuple";

equal<T extends bigint>(other: T): BigIntFlagParser<T>;
get type(): FlagType.BigInt;
protected read(value: string): T;
}
//# sourceMappingURL=BigIntFlagParser.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BigIntFlagParser = void 0;
const FlagType_1 = require("../typings/enums/FlagType");
const BaseFlagParser_1 = require("./BaseFlagParser");

@@ -14,2 +15,5 @@ class BigIntFlagParser extends BaseFlagParser_1.BaseFlagParser {

}
get type() {
return FlagType_1.FlagType.BigInt;
}
read(value) {

@@ -16,0 +20,0 @@ let t;

@@ -0,5 +1,7 @@

import { FlagType } from "../typings/enums/FlagType";
import { BaseFlagParser } from "./BaseFlagParser";
export declare class BooleanFlagParser extends BaseFlagParser<boolean, never> {
protected read(value: string): boolean;
get type(): FlagType.Boolean;
}
//# sourceMappingURL=BooleanFlagParser.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BooleanFlagParser = void 0;
const FlagType_1 = require("../typings/enums/FlagType");
const BaseFlagParser_1 = require("./BaseFlagParser");

@@ -23,4 +24,7 @@ const BooleanValues = {

}
get type() {
return FlagType_1.FlagType.Boolean;
}
}
exports.BooleanFlagParser = BooleanFlagParser;
//# sourceMappingURL=BooleanFlagParser.js.map

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

import { FlagType } from "../typings/enums/FlagType";
import { JSONValue } from "../typings/types/JSONValue";

@@ -5,3 +6,4 @@ import { BaseFlagParser } from "./BaseFlagParser";

protected read(value: string): Structure;
get type(): FlagType.JSON;
}
//# sourceMappingURL=JSONFlagParser.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JSONFlagParser = void 0;
const FlagType_1 = require("../typings/enums/FlagType");
const BaseFlagParser_1 = require("./BaseFlagParser");

@@ -14,4 +15,7 @@ class JSONFlagParser extends BaseFlagParser_1.BaseFlagParser {

}
get type() {
return FlagType_1.FlagType.JSON;
}
}
exports.JSONFlagParser = JSONFlagParser;
//# sourceMappingURL=JSONFlagParser.js.map

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

import { FlagType } from "../typings/enums/FlagType";
import { NumberOptions } from "../typings/interfaces/NumberOptions";

@@ -8,3 +9,4 @@ import { UnwrapNumberTuple } from "../typings/types/UnwrapTuple";

equal<T extends number>(other: T): NumberFlagParser<T>;
get type(): FlagType.Number | FlagType.Integer;
}
//# sourceMappingURL=NumberFlagParser.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NumberFlagParser = void 0;
const FlagType_1 = require("../typings/enums/FlagType");
const BaseFlagParser_1 = require("./BaseFlagParser");

@@ -43,4 +44,7 @@ class NumberFlagParser extends BaseFlagParser_1.BaseFlagParser {

}
get type() {
return this.options.float === false ? FlagType_1.FlagType.Integer : FlagType_1.FlagType.Number;
}
}
exports.NumberFlagParser = NumberFlagParser;
//# sourceMappingURL=NumberFlagParser.js.map

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

import { FlagType } from "../typings/enums/FlagType";
import { StringOptions } from "../typings/interfaces/StringOptions";

@@ -7,4 +8,5 @@ import { UnwrapStringTuple } from "../typings/types/UnwrapTuple";

equal<T extends string>(other: T): StringFlagParser<T>;
get type(): FlagType.String;
protected read(value: string): T;
}
//# sourceMappingURL=StringFlagParser.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringFlagParser = void 0;
const FlagType_1 = require("../typings/enums/FlagType");
const BaseFlagParser_1 = require("./BaseFlagParser");

@@ -14,2 +15,5 @@ class StringFlagParser extends BaseFlagParser_1.BaseFlagParser {

}
get type() {
return FlagType_1.FlagType.String;
}
read(value) {

@@ -16,0 +20,0 @@ if (this.options.choices !== undefined) {

8

dist/typings/enums/FlagType.d.ts
export declare enum FlagType {
String = 0,
BigInt = 0,
Number = 1,
Boolean = 2,
JSON = 3
Integer = 2,
Boolean = 3,
JSON = 4,
String = 5
}
//# sourceMappingURL=FlagType.d.ts.map

@@ -6,7 +6,9 @@ "use strict";

(function (FlagType) {
FlagType[FlagType["String"] = 0] = "String";
FlagType[FlagType["BigInt"] = 0] = "BigInt";
FlagType[FlagType["Number"] = 1] = "Number";
FlagType[FlagType["Boolean"] = 2] = "Boolean";
FlagType[FlagType["JSON"] = 3] = "JSON";
FlagType[FlagType["Integer"] = 2] = "Integer";
FlagType[FlagType["Boolean"] = 3] = "Boolean";
FlagType[FlagType["JSON"] = 4] = "JSON";
FlagType[FlagType["String"] = 5] = "String";
})(FlagType = exports.FlagType || (exports.FlagType = {}));
//# sourceMappingURL=FlagType.js.map
{
"name": "arg-capturer",
"version": "4.0.1",
"version": "4.0.2",
"types": "dist/index.d.ts",

@@ -5,0 +5,0 @@ "description": "Captures arguments between quotes, also allows parsing flags.",

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

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

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc