create-bdpa-react-scaffold 2.0.8 → 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.
Files changed (2) hide show
  1. package/create-ui-lib.js +6 -1
  2. package/package.json +1 -1
package/create-ui-lib.js CHANGED
@@ -1718,7 +1718,12 @@ export class ApiClient {
1718
1718
  }
1719
1719
  }
1720
1720
 
1721
- export default new ApiClient(import.meta.env.VITE_API_BASE_URL || "");
1721
+ const apiClient = new ApiClient(import.meta.env.VITE_API_BASE_URL || "");
1722
+ apiClient.instance.interceptors.request.use((config) => {
1723
+ config.params = { ...config.params, api_key: import.meta.env.VITE_API_MOVIEDB_TOKEN };
1724
+ return config;
1725
+ });
1726
+ export default apiClient;
1722
1727
  `);
1723
1728
 
1724
1729
  // -------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bdpa-react-scaffold",
3
- "version": "2.0.8",
3
+ "version": "2.1.1",
4
4
  "description": "Scaffold a React + Tailwind + shadcn/ui component demo via Vite.",
5
5
  "bin": {
6
6
  "create-bdpa-react-scaffold": "create-ui-lib.js"