@curveball/kernel
Advanced tools
Comparing version 0.21.0 to 0.21.1
@@ -8,2 +8,8 @@ /// <reference types="node" /> | ||
/** | ||
* Package version | ||
* | ||
* This line gets automatically replaced during the build phase | ||
*/ | ||
export declare const VERSION = "Curveball/dev"; | ||
/** | ||
* The middleware-call Symbol is a special symbol that might exist as a | ||
@@ -10,0 +16,0 @@ * property on an object. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.invokeMiddlewares = exports.middlewareCall = void 0; | ||
exports.invokeMiddlewares = exports.middlewareCall = exports.VERSION = void 0; | ||
const node_events_1 = require("node:events"); | ||
@@ -17,3 +17,3 @@ const http_errors_1 = require("@curveball/http-errors"); | ||
*/ | ||
const VERSION = 'Curveball/0.21.0 (cjs)'; | ||
exports.VERSION = 'Curveball/dev'; | ||
/** | ||
@@ -65,3 +65,3 @@ * The middleware-call Symbol is a special symbol that might exist as a | ||
async handle(ctx) { | ||
ctx.response.headers.set('Server', VERSION); | ||
ctx.response.headers.set('Server', exports.VERSION); | ||
ctx.response.type = 'application/hal+json'; | ||
@@ -68,0 +68,0 @@ await invokeMiddlewares(ctx, [...this.middlewares, not_found_js_1.default]); |
@@ -6,3 +6,3 @@ export { conditionalCheck } from './conditional.js'; | ||
export { default as MemoryResponse } from './memory-response.js'; | ||
export { default as Application, invokeMiddlewares, Middleware, middlewareCall } from './application.js'; | ||
export { default as Application, invokeMiddlewares, Middleware, middlewareCall, VERSION, } from './application.js'; | ||
export { Context, WsContext } from './context.js'; | ||
@@ -9,0 +9,0 @@ export { Headers, HeadersInterface, HeadersObject } from './headers.js'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.headerHelpers = exports.setGlobalOrigin = exports.getGlobalOrigin = exports.Headers = exports.Context = exports.middlewareCall = exports.invokeMiddlewares = exports.Application = exports.MemoryResponse = exports.MemoryRequest = exports.Response = exports.Request = exports.conditionalCheck = void 0; | ||
exports.headerHelpers = exports.setGlobalOrigin = exports.getGlobalOrigin = exports.Headers = exports.Context = exports.VERSION = exports.middlewareCall = exports.invokeMiddlewares = exports.Application = exports.MemoryResponse = exports.MemoryRequest = exports.Response = exports.Request = exports.conditionalCheck = void 0; | ||
var conditional_js_1 = require("./conditional.js"); | ||
@@ -18,2 +18,3 @@ Object.defineProperty(exports, "conditionalCheck", { enumerable: true, get: function () { return conditional_js_1.conditionalCheck; } }); | ||
Object.defineProperty(exports, "middlewareCall", { enumerable: true, get: function () { return application_js_1.middlewareCall; } }); | ||
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return application_js_1.VERSION; } }); | ||
var context_js_1 = require("./context.js"); | ||
@@ -20,0 +21,0 @@ Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return context_js_1.Context; } }); |
@@ -8,2 +8,8 @@ /// <reference types="node" /> | ||
/** | ||
* Package version | ||
* | ||
* This line gets automatically replaced during the build phase | ||
*/ | ||
export declare const VERSION = "Curveball/dev"; | ||
/** | ||
* The middleware-call Symbol is a special symbol that might exist as a | ||
@@ -10,0 +16,0 @@ * property on an object. |
@@ -14,3 +14,3 @@ import { EventEmitter } from 'node:events'; | ||
*/ | ||
const VERSION = 'Curveball/0.21.0 (esm)'; | ||
export const VERSION = 'Curveball/0.21.1 (esm)'; | ||
/** | ||
@@ -17,0 +17,0 @@ * The middleware-call Symbol is a special symbol that might exist as a |
@@ -6,3 +6,3 @@ export { conditionalCheck } from './conditional.js'; | ||
export { default as MemoryResponse } from './memory-response.js'; | ||
export { default as Application, invokeMiddlewares, Middleware, middlewareCall } from './application.js'; | ||
export { default as Application, invokeMiddlewares, Middleware, middlewareCall, VERSION, } from './application.js'; | ||
export { Context, WsContext } from './context.js'; | ||
@@ -9,0 +9,0 @@ export { Headers, HeadersInterface, HeadersObject } from './headers.js'; |
@@ -6,3 +6,3 @@ export { conditionalCheck } from './conditional.js'; | ||
export { default as MemoryResponse } from './memory-response.js'; | ||
export { default as Application, invokeMiddlewares, middlewareCall } from './application.js'; | ||
export { default as Application, invokeMiddlewares, middlewareCall, VERSION, } from './application.js'; | ||
export { Context } from './context.js'; | ||
@@ -9,0 +9,0 @@ export { Headers } from './headers.js'; |
{ | ||
"name": "@curveball/kernel", | ||
"version": "0.21.0", | ||
"version": "0.21.1", | ||
"description": "Curveball is a framework writting in Typescript for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
@@ -22,3 +22,3 @@ import { EventEmitter } from 'node:events'; | ||
*/ | ||
const VERSION = 'Curveball/dev'; | ||
export const VERSION = 'Curveball/dev'; | ||
@@ -25,0 +25,0 @@ /** |
@@ -12,3 +12,4 @@ export { conditionalCheck } from './conditional.js'; | ||
Middleware, | ||
middlewareCall | ||
middlewareCall, | ||
VERSION, | ||
} from './application.js'; | ||
@@ -32,2 +33,3 @@ | ||
export * as headerHelpers from './header-helpers.js'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4501
189154
98