pinata 0.0.1 → 0.1.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Ian Severance
3
+ Copyright (c) 2015 Krasimir Tsonev
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+
package/README.md CHANGED
@@ -1,3 +1,32 @@
1
- # 🍬 Piñata
1
+ # Pinata
2
2
 
3
- Coming soon...
3
+ The new all-in-one Pinata SDK
4
+
5
+ ## Installation
6
+
7
+ Clone, install, and build
8
+
9
+ ```bash
10
+ git clone https://github.com/PinataCloud/pinata
11
+ cd pinata
12
+ npm install && npm run build
13
+ ```
14
+
15
+ Import into your project with the `dist` directory from build
16
+
17
+ ```typescript
18
+ import { PinataSDK } from "../dist"
19
+ ```
20
+
21
+ ## Initialization
22
+
23
+ ```typescript
24
+ import { PinataSDK } from "../dist";
25
+
26
+ const pinata = new PinataSDK({
27
+ pinataJwt: `PINATA_JWT`,
28
+ pinataGateway: `example-sub-domain.mypinata.cloud`,
29
+ });
30
+ ```
31
+
32
+ ## [Full Docs](https://docs.pinata.cloud/sdk-beta/getting-started)
package/package.json CHANGED
@@ -1,21 +1,44 @@
1
1
  {
2
2
  "name": "pinata",
3
- "version": "0.0.1",
4
- "description": "Coming soon...",
5
- "author": "Ian Severance <hi@ianseverance.com>",
6
- "license": "MIT",
7
- "scripts": {},
3
+ "version": "0.1.0",
4
+ "description": "The new Pinata IPFS SDK",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsup src/index.ts",
13
+ "test": "jest --watchAll --verbose --coverage"
14
+ },
8
15
  "repository": {
9
16
  "type": "git",
10
- "url": "git+https://github.com/ianseverance/pinata.git"
17
+ "url": "https://github.com/PinataCloud/pinata.git"
11
18
  },
12
19
  "keywords": [
13
- "pinata"
20
+ "starter",
21
+ "library",
22
+ "universal"
14
23
  ],
24
+ "author": "Steve Simkins",
25
+ "license": "MIT",
15
26
  "bugs": {
16
- "url": "https://github.com/ianseverance/pinata/issues"
27
+ "url": "https://github.com/PinataCloud/pinata/issues"
28
+ },
29
+ "homepage": "https://github.com/PinataCloud/pinata",
30
+ "devDependencies": {
31
+ "@biomejs/biome": "1.8.3",
32
+ "@types/jest": "^29.5.12",
33
+ "@types/node": "^20.11.17",
34
+ "ts-node": "^10.9.2",
35
+ "tsup": "^8.0.1",
36
+ "typescript": "^5.3.3"
17
37
  },
18
- "homepage": "https://github.com/ianseverance/pinata#readme",
19
- "dependencies": {},
20
- "devDependencies": {}
38
+ "dependencies": {
39
+ "is-ipfs": "^8.0.4",
40
+ "jest": "^29.7.0",
41
+ "node-fetch": "^3.3.1",
42
+ "ts-jest": "^29.2.2"
43
+ }
21
44
  }
package/.editorconfig DELETED
@@ -1,14 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- end_of_line = lf
6
- indent_size = 2
7
- insert_final_newline = true
8
- trim_trailing_whitespace = true
9
-
10
- [*.{js,json}]
11
- indent_style = space
12
-
13
- [*.{md,markdown}]
14
- trim_trailing_whitespace = false
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto