Comparing version 5.2.2 to 5.2.3
@@ -42,3 +42,3 @@ 'use strict'; | ||
const code = res.status; | ||
if (code === 200) return res.json(); | ||
if (code === 200) return await res.json(); | ||
await res.body.cancel(); | ||
@@ -45,0 +45,0 @@ const dest = `for ${method} ${url}`; |
{ | ||
"name": "metautil", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -23,3 +23,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": "18 || 20 || 21" | ||
"node": "18 || 20 || 21 || 22" | ||
}, | ||
@@ -42,16 +42,13 @@ "repository": { | ||
"types": "tsc -p tsconfig.json", | ||
"lint": "eslint . && prettier --check \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/.*rc\" \"**/*.ts\"", | ||
"fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/.*rc\" \"**/*.ts\"" | ||
"lint": "eslint . && prettier --check \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/*.ts\"", | ||
"fix": "eslint . --fix && prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/*.ts\"" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.17", | ||
"eslint": "^8.57.0", | ||
"eslint-config-metarhia": "^8.2.2", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"@types/node": "^22.5.1", | ||
"eslint": "^9.9.1", | ||
"eslint-config-metarhia": "^9.0.4", | ||
"metatests": "^0.8.2", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.3.3" | ||
"prettier": "^3.3.3", | ||
"typescript": "^5.5.4" | ||
} | ||
} |
@@ -359,3 +359,3 @@ # Metarhia utilities | ||
## Class `EnevtEmitter` | ||
## Class `EventEmitter` | ||
@@ -370,3 +370,3 @@ - `getMaxListeners(): number` | ||
## `EnevtEmitter` utilities | ||
## `EventEmitter` utilities | ||
@@ -373,0 +373,0 @@ - `once(emitter: EventEmitter, name: string): Promise<unknown>` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
51937