@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 +6 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
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://
|
|
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
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://
|
|
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);
|