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

@oclif/core

Package Overview
Dependencies
Maintainers
2
Versions
406
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/core - npm Package Compare versions

Comparing version 4.0.0-beta.10 to 4.0.0-beta.11

2

lib/interfaces/index.d.ts

@@ -11,3 +11,3 @@ export type { AlphabetLowercase, AlphabetUppercase } from './alphabet';

export type { Arg, BooleanFlag, CustomOptions, Deprecation, Flag, FlagDefinition, OptionFlag } from './parser';
export type { OclifConfiguration, PJSON, S3, S3Templates, UserPJSON } from './pjson';
export type { LinkedPlugin, OclifConfiguration, PJSON, S3, S3Templates, UserPJSON, UserPlugin } from './pjson';
export type { Options, Plugin, PluginOptions } from './plugin';

@@ -14,0 +14,0 @@ export type { S3Manifest } from './s3-manifest';

@@ -282,8 +282,5 @@ import { HelpOptions } from './help';

};
export type PluginTypes = {
root: string;
} | UserPlugin | LinkedPlugin;
export type UserPJSON = {
oclif: {
plugins?: PluginTypes[];
plugins?: (UserPlugin | LinkedPlugin)[];
};

@@ -290,0 +287,0 @@ private?: boolean;

@@ -318,5 +318,3 @@ "use strict";

input: v,
}))))
// eslint-disable-next-line unicorn/no-await-expression-member
.map((v) => validateOptions(i.inputFlag.flag, v)),
})))).map((v) => validateOptions(i.inputFlag.flag, v)),
};

@@ -323,0 +321,0 @@ }

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

const promises_1 = require("node:fs/promises");
const util_1 = require("./util");
/**

@@ -47,3 +48,11 @@ * Parser for Args.directory and Flags.directory. Checks that the provided path

exports.fileExists = fileExists;
const cache = new Map();
class ProdOnlyCache extends Map {
set(key, value) {
if ((0, util_1.isProd)() ?? false) {
super.set(key, value);
}
return this;
}
}
const cache = new ProdOnlyCache();
async function readJson(path) {

@@ -50,0 +59,0 @@ if (cache.has(path)) {

{
"name": "@oclif/core",
"description": "base library for oclif CLIs",
"version": "4.0.0-beta.10",
"version": "4.0.0-beta.11",
"author": "Salesforce",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues",

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