Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
141c7ed8a7 | |||
037481f195 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@push.rocks/npmextra",
|
||||
"version": "4.0.13",
|
||||
"version": "4.0.14",
|
||||
"private": false,
|
||||
"description": "do more with npm",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/npmextra',
|
||||
version: '4.0.13',
|
||||
version: '4.0.14',
|
||||
description: 'do more with npm'
|
||||
}
|
||||
|
@ -99,4 +99,9 @@ export class AppData {
|
||||
console.log('All mandatory keys are present in the appdata');
|
||||
}
|
||||
}
|
||||
|
||||
public async waitForKeysPresent(keysArg: string[]) {
|
||||
await this.readyDeferred.promise;
|
||||
await this.kvStore.waitForKeysPresent(keysArg);
|
||||
}
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ export class KeyValueStore {
|
||||
return Array.from(this.mandatoryKeys).filter(key => !(key in this.dataObject));
|
||||
}
|
||||
|
||||
public async waitForKeysPresent(keysArg: []): Promise<void> {
|
||||
public async waitForKeysPresent(keysArg: string[]): Promise<void> {
|
||||
const missingKeys = keysArg.filter(keyArg => !this.dataObject[keyArg]);
|
||||
if (missingKeys.length === 0) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user