@citizenfx/http-wrapper
Advanced tools
Comparing version 0.1.2 to 0.2.0
10
index.js
@@ -33,6 +33,10 @@ const flatMap = require('array.prototype.flatmap'); | ||
cfxReq.setDataHandler((data) => { | ||
// TODO: implement buffer support for binary data | ||
this.push(data, 'utf8'); | ||
if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) { | ||
this.push(new Buffer(data)); | ||
} else { | ||
this.push(data, 'utf8'); | ||
} | ||
this.push(null); | ||
}); | ||
}, 'binary'); | ||
} | ||
@@ -39,0 +43,0 @@ |
{ | ||
"name": "@citizenfx/http-wrapper", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "A HTTP wrapper for CitizenFX SetHttpHandler.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6454
171