@twin.org/nft-rest-client 0.0.1-next.8 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +8 -8
- package/dist/esm/index.mjs +8 -8
- package/dist/types/nftClient.d.ts +5 -5
- package/docs/changelog.md +141 -1
- package/docs/reference/classes/NftClient.md +34 -22
- package/package.json +10 -10
package/dist/cjs/index.cjs
CHANGED
|
@@ -23,19 +23,16 @@ class NftClient extends apiCore.BaseRestClient {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Mint an NFT.
|
|
26
|
-
* @param issuer The issuer for the NFT, will also be the initial owner.
|
|
27
26
|
* @param tag The tag for the NFT.
|
|
28
27
|
* @param immutableMetadata The immutable metadata for the NFT.
|
|
29
28
|
* @param metadata The metadata for the NFT.
|
|
30
29
|
* @param namespace The namespace of the connector to use for the NFT, defaults to component configured namespace.
|
|
31
30
|
* @returns The id of the created NFT in urn format.
|
|
32
31
|
*/
|
|
33
|
-
async mint(
|
|
34
|
-
core.Guards.stringValue(this.CLASS_NAME, "issuer", issuer);
|
|
32
|
+
async mint(tag, immutableMetadata, metadata, namespace) {
|
|
35
33
|
core.Guards.stringValue(this.CLASS_NAME, "tag", tag);
|
|
36
34
|
const response = await this.fetch("/", "POST", {
|
|
37
35
|
body: {
|
|
38
|
-
issuer,
|
|
39
36
|
tag,
|
|
40
37
|
immutableMetadata,
|
|
41
38
|
metadata,
|
|
@@ -74,19 +71,22 @@ class NftClient extends apiCore.BaseRestClient {
|
|
|
74
71
|
/**
|
|
75
72
|
* Transfer an NFT.
|
|
76
73
|
* @param id The id of the NFT to transfer in urn format.
|
|
77
|
-
* @param
|
|
74
|
+
* @param recipientIdentity The recipient identity for the NFT.
|
|
75
|
+
* @param recipientAddress The recipient address for the NFT.
|
|
78
76
|
* @param metadata Optional mutable data to include during the transfer.
|
|
79
77
|
* @returns Nothing.
|
|
80
78
|
*/
|
|
81
|
-
async transfer(id,
|
|
79
|
+
async transfer(id, recipientIdentity, recipientAddress, metadata) {
|
|
82
80
|
core.Guards.stringValue(this.CLASS_NAME, "id", id);
|
|
83
|
-
core.Guards.stringValue(this.CLASS_NAME, "
|
|
81
|
+
core.Guards.stringValue(this.CLASS_NAME, "recipientIdentity", recipientIdentity);
|
|
82
|
+
core.Guards.stringValue(this.CLASS_NAME, "recipientAddress", recipientAddress);
|
|
84
83
|
await this.fetch("/:id/transfer", "POST", {
|
|
85
84
|
pathParams: {
|
|
86
85
|
id
|
|
87
86
|
},
|
|
88
87
|
body: {
|
|
89
|
-
|
|
88
|
+
recipientIdentity,
|
|
89
|
+
recipientAddress,
|
|
90
90
|
metadata
|
|
91
91
|
}
|
|
92
92
|
});
|
package/dist/esm/index.mjs
CHANGED
|
@@ -21,19 +21,16 @@ class NftClient extends BaseRestClient {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Mint an NFT.
|
|
24
|
-
* @param issuer The issuer for the NFT, will also be the initial owner.
|
|
25
24
|
* @param tag The tag for the NFT.
|
|
26
25
|
* @param immutableMetadata The immutable metadata for the NFT.
|
|
27
26
|
* @param metadata The metadata for the NFT.
|
|
28
27
|
* @param namespace The namespace of the connector to use for the NFT, defaults to component configured namespace.
|
|
29
28
|
* @returns The id of the created NFT in urn format.
|
|
30
29
|
*/
|
|
31
|
-
async mint(
|
|
32
|
-
Guards.stringValue(this.CLASS_NAME, "issuer", issuer);
|
|
30
|
+
async mint(tag, immutableMetadata, metadata, namespace) {
|
|
33
31
|
Guards.stringValue(this.CLASS_NAME, "tag", tag);
|
|
34
32
|
const response = await this.fetch("/", "POST", {
|
|
35
33
|
body: {
|
|
36
|
-
issuer,
|
|
37
34
|
tag,
|
|
38
35
|
immutableMetadata,
|
|
39
36
|
metadata,
|
|
@@ -72,19 +69,22 @@ class NftClient extends BaseRestClient {
|
|
|
72
69
|
/**
|
|
73
70
|
* Transfer an NFT.
|
|
74
71
|
* @param id The id of the NFT to transfer in urn format.
|
|
75
|
-
* @param
|
|
72
|
+
* @param recipientIdentity The recipient identity for the NFT.
|
|
73
|
+
* @param recipientAddress The recipient address for the NFT.
|
|
76
74
|
* @param metadata Optional mutable data to include during the transfer.
|
|
77
75
|
* @returns Nothing.
|
|
78
76
|
*/
|
|
79
|
-
async transfer(id,
|
|
77
|
+
async transfer(id, recipientIdentity, recipientAddress, metadata) {
|
|
80
78
|
Guards.stringValue(this.CLASS_NAME, "id", id);
|
|
81
|
-
Guards.stringValue(this.CLASS_NAME, "
|
|
79
|
+
Guards.stringValue(this.CLASS_NAME, "recipientIdentity", recipientIdentity);
|
|
80
|
+
Guards.stringValue(this.CLASS_NAME, "recipientAddress", recipientAddress);
|
|
82
81
|
await this.fetch("/:id/transfer", "POST", {
|
|
83
82
|
pathParams: {
|
|
84
83
|
id
|
|
85
84
|
},
|
|
86
85
|
body: {
|
|
87
|
-
|
|
86
|
+
recipientIdentity,
|
|
87
|
+
recipientAddress,
|
|
88
88
|
metadata
|
|
89
89
|
}
|
|
90
90
|
});
|
|
@@ -16,14 +16,13 @@ export declare class NftClient extends BaseRestClient implements INftComponent {
|
|
|
16
16
|
constructor(config: IBaseRestClientConfig);
|
|
17
17
|
/**
|
|
18
18
|
* Mint an NFT.
|
|
19
|
-
* @param issuer The issuer for the NFT, will also be the initial owner.
|
|
20
19
|
* @param tag The tag for the NFT.
|
|
21
20
|
* @param immutableMetadata The immutable metadata for the NFT.
|
|
22
21
|
* @param metadata The metadata for the NFT.
|
|
23
22
|
* @param namespace The namespace of the connector to use for the NFT, defaults to component configured namespace.
|
|
24
23
|
* @returns The id of the created NFT in urn format.
|
|
25
24
|
*/
|
|
26
|
-
mint<T = unknown, U = unknown>(
|
|
25
|
+
mint<T = unknown, U = unknown>(tag: string, immutableMetadata?: T, metadata?: U, namespace?: string): Promise<string>;
|
|
27
26
|
/**
|
|
28
27
|
* Resolve an NFT.
|
|
29
28
|
* @param id The id of the NFT to resolve.
|
|
@@ -45,16 +44,17 @@ export declare class NftClient extends BaseRestClient implements INftComponent {
|
|
|
45
44
|
/**
|
|
46
45
|
* Transfer an NFT.
|
|
47
46
|
* @param id The id of the NFT to transfer in urn format.
|
|
48
|
-
* @param
|
|
47
|
+
* @param recipientIdentity The recipient identity for the NFT.
|
|
48
|
+
* @param recipientAddress The recipient address for the NFT.
|
|
49
49
|
* @param metadata Optional mutable data to include during the transfer.
|
|
50
50
|
* @returns Nothing.
|
|
51
51
|
*/
|
|
52
|
-
transfer<T = unknown>(id: string,
|
|
52
|
+
transfer<T = unknown>(id: string, recipientIdentity: string, recipientAddress: string, metadata?: T): Promise<void>;
|
|
53
53
|
/**
|
|
54
54
|
* Update the data of the NFT.
|
|
55
55
|
* @param id The id of the NFT to update in urn format.
|
|
56
56
|
* @param metadata The mutable data to update.
|
|
57
57
|
* @returns Nothing.
|
|
58
58
|
*/
|
|
59
|
-
update<
|
|
59
|
+
update<U = unknown>(id: string, metadata: U): Promise<void>;
|
|
60
60
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,145 @@
|
|
|
1
1
|
# @twin.org/nft-rest-client - Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.0.1 (2025-07-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* release to production ([4d338b3](https://github.com/twinfoundation/nft/commit/4d338b3e8a4dbccc61a1d1da3c470ba86cefe535))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/nft-models bumped from ^0.0.0 to ^0.0.1
|
|
16
|
+
|
|
17
|
+
## [0.0.1-next.32](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.31...nft-rest-client-v0.0.1-next.32) (2025-06-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **nft-rest-client:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/nft-models bumped from 0.0.1-next.31 to 0.0.1-next.32
|
|
30
|
+
|
|
31
|
+
## [0.0.1-next.31](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.30...nft-rest-client-v0.0.1-next.31) (2025-06-12)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* update dependencies ([8660f76](https://github.com/twinfoundation/nft/commit/8660f76ca324b0f476e45544cac6bee4b3146c3b))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
* The following workspace dependencies were updated
|
|
42
|
+
* dependencies
|
|
43
|
+
* @twin.org/nft-models bumped from 0.0.1-next.30 to 0.0.1-next.31
|
|
44
|
+
|
|
45
|
+
## [0.0.1-next.30](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.29...nft-rest-client-v0.0.1-next.30) (2025-05-22)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Miscellaneous Chores
|
|
49
|
+
|
|
50
|
+
* **nft-rest-client:** Synchronize repo versions
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Dependencies
|
|
54
|
+
|
|
55
|
+
* The following workspace dependencies were updated
|
|
56
|
+
* dependencies
|
|
57
|
+
* @twin.org/nft-models bumped from 0.0.1-next.29 to 0.0.1-next.30
|
|
58
|
+
|
|
59
|
+
## [0.0.1-next.29](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.28...nft-rest-client-v0.0.1-next.29) (2025-05-21)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Miscellaneous Chores
|
|
63
|
+
|
|
64
|
+
* **nft-rest-client:** Synchronize repo versions
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Dependencies
|
|
68
|
+
|
|
69
|
+
* The following workspace dependencies were updated
|
|
70
|
+
* dependencies
|
|
71
|
+
* @twin.org/nft-models bumped from 0.0.1-next.28 to 0.0.1-next.29
|
|
72
|
+
|
|
73
|
+
## [0.0.1-next.28](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.27...nft-rest-client-v0.0.1-next.28) (2025-05-06)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Miscellaneous Chores
|
|
77
|
+
|
|
78
|
+
* **nft-rest-client:** Synchronize repo versions
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Dependencies
|
|
82
|
+
|
|
83
|
+
* The following workspace dependencies were updated
|
|
84
|
+
* dependencies
|
|
85
|
+
* @twin.org/nft-models bumped from 0.0.1-next.27 to 0.0.1-next.28
|
|
86
|
+
|
|
87
|
+
## [0.0.1-next.27](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.26...nft-rest-client-v0.0.1-next.27) (2025-04-24)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Miscellaneous Chores
|
|
91
|
+
|
|
92
|
+
* **nft-rest-client:** Synchronize repo versions
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Dependencies
|
|
96
|
+
|
|
97
|
+
* The following workspace dependencies were updated
|
|
98
|
+
* dependencies
|
|
99
|
+
* @twin.org/nft-models bumped from 0.0.1-next.26 to 0.0.1-next.27
|
|
100
|
+
|
|
101
|
+
## [0.0.1-next.26](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.25...nft-rest-client-v0.0.1-next.26) (2025-04-17)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Features
|
|
105
|
+
|
|
106
|
+
* use shared store mechanism ([#16](https://github.com/twinfoundation/nft/issues/16)) ([897bc78](https://github.com/twinfoundation/nft/commit/897bc7805248ba1388b2dd03df24c33f1633f344))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Dependencies
|
|
110
|
+
|
|
111
|
+
* The following workspace dependencies were updated
|
|
112
|
+
* dependencies
|
|
113
|
+
* @twin.org/nft-models bumped from 0.0.1-next.25 to 0.0.1-next.26
|
|
114
|
+
|
|
115
|
+
## [0.0.1-next.25](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.24...nft-rest-client-v0.0.1-next.25) (2025-04-17)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Miscellaneous Chores
|
|
119
|
+
|
|
120
|
+
* **nft-rest-client:** Synchronize repo versions
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Dependencies
|
|
124
|
+
|
|
125
|
+
* The following workspace dependencies were updated
|
|
126
|
+
* dependencies
|
|
127
|
+
* @twin.org/nft-models bumped from 0.0.1-next.24 to 0.0.1-next.25
|
|
128
|
+
|
|
129
|
+
## [0.0.1-next.24](https://github.com/twinfoundation/nft/compare/nft-rest-client-v0.0.1-next.23...nft-rest-client-v0.0.1-next.24) (2025-03-28)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Miscellaneous Chores
|
|
133
|
+
|
|
134
|
+
* **nft-rest-client:** Synchronize repo versions
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Dependencies
|
|
138
|
+
|
|
139
|
+
* The following workspace dependencies were updated
|
|
140
|
+
* dependencies
|
|
141
|
+
* @twin.org/nft-models bumped from 0.0.1-next.23 to 0.0.1-next.24
|
|
142
|
+
|
|
143
|
+
## v0.0.1-next.23
|
|
4
144
|
|
|
5
145
|
- Initial Release
|
|
@@ -12,9 +12,9 @@ Client for performing NFT through to REST endpoints.
|
|
|
12
12
|
|
|
13
13
|
## Constructors
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Constructor
|
|
16
16
|
|
|
17
|
-
> **new NftClient**(`config`):
|
|
17
|
+
> **new NftClient**(`config`): `NftClient`
|
|
18
18
|
|
|
19
19
|
Create a new instance of NftClient.
|
|
20
20
|
|
|
@@ -28,7 +28,7 @@ The configuration for the client.
|
|
|
28
28
|
|
|
29
29
|
#### Returns
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
`NftClient`
|
|
32
32
|
|
|
33
33
|
#### Overrides
|
|
34
34
|
|
|
@@ -50,23 +50,21 @@ Runtime name for the class.
|
|
|
50
50
|
|
|
51
51
|
### mint()
|
|
52
52
|
|
|
53
|
-
> **mint**\<`T`, `U`\>(`
|
|
53
|
+
> **mint**\<`T`, `U`\>(`tag`, `immutableMetadata?`, `metadata?`, `namespace?`): `Promise`\<`string`\>
|
|
54
54
|
|
|
55
55
|
Mint an NFT.
|
|
56
56
|
|
|
57
57
|
#### Type Parameters
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
##### T
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
`T` = `unknown`
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
##### issuer
|
|
63
|
+
##### U
|
|
66
64
|
|
|
67
|
-
`
|
|
65
|
+
`U` = `unknown`
|
|
68
66
|
|
|
69
|
-
|
|
67
|
+
#### Parameters
|
|
70
68
|
|
|
71
69
|
##### tag
|
|
72
70
|
|
|
@@ -106,15 +104,19 @@ The id of the created NFT in urn format.
|
|
|
106
104
|
|
|
107
105
|
### resolve()
|
|
108
106
|
|
|
109
|
-
> **resolve**\<`T`, `U`\>(`id`): `Promise`\<\{ `issuer`: `string`; `owner`: `string`; `tag`: `string`; `immutableMetadata
|
|
107
|
+
> **resolve**\<`T`, `U`\>(`id`): `Promise`\<\{ `issuer`: `string`; `owner`: `string`; `tag`: `string`; `immutableMetadata?`: `T`; `metadata?`: `U`; \}\>
|
|
110
108
|
|
|
111
109
|
Resolve an NFT.
|
|
112
110
|
|
|
113
111
|
#### Type Parameters
|
|
114
112
|
|
|
115
|
-
|
|
113
|
+
##### T
|
|
116
114
|
|
|
117
|
-
|
|
115
|
+
`T` = `unknown`
|
|
116
|
+
|
|
117
|
+
##### U
|
|
118
|
+
|
|
119
|
+
`U` = `unknown`
|
|
118
120
|
|
|
119
121
|
#### Parameters
|
|
120
122
|
|
|
@@ -126,7 +128,7 @@ The id of the NFT to resolve.
|
|
|
126
128
|
|
|
127
129
|
#### Returns
|
|
128
130
|
|
|
129
|
-
`Promise`\<\{ `issuer`: `string`; `owner`: `string`; `tag`: `string`; `immutableMetadata
|
|
131
|
+
`Promise`\<\{ `issuer`: `string`; `owner`: `string`; `tag`: `string`; `immutableMetadata?`: `T`; `metadata?`: `U`; \}\>
|
|
130
132
|
|
|
131
133
|
The data for the NFT.
|
|
132
134
|
|
|
@@ -164,13 +166,15 @@ Nothing.
|
|
|
164
166
|
|
|
165
167
|
### transfer()
|
|
166
168
|
|
|
167
|
-
> **transfer**\<`T`\>(`id`, `
|
|
169
|
+
> **transfer**\<`T`\>(`id`, `recipientIdentity`, `recipientAddress`, `metadata?`): `Promise`\<`void`\>
|
|
168
170
|
|
|
169
171
|
Transfer an NFT.
|
|
170
172
|
|
|
171
173
|
#### Type Parameters
|
|
172
174
|
|
|
173
|
-
|
|
175
|
+
##### T
|
|
176
|
+
|
|
177
|
+
`T` = `unknown`
|
|
174
178
|
|
|
175
179
|
#### Parameters
|
|
176
180
|
|
|
@@ -180,11 +184,17 @@ Transfer an NFT.
|
|
|
180
184
|
|
|
181
185
|
The id of the NFT to transfer in urn format.
|
|
182
186
|
|
|
183
|
-
#####
|
|
187
|
+
##### recipientIdentity
|
|
184
188
|
|
|
185
189
|
`string`
|
|
186
190
|
|
|
187
|
-
The recipient
|
|
191
|
+
The recipient identity for the NFT.
|
|
192
|
+
|
|
193
|
+
##### recipientAddress
|
|
194
|
+
|
|
195
|
+
`string`
|
|
196
|
+
|
|
197
|
+
The recipient address for the NFT.
|
|
188
198
|
|
|
189
199
|
##### metadata?
|
|
190
200
|
|
|
@@ -206,13 +216,15 @@ Nothing.
|
|
|
206
216
|
|
|
207
217
|
### update()
|
|
208
218
|
|
|
209
|
-
> **update**\<`
|
|
219
|
+
> **update**\<`U`\>(`id`, `metadata`): `Promise`\<`void`\>
|
|
210
220
|
|
|
211
221
|
Update the data of the NFT.
|
|
212
222
|
|
|
213
223
|
#### Type Parameters
|
|
214
224
|
|
|
215
|
-
|
|
225
|
+
##### U
|
|
226
|
+
|
|
227
|
+
`U` = `unknown`
|
|
216
228
|
|
|
217
229
|
#### Parameters
|
|
218
230
|
|
|
@@ -224,7 +236,7 @@ The id of the NFT to update in urn format.
|
|
|
224
236
|
|
|
225
237
|
##### metadata
|
|
226
238
|
|
|
227
|
-
`
|
|
239
|
+
`U`
|
|
228
240
|
|
|
229
241
|
The mutable data to update.
|
|
230
242
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/nft-rest-client",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "NFT contract implementation which can connect to REST endpoints",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/api-core": "next",
|
|
18
|
-
"@twin.org/api-models": "next",
|
|
19
|
-
"@twin.org/core": "
|
|
20
|
-
"@twin.org/entity": "
|
|
21
|
-
"@twin.org/nameof": "
|
|
22
|
-
"@twin.org/nft-models": "0.0.1
|
|
23
|
-
"@twin.org/web": "
|
|
17
|
+
"@twin.org/api-core": "^0.0.2-next.1",
|
|
18
|
+
"@twin.org/api-models": "^0.0.2-next.1",
|
|
19
|
+
"@twin.org/core": "^0.0.1",
|
|
20
|
+
"@twin.org/entity": "^0.0.1",
|
|
21
|
+
"@twin.org/nameof": "^0.0.1",
|
|
22
|
+
"@twin.org/nft-models": "^0.0.1",
|
|
23
|
+
"@twin.org/web": "^0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"main": "./dist/cjs/index.cjs",
|
|
26
26
|
"module": "./dist/esm/index.mjs",
|
|
27
27
|
"types": "./dist/types/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
+
"types": "./dist/types/index.d.ts",
|
|
30
31
|
"require": "./dist/cjs/index.cjs",
|
|
31
|
-
"import": "./dist/esm/index.mjs"
|
|
32
|
-
"types": "./dist/types/index.d.ts"
|
|
32
|
+
"import": "./dist/esm/index.mjs"
|
|
33
33
|
},
|
|
34
34
|
"./locales/*.json": "./locales/*.json"
|
|
35
35
|
},
|