feat: rebrand Hemmelig to paste.es for cloudhost.es
- Set Spanish as default language with ephemeral/encrypted privacy focus - Translate all user-facing strings and legal pages to Spanish - Replace Norwegian flag with Spanish flag in footer - Remove Hemmelig/terces.cloud links, add cloudhost.es sponsorship - Rewrite PrivacyPage: zero data collection, ephemeral design emphasis - Rewrite TermsPage: Spanish law, RGPD, paste.es/CloudHost.es references - Update PWA manifest, HTML meta tags, package.json branding - Rename webhook headers to X-Paste-Event / X-Paste-Signature - Update API docs title and contact to paste.es / cloudhost.es Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
59
scripts/update-packages.sh
Executable file
59
scripts/update-packages.sh
Executable file
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to update all packages in package.json to their latest versions
|
||||
|
||||
PACKAGE_JSON="package.json"
|
||||
|
||||
if [ ! -f "$PACKAGE_JSON" ]; then
|
||||
echo "Error: package.json not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
update_packages() {
|
||||
local section=$1
|
||||
echo ""
|
||||
echo "=== Updating $section ==="
|
||||
echo ""
|
||||
|
||||
# Extract package names from the section
|
||||
packages=$(jq -r ".$section // {} | keys[]" "$PACKAGE_JSON" 2>/dev/null)
|
||||
|
||||
if [ -z "$packages" ]; then
|
||||
echo "No packages found in $section"
|
||||
return
|
||||
fi
|
||||
|
||||
for package in $packages; do
|
||||
current=$(jq -r ".$section[\"$package\"]" "$PACKAGE_JSON")
|
||||
|
||||
# Get latest version from npm
|
||||
latest=$(npm view "$package" version 2>/dev/null)
|
||||
|
||||
if [ -z "$latest" ]; then
|
||||
echo " ⚠ $package: Could not fetch latest version"
|
||||
continue
|
||||
fi
|
||||
|
||||
# Compare versions (strip ^ or ~ from current)
|
||||
current_clean=$(echo "$current" | sed 's/^[\^~]//')
|
||||
|
||||
if [ "$current_clean" = "$latest" ]; then
|
||||
echo " ✓ $package: $current (up to date)"
|
||||
else
|
||||
echo " ↑ $package: $current → ^$latest"
|
||||
# Update package.json using jq
|
||||
tmp=$(mktemp)
|
||||
jq ".$section[\"$package\"] = \"^$latest\"" "$PACKAGE_JSON" > "$tmp" && mv "$tmp" "$PACKAGE_JSON"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
echo "Checking for package updates..."
|
||||
|
||||
update_packages "dependencies"
|
||||
update_packages "devDependencies"
|
||||
|
||||
echo ""
|
||||
echo "=== Done ==="
|
||||
echo ""
|
||||
echo "Run 'npm install' to install updated packages"
|
||||
Reference in New Issue
Block a user