@cerebral/http
Advanced tools
Comparing version 0.0.0-beta.2 to 0.0.0-beta.3
@@ -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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
67438
35
600
1
0
2
2
+ Addedfunction-tree@^1.0.0-beta.3