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.6 to 3.3.7

7

CHANGELOG.md

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

## [3.3.7](https://github.com/Busy-Hour-Studio/blaze/compare/v3.3.6...v3.3.7) (2024-08-13)
### Bug Fixes
* not applied zod validations on params ([198008f](https://github.com/Busy-Hour-Studio/blaze/commit/198008f3f53d7e0681d52c43c41cdb2442afd413))
## [3.3.6](https://github.com/Busy-Hour-Studio/blaze/compare/v3.3.5...v3.3.6) (2024-08-11)

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

3

dist/cjs/internal/BlazeContext.js

@@ -205,4 +205,5 @@ "use strict";

ctx.$body = data.body;
ctx.$reqParams = data.params;
ctx.$reqHeaders = data.headers;
ctx.$params = null;
ctx.$reqHeaders = data.headers;
ctx.$query = data.query;

@@ -209,0 +210,0 @@ ctx.$honoCtx = honoCtx;

@@ -63,2 +63,8 @@ "use strict";

}
function toArray(value) {
return Array.isArray(value) ? value : [value];
}
function isNil(value) {
return value === null || value === void 0;
}
function removeTrailingSlash(path2) {

@@ -72,3 +78,3 @@ return path2.replace(/^\/+/, "");

function getServiceName(service) {
const version = service.version ? `v${service.version}` : "";
const version = !isNil(service.version) ? `v${service.version}` : "";
return [version, service.name].filter(Boolean).join(".");

@@ -84,8 +90,2 @@ }

}
function toArray(value) {
return Array.isArray(value) ? value : [value];
}
function isNil(value) {
return value === null || value === void 0;
}
async function createContext(options) {

@@ -92,0 +92,0 @@ const [blazeCtx, blazeErr] = await resolvePromise(

@@ -188,4 +188,5 @@ // src/internal/BlazeContext.ts

ctx.$body = data.body;
ctx.$reqParams = data.params;
ctx.$reqHeaders = data.headers;
ctx.$params = null;
ctx.$reqHeaders = data.headers;
ctx.$query = data.query;

@@ -192,0 +193,0 @@ ctx.$honoCtx = honoCtx;

@@ -27,2 +27,8 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {

}
function toArray(value) {
return Array.isArray(value) ? value : [value];
}
function isNil(value) {
return value === null || value === void 0;
}
function removeTrailingSlash(path2) {

@@ -36,3 +42,3 @@ return path2.replace(/^\/+/, "");

function getServiceName(service) {
const version = service.version ? `v${service.version}` : "";
const version = !isNil(service.version) ? `v${service.version}` : "";
return [version, service.name].filter(Boolean).join(".");

@@ -48,8 +54,2 @@ }

}
function toArray(value) {
return Array.isArray(value) ? value : [value];
}
function isNil(value) {
return value === null || value === void 0;
}
async function createContext(options) {

@@ -56,0 +56,0 @@ const [blazeCtx, blazeErr] = await resolvePromise(

@@ -8,2 +8,4 @@ import { BlazeContext } from '../internal';

export declare function mapToObject(map: Map<Random, unknown>, valueMapper?: (value: unknown) => unknown): {};
export declare function toArray<T>(value: T | T[]): T[];
export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
export declare function removeTrailingSlash(path: string): string;

@@ -13,4 +15,2 @@ export declare function getRestPath(service: Service): string;

export declare function resolvePromise<T>(promise: Promise<T> | T): Promise<readonly [Awaited<T>, null] | readonly [null, unknown]>;
export declare function toArray<T>(value: T | T[]): T[];
export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
export declare function createContext(options: CreateContextOption): Promise<ActionCallResult<BlazeContext>>;

@@ -17,0 +17,0 @@ export declare function isOnCjs(): boolean;

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

"type": "module",
"version": "3.3.6",
"version": "3.3.7",
"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