fetch-gold 1.1.1 → 1.1.2
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/README.md +4 -0
- package/package.json +30 -26
package/README.md
CHANGED
|
@@ -11,7 +11,9 @@ The result is this concise HTTP request wrapper package; it covers 100% of my re
|
|
|
11
11
|
```bash
|
|
12
12
|
$ npm i fetch-gold
|
|
13
13
|
```
|
|
14
|
+
|
|
14
15
|
OR
|
|
16
|
+
|
|
15
17
|
```bash
|
|
16
18
|
$ bun i fetch-gold
|
|
17
19
|
```
|
|
@@ -21,6 +23,7 @@ $ bun i fetch-gold
|
|
|
21
23
|
### Example 1
|
|
22
24
|
|
|
23
25
|
`a-component.ts`
|
|
26
|
+
|
|
24
27
|
```javascript
|
|
25
28
|
// Import just the single method needed in this component.
|
|
26
29
|
import { get } from 'fetch-gold'
|
|
@@ -39,6 +42,7 @@ await getData('/some/api/endpoint')
|
|
|
39
42
|
### Example 2
|
|
40
43
|
|
|
41
44
|
`b-component.ts`
|
|
45
|
+
|
|
42
46
|
```javascript
|
|
43
47
|
// Import the http object to access multiple HTTP methods.
|
|
44
48
|
//
|
package/package.json
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fetch-gold",
|
|
3
|
+
"version": "1.1.2",
|
|
3
4
|
"private": false,
|
|
4
|
-
"version": "1.1.1",
|
|
5
5
|
"description": "HTTP client using native Fetch API",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"HTTP client",
|
|
8
|
+
"api",
|
|
9
|
+
"fetch",
|
|
10
|
+
"request"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://codeberg.org/gold/fetch-gold",
|
|
13
|
+
"license": "MIT",
|
|
6
14
|
"author": "gold",
|
|
7
|
-
"
|
|
8
|
-
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://codeberg.org/gold/fetch-gold.git"
|
|
18
|
+
},
|
|
9
19
|
"files": [
|
|
10
20
|
"./src/fetch.ts"
|
|
11
21
|
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "./src/fetch.ts",
|
|
12
24
|
"scripts": {
|
|
13
|
-
"lint": "
|
|
25
|
+
"lint": "oxlint --type-aware --type-check && eslint .",
|
|
26
|
+
"fmt:check": "oxfmt --check",
|
|
27
|
+
"fmt:fix": "oxfmt"
|
|
14
28
|
},
|
|
15
29
|
"devDependencies": {
|
|
16
|
-
"@typescript-eslint/eslint-plugin": "
|
|
17
|
-
"@typescript-eslint/parser": "
|
|
18
|
-
"eslint": "
|
|
19
|
-
"eslint-plugin-oxlint": "1.
|
|
20
|
-
"globals": "
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"url": "https://codeberg.org/gold/fetch-gold.git"
|
|
29
|
-
},
|
|
30
|
-
"keywords": [
|
|
31
|
-
"HTTP client",
|
|
32
|
-
"fetch",
|
|
33
|
-
"request",
|
|
34
|
-
"api"
|
|
35
|
-
],
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"homepage": "https://codeberg.org/gold/fetch-gold"
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "8.74.0",
|
|
31
|
+
"@typescript-eslint/parser": "8.74.0",
|
|
32
|
+
"eslint": "10.16.0",
|
|
33
|
+
"eslint-plugin-oxlint": "1.95.0",
|
|
34
|
+
"globals": "17.14.0",
|
|
35
|
+
"oxfmt": "^0.80.0",
|
|
36
|
+
"oxlint": "1.95.0",
|
|
37
|
+
"oxlint-tsgolint": "^7.0.2009",
|
|
38
|
+
"tslib": "2.9.1",
|
|
39
|
+
"typescript": "6.0.3",
|
|
40
|
+
"typescript-eslint": "8.74.0"
|
|
41
|
+
}
|
|
38
42
|
}
|