@rpldy/sender
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -26,3 +26,3 @@ "use strict"; | ||
*/ | ||
var addToFormData = function addToFormData(fd, name) { | ||
var addToFormData = function (fd, name) { | ||
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
@@ -46,3 +46,3 @@ rest[_key - 2] = arguments[_key]; | ||
var getFormFileField = function getFormFileField(fd, items, options) { | ||
var getFormFileField = function (fd, items, options) { | ||
var single = items.length === 1; | ||
@@ -49,0 +49,0 @@ items.forEach(function (item, i) { |
@@ -25,3 +25,3 @@ "use strict"; | ||
var getRequestData = function getRequestData(items, options) { | ||
var getRequestData = function (items, options) { | ||
var data; | ||
@@ -48,3 +48,3 @@ | ||
var makeRequest = function makeRequest(items, url, options, onProgress) { | ||
var makeRequest = function (items, url, options, onProgress) { | ||
var requestData = getRequestData(items, options); | ||
@@ -70,3 +70,3 @@ var pXhr = (0, _shared.request)(url, requestData, _objectSpread(_objectSpread({}, (0, _shared.pick)(options, ["method", "headers", "withCredentials"])), {}, { | ||
var parseResponseJson = function parseResponseJson(response, headers, options) { | ||
var parseResponseJson = function (response, headers, options) { | ||
var parsed = response; | ||
@@ -85,3 +85,3 @@ var ct = headers && headers["content-type"]; | ||
var processResponse = function processResponse(sendRequest, options) { | ||
var processResponse = function (sendRequest, options) { | ||
return sendRequest.pXhr.then(function (xhr) { | ||
@@ -126,3 +126,3 @@ var state, response, status; | ||
var abortRequest = function abortRequest(sendRequest) { | ||
var abortRequest = function (sendRequest) { | ||
var abortCalled = false; | ||
@@ -129,0 +129,0 @@ var aborted = sendRequest.aborted, |
@@ -19,3 +19,3 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
*/ | ||
var addToFormData = function addToFormData(fd, name) { | ||
var addToFormData = function (fd, name) { | ||
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
@@ -39,3 +39,3 @@ rest[_key - 2] = arguments[_key]; | ||
var getFormFileField = function getFormFileField(fd, items, options) { | ||
var getFormFileField = function (fd, items, options) { | ||
var single = items.length === 1; | ||
@@ -42,0 +42,0 @@ items.forEach(function (item, i) { |
@@ -12,3 +12,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
var getRequestData = function getRequestData(items, options) { | ||
var getRequestData = function (items, options) { | ||
var data; | ||
@@ -32,3 +32,3 @@ | ||
var makeRequest = function makeRequest(items, url, options, onProgress) { | ||
var makeRequest = function (items, url, options, onProgress) { | ||
var requestData = getRequestData(items, options); | ||
@@ -54,3 +54,3 @@ var pXhr = request(url, requestData, _objectSpread(_objectSpread({}, pick(options, ["method", "headers", "withCredentials"])), {}, { | ||
var parseResponseJson = function parseResponseJson(response, headers, options) { | ||
var parseResponseJson = function (response, headers, options) { | ||
var parsed = response; | ||
@@ -69,3 +69,3 @@ var ct = headers && headers["content-type"]; | ||
var processResponse = function processResponse(sendRequest, options) { | ||
var processResponse = function (sendRequest, options) { | ||
return sendRequest.pXhr.then(function (xhr) { | ||
@@ -107,3 +107,3 @@ var state, response, status; | ||
var abortRequest = function abortRequest(sendRequest) { | ||
var abortRequest = function (sendRequest) { | ||
var abortCalled = false; | ||
@@ -110,0 +110,0 @@ var aborted = sendRequest.aborted, |
{ | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"name": "@rpldy/sender", | ||
@@ -21,3 +21,3 @@ "description": "react-uploady's default XHR sender", | ||
"dependencies": { | ||
"@rpldy/shared": "^0.6.0" | ||
"@rpldy/shared": "^0.7.0" | ||
}, | ||
@@ -30,3 +30,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "43de735c426078647a9768caa733ba6cfd190d32" | ||
"gitHead": "5bd0ebc140b45e44b168511f501b9f22628abd56" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
21493
+ Added@rpldy/shared@0.7.4(transitive)
- Removed@rpldy/shared@0.6.0(transitive)
Updated@rpldy/shared@^0.7.0