Merge pull request #32918 from styfle/patch-14

Change npm so that config get/set uses `any` instead of `string`
This commit is contained in:
Andrew Casey
2019-02-19 18:26:58 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -167,8 +167,8 @@ declare namespace NPM {
Conf: ConfigStatic;
defs: ConfigDefs;
get(setting: string): string;
set(setting: string, value: string): void;
get(setting: string): any;
set(setting: string, value: any): void;
loadPrefix(cb: ErrorCallback): void;
loadCAFile(caFilePath: string, cb: ErrorCallback): void;
+2
View File
@@ -22,4 +22,6 @@ npm.load({}, function (er) {
npm.on("log", function (message: string) {
console.log(message);
});
npm.config.set('audit', false);
})