teacupnet-lib 1.1.0 → 1.1.1

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.
@@ -9,8 +9,11 @@ export default async function fetchAPI(path, method = 'GET', body = null) {
9
9
  if (method === 'GET') delete req.body;
10
10
 
11
11
  try {
12
- // const data = await fetch(`https://teacupnet-backend.vercel.app/${path}`, req);
13
- const data = await fetch(`http://localhost:3000/${path}`, req);
12
+ const data = await fetch(
13
+ `https://teacupnet-backend.vercel.app/${path}`,
14
+ req
15
+ );
16
+ // const data = await fetch(`http://localhost:3000/${path}`, req);
14
17
  return await data.json();
15
18
  } catch (error) {
16
19
  console.log(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teacupnet-lib",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A powerful JavaScript library for integrating TeacupNet analytics and data management. Track user interactions, page views, form completions, and seamlessly connect to the TeacupNet backend.",
5
5
  "keywords": [
6
6
  "analytics",