@snapdragonsnursery/react-components 1.1.1 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapdragonsnursery/react-components",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -105,7 +105,7 @@ const ChildSearchModal = ({
105
105
 
106
106
  try {
107
107
  // Get access token
108
- const apiBaseUrl = process.env.VITE_COMMON_API_BASE_URL || "https://snaps-common-api.azurewebsites.net";
108
+ const apiBaseUrl = import.meta.env.VITE_COMMON_API_BASE_URL || "https://snaps-common-api.azurewebsites.net";
109
109
  const apiScope = apiBaseUrl.replace(/^https?:\/\//, "api://") + "/.default";
110
110
 
111
111
  const response = await instance.acquireTokenSilent({
@@ -162,7 +162,7 @@ const ChildSearchModal = ({
162
162
  // Make API call
163
163
  const apiResponse = await fetch(
164
164
  `${
165
- process.env.VITE_COMMON_API_BASE_URL ||
165
+ import.meta.env.VITE_COMMON_API_BASE_URL ||
166
166
  "https://snaps-common-api.azurewebsites.net"
167
167
  }/api/search-children?${params}`,
168
168
  {