🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@eggjs/koa

Package Overview
Dependencies
Maintainers
9
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eggjs/koa - npm Package Compare versions

Comparing version
3.1.2-beta.17
to
3.1.2-beta.19
+2
-1
dist/request.js

@@ -257,3 +257,4 @@ import util from "node:util";

if (len === "") return;
return Number.parseInt(len);
const parsed = Number.parseInt(len, 10);
return Number.isNaN(parsed) ? void 0 : parsed;
}

@@ -260,0 +261,0 @@ /**

@@ -137,3 +137,3 @@ import Stream from "node:stream";

get length() {
if (this.has("Content-Length")) return Number.parseInt(this.get("Content-Length")) || 0;
if (this.has("Content-Length")) return Number.parseInt(this.get("Content-Length"), 10) || 0;
const body = this.body;

@@ -140,0 +140,0 @@ if (!body || body instanceof Stream) return;

{
"name": "@eggjs/koa",
"version": "3.1.2-beta.17",
"version": "3.1.2-beta.19",
"description": "Koa web app framework for https://eggjs.org",

@@ -33,5 +33,13 @@ "keywords": [

"publishConfig": {
"access": "public"
"access": "public",
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
}
},
"scripts": {
"typecheck": "tsgo --noEmit"
},
"dependencies": {
"@eggjs/cookies": "4.0.2-beta.19",
"@types/content-disposition": "^0.5.8",

@@ -54,6 +62,6 @@ "accepts": "^1.3.8",

"type-is": "^2.0.0",
"vary": "^1.1.2",
"@eggjs/cookies": "4.0.2-beta.17"
"vary": "^1.1.2"
},
"devDependencies": {
"@eggjs/supertest": "9.0.2-beta.19",
"@types/accepts": "^1.3.7",

@@ -73,11 +81,7 @@ "@types/content-type": "^1.1.8",

"mm": "^4.0.2",
"typescript": "^5.9.3",
"@eggjs/supertest": "9.0.2-beta.17"
"typescript": "^5.9.3"
},
"engines": {
"node": ">=22.18.0"
},
"scripts": {
"typecheck": "tsgo --noEmit"
}
}
}