@brickninjaapi/fetch 0.0.25 → 0.0.26

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @brickninjaapi/fetch
2
2
 
3
+ ## 0.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 231b0fc: fix(fetch): update API URL
8
+
3
9
  ## 0.0.25
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  export function fetchBrickNinjaApi() {
11
11
  return __awaiter(this, arguments, void 0, function* (...[endpoint, options]) {
12
12
  var _a;
13
- const url = new URL(endpoint, 'https://brick-ninja-api.vercel.app/');
13
+ const url = new URL(endpoint, 'https://api.brick.ninja/');
14
14
  if (options.schema) {
15
15
  url.searchParams.set('v', options.schema);
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickninjaapi/fetch",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Tiny wrapper around fetch that returns type-safe responses",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -14,7 +14,7 @@ export async function fetchBrickNinjaApi<
14
14
  >(
15
15
  ...[endpoint, options]: Args<Url, Schema>
16
16
  ): Promise<EndpointType<Url, Schema>> {
17
- const url = new URL(endpoint, 'https://brick-ninja-api.vercel.app/');
17
+ const url = new URL(endpoint, 'https://api.brick.ninja/');
18
18
 
19
19
  if (options.schema) {
20
20
  url.searchParams.set('v', options.schema);