Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crex

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crex - npm Package Compare versions

Comparing version 0.4.6 to 0.4.8

22

lib/request.js
var request = require('superagent');
var nodeBinaryParser = function (res, done) {
res.text = '';
res.setEncoding('binary');
res.on('data', function (chunk) {
res.text += chunk;
});
res.on('end', function () {
done();
});
};
var doGet = function (url, args, ret) {
return new Promise(function (resolve, reject) {
request
var r = request
.get(url)
.query(args)
.buffer(true)
.end(function (err, res) {
.buffer(true);
if (ret === 'text') {
r.parse(nodeBinaryParser);
}
r.end(function (err, res) {
if (err) reject(err);

@@ -11,0 +27,0 @@ resolve(ret === 'text' ? res.text : res.body);

2

package.json
{
"name": "crex",
"version": "0.4.6",
"version": "0.4.8",
"description": "Creative Exchange SDK for Javascript",

@@ -5,0 +5,0 @@ "author": "Mateusz Luczak <mateusz.luczak@outlook.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc