+6
-1
@@ -7,2 +7,5 @@ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Duplex" }] */ | ||
| const { randomFillSync } = require('crypto'); | ||
| const { | ||
| types: { isUint8Array } | ||
| } = require('util'); | ||
@@ -204,4 +207,6 @@ const PerMessageDeflate = require('./permessage-deflate'); | ||
| buf.write(data, 2); | ||
| } else if (isUint8Array(data)) { | ||
| buf.set(data, 2); | ||
| } else { | ||
| buf.set(data, 2); | ||
| throw new TypeError('Second argument must be a string or a Uint8Array'); | ||
| } | ||
@@ -208,0 +213,0 @@ } |
+1
-1
| { | ||
| "name": "ws", | ||
| "version": "8.20.0", | ||
| "version": "8.20.1", | ||
| "description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
148715
0.12%4276
0.12%