From 1ad7110c4e329a9ec267c0285436e27d17c4b1a4 Mon Sep 17 00:00:00 2001 From: endomorphosis Date: Mon, 19 Aug 2024 02:52:53 -0700 Subject: [PATCH] refactor: Update imports and class names in ipfs_model_manager.js --- ipfs_model_manager_js/ipfs_model_manager.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipfs_model_manager_js/ipfs_model_manager.js b/ipfs_model_manager_js/ipfs_model_manager.js index 1301c73..17ca852 100644 --- a/ipfs_model_manager_js/ipfs_model_manager.js +++ b/ipfs_model_manager_js/ipfs_model_manager.js @@ -22,7 +22,7 @@ const moveFile = util.promisify(fs.rename); const rimrafAsync = util.promisify(rimraf); const tmpFile = new temp_file.TempFileManager() -class ipfsModelManager { +export class ipfsModelManager { constructor(resources = null, meta = null) { this.thisDir = path.dirname(import.meta.url); if (this.thisDir.startsWith("file://")) { diff --git a/package.json b/package.json index be52865..fe4be37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipfs_model_manager_js", - "version": "1.0.7", + "version": "1.0.8", "description": "This is a model manager and wrapper for huggingface, and it maintains an index of models from collections of models store retrieved through local/https/s3/ipfs/orbitdb, then maintains a state of which what models are currently accesible, and it will choose what files should be cached through local/s3/ipfs/ based on configuration settings.", "type": "module", "main": "model_manager.js",