Skip to content

Commit

Permalink
refactor: Update imports and class names in storacha_kit_js/main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
endomorphosis committed Aug 29, 2024
1 parent 581a0bf commit b12ad97
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions fireproofdb_kit_js/main.js
Original file line number Diff line number Diff line change
@@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion storacha_kit_js/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from 'main.js';
export * from './main.js';
6 changes: 4 additions & 2 deletions storacha_kit_js/main.js
Original file line number Diff line number Diff line change
@@ -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;
}

Expand Down
6 changes: 3 additions & 3 deletions tests/test.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit b12ad97

Please sign in to comment.