@hashrytech/quick-components-kit 0.15.0 → 0.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hashrytech/quick-components-kit
2
2
 
3
+ ## 0.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: Adding extra logging text
8
+
3
9
  ## 0.15.0
4
10
 
5
11
  ### Minor Changes
@@ -6,7 +6,7 @@ export const defaultResponseHeaders = ['content-type', 'content-length', 'cache-
6
6
  */
7
7
  export function createProxyHandlers(config) {
8
8
  if (config.debug)
9
- console.debug("Creating proxy handlers with config:", config);
9
+ console.debug("API Proxy: Creating proxy handlers with config:", config);
10
10
  async function handler(event) {
11
11
  const path = event.params.path;
12
12
  const queryString = event.url.searchParams.toString();
@@ -14,7 +14,7 @@ export function createProxyHandlers(config) {
14
14
  const fullPath = `/${path}${slash}${queryString ? `?${queryString}` : ''}`;
15
15
  const url = `${config.host}${fullPath}`;
16
16
  if (config.debug)
17
- console.debug(`Proxying request to: ${url}`);
17
+ console.debug(`API Proxy: Proxying ${event.request.method} request to: ${url}`);
18
18
  // Validate the path against allowed prefixes if specified
19
19
  if (config.allowedPaths && config.allowedPaths.length > 0) {
20
20
  const isAllowed = config.allowedPaths.some((prefix) => path?.startsWith(prefix));
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hashrytech/quick-components-kit.git"
7
7
  },
8
- "version": "0.15.0",
8
+ "version": "0.15.1",
9
9
  "license": "MIT",
10
10
  "author": "Hashry Tech",
11
11
  "files": [