pinata 2.2.2 → 2.4.0
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/chunk-7UIMBFJ5.mjs +423 -0
- package/dist/chunk-7UIMBFJ5.mjs.map +1 -0
- package/dist/chunk-P556VRQU.js +433 -0
- package/dist/chunk-P556VRQU.js.map +1 -0
- package/dist/index-CQFQEo3K.d.mts +228 -0
- package/dist/index-CQFQEo3K.d.ts +228 -0
- package/dist/index.d.mts +6 -209
- package/dist/index.d.ts +6 -209
- package/dist/index.js +377 -547
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -197
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +1 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +32 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/index.mjs +3 -0
- package/dist/react/index.mjs.map +1 -0
- package/package.json +16 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as AuthenticationError, N as NetworkError, r as PinataError, R as ReactUploadOptions, x as UploadResult, y as UseUploadReturn, t as ValidationError, v as convert, w as useUpload } from '../index-CQFQEo3K.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as AuthenticationError, N as NetworkError, r as PinataError, R as ReactUploadOptions, x as UploadResult, y as UseUploadReturn, t as ValidationError, v as convert, w as useUpload } from '../index-CQFQEo3K.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkP556VRQU_js = require('../chunk-P556VRQU.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "AuthenticationError", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkP556VRQU_js.AuthenticationError; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "NetworkError", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkP556VRQU_js.NetworkError; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "PinataError", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkP556VRQU_js.PinataError; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "ValidationError", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkP556VRQU_js.ValidationError; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "convert", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkP556VRQU_js.convertToDesiredGateway; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "useUpload", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkP556VRQU_js.useUpload; }
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinata",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "The official Pinata SDK",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,10 +13,15 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"require": "./dist/index.js",
|
|
15
15
|
"import": "./dist/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./react": {
|
|
18
|
+
"types": "./dist/react/index.d.ts",
|
|
19
|
+
"require": "./dist/react/index.js",
|
|
20
|
+
"import": "./dist/react/index.mjs"
|
|
16
21
|
}
|
|
17
22
|
},
|
|
18
23
|
"scripts": {
|
|
19
|
-
"build": "tsup
|
|
24
|
+
"build": "tsup",
|
|
20
25
|
"format": "pnpm dlx @biomejs/biome format --write src tests",
|
|
21
26
|
"test": "jest --watchAll --verbose --coverage"
|
|
22
27
|
},
|
|
@@ -35,15 +40,21 @@
|
|
|
35
40
|
"url": "https://github.com/PinataCloud/pinata/issues"
|
|
36
41
|
},
|
|
37
42
|
"homepage": "https://github.com/PinataCloud/pinata",
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": ">=16.8.0",
|
|
45
|
+
"react-dom": ">=16.8.0"
|
|
46
|
+
},
|
|
38
47
|
"devDependencies": {
|
|
39
48
|
"@biomejs/biome": "1.8.3",
|
|
40
49
|
"@types/jest": "^29.5.12",
|
|
41
50
|
"@types/node": "^20.11.17",
|
|
51
|
+
"@types/react": "^19.0.12",
|
|
52
|
+
"jest": "^29.7.0",
|
|
53
|
+
"react": "^19.1.0",
|
|
54
|
+
"ts-jest": "^29.2.2",
|
|
42
55
|
"ts-node": "^10.9.2",
|
|
43
56
|
"tsup": "^8.0.1",
|
|
44
|
-
"typescript": "^5.3.3"
|
|
45
|
-
"jest": "^29.7.0",
|
|
46
|
-
"ts-jest": "^29.2.2"
|
|
57
|
+
"typescript": "^5.3.3"
|
|
47
58
|
},
|
|
48
59
|
"engines": {
|
|
49
60
|
"node": ">=20"
|