1.4.0 • Published 4 months ago

@knowdev/http v1.4.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
4 months ago

KnowDev HTTP 🌐

📋 Usage

npm install --save @knowdev/http

📖 Reference

Constants 💬

Functions 🛠

formatError(error:ProjectError)

Returns an object with a numeric status and and object data suitable for a JSON:API-complaint HTTP response

getHeaderFrom(headerKey:string, searchObject:object)

Case-insensitive search inside searchObject for headerKey. Also looks in header and headers child object of searchObject, if headerKey not found at top-level.

🚀 Deployment

npm publish --access=public

📝 Changelog

VersionChange
1.2.0Catch errors thrown by getHeaderFrom(), minor upgrades and cleanup
1.1.3Add HTTP.HEADER.SIGNATURE.ED25519, HTTP.HEADER.SIGNATURE.TIMESTAMP
1.1.2Add HTTP.CODE.UNAUTHORIZED, HTTP.HEADER.PROJECT.SECRET
1.1.1Add getHeaderFrom() function (1.1.0 had broken export)
1.0.0Initial release of constants only

🛣 Roadmap

Wishlist 🌠

📜 License

All rights reserved. Safe for use around pets.