Socket
Socket
Sign inDemoInstall

yu-img-upload

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yu-img-upload - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/css/imgUpload.css

2

package.json
{
"name": "yu-img-upload",
"version": "1.0.0",
"version": "1.0.1",
"description": "a simple images upload plugin with preview",

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

### npm install --save yu-img-upload
### import imgUpload from 'yu-img-upload'
@param {object} option - one entry param to function yu-imgUpload
@param {object} option - one entry param to function yu-img-upload
@param {boolean} [option.popup] - accept true || false 是否用插件带的弹出框 默认用

@@ -6,0 +6,0 @@ @param {boolean} [option.multiple] - accept true || false 是否支持多选 默认支持

/**
* @param {object} option - one entry param to function yu-imgUpload
* @param {object} option - one entry param to function yu-img-upload
* @param {boolean} [option.popup] - accept true || false 是否用插件带的弹出框 默认用

@@ -259,7 +259,7 @@ * @param {boolean} [option.multiple] - accept true || false 是否支持多选 默认支持

if(userParams.size - difference.size === 0){//没有有用的配置项
console.error(`useful configuration in param 'option' is none , Please fill in at least one useful configuration just like : '${Array.from(allowParams)}' -- yu-imgUpload`);
console.error(`useful configuration in param 'option' is none , Please fill in at least one useful configuration just like : '${Array.from(allowParams)}' -- yu-img-upload`);
return false;
}else{
if(difference.size>0){//有未定的参数键值对
console.warn(`'${Array.from(difference)}' are not allowed , param 'option' can only accept these configuration : '${Array.from(allowParams)}' -- yu-imgUpload`)
console.warn(`'${Array.from(difference)}' are not allowed , param 'option' can only accept these configuration : '${Array.from(allowParams)}' -- yu-img-upload`)
}

@@ -287,3 +287,3 @@ }

}else{
console.error(`there is no param 'option' , yu-imgUpload can not work without any config , please check you code . -- yu-imgUpload`)
console.error(`there is no param 'option' , yu-img-upload can not work without any config , please check you code . -- yu-img-upload`)
}

@@ -290,0 +290,0 @@ }

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