Skip to content

Commit d50d5e2

Browse files
committed
fix reference bugs, update docs
1 parent 0616c73 commit d50d5e2

12 files changed

+85
-63
lines changed

README.md

Lines changed: 70 additions & 49 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "vue-evm-nft",
3-
"version": "1.5.1",
3+
"version": "1.6.2",
4+
"type": "module",
45
"main": "src/index.js",
56
"types": "src/types/index.d.ts",
67
"scripts": {

src/composables/useDahGallery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ref, onMounted, watch } from 'vue';
2-
import { useEvmNft } from './useEvmNft';
3-
import { useNftStore } from '../stores/nftStore';
2+
import { useEvmNft } from './useEvmNft.js';
3+
import { useNftStore } from '../stores/nftStore.js';
44
import { ethers } from 'ethers';
55

66
/**

src/composables/useEvmMetaDataGallery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ref, onMounted, watch } from 'vue';
2-
import { useEvmNft } from './useEvmNft';
3-
import { useNftStore } from '../stores/nftStore';
2+
import { useEvmNft } from './useEvmNft.js';
3+
import { useNftStore } from '../stores/nftStore.js';
44
import { ethers } from 'ethers';
55

66
/**

src/composables/useEvmNft.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from 'axios';
22
import { ethers } from 'ethers';
33
import { ref } from 'vue';
4-
import { DIG_A_HASH_BASE_URL } from '../modules/constants';
4+
import { DIG_A_HASH_BASE_URL } from '../modules/constants.js';
55

66
/**
77
* Gets contract and NFT data from the Blockchain by setting up the

src/composables/useEvmNftGallery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ref, onMounted, watch } from 'vue';
2-
import { useEvmNft } from './useEvmNft';
3-
import { useNftStore } from '../stores/nftStore';
2+
import { useEvmNft } from './useEvmNft.js';
3+
import { useNftStore } from '../stores/nftStore.js';
44
import { ethers } from 'ethers';
55

66
/**

src/stores/nftStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineStore } from 'pinia';
2-
import { DIG_A_HASH_BASE_URL } from '../modules/constants';
2+
import { DIG_A_HASH_BASE_URL } from '../modules/constants.js';
33

44
/**
55
* Gets the base URL for all DAH meta data.

src/types/useDahGallery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type Ref } from 'vue';
2-
import { type Nft } from './useNftStore';
2+
import { type Nft } from './useNftStore.js';
33

44
/**
55
* The DahGalleryOptions configuration object for the useDahGallery composable.

src/types/useEvmMetaDataGallery.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type ref, Ref } from 'vue';
2-
import { type Nft } from './useNftStore';
2+
import { type Nft } from './useNftStore.js';
33

44
/**
55
* The EvmMetaDataOptions configuration object for the useEvmMetaDataGallery composable.

src/types/useEvmNft.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Ref } from 'vue';
22
import { ethers } from 'ethers';
3-
import { Nft, NftMetaData } from './useNftStore';
3+
import { Nft, NftMetaData } from './useNftStore.js';
44

55
/**
66
* Composable for interacting with EVM-based NFT contracts.

src/types/useEvmNftGallery.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type ref, Ref } from 'vue';
2-
import { type Nft } from './useNftStore';
2+
import { type Nft } from './useNftStore.js';
33

44
/**
55
* The EvmNftOptions configuration object for the useEvmNftGallery composable.

src/types/useNftStore.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StoreDefinition } from 'pinia';
2-
import { BlockchainConfig } from './blockchains';
2+
import { BlockchainConfig } from './blockchains.js';
33

44
/**
55
* A metadata attribute for an NFT.

0 commit comments

Comments
 (0)