@sapphire/fetch 2.3.2-next.ebaa54d.0 β†’ 2.3.2-next.f2a69ec.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/CHANGELOG.md ADDED
@@ -0,0 +1,90 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [2.3.1](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.3.0...@sapphire/fetch@2.3.1) (2022-04-01)
6
+
7
+ **Note:** Version bump only for package @sapphire/fetch
8
+
9
+ # [2.3.0](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.2.0...@sapphire/fetch@2.3.0) (2022-03-06)
10
+
11
+ ### Features
12
+
13
+ - allow module: NodeNext ([#306](https://github.com/sapphiredev/utilities/issues/306)) ([9dc6dd6](https://github.com/sapphiredev/utilities/commit/9dc6dd619efab879bb2b0b3c9e64304e10a67ed6))
14
+
15
+ # [2.2.0](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.1.0...@sapphire/fetch@2.2.0) (2022-03-01)
16
+
17
+ ### Features
18
+
19
+ - **fetch:** add common media content types enum ([#303](https://github.com/sapphiredev/utilities/issues/303)) ([2f1c464](https://github.com/sapphiredev/utilities/commit/2f1c4640a9d4d12b1a22d0227172323d54eaed8f))
20
+ - **ts-config:** add multi-config structure ([#281](https://github.com/sapphiredev/utilities/issues/281)) ([b5191d7](https://github.com/sapphiredev/utilities/commit/b5191d7f2416dc5838590c4ff221454925553e37))
21
+
22
+ # [2.1.0](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.0.4...@sapphire/fetch@2.1.0) (2022-01-28)
23
+
24
+ ### Features
25
+
26
+ - change build system to tsup ([#270](https://github.com/sapphiredev/utilities/issues/270)) ([365a53a](https://github.com/sapphiredev/utilities/commit/365a53a5517a01a0926cf28a83c96b63f32ed9f8))
27
+
28
+ ## [2.0.4](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.0.3...@sapphire/fetch@2.0.4) (2022-01-10)
29
+
30
+ **Note:** Version bump only for package @sapphire/fetch
31
+
32
+ ## [2.0.3](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.0.2...@sapphire/fetch@2.0.3) (2021-11-06)
33
+
34
+ **Note:** Version bump only for package @sapphire/fetch
35
+
36
+ ## [2.0.2](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.0.1...@sapphire/fetch@2.0.2) (2021-10-17)
37
+
38
+ ### Bug Fixes
39
+
40
+ - allow more node & npm versions in engines field ([5977d2a](https://github.com/sapphiredev/utilities/commit/5977d2a30a4b2cfdf84aff3f33af03ffde1bbec5))
41
+
42
+ ## [2.0.1](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@2.0.0...@sapphire/fetch@2.0.1) (2021-10-11)
43
+
44
+ **Note:** Version bump only for package @sapphire/fetch
45
+
46
+ # [2.0.0](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@1.0.5...@sapphire/fetch@2.0.0) (2021-10-04)
47
+
48
+ ### Features
49
+
50
+ - **fetch:** migrate to using cross-fetch ([#149](https://github.com/sapphiredev/utilities/issues/149)) ([a8baab9](https://github.com/sapphiredev/utilities/commit/a8baab978814ca3aa18992120af7ad004ceaee80))
51
+ - **fetch:** set minimum NodeJS to v14 ([56889ab](https://github.com/sapphiredev/utilities/commit/56889abce158119adf1afcc1ec4cee8cbb411c79))
52
+
53
+ ### BREAKING CHANGES
54
+
55
+ - **fetch:** `fetch` is no longer on the default export. Use a named import instead.
56
+ - **fetch:** This package no longer depends on `node-fetch`
57
+ - **fetch:** This package no longer depends on `@types/node-fetch` for TypeScript users
58
+
59
+ ## [1.0.5](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@1.0.4...@sapphire/fetch@1.0.5) (2021-06-27)
60
+
61
+ **Note:** Version bump only for package @sapphire/fetch
62
+
63
+ ## [1.0.4](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@1.0.3...@sapphire/fetch@1.0.4) (2021-06-27)
64
+
65
+ **Note:** Version bump only for package @sapphire/fetch
66
+
67
+ ## [1.0.3](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@1.0.2...@sapphire/fetch@1.0.3) (2021-06-06)
68
+
69
+ ### Bug Fixes
70
+
71
+ - remove peer deps, update dev deps, update READMEs ([#124](https://github.com/sapphiredev/utilities/issues/124)) ([67256ed](https://github.com/sapphiredev/utilities/commit/67256ed43b915b02a8b5c68230ba82d6210c5032))
72
+
73
+ ## [1.0.2](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@1.0.1...@sapphire/fetch@1.0.2) (2021-05-20)
74
+
75
+ ### Bug Fixes
76
+
77
+ - **fetch:** mark package as side effect free ([8e3e470](https://github.com/sapphiredev/utilities/commit/8e3e470e7803f67593f18d2454cb1f95a8a35f18))
78
+
79
+ ## [1.0.1](https://github.com/sapphiredev/utilities/compare/@sapphire/fetch@1.0.0...@sapphire/fetch@1.0.1) (2021-05-02)
80
+
81
+ ### Bug Fixes
82
+
83
+ - drop the `www.` from the SapphireJS URL ([494d89f](https://github.com/sapphiredev/utilities/commit/494d89ffa04f78c195b93d7905b3232884f7d7e2))
84
+ - update all the SapphireJS URLs from `.com` to `.dev` ([f59b46d](https://github.com/sapphiredev/utilities/commit/f59b46d1a0ebd39cad17b17d71cd3b9da808d5fd))
85
+
86
+ # 1.0.0 (2021-04-21)
87
+
88
+ ### Features
89
+
90
+ - add fetch package ([#107](https://github.com/sapphiredev/utilities/issues/107)) ([891034c](https://github.com/sapphiredev/utilities/commit/891034cf5f9e6f2c700999fd39a71e490c5dc766))
package/README.md CHANGED
@@ -172,6 +172,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
172
172
  </tr>
173
173
  <tr>
174
174
  <td align="center"><a href="https://c43721.dev/"><img src="https://avatars.githubusercontent.com/u/55610086?v=4?s=100" width="100px;" alt=""/><br /><sub><b>c43721</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=c43721" title="Code">πŸ’»</a></td>
175
+ <td align="center"><a href="https://commandtechno.com/"><img src="https://avatars.githubusercontent.com/u/68407783?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Commandtechno</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Commandtechno" title="Code">πŸ’»</a></td>
176
+ <td align="center"><a href="https://github.com/dhruv-kaushikk"><img src="https://avatars.githubusercontent.com/u/73697546?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aura</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=dhruv-kaushikk" title="Code">πŸ’»</a></td>
177
+ <td align="center"><a href="https://axis.moe/"><img src="https://avatars.githubusercontent.com/u/54381371?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jonathan</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=axisiscool" title="Code">πŸ’»</a></td>
178
+ <td align="center"><a href="https://github.com/imranbarbhuiya"><img src="https://avatars.githubusercontent.com/u/74945038?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Parbez</b></sub></a><br /><a href="#maintenance-imranbarbhuiya" title="Maintenance">🚧</a></td>
179
+ <td align="center"><a href="https://github.com/NotKaskus"><img src="https://avatars.githubusercontent.com/u/75168528?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Paul Andrew</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=NotKaskus" title="Documentation">πŸ“–</a></td>
180
+ <td align="center"><a href="https://linktr.ee/mzato0001"><img src="https://avatars.githubusercontent.com/u/62367547?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mzato</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Mzato0001" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/utilities/issues?q=author%3AMzato0001" title="Bug reports">πŸ›</a></td>
181
+ </tr>
182
+ <tr>
183
+ <td align="center"><a href="https://github.com/MajesticString"><img src="https://avatars.githubusercontent.com/u/66224939?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Harry Allen</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=MajesticString" title="Documentation">πŸ“–</a></td>
175
184
  </tr>
176
185
  </table>
177
186
 
package/package.json CHANGED
@@ -1,58 +1,64 @@
1
1
  {
2
- "name": "@sapphire/fetch",
3
- "version": "2.3.2-next.ebaa54d.0",
4
- "description": "Tiny wrapper around cross-fetch (for NodeJS) and window.fetch (for Browsers) for improved TypeScript and data type support",
5
- "author": "@sapphire",
6
- "license": "MIT",
7
- "main": "dist/index.js",
8
- "module": "dist/index.mjs",
9
- "browser": "dist/index.global.js",
10
- "unpkg": "dist/index.global.js",
11
- "types": "dist/index.d.ts",
12
- "exports": {
13
- "import": "./dist/index.mjs",
14
- "require": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
16
- },
17
- "sideEffects": false,
18
- "homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/fetch",
19
- "scripts": {
20
- "test": "jest",
21
- "lint": "eslint src tests --ext ts --fix -c ../../.eslintrc",
22
- "build": "tsup && tsc -b src",
23
- "prepublishOnly": "yarn build"
24
- },
25
- "dependencies": {
26
- "cross-fetch": "^3.1.5"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/sapphiredev/utilities.git",
31
- "directory": "packages/fetch"
32
- },
33
- "files": [
34
- "dist",
35
- "!dist/*.tsbuildinfo"
36
- ],
37
- "engines": {
38
- "node": ">=v14.0.0",
39
- "npm": ">=7.0.0"
40
- },
41
- "keywords": [
42
- "@sapphire/fetch",
43
- "bot",
44
- "typescript",
45
- "ts",
46
- "yarn",
47
- "discord",
48
- "sapphire",
49
- "standalone"
50
- ],
51
- "bugs": {
52
- "url": "https://github.com/sapphiredev/utilities/issues"
53
- },
54
- "publishConfig": {
55
- "access": "public"
56
- },
57
- "gitHead": "ebaa54d484e0f5917821838b026a2f4a269dc526"
58
- }
2
+ "name": "@sapphire/fetch",
3
+ "version": "2.3.2-next.f2a69ec.0",
4
+ "description": "Tiny wrapper around cross-fetch (for NodeJS) and window.fetch (for Browsers) for improved TypeScript and data type support",
5
+ "author": "@sapphire",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.mjs",
9
+ "browser": "dist/index.global.js",
10
+ "unpkg": "dist/index.global.js",
11
+ "types": "dist/index.d.ts",
12
+ "exports": {
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.js",
15
+ "types": "./dist/index.d.ts"
16
+ },
17
+ "sideEffects": false,
18
+ "homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/fetch",
19
+ "scripts": {
20
+ "test": "jest",
21
+ "lint": "eslint src tests --ext ts --fix -c ../../.eslintrc",
22
+ "build": "tsup && tsc -b src",
23
+ "prepack": "yarn build",
24
+ "bump": "cliff-jumper",
25
+ "check-update": "cliff-jumper --dry-run"
26
+ },
27
+ "dependencies": {
28
+ "cross-fetch": "^3.1.5"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/sapphiredev/utilities.git",
33
+ "directory": "packages/fetch"
34
+ },
35
+ "files": [
36
+ "dist/**/*.js*",
37
+ "dist/**/*.mjs*",
38
+ "dist/**/*.d*"
39
+ ],
40
+ "engines": {
41
+ "node": ">=v14.0.0",
42
+ "npm": ">=7.0.0"
43
+ },
44
+ "keywords": [
45
+ "@sapphire/fetch",
46
+ "bot",
47
+ "typescript",
48
+ "ts",
49
+ "yarn",
50
+ "discord",
51
+ "sapphire",
52
+ "standalone"
53
+ ],
54
+ "bugs": {
55
+ "url": "https://github.com/sapphiredev/utilities/issues"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
59
+ },
60
+ "devDependencies": {
61
+ "tsup": "^5.12.7",
62
+ "typescript": "^4.6.4"
63
+ }
64
+ }
package/LICENSE.md DELETED
@@ -1,24 +0,0 @@
1
- # The MIT License (MIT)
2
-
3
- Copyright Β© `2020` `The Sapphire Community and its contributors`
4
-
5
- Permission is hereby granted, free of charge, to any person
6
- obtaining a copy of this software and associated documentation
7
- files (the β€œSoftware”), to deal in the Software without
8
- restriction, including without limitation the rights to use,
9
- copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the
11
- Software is furnished to do so, subject to the following
12
- conditions:
13
-
14
- The above copyright notice and this permission notice shall be
15
- included in all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED β€œAS IS”, WITHOUT WARRANTY OF ANY KIND,
18
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
- OTHER DEALINGS IN THE SOFTWARE.
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryError.d.ts","sourceRoot":"","sources":["../../src/lib/QueryError.ts"],"names":[],"mappings":";AAGA;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;;IACpC,yBAAyB;IACzB,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,4BAA4B;IAC5B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,6CAA6C;IAC7C,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,2CAA2C;IAC3C,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAIhB,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAA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