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

@oclif/config

Package Overview
Dependencies
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/config - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.8.2](https://github.com/oclif/config/compare/v1.8.1...v1.8.2) (2018-10-03)
### Bug Fixes
* make hook typing less strict ([#58](https://github.com/oclif/config/issues/58)) ([b148583](https://github.com/oclif/config/commit/b148583))
## [1.8.1](https://github.com/oclif/config/compare/v1.8.0...v1.8.1) (2018-10-02)

@@ -2,0 +9,0 @@

2

lib/config.d.ts

@@ -157,3 +157,3 @@ import { Command } from './command';

loadUserPlugins(): Promise<void>;
runHook<T extends Hooks, K extends Extract<keyof T, string>>(event: K, opts: T[K]): Promise<void>;
runHook<T>(event: string, opts: T): Promise<void>;
runCommand(id: string, argv?: string[]): Promise<void>;

@@ -160,0 +160,0 @@ scopedEnvVar(k: string): string | undefined;

@@ -24,6 +24,23 @@ import * as Config from '.';

}
export declare type Hook<K extends keyof Hooks> = (this: Hook.Context, options: Hooks[K] & {
export declare type HookKeyOrOptions<K> = K extends (keyof Hooks) ? Hooks[K] : K;
export declare type Hook<T> = (this: Hook.Context, options: HookKeyOrOptions<T> & {
config: Config.IConfig;
}) => any;
export declare namespace Hook {
type Init = Hook<{
id: string | undefined;
argv: string[];
}>;
type PluginsPreinstall = Hook<{
name: string;
tag: string;
type: 'npm';
}>;
type Prerun = Hook<{
Command: Config.Command.Class;
argv: string[];
}>;
type CommandNotFound = Hook<{
id: string;
}>;
interface Context {

@@ -30,0 +47,0 @@ config: Config.IConfig;

{
"name": "@oclif/config",
"description": "base config object and standard interfaces for oclif components",
"version": "1.8.1",
"version": "1.8.2",
"author": "Jeff Dickey @jdxcode",

@@ -12,6 +12,6 @@ "bugs": "https://github.com/oclif/config/issues",

"devDependencies": {
"@oclif/errors": "^1.2.0",
"@oclif/errors": "^1.2.1",
"@oclif/parser": "^3.6.1",
"@oclif/tslint": "^3.1.0",
"@types/chai": "^4.1.4",
"@types/chai": "^4.1.6",
"@types/globby": "^8.0.0",

@@ -21,5 +21,5 @@ "@types/indent-string": "^3.0.0",

"@types/mocha": "^5.2.5",
"@types/node": "^10.9.4",
"@types/node": "^10.11.4",
"@types/wrap-ansi": "^3.0.0",
"chai": "^4.1.2",
"chai": "^4.2.0",
"fancy-test": "^1.4.1",

@@ -31,3 +31,3 @@ "globby": "^8.0.1",

"tslint": "^5.11.0",
"typescript": "^3.0.3"
"typescript": "^3.1.1"
},

@@ -34,0 +34,0 @@ "engines": {

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