Socket
Socket
Sign inDemoInstall

meow

Package Overview
Dependencies
58
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.1.5 to 11.0.0

19

index.d.ts

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

import {PackageJson} from 'type-fest';
import type {
CamelCasedProperties,
PackageJson,
} from 'type-fest';

@@ -15,3 +18,3 @@ export type FlagType = 'string' | 'boolean' | 'number';

export interface Flag<Type extends FlagType, Default, IsMultiple = false> {
export type Flag<Type extends FlagType, Default, IsMultiple = false> = {
readonly type?: Type;

@@ -22,3 +25,3 @@ readonly alias?: string;

readonly isMultiple?: IsMultiple;
}
};

@@ -31,3 +34,3 @@ type StringFlag = Flag<'string', string> | Flag<'string', string[], true>;

export interface Options<Flags extends AnyFlags> {
export type Options<Flags extends AnyFlags> = {
/**

@@ -219,3 +222,3 @@ Pass in [`import.meta`](https://nodejs.org/dist/latest/docs/api/esm.html#esm_import_meta). This is used to find the correct package.json file.

readonly allowUnknownFlags?: boolean;
}
};

@@ -244,3 +247,3 @@ type TypedFlag<Flag extends AnyFlag> =

export interface Result<Flags extends AnyFlags> {
export type Result<Flags extends AnyFlags> = {
/**

@@ -254,3 +257,3 @@ Non-flag arguments.

*/
flags: TypedFlags<Flags> & Record<string, unknown>;
flags: CamelCasedProperties<TypedFlags<Flags>> & Record<string, unknown>;

@@ -283,3 +286,3 @@ /**

showVersion: () => void;
}
};
/**

@@ -286,0 +289,0 @@ @param helpMessage - Shortcut for the `help` option.

@@ -85,3 +85,3 @@ import {dirname} from 'node:path';

flag.type = flag.type ? `${flag.type}-array` : 'array';
flag.default = flag.default || [];
flag.default = flag.default ?? [];
delete flag.isMultiple;

@@ -111,3 +111,3 @@ }

if (!(options.importMeta && options.importMeta.url)) {
if (!options.importMeta?.url) {
throw new TypeError('The `importMeta` option is required. Its value must be `import.meta`.');

@@ -181,3 +181,3 @@ }

const argv = parseArguments(options.argv, parserOptions);
let help = redent(trimNewlines((options.help || '').replace(/\t+\n*$/, '')), 2);
let help = redent(trimNewlines((options.help ?? '').replace(/\t+\n*$/, '')), 2);

@@ -184,0 +184,0 @@ normalizePackageData(package_);

{
"name": "meow",
"version": "10.1.5",
"version": "11.0.0",
"description": "CLI app helper",

@@ -14,5 +14,8 @@ "license": "MIT",

"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": ">=14.16"
},

@@ -47,21 +50,21 @@ "scripts": {

"@types/minimist": "^1.2.2",
"camelcase-keys": "^7.0.0",
"decamelize": "^5.0.0",
"camelcase-keys": "^8.0.2",
"decamelize": "^6.0.0",
"decamelize-keys": "^1.1.0",
"hard-rejection": "^2.1.0",
"minimist-options": "4.1.0",
"normalize-package-data": "^3.0.2",
"read-pkg-up": "^8.0.0",
"normalize-package-data": "^4.0.1",
"read-pkg-up": "^9.1.0",
"redent": "^4.0.0",
"trim-newlines": "^4.0.2",
"type-fest": "^1.2.2",
"yargs-parser": "^20.2.9"
"type-fest": "^3.1.0",
"yargs-parser": "^21.1.1"
},
"devDependencies": {
"ava": "^3.15.0",
"ava": "^4.3.3",
"execa": "^6.1.0",
"indent-string": "^5.0.0",
"read-pkg": "^7.1.0",
"tsd": "^0.20.0",
"xo": "^0.48.0"
"tsd": "^0.24.1",
"xo": "^0.52.4"
},

@@ -68,0 +71,0 @@ "xo": {

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