@omerlo/omerlo-webkit 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -12,7 +12,7 @@ over all window's tab, no need to refresh other tabs.
12
12
  Install the package `omerlo-webkit`
13
13
 
14
14
  ```sh
15
- npm i omerlo-webkit
15
+ npm i @omerlo/omerlo-webkit
16
16
  ```
17
17
 
18
18
  ### Create the .env
@@ -28,13 +28,13 @@ export function subscribeToTopic(f) {
28
28
  return (params) => {
29
29
  const body = { push_token: params.pushToken };
30
30
  const opts = { method: 'post', body };
31
- return request(f, '/topics/${params.topicId}/subscribe', opts);
31
+ return request(f, `/topics/${params.topicId}/subscribe`, opts);
32
32
  };
33
33
  }
34
34
  export function unsubscribeFromTopic(f) {
35
35
  return (params) => {
36
36
  const body = { push_token: params.pushToken };
37
37
  const opts = { method: 'post', body };
38
- return request(f, '/topics/${params.topicId}/unsubscribe', opts);
38
+ return request(f, `/topics/${params.topicId}/unsubscribe`, opts);
39
39
  };
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",