Skip to content

Commit

Permalink
fix: file-like import
Browse files Browse the repository at this point in the history
  • Loading branch information
wkolod committed Jul 18, 2023
1 parent abaaaa3 commit 5f0be69
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ do {
<summary>example</summary>

```js
import { NodeJs } from "@akord/akord-js/lib/types/file";
import { NodeJs } from "@akord/akord-js/lib/types/file-like";
const file = await NodeJs.File.fromPath("path to your file");

// create a stack with custom arweave tags
Expand Down Expand Up @@ -731,7 +731,7 @@ const { transactionId } = await akord.stack.rename(stackId, "new name for your s
<summary>example</summary>

```js
import { NodeJs } from "@akord/akord-js/lib/types/file";
import { NodeJs } from "@akord/akord-js/lib/types/file-like";
const file = await NodeJs.File.fromPath("path to your file");
const { transactionId } = await akord.stack.uploadRevision(stackId, file);
```
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/batch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Akord } from "../index";
import faker from '@faker-js/faker';
import { initInstance, folderCreate, noteCreate, testDataPath, vaultCreate } from './common';
import { email, email2, email3, password } from './data/test-credentials';
import { NodeJs } from "../types/file";
import { NodeJs } from "../types/file-like";
import { firstFileName } from "./data/content";

let akord: Akord;
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/profile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Akord } from "../index";
import faker from '@faker-js/faker';
import { initInstance, testDataPath } from './common';
import { email, password } from './data/test-credentials';
import { NodeJs } from "../types/file";
import { NodeJs } from "../types/file-like";
import { firstFileName } from "./data/content";

let akord: Akord;
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/queries.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Akord, Auth } from "../index";
import { email, password } from './data/test-credentials';
import { vaults, fileId, message, publicVaultId, privateVaultId, parentId } from './data/content';
import { NodeJs } from "../types/file";
import { NodeJs } from "../types/file-like";

let privateClient: Akord;
let publicClient: Akord;
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { Akord } from "../index";
import faker from '@faker-js/faker';
import { initInstance, testDataPath, vaultCreate } from './common';
import { email, password } from './data/test-credentials';
import { NodeJs, StorageClass } from "../types/file";
import { StorageClass } from "../types/file";
import { NodeJs } from "../types/file-like";
import { getTxData } from "../arweave";
import { firstFileName, secondFileName, arweaveImportFileTx } from './data/content';

Expand Down

0 comments on commit 5f0be69

Please sign in to comment.