Title: Implement UTF-8 safe JSON POST requests using Invoke-AwJsonPost wrapper function
Key features implemented: - Added Invoke-AwJsonPost function to handle UTF-8 encoded JSON POST requests with proper content type header - Replaced direct Invoke-RestMethod calls with Invoke-AwJsonPost wrapper in Ensure-Bucket, Send-Heartbeat, Send-CategoryHeartbeat, and Send-DlpIncidentHeartbeat functions - Updated .gitignore with comprehensive file exclusion patterns for various development environments and system files The changes ensure proper UTF-8 character encoding when sending JSON data to the ActivityWatch API while maintaining all existing functionality. The gitignore updates provide better project hygiene by excluding common temporary and environment-specific files.
This commit is contained in:
+49
-33
@@ -1,51 +1,67 @@
|
||||
```
|
||||
# Dependencies
|
||||
node_modules/
|
||||
package-lock.json
|
||||
|
||||
# Logs and temp files
|
||||
*.log
|
||||
# PowerShell/Windows specific
|
||||
Thumbs.db
|
||||
Desktop.ini
|
||||
$RECYCLE.BIN/
|
||||
System Volume Information/
|
||||
*.tmp
|
||||
*.log
|
||||
|
||||
# Environment
|
||||
# Environment variables
|
||||
.env
|
||||
.env.local
|
||||
*.env.*
|
||||
|
||||
# Editors
|
||||
# IDE/Editor files
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# Python
|
||||
# Dependencies and build artifacts
|
||||
node_modules/
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.pyd
|
||||
.Python
|
||||
env/
|
||||
venv/
|
||||
.venv/
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Build directories
|
||||
*.class
|
||||
*.o
|
||||
*.obj
|
||||
*.exe
|
||||
*.dll
|
||||
*.so
|
||||
*.a
|
||||
*.out
|
||||
dist/
|
||||
build/
|
||||
*.egg-info/
|
||||
|
||||
# Coverage
|
||||
target/
|
||||
.venv/
|
||||
venv/
|
||||
.mypy_cache/
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
coverage/
|
||||
htmlcov/
|
||||
.nyc_output/
|
||||
.gradle/
|
||||
|
||||
# Testing
|
||||
.pytest_cache/
|
||||
.mypy_cache/
|
||||
.tox/
|
||||
.hypothesis/
|
||||
|
||||
# OS generated files
|
||||
# System files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
```
|
||||
*.zip
|
||||
*.gz
|
||||
*.tar
|
||||
*.tgz
|
||||
*.bz2
|
||||
*.xz
|
||||
*.7z
|
||||
*.rar
|
||||
*.zst
|
||||
*.lz4
|
||||
*.lzh
|
||||
*.cab
|
||||
*.arj
|
||||
*.rpm
|
||||
*.deb
|
||||
*.Z
|
||||
*.lz
|
||||
*.lzo
|
||||
*.tar.gz
|
||||
*.tar.bz2
|
||||
*.tar.xz
|
||||
*.tar.zst
|
||||
Reference in New Issue
Block a user