Socket
Socket
Sign inDemoInstall

@auraxy/services

Package Overview
Dependencies
7
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

19

lib/es/index.js
/**
* Bundle of @auraxy/services
* Generated: 2019-11-06
* Version: 1.0.4
* Generated: 2020-03-15
* Version: 1.0.5
* License: MIT

@@ -241,2 +241,7 @@ * Author: liuzhiping@auraxy.com

var data = new FormData();
var append = function append(key, v) {
if (isFile(v)) data.append(key, v, v.name);else data.append(key, _typeof(v) === 'object' ? JSON.stringify(v) : v);
};
Object.entries(obj).forEach(function (_ref3) {

@@ -247,11 +252,7 @@ var _ref4 = _slicedToArray(_ref3, 2),

if (value instanceof FileList || value instanceof Array && value.some(isFile)) {
// 多张图片
// Multiple images
if (value instanceof FileList || value instanceof Array) {
Array.prototype.forEach.call(value, function (f) {
if (isFile(f)) data.append(key, f, f.name);else data.append(key, f);
return append(key, f);
});
} else if (_typeof(value) === 'object' && !isFile(value)) {
data.append(key, JSON.stringify(value));
} else if (isFile(value)) data.append(key, value, value.name);else data.append(key, value);
} else append(key, value);
});

@@ -258,0 +259,0 @@ return data;

{
"name": "@auraxy/services",
"version": "1.0.4",
"version": "1.0.5",
"description": "services",

@@ -5,0 +5,0 @@ "main": "./lib/es/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc