create-butterfly-app-v2 2.1.0 → 2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-butterfly-app-v2",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Full-stack boilerplate: Node.js + React + Tailwind + MySQL. Choose from Hotel, Parking, or Student Management projects with auth + full CRUD.",
5
5
  "bin": {
6
6
  "create-butterfly-app-v2": "cli.js"
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect } from "react";
2
- import { useAuth } from "../../context/AuthContext";
2
+ import { useAuth } from "../context/AuthContext";
3
3
 
4
4
  const token = () => localStorage.getItem("token");
5
5
  const headers = () => ({ "Content-Type": "application/json", Authorization: `Bearer ${token()}` });
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect } from "react";
2
- import { useAuth } from "../../context/AuthContext";
2
+ import { useAuth } from "../context/AuthContext";
3
3
 
4
4
  const token = () => localStorage.getItem("token");
5
5
  const headers = () => ({ "Content-Type": "application/json", Authorization: `Bearer ${token()}` });
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect } from "react";
2
- import { useAuth } from "../../context/AuthContext";
2
+ import { useAuth } from "../context/AuthContext";
3
3
 
4
4
  const token = () => localStorage.getItem("token");
5
5
  const headers = () => ({ "Content-Type": "application/json", Authorization: `Bearer ${token()}` });