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

@cerebral/http

Package Overview
Dependencies
Maintainers
3
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cerebral/http - npm Package Compare versions

Comparing version 0.0.0-beta.2 to 0.0.0-beta.3

index.d.ts

2

lib/DEFAULT_OPTIONS.js

@@ -20,3 +20,3 @@ 'use strict';

'Content-Type': 'application/json; charset=UTF-8',
'Accept': 'application/json'
Accept: 'application/json'
},

@@ -23,0 +23,0 @@ onRequest: function onRequest(xhr, options) {

@@ -88,2 +88,3 @@ 'use strict';

/* eslint-env browser */
/* eslint-disable prefer-promise-reject-errors */
function parseResponse(xhr) {

@@ -90,0 +91,0 @@ try {

@@ -50,2 +50,3 @@ 'use strict';

reject: reject,
// eslint-disable-next-line standard/no-callback-literal
xhr: cb(function (payload) {

@@ -52,0 +53,0 @@ delete requests[url];

@@ -9,3 +9,5 @@ 'use strict';

function uploadFileFactory(urlValue, filesValue, optionsValue) {
function uploadFileFactory(urlValue, filesValue) {
var optionsValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
function uploadFile(_ref) {

@@ -18,3 +20,3 @@ var http = _ref.http,

var files = resolve.value(filesValue);
var options = (0, _utils.convertObjectWithTemplates)(optionsValue);
var options = (0, _utils.convertObjectWithTemplates)(optionsValue, resolve);

@@ -21,0 +23,0 @@ return (0, _utils.processResponse)(http.uploadFile(url, files, options), path);

{
"name": "@cerebral/http",
"version": "0.0.0-beta.2",
"version": "0.0.0-beta.3",
"description": "HTTP provider for Cerebral 2",
"main": "lib/index.js",
"typings": "./index.d.ts",
"scripts": {
"test": "mocha --compilers js:babel-register 'src/**/*.test.js'",
"test": "mocha --compilers js:babel-register \"src/**/*.test.js\" && npm run test_ts",
"test_ts": "mocha --timeout 5000 --compilers js:babel-register \"typescript/typescript.spec.js\"",
"build": "cross-env BABEL_ENV=production babel src/ --out-dir=lib/ -s",
"prepublish": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cerebral/cerebral.git"
},
"keywords": [

@@ -16,5 +22,17 @@ "cerebral",

"author": "Christian Alfoni <christianalfoni@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/cerebral/cerebral/issues"
},
"homepage": "https://github.com/cerebral/cerebral/tree/master/packages/http#readme",
"dependencies": {
"function-tree": "^1.0.0-beta.3"
},
"peerDependencies": {
"cerebral": "^2.0.0-beta.2"
"cerebral": "^2.0.0-beta.3"
},
"devDependencies": {
"cerebral": "^2.0.0-beta.3",
"xhr-mock": "^1.9.0"
}
}

@@ -6,7 +6,7 @@ # @cerebral/http

`npm install @cerebral/http@next --save --save-exact`
`npm install @cerebral/http --save`
**YARN**
`yarn add @cerebral/http@next --exact`
`yarn add @cerebral/http`

@@ -13,0 +13,0 @@ ## description

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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