@virid/express 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @virid/express v0.3.
|
|
2
|
+
* @virid/express v0.3.9
|
|
3
3
|
* Add express functionality to virid
|
|
4
4
|
*/
|
|
5
5
|
var T=Object.defineProperty;var ge=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Re=Object.prototype.hasOwnProperty;var Se=(r,e,t)=>e in r?T(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var o=(r,e)=>T(r,"name",{value:e,configurable:!0});var ye=(r,e)=>{for(var t in e)T(r,t,{get:e[t],enumerable:!0})},Ce=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ee(e))!Re.call(r,i)&&i!==t&&T(r,i,{get:()=>e[i],enumerable:!(s=ge(e,i))||s.enumerable});return r};var Oe=r=>Ce(T({},"__esModule",{value:!0}),r);var l=(r,e,t)=>Se(r,typeof e!="symbol"?e+"":e,t);var Ge={};ye(Ge,{BadRequest:()=>Ie,BadRequestResponse:()=>b,Body:()=>je,ConflictResponse:()=>Y,Cookies:()=>Xe,Created:()=>Te,CreatedResponse:()=>q,Ctx:()=>ze,CustomResponse:()=>Ve,CustomResponseResponse:()=>U,ExpressPlugin:()=>ce,Forbidden:()=>$e,ForbiddenResponse:()=>D,Headers:()=>Ye,HttpContext:()=>S,HttpError:()=>w,HttpRequestMessage:()=>O,HttpResponse:()=>p,HttpRoute:()=>Ue,HttpSystem:()=>Qe,InternalServerError:()=>B,InternalServerErrorResponse:()=>P,NoContent:()=>Pe,NoContentResponse:()=>V,NotFound:()=>qe,NotFoundResponse:()=>N,Ok:()=>Ae,OkResponse:()=>$,Params:()=>We,ParseBoolPipe:()=>xe,ParseIntPipe:()=>me,Query:()=>Fe,Req:()=>Le,Res:()=>Ke,Stream:()=>ve,StreamFile:()=>be,StreamFileResponse:()=>y,StreamResponse:()=>C,Unauthorized:()=>He,UnauthorizedResponse:()=>v,UnprocessableEntityResponse:()=>X,addAutoPipe:()=>De,getAutoPipe:()=>Ne,getHttpArgs:()=>de,parseRawCookie:()=>ae});module.exports=Oe(Ge);var m=require("@virid/core");var he=require("@virid/core");var L=class L{constructor(e,t,s,i,a){l(this,"id");l(this,"req");l(this,"res");l(this,"timestamp");l(this,"route");l(this,"rc",0);l(this,"isClosed",!1);this.id=e,this.req=t,this.res=s,this.timestamp=i,this.route=a}inc(){this.rc++}dec(){this.rc--,this.rc===0&&this.tryFinalize()}tryFinalize(){if(this.res.writableEnded||this.isClosed)return;this.isClosed=!0;let e=`[Virid Express] Request Orphaned: The connection was closed because all systems finished execution without sending a response.
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @virid/express v0.3.
|
|
2
|
+
* @virid/express v0.3.9
|
|
3
3
|
* Add express functionality to virid
|
|
4
4
|
*/
|
|
5
5
|
var ne=Object.defineProperty;var he=(r,e,t)=>e in r?ne(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var o=(r,e)=>ne(r,"name",{value:e,configurable:!0});var l=(r,e,t)=>he(r,typeof e!="symbol"?e+"":e,t);import{MessageRegistry as Se,MessageWriter as T,BaseMessage as ye}from"@virid/core";import{MessageWriter as fe}from"@virid/core";var j=class j{constructor(e,t,s,i,a){l(this,"id");l(this,"req");l(this,"res");l(this,"timestamp");l(this,"route");l(this,"rc",0);l(this,"isClosed",!1);this.id=e,this.req=t,this.res=s,this.timestamp=i,this.route=a}inc(){this.rc++}dec(){this.rc--,this.rc===0&&this.tryFinalize()}tryFinalize(){if(this.res.writableEnded||this.isClosed)return;this.isClosed=!0;let e=`[Virid Express] Request Orphaned: The connection was closed because all systems finished execution without sending a response.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virid/express",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.9",
|
|
5
5
|
"description": "Add express functionality to virid",
|
|
6
6
|
"author": "Ailrid",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"express": ">=4.17.1",
|
|
37
37
|
"@types/express": ">=4.17.1",
|
|
38
|
-
"@virid/core": "0.3.
|
|
38
|
+
"@virid/core": "0.3.9"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup --config tsup.config.ts"
|