fix: simplify export import typedef (#1818)

* fix: simplify export import typedef

* feat: expose kvstore methods in the service too

* chore: update versioning
This commit is contained in:
Daniel Salazar
2025-10-24 12:52:58 -07:00
committed by GitHub
parent 1a1e9e8bb2
commit 3fb3cf0e60
5 changed files with 13 additions and 13 deletions
@@ -11,6 +11,10 @@ export class DBKVServiceWrapper extends BaseService {
meteringService: this.services.get('meteringService').meteringService,
globalConfig: this.global_config,
});
Object.getOwnPropertyNames(DBKVStore.prototype).forEach(fn => {
if ( fn === 'constructor' ) return;
this[fn] = (...args) => this.kvStore[fn](args);
});
}
static IMPLEMENTS = {
['puter-kvstore']: Object.getOwnPropertyNames(DBKVStore.prototype)
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "puter",
"version": "2.1.1",
"version": "2.1.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "puter",
"version": "2.1.1",
"version": "2.1.2",
"license": "Apache-2.0",
"dependencies": {
"@heyputer/kv.js": "^0.1.92",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@heyputer/puter.js",
"version": "2.1.1",
"version": "2.1.2",
"description": "Puter.js - A JavaScript library for interacting with Puter services.",
"main": "src/index.js",
"types": "index.d.ts",