Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fage2022 committed Apr 8, 2024
1 parent 6e431d8 commit d08f278
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "CESS <[email protected]>",
"homepage": "https://www.cess.cloud",
"license": "MIT",
"version": "0.1.7",
"version": "0.1.8",
"description": "A js-sdk for Cess Project with file storage",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/api/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Autor: cess lab
*/
import ControlBase from "../control-base.js";
const { formatSpaceInfo } = require("../util/formatter");
import { formatSpaceInfo } from "../util/formatter";

export default class Common extends ControlBase {
constructor(api, keyring, isDebug = false) {
Expand Down
2 changes: 1 addition & 1 deletion src/util/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
*/
import _ from "lodash";
const moment = require("moment");
import moment from "moment";

export {
formatEntries,
Expand Down

0 comments on commit d08f278

Please sign in to comment.