Socket
Socket
Sign inDemoInstall

cloud-blaze

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.2.0

7

CHANGELOG.md

@@ -8,2 +8,9 @@ # changelog

## [0.2.0] - 2020-12-23
### added
- export map
- typescript types
## [0.1.2] - 2020-12-16

@@ -10,0 +17,0 @@

9

index.js
/**
* enhance response by adding cache headers and removing unnecessary header entries
*
* @function
* @param {Response} immRes - immutable response
* @returns {Response} enhanced response
*/
export const enhanceResponse = function enhanceResponse(immRes) {
const enhanceResponse = function enhanceResponse(immRes) {
const res = new Response(immRes.body, immRes);

@@ -36,3 +37,3 @@

*/
export const getBucketAuth = async function getB2BucketAuth({
const getBucketAuth = async function getB2BucketAuth({
bucketKey,

@@ -85,3 +86,3 @@ bucketKeyId,

*/
export const getBucketURL = function getB2BucketURL({
const getBucketURL = function getB2BucketURL({
bucketName,

@@ -107,2 +108,4 @@ bucketPrefix,

export { enhanceResponse, getBucketAuth, getBucketURL };
/**

@@ -109,0 +112,0 @@ * cloudflare workers handler for proxying requests to backblaze b2

{
"name": "cloud-blaze",
"version": "0.1.2",
"version": "0.2.0",
"description": "cloudflare workers handler for proxying requests to backblaze b2",

@@ -9,5 +9,23 @@ "main": "index.js",

"license": "MIT",
"type": "module",
"exports": {
"import": "./index.js"
},
"scripts": {
"clean": "rm -rf types",
"types": "tsc --allowJs --declaration --emitDeclarationOnly index.js"
},
"files": [
"!example"
],
"keywords": [
"b2",
"backblaze",
"backblaze-b2",
"cloudflare",
"cloudflare-workers",
"edge",
"proxy",
"workers"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc