Skip to content

Commit 6f1a302

Browse files
committed
Add package.json
1 parent 316f6e5 commit 6f1a302

2 files changed

Lines changed: 48 additions & 1 deletion

File tree

jquery.blockUI.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,14 @@
611611

612612

613613
/*global define:true */
614-
if (typeof define === 'function' && define.amd && define.amd.jQuery) {
614+
if (typeof define === 'function' && define.amd) {
615+
// AMD. Register as an anonymous module.
615616
define(['jquery'], setup);
617+
} else if (typeof exports === 'object') {
618+
// Node/CommonJS
619+
module.exports = setup(require('jquery'));
616620
} else {
621+
// Browser globals
617622
setup(jQuery);
618623
}
619624

package.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "blockUI",
3+
"description": "Simulate synchronous ajax by blocking - not locking - the UI. This plugin lets you block user interaction with the page or with a specific element on the page. Also great at displaying modal dialogs.",
4+
"version": "2.70.0",
5+
"author": {
6+
"name": "M. Alsup",
7+
"url": "http://jquery.malsup.com"
8+
},
9+
"bugs": {
10+
"url": "https://github.com/malsup/blockui/issues"
11+
},
12+
"dependencies": {
13+
"jquery": ">=1.7.x"
14+
},
15+
"homepage": "http://jquery.malsup.com/block/",
16+
"keywords": [
17+
"block",
18+
"dialog",
19+
"ecosystem:jquery",
20+
"jquery-plugin",
21+
"modal",
22+
"overlay"
23+
],
24+
"license": [
25+
{
26+
"type": "MIT",
27+
"url": "http://malsup.github.com/mit-license.txt"
28+
},
29+
{
30+
"type": "GPL",
31+
"url": "http://malsup.github.com/gpl-license-v2.txt"
32+
}
33+
],
34+
"main": "jquery.blockUI.js",
35+
"repository": {
36+
"type": "git",
37+
"url": "https://github.com/malsup/blockui.git"
38+
},
39+
"scripts": {
40+
"test": "echo \"Error: no test specified\" && exit 1"
41+
}
42+
}

0 commit comments

Comments
 (0)