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.
@@ -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.luruk-hai.fr/v1/";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "pushwave-client",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "PushWave Client, Expo Push Notifications SaaS SDK",
5
5
  "homepage": "https://github.com/luruk-hai/pushwave-client#readme",
6
6
  "bugs": {
@@ -1,11 +1,10 @@
1
- import { fetchApiPost, fetchApiGet } from "../utils/fetch";
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
@@ -1,4 +1,4 @@
1
- const BASE_URL = "https://api.pushwave.dev/v1/";
1
+ const BASE_URL = "https://api.pushwave.dev/v1/public/";
2
2
 
3
3
  export async function fetchApiPost<TResponse>(
4
4
  path: string,