From 581a0bf2c7a98615b5a600cf551c3b2c834d3596 Mon Sep 17 00:00:00 2001 From: endomorphosis Date: Thu, 29 Aug 2024 16:38:26 -0700 Subject: [PATCH] refactor: Update imports and class names in ipfs_model_manager.js --- fireproofdb_kit_js/index.js | 1 + fireproofdb_kit_js/main.js | 17 +++++++++++++++++ fireproofdb_kit_js/package.json | 22 ++++++++++++++++++++++ fireproofdb_kit_js/test/test.js | 0 storacha_kit_js/index.js | 1 + storacha_kit_js/main.js | 17 +++++++++++++++++ storacha_kit_js/package.json | 22 ++++++++++++++++++++++ storacha_kit_js/test/test.js | 0 8 files changed, 80 insertions(+) create mode 100644 fireproofdb_kit_js/index.js create mode 100644 fireproofdb_kit_js/main.js create mode 100644 fireproofdb_kit_js/package.json create mode 100644 fireproofdb_kit_js/test/test.js create mode 100644 storacha_kit_js/index.js create mode 100644 storacha_kit_js/main.js create mode 100644 storacha_kit_js/package.json create mode 100644 storacha_kit_js/test/test.js diff --git a/fireproofdb_kit_js/index.js b/fireproofdb_kit_js/index.js new file mode 100644 index 0000000..f63ad8b --- /dev/null +++ b/fireproofdb_kit_js/index.js @@ -0,0 +1 @@ +export * from './main.js'; diff --git a/fireproofdb_kit_js/main.js b/fireproofdb_kit_js/main.js new file mode 100644 index 0000000..4308078 --- /dev/null +++ b/fireproofdb_kit_js/main.js @@ -0,0 +1,17 @@ +export class FireproofKitJs { + constructor() { + } + + async init() { + this.test(); + console.log("FireproofKit.init()"); + return null; + } + + async test() { + console.error("method not implemented"); + throw new Error("method not implemented"); + } +} + +export default FireproofKitJs; \ No newline at end of file diff --git a/fireproofdb_kit_js/package.json b/fireproofdb_kit_js/package.json new file mode 100644 index 0000000..a8fe9ef --- /dev/null +++ b/fireproofdb_kit_js/package.json @@ -0,0 +1,22 @@ +{ + "name": "@endomorphosis/fireproofdb_kit_js", + "version": "1.0.0", + "description": "a bridge for fireproofdb", + "type": "module", + "main": "main.js", + "scripts": { + "test": "node tests/test.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/endomorphosis/fireproofdb_kit_js.git" + }, + "dependencies": { + }, + "author": "Benjamin Barber", + "license": "AGPL-3.0-only", + "bugs": { + "url": "https://github.com/endomorphosis/fireproofdb_kit_js/issues" + }, + "homepage": "https://github.com/endomorphosis/fireproofdb_kit_js#readme" +} diff --git a/fireproofdb_kit_js/test/test.js b/fireproofdb_kit_js/test/test.js new file mode 100644 index 0000000..e69de29 diff --git a/storacha_kit_js/index.js b/storacha_kit_js/index.js new file mode 100644 index 0000000..6adca39 --- /dev/null +++ b/storacha_kit_js/index.js @@ -0,0 +1 @@ +export * from 'main.js'; \ No newline at end of file diff --git a/storacha_kit_js/main.js b/storacha_kit_js/main.js new file mode 100644 index 0000000..3bb24f4 --- /dev/null +++ b/storacha_kit_js/main.js @@ -0,0 +1,17 @@ +export class storachaKitJs { + constructor() { + } + + async init() { + this.test(); + console.log("storachaKitJs.init()"); + return null; + } + + async test() { + console.error("method not implemented"); + throw new Error("method not implemented"); + } +} + +export default storachaKitJs; \ No newline at end of file diff --git a/storacha_kit_js/package.json b/storacha_kit_js/package.json new file mode 100644 index 0000000..6927d98 --- /dev/null +++ b/storacha_kit_js/package.json @@ -0,0 +1,22 @@ +{ + "name": "@endomorphosis/storacha_kit_js", + "version": "1.0.0", + "description": "a bridge for storacha", + "type": "module", + "main": "main.js", + "scripts": { + "test": "node tests/test.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/endomorphosis/storacha_kit_js.git" + }, + "dependencies": { + }, + "author": "Benjamin Barber", + "license": "AGPL-3.0-only", + "bugs": { + "url": "https://github.com/endomorphosis/fireproofdb_kit_js/issues" + }, + "homepage": "https://github.com/endomorphosis/fireproofdb_kit_js#readme" +} diff --git a/storacha_kit_js/test/test.js b/storacha_kit_js/test/test.js new file mode 100644 index 0000000..e69de29