@busy-hour/blaze
Advanced tools
Comparing version 3.3.6 to 3.3.7
@@ -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 @@ |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
234386
6075