@shetty4l/core 0.1.31 → 0.1.32

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": "@shetty4l/core",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Shared infrastructure primitives for Bun/TypeScript services",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,7 +54,7 @@ fetch_latest_release() {
54
54
  fi
55
55
 
56
56
  local release_json
57
- release_json=$(curl -fsSL "${auth_header[@]}" "https://api.github.com/repos/${REPO}/releases/latest")
57
+ release_json=$(curl -fsSL ${auth_header[@]+"${auth_header[@]}"} "https://api.github.com/repos/${REPO}/releases/latest")
58
58
 
59
59
  RELEASE_TAG=$(echo "$release_json" | jq -r '.tag_name')
60
60
  TARBALL_URL=$(echo "$release_json" | jq -r ".assets[] | select(.name | startswith(\"${SERVICE_NAME}-\")) | .browser_download_url")
@@ -89,7 +89,7 @@ download_and_extract() {
89
89
  info "Downloading ${RELEASE_TAG}..."
90
90
  local tmpfile
91
91
  tmpfile=$(mktemp)
92
- curl -fsSL "${auth_header[@]}" -o "$tmpfile" "$TARBALL_URL"
92
+ curl -fsSL ${auth_header[@]+"${auth_header[@]}"} -o "$tmpfile" "$TARBALL_URL"
93
93
 
94
94
  info "Extracting to ${version_dir}..."
95
95
  tar xzf "$tmpfile" -C "$version_dir"