mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
fix: dbkv raw import (#1848)
This commit is contained in:
+14
-2
@@ -110,7 +110,13 @@ export default defineConfig([
|
||||
'src/backend/**/*.{js,mjs,cjs,ts}',
|
||||
'extensions/**/*.{js,mjs,cjs,ts}',
|
||||
],
|
||||
languageOptions: { globals: globals.browser },
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.jquery,
|
||||
i18n: 'readonly',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
|
||||
'no-unused-vars': ['error', {
|
||||
@@ -157,7 +163,13 @@ export default defineConfig([
|
||||
{
|
||||
files: ['**/*.{js,mjs,cjs,ts}'],
|
||||
ignores: ['src/backend/**/*.{js,mjs,cjs,ts}'],
|
||||
languageOptions: { globals: globals.browser },
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.jquery,
|
||||
i18n: 'readonly',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': ['error', {
|
||||
'vars': 'all',
|
||||
|
||||
Vendored
+4
-7
@@ -4,11 +4,8 @@ import type { MeteringServiceWrapper } from '@heyputer/backend/src/services/Mete
|
||||
import type { DBKVStore } from '@heyputer/backend/src/services/repositories/DBKVStore/DBKVStore.ts';
|
||||
import type { SUService } from '@heyputer/backend/src/services/SUService.js';
|
||||
import type { RequestHandler } from 'express';
|
||||
import type helpers from '../src/backend/src/helpers.js';
|
||||
import type FSNodeContext from '../src/backend/src/filesystem/FSNodeContext.js';
|
||||
import type selectors from '../src/backend/src/filesystem/node/selectors.js';
|
||||
|
||||
export type FSNodeContext = FSNodeContext;
|
||||
import type helpers from '../src/backend/src/helpers.js';
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
@@ -42,9 +39,9 @@ interface CoreRuntimeModule {
|
||||
}
|
||||
}
|
||||
|
||||
type FilesystemModule = {
|
||||
FSNodeContext: FSNodeContext,
|
||||
selectors: selectors,
|
||||
interface FilesystemModule {
|
||||
FSNodeContext: FSNodeContext,
|
||||
selectors: unknown,
|
||||
}
|
||||
|
||||
type StripPrefix<TPrefix extends string, T extends string> = T extends `${TPrefix}.${infer R}` ? R : never;
|
||||
|
||||
@@ -13,7 +13,7 @@ export class DBKVServiceWrapper extends BaseService {
|
||||
});
|
||||
Object.getOwnPropertyNames(DBKVStore.prototype).forEach(fn => {
|
||||
if ( fn === 'constructor' ) return;
|
||||
this[fn] = (...args) => this.kvStore[fn](args);
|
||||
this[fn] = (...args) => this.kvStore[fn](...args);
|
||||
});
|
||||
}
|
||||
static IMPLEMENTS = {
|
||||
|
||||
Reference in New Issue
Block a user