@virid/express 0.1.1 → 0.1.2
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
|
+
* @virid/express v0.1.1
|
|
3
3
|
* Add express functionality to virid
|
|
4
4
|
*/
|
|
5
5
|
var Y=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var Rt=Object.prototype.hasOwnProperty;var $t=(r,e,t)=>e in r?Y(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var i=(r,e)=>Y(r,"name",{value:e,configurable:!0});var kt=(r,e)=>{for(var t in e)Y(r,t,{get:e[t],enumerable:!0})},Tt=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ct(e))!Rt.call(r,n)&&n!==t&&Y(r,n,{get:()=>e[n],enumerable:!(s=At(e,n))||s.enumerable});return r};var Ht=r=>Tt(Y({},"__esModule",{value:!0}),r);var y=(r,e,t)=>$t(r,typeof e!="symbol"?e+"":e,t);var br={};kt(br,{BadRequest:()=>It,BadRequestResponse:()=>ae,Body:()=>hr,ConflictResponse:()=>Se,Cookies:()=>gr,Created:()=>Vt,CreatedResponse:()=>ne,Ctx:()=>xr,CustomResponse:()=>qt,CustomResponseResponse:()=>ue,ExpressPlugin:()=>Sr,Forbidden:()=>Bt,ForbiddenResponse:()=>ce,Headers:()=>fr,HttpContext:()=>K,HttpError:()=>C,HttpRequestMessage:()=>te,HttpResponse:()=>M,HttpRoute:()=>ur,HttpSystem:()=>pr,InternalServerError:()=>pe,InternalServerErrorResponse:()=>de,NoContent:()=>Pt,NoContentResponse:()=>ie,NotFound:()=>Nt,NotFoundResponse:()=>le,Ok:()=>Ot,OkResponse:()=>se,Params:()=>Er,ParseBoolPipe:()=>mt,ParseIntPipe:()=>gt,Query:()=>Mr,Req:()=>mr,Res:()=>yr,Stream:()=>jt,StreamFile:()=>_t,StreamFileResponse:()=>H,StreamResponse:()=>O,Unauthorized:()=>Dt,UnauthorizedResponse:()=>oe,UnprocessableEntityResponse:()=>be,addAutoPipe:()=>lr,getAutoPipe:()=>ye,parseRawCookie:()=>Ue});module.exports=Ht(br);var Et=require("@virid/core");var Me=require("@virid/core");var $=require("@virid/core");var Ge=require("@virid/core");var Ae=class Ae{constructor(e,t,s,n,o){y(this,"id");y(this,"req");y(this,"res");y(this,"timestamp");y(this,"route");y(this,"rc",0);y(this,"isClosed",!1);this.id=e,this.req=t,this.res=s,this.timestamp=n,this.route=o}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
|
+
* @virid/express v0.1.1
|
|
3
3
|
* Add express functionality to virid
|
|
4
4
|
*/
|
|
5
5
|
var Qe=Object.defineProperty;var xt=(r,e,t)=>e in r?Qe(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e)=>Qe(r,"name",{value:e,configurable:!0});var y=(r,e,t)=>xt(r,typeof e!="symbol"?e+"":e,t);import{MessageWriter as zt}from"@virid/core";import{MessageRegistry as Ut,MessageWriter as Lt}from"@virid/core";import{BaseMessage as Et,MessageWriter as ee}from"@virid/core";import{MessageWriter as Mt}from"@virid/core";var Ee=class Ee{constructor(e,t,s,i,o){y(this,"id");y(this,"req");y(this,"res");y(this,"timestamp");y(this,"route");y(this,"rc",0);y(this,"isClosed",!1);this.id=e,this.req=t,this.res=s,this.timestamp=i,this.route=o}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.1.
|
|
4
|
+
"version": "0.1.2",
|
|
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.1.
|
|
38
|
+
"@virid/core": "0.1.2"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup --config tsup.config.ts",
|