New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

file-drops

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-drops - npm Package Compare versions

Comparing version

to
0.5.0

47

dist/file-drops.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.FileDrops = factory());
}(this, (function () { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.FileDrops = factory());
})(this, (function () { 'use strict';
var componentEvent = {};
var bind$1 = window.addEventListener ? 'addEventListener' : 'attachEvent',
unbind$1 = window.removeEventListener ? 'removeEventListener' : 'detachEvent',
prefix = bind$1 !== 'addEventListener' ? 'on' : '';
/**
* Set attribute `name` to `val`, or get attr `name`.
* Bind `el` event `type` to `fn`.
*
* @param {Element} el
* @param {String} name
* @param {String} [val]
* @param {String} type
* @param {Function} fn
* @param {Boolean} capture
* @return {Function}
* @api public
*/
componentEvent.bind = function(el, type, fn, capture){
el[bind$1](prefix + type, fn, capture || false);
return fn;
};
/**
* Unbind `el` event `type`'s callback `fn`.
*
* @param {Element} el
* @param {String} type
* @param {Function} fn
* @param {Boolean} capture
* @return {Function}
* @api public
*/
componentEvent.unbind = function(el, type, fn, capture){
el[unbind$1](prefix + type, fn, capture || false);
return fn;
};
/**
* Expose `parse`.

@@ -106,3 +135,3 @@ */

// wrap map
var wrap = map[tag] || map._default;
var wrap = Object.prototype.hasOwnProperty.call(map, tag) ? map[tag] : map._default;
var depth = wrap[0];

@@ -129,2 +158,4 @@ var prefix = wrap[1];

var domify$1 = domify;
var OVERLAY_HTML = '<div class="drop-overlay">' +

@@ -347,3 +378,3 @@ '<div class="box">' +

return domify(markup);
return domify$1(markup);
}

@@ -357,3 +388,3 @@

})));
}));
//# sourceMappingURL=file-drops.umd.js.map

2

dist/index.esm.js

@@ -227,3 +227,3 @@ import { domify } from 'min-dom';

export default fileDrop;
export { fileDrop as default };
//# sourceMappingURL=index.esm.js.map
{
"name": "file-drops",
"version": "0.4.0",
"version": "0.5.0",
"description": "A simple in-browser file drop utility",

@@ -29,12 +29,15 @@ "main": "dist/index.js",

"devDependencies": {
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-commonjs": "^23.0.3",
"@rollup/plugin-node-resolve": "^15.0.1",
"eslint": "^6.8.0",
"eslint-plugin-bpmn-io": "^0.10.0",
"npm-run-all": "^4.1.3",
"rollup": "^1.31.1"
"rollup": "^2.79.1"
},
"dependencies": {
"min-dom": "^3.1.1"
}
"min-dom": "^4.0.3"
},
"files": [
"dist"
]
}

@@ -37,4 +37,9 @@ # file-drops

## See also
* [file-open](https://github.com/nikku/file-open) - simple file open utility
## License
MIT

Sorry, the diff of this file is not supported yet