@virid/express 0.2.2 → 0.2.5
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.2.
|
|
2
|
+
* @virid/express v0.2.5
|
|
3
3
|
* Add express functionality to virid
|
|
4
4
|
*/
|
|
5
5
|
var P=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Pe=Object.prototype.hasOwnProperty;var Te=(t,e,s)=>e in t?P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var o=(t,e)=>P(t,"name",{value:e,configurable:!0});var ve=(t,e)=>{for(var s in e)P(t,s,{get:e[s],enumerable:!0})},He=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ce(e))!Pe.call(t,n)&&n!==s&&P(t,n,{get:()=>e[n],enumerable:!(r=Oe(e,n))||r.enumerable});return t};var Ie=t=>He(P({},"__esModule",{value:!0}),t);var p=(t,e,s)=>Te(t,typeof e!="symbol"?e+"":e,s);var ot={};ve(ot,{BadRequest:()=>be,BadRequestResponse:()=>V,Body:()=>ze,ConflictResponse:()=>X,Cookies:()=>Le,Created:()=>$e,CreatedResponse:()=>q,Ctx:()=>Ze,CustomResponse:()=>Qe,CustomResponseResponse:()=>Q,ExpressPlugin:()=>st,Forbidden:()=>De,ForbiddenResponse:()=>N,Headers:()=>Ke,HttpContext:()=>T,HttpError:()=>w,HttpRequestMessage:()=>H,HttpResponse:()=>u,HttpRoute:()=>Fe,HttpSystem:()=>Xe,InternalServerError:()=>U,InternalServerErrorResponse:()=>B,NoContent:()=>Ve,NoContentResponse:()=>$,NotFound:()=>Be,NotFoundResponse:()=>D,Ok:()=>qe,OkResponse:()=>I,Params:()=>et,ParseBoolPipe:()=>xe,ParseIntPipe:()=>he,Query:()=>ke,Req:()=>Ge,Res:()=>Je,Stream:()=>Ye,StreamFile:()=>Ue,StreamFileResponse:()=>R,StreamResponse:()=>y,Unauthorized:()=>Ne,UnauthorizedResponse:()=>b,UnprocessableEntityResponse:()=>z,addAutoPipe:()=>We,getAutoPipe:()=>Y,parseRawCookie:()=>pe});module.exports=Ie(ot);var ge=require("@virid/core");var W=require("@virid/core");var S=require("@virid/core");var fe=require("@virid/core");var K=class K{constructor(e,s,r,n,d){p(this,"id");p(this,"req");p(this,"res");p(this,"timestamp");p(this,"route");p(this,"rc",0);p(this,"isClosed",!1);this.id=e,this.req=s,this.res=r,this.timestamp=n,this.route=d}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.2.
|
|
2
|
+
* @virid/express v0.2.5
|
|
3
3
|
* Add express functionality to virid
|
|
4
4
|
*/
|
|
5
5
|
var de=Object.defineProperty;var Me=(t,e,s)=>e in t?de(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var o=(t,e)=>de(t,"name",{value:e,configurable:!0});var p=(t,e,s)=>Me(t,typeof e!="symbol"?e+"":e,s);import{MessageWriter as Te}from"@virid/core";import{MessageRegistry as Oe,MessageWriter as Ce}from"@virid/core";import{BaseMessage as we,MessageWriter as T}from"@virid/core";import{MessageWriter as Ee}from"@virid/core";var W=class W{constructor(e,s,r,n,d){p(this,"id");p(this,"req");p(this,"res");p(this,"timestamp");p(this,"route");p(this,"rc",0);p(this,"isClosed",!1);this.id=e,this.req=s,this.res=r,this.timestamp=n,this.route=d}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.2.
|
|
4
|
+
"version": "0.2.5",
|
|
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 || ^5.0.0",
|
|
37
37
|
"@types/express": "^5.0.6",
|
|
38
|
-
"@virid/core": "0.2.
|
|
38
|
+
"@virid/core": "0.2.5"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup --config tsup.config.ts"
|