Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
320c627d4f | |||
d834e0a220 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/npmextra",
|
"name": "@push.rocks/npmextra",
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "do more with npm",
|
"description": "do more with npm",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/npmextra',
|
name: '@push.rocks/npmextra',
|
||||||
version: '4.0.2',
|
version: '4.0.3',
|
||||||
description: 'do more with npm'
|
description: 'do more with npm'
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,13 @@ import * as paths from './npmextra.paths.js';
|
|||||||
import { KeyValueStore } from './npmextra.classes.keyvaluestore.js';
|
import { KeyValueStore } from './npmextra.classes.keyvaluestore.js';
|
||||||
|
|
||||||
export class AppData {
|
export class AppData {
|
||||||
|
public static async createAndInit(pathArg: string) {
|
||||||
|
const appData = new AppData(pathArg);
|
||||||
|
await appData.init();
|
||||||
|
return appData;
|
||||||
|
}
|
||||||
|
|
||||||
|
// instance
|
||||||
public readyDeferred = plugins.smartpromise.defer();
|
public readyDeferred = plugins.smartpromise.defer();
|
||||||
public dirPathArg: string;
|
public dirPathArg: string;
|
||||||
private kvStore: KeyValueStore;
|
private kvStore: KeyValueStore;
|
||||||
|
Reference in New Issue
Block a user