From b12ad97a608490635cccbc5fabc3909f0c759cfe Mon Sep 17 00:00:00 2001 From: endomorphosis Date: Thu, 29 Aug 2024 16:46:37 -0700 Subject: [PATCH] refactor: Update imports and class names in storacha_kit_js/main.js --- fireproofdb_kit_js/main.js | 6 ++++-- storacha_kit_js/index.js | 2 +- storacha_kit_js/main.js | 6 ++++-- tests/test.js | 6 +++--- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/fireproofdb_kit_js/main.js b/fireproofdb_kit_js/main.js index 4308078..564c7af 100644 --- a/fireproofdb_kit_js/main.js +++ b/fireproofdb_kit_js/main.js @@ -1,10 +1,12 @@ export class FireproofKitJs { - constructor() { + constructor(resources, metadata) { + this.resources = resources; + this.metadata = metadata; } async init() { - this.test(); console.log("FireproofKit.init()"); + this.test(); return null; } diff --git a/storacha_kit_js/index.js b/storacha_kit_js/index.js index 6adca39..785dec2 100644 --- a/storacha_kit_js/index.js +++ b/storacha_kit_js/index.js @@ -1 +1 @@ -export * from 'main.js'; \ No newline at end of file +export * from './main.js'; \ No newline at end of file diff --git a/storacha_kit_js/main.js b/storacha_kit_js/main.js index 3bb24f4..9710aef 100644 --- a/storacha_kit_js/main.js +++ b/storacha_kit_js/main.js @@ -1,10 +1,12 @@ export class storachaKitJs { - constructor() { + constructor(resources, metadata) { + this.resources = resources; + this.metadata = metadata; } async init() { - this.test(); console.log("storachaKitJs.init()"); + this.test(); return null; } diff --git a/tests/test.js b/tests/test.js index ec2ae45..5fbd847 100644 --- a/tests/test.js +++ b/tests/test.js @@ -1,9 +1,9 @@ -import ipfsModelManagerJs from ipfs_model_manager_js import libp2pKitJs from libp2p_kit_js import orbitDBKitJs from orbit_db_kit_js import ipfsFaissJs from ipfs_faiss_js -import storachaKitJs from storacha_kit_js -import fireproofDbKitJs from fireproofdb_kit_js +import { storachaKitJs } from '../storacha_kit_js/main.js'; +import { fireproofDbKitJs } from '../fireproofdb_kit_js/main.js'; +import { ipfsModelManagerJs } from '../ipfs_model_manager_js/ipfs_model_manager.js'; import { requireConfig } from "../config/config.js"; import fs from "fs"; import path from "path";