Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@busy-hour/blaze

Package Overview
Dependencies
Maintainers
0
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@busy-hour/blaze - npm Package Compare versions

Comparing version 3.3.3 to 3.3.4

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [3.3.4](https://github.com/Busy-Hour-Studio/blaze/compare/v3.3.3...v3.3.4) (2024-07-28)
### Bug Fixes
* empty context data ([abd4b44](https://github.com/Busy-Hour-Studio/blaze/commit/abd4b444648d490a91e0f238b873e0abe02d5cd5))
## [3.3.3](https://github.com/Busy-Hour-Studio/blaze/compare/v3.3.2...v3.3.3) (2024-07-12)

@@ -7,0 +14,0 @@

18

dist/cjs/internal/BlazeContext.js

@@ -153,9 +153,17 @@ "use strict";

const cachedCtx = honoCtx?.get?.("blaze");
const cachedData = cachedCtx?.meta?.get?.("isCached");
const isCached = cachedCtx?.meta?.get?.("isCached");
const data = {
body: cachedData ? await cachedCtx?.request?.body?.() : null,
params: cachedData ? cachedCtx?.request?.params : null,
headers: cachedData ? cachedCtx?.request?.headers : null,
query: cachedData ? cachedCtx?.request?.query : null
body: isCached ? await cachedCtx?.request?.body?.() : null,
params: isCached ? cachedCtx?.request?.params : null,
headers: isCached ? cachedCtx?.request?.headers : null,
query: isCached ? cachedCtx?.request?.query : null
};
if (options.body && !data.body)
data.body = options.body;
if (options.params && !data.params)
data.params = options.params;
if (options.headers && !data.headers)
data.headers = options.headers;
if (options.query && !data.query)
data.query = options.query;
const validations = {

@@ -162,0 +170,0 @@ body: true,

@@ -126,9 +126,17 @@ // src/internal/BlazeContext.ts

const cachedCtx = honoCtx?.get?.("blaze");
const cachedData = cachedCtx?.meta?.get?.("isCached");
const isCached = cachedCtx?.meta?.get?.("isCached");
const data = {
body: cachedData ? await cachedCtx?.request?.body?.() : null,
params: cachedData ? cachedCtx?.request?.params : null,
headers: cachedData ? cachedCtx?.request?.headers : null,
query: cachedData ? cachedCtx?.request?.query : null
body: isCached ? await cachedCtx?.request?.body?.() : null,
params: isCached ? cachedCtx?.request?.params : null,
headers: isCached ? cachedCtx?.request?.headers : null,
query: isCached ? cachedCtx?.request?.query : null
};
if (options.body && !data.body)
data.body = options.body;
if (options.params && !data.params)
data.params = options.params;
if (options.headers && !data.headers)
data.headers = options.headers;
if (options.query && !data.query)
data.query = options.query;
const validations = {

@@ -135,0 +143,0 @@ body: true,

@@ -7,3 +7,3 @@ {

"type": "module",
"version": "3.3.3",
"version": "3.3.4",
"license": "MIT",

@@ -10,0 +10,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc