Comparing version 2.1.1 to 2.1.2
@@ -82,3 +82,3 @@ "use strict"; | ||
cmdArgs: words.join(" "), | ||
cmdArgsList: words | ||
cmdArgsList: words, | ||
}]; | ||
@@ -85,0 +85,0 @@ }); |
import { KeyPress, State } from "makitso-prompt"; | ||
export declare function Autocomplete({ commandInfo }: { | ||
export declare function Autocomplete({ commandInfo, }: { | ||
commandInfo: (state: State) => Promise<void>; | ||
}): (state: State, press: KeyPress) => Promise<State>; |
@@ -74,3 +74,3 @@ "use strict"; | ||
message: "There is no schema defined for the property \"" + schemaPath + "\"", | ||
meta: { propSchemaPath: schemaPath } | ||
meta: { propSchemaPath: schemaPath }, | ||
}); | ||
@@ -86,3 +86,3 @@ } | ||
message: "\"Property " + propRef + "\" is invalid.\n A property reference is a dotted string with exactly two or three parts.", | ||
meta: { propRef: propRef } | ||
meta: { propRef: propRef }, | ||
}); | ||
@@ -98,3 +98,3 @@ } | ||
message: "The requested context store \"" + storeRef + "\" does not exist.", | ||
meta: { storeRef: storeRef } | ||
meta: { storeRef: storeRef }, | ||
}); | ||
@@ -187,3 +187,3 @@ } | ||
Object.assign(prompt, { | ||
keyPressers: __spreadArrays(prompt.keyPressers, [complete]) | ||
keyPressers: __spreadArrays(prompt.keyPressers, [complete]), | ||
}); | ||
@@ -197,3 +197,3 @@ _d.label = 5; | ||
default: value && storedValueIs === "default" ? value : mDefault, | ||
maskInput: maskInput | ||
maskInput: maskInput, | ||
}; | ||
@@ -277,5 +277,5 @@ return [4 /*yield*/, prompt.start(thisPrompt)]; | ||
return JSON.parse(JSON.stringify(this.schema)); | ||
} | ||
}, | ||
}; | ||
} | ||
exports.Context = Context; |
@@ -65,5 +65,5 @@ "use strict"; | ||
}); | ||
} | ||
}, | ||
}; | ||
} | ||
exports.keyPressAutoComplete = keyPressAutoComplete; |
@@ -11,3 +11,3 @@ "use strict"; | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -14,0 +14,0 @@ __exportStar(require("./makitso"), exports); |
@@ -22,5 +22,5 @@ import { Prompt } from "makitso-prompt"; | ||
}; | ||
cmdLine: string; | ||
cmdLine?: string; | ||
}; | ||
export declare function Makitso(args: MakitsoArgs): Promise<void | Error>; | ||
export {}; |
@@ -21,3 +21,3 @@ "use strict"; | ||
throw new Error("quit"); | ||
} | ||
}, | ||
} }, help.commands); | ||
@@ -24,0 +24,0 @@ function plugin() { |
@@ -128,4 +128,4 @@ "use strict"; | ||
action: action, | ||
suggest: suggest | ||
} | ||
suggest: suggest, | ||
}, | ||
}; | ||
@@ -132,0 +132,0 @@ function plugin() { |
@@ -222,4 +222,4 @@ "use strict"; | ||
stores: { | ||
file: store | ||
} | ||
file: store, | ||
}, | ||
}]; | ||
@@ -226,0 +226,0 @@ } |
@@ -11,3 +11,3 @@ "use strict"; | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
} | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -64,3 +64,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
secure: new keychain_store_1.KeychainStore(), | ||
session: new memory_store_1.MemoryStore(session) | ||
session: new memory_store_1.MemoryStore(session), | ||
}; | ||
@@ -67,0 +67,0 @@ if (!file) return [3 /*break*/, 2]; |
@@ -96,3 +96,3 @@ "use strict"; | ||
variant: variant, | ||
storeOptions: storeOptions | ||
storeOptions: storeOptions, | ||
}), service = _b[0], account = _b[1]; | ||
@@ -149,6 +149,6 @@ return keytar_1.default.getPassword(service, account); | ||
stores: { | ||
keychain: new KeychainStore() | ||
} | ||
keychain: new KeychainStore(), | ||
}, | ||
}; | ||
} | ||
exports.plugin = plugin; |
@@ -115,6 +115,6 @@ "use strict"; | ||
stores: { | ||
session: new MemoryStore(args) | ||
} | ||
session: new MemoryStore(args), | ||
}, | ||
}; | ||
} | ||
exports.plugin = plugin; |
{ | ||
"name": "makitso", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "A Framework for building composable interactive commandline apps", | ||
@@ -15,3 +15,4 @@ "main": "dist/index.js", | ||
"build": "rm -rf dist/ && tsc", | ||
"test": "jest" | ||
"test": "jest", | ||
"prepare": "yarn build" | ||
}, | ||
@@ -24,3 +25,3 @@ "dependencies": { | ||
"keytar": "^6.0.1", | ||
"makitso-prompt": "^3.0.0", | ||
"makitso-prompt": "^3.0.2", | ||
"prettyjson": "^1.2.1", | ||
@@ -27,0 +28,0 @@ "yargs-parser": "^18.1.3" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
790962
Updatedmakitso-prompt@^3.0.2