+8
-2
@@ -66,2 +66,6 @@ 'use strict'; | ||
| function getDefaultExportFromCjs (x) { | ||
| return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; | ||
| } | ||
| /** Detect free variable `global` from Node.js. */ | ||
@@ -308,2 +312,4 @@ | ||
| var isPlainObj = /*@__PURE__*/getDefaultExportFromCjs(isPlainObject_1); | ||
| function isValidRewriteConfig(rewriteConfig) { | ||
@@ -313,3 +319,3 @@ if (typeof rewriteConfig === 'function') { | ||
| } | ||
| else if (isPlainObject_1(rewriteConfig)) { | ||
| else if (isPlainObj(rewriteConfig)) { | ||
| return Object.keys(rewriteConfig).length !== 0; | ||
@@ -326,3 +332,3 @@ } | ||
| const rules = []; | ||
| if (isPlainObject_1(rewriteRecord)) { | ||
| if (isPlainObj(rewriteRecord)) { | ||
| for (const [key, value] of Object.entries(rewriteRecord)) { | ||
@@ -329,0 +335,0 @@ rules.push({ |
+8
-2
@@ -64,2 +64,6 @@ import isGlob from 'is-glob'; | ||
| function getDefaultExportFromCjs (x) { | ||
| return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; | ||
| } | ||
| /** Detect free variable `global` from Node.js. */ | ||
@@ -306,2 +310,4 @@ | ||
| var isPlainObj = /*@__PURE__*/getDefaultExportFromCjs(isPlainObject_1); | ||
| function isValidRewriteConfig(rewriteConfig) { | ||
@@ -311,3 +317,3 @@ if (typeof rewriteConfig === 'function') { | ||
| } | ||
| else if (isPlainObject_1(rewriteConfig)) { | ||
| else if (isPlainObj(rewriteConfig)) { | ||
| return Object.keys(rewriteConfig).length !== 0; | ||
@@ -324,3 +330,3 @@ } | ||
| const rules = []; | ||
| if (isPlainObject_1(rewriteRecord)) { | ||
| if (isPlainObj(rewriteRecord)) { | ||
| for (const [key, value] of Object.entries(rewriteRecord)) { | ||
@@ -327,0 +333,0 @@ rules.push({ |
+16
-16
| { | ||
| "name": "h3-proxy", | ||
| "version": "1.8.0", | ||
| "version": "1.9.0", | ||
| "description": "A proxy event handler for h3, using proxyRequest.", | ||
@@ -57,26 +57,26 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@rollup/plugin-alias": "^4.0.3", | ||
| "@rollup/plugin-commonjs": "^24.0.0", | ||
| "@rollup/plugin-node-resolve": "^15.0.1", | ||
| "@rollup/plugin-alias": "^4.0.4", | ||
| "@rollup/plugin-commonjs": "^24.1.0", | ||
| "@rollup/plugin-node-resolve": "^15.1.0", | ||
| "@rollup/plugin-typescript": "^10.0.1", | ||
| "@types/is-glob": "^4.0.2", | ||
| "@types/lodash": "^4.14.191", | ||
| "@types/lodash": "^4.14.196", | ||
| "@types/micromatch": "^4.0.2", | ||
| "@types/supertest": "^2.0.12", | ||
| "@typescript-eslint/eslint-plugin": "^5.46.1", | ||
| "@typescript-eslint/parser": "^5.46.1", | ||
| "@typescript-eslint/eslint-plugin": "^5.62.0", | ||
| "@typescript-eslint/parser": "^5.62.0", | ||
| "changelogen": "^0.4.1", | ||
| "cz-conventional-changelog": "^3.3.0", | ||
| "eslint": "^8.30.0", | ||
| "eslint-config-prettier": "^8.5.0", | ||
| "eslint": "^8.46.0", | ||
| "eslint-config-prettier": "^8.10.0", | ||
| "eslint-plugin-prettier": "^4.2.1", | ||
| "h3": "^1.7.0", | ||
| "h3": "^1.7.1", | ||
| "lodash": "^4.17.21", | ||
| "prettier": "^2.8.1", | ||
| "rollup": "^3.7.5", | ||
| "rollup-plugin-dts": "^5.1.1", | ||
| "prettier": "^2.8.8", | ||
| "rollup": "^3.27.2", | ||
| "rollup-plugin-dts": "^5.3.1", | ||
| "supertest": "^6.3.3", | ||
| "tslib": "^2.4.1", | ||
| "typescript": "~4.9.4", | ||
| "vitest": "^0.29.2" | ||
| "tslib": "^2.6.1", | ||
| "typescript": "~5.1.6", | ||
| "vitest": "^0.29.8" | ||
| }, | ||
@@ -83,0 +83,0 @@ "peerDependencies": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
35519
0.25%783
1.03%