pushwave-client 0.3.1 → 0.3.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/dist/utils/fetch.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fetchApiPost = fetchApiPost;
|
|
4
4
|
exports.fetchApiGet = fetchApiGet;
|
|
5
|
-
const BASE_URL = "https://pushwave.
|
|
5
|
+
const BASE_URL = "https://api.pushwave.dev/v1/public/";
|
|
6
6
|
async function fetchApiPost(path, data = {}) {
|
|
7
7
|
const url = BASE_URL + path;
|
|
8
8
|
const res = await fetch(url, {
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { fetchApiPost
|
|
1
|
+
import { fetchApiPost } from "../utils/fetch";
|
|
2
2
|
import { getExpoToken } from "../utils/expoToken";
|
|
3
3
|
import { Platform } from "react-native";
|
|
4
4
|
import { PWLogger } from "../utils/pwLogger";
|
|
5
5
|
import { isSecretKey } from "../utils/apiKeyCheck";
|
|
6
6
|
import { RegisterPushWaveClient, RegisterPushWaveDTO, RegisterPushWaveResponse } from "./registerPushWave.dto";
|
|
7
7
|
import { getApplicationAttestation } from "../attestation/index";
|
|
8
|
-
import { platform } from "os";
|
|
9
8
|
|
|
10
9
|
export async function registerPushWave(
|
|
11
10
|
{ apiKey }: RegisterPushWaveClient
|
package/src/utils/fetch.ts
CHANGED