Skip to content

Commit 1d66074

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

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+
"homepage": "http://jquery.malsup.com/block/",
13+
"keywords": [
14+
"block",
15+
"dialog",
16+
"ecosystem:jquery",
17+
"jquery-plugin",
18+
"modal",
19+
"overlay"
20+
],
21+
"license": [
22+
{
23+
"type": "MIT",
24+
"url": "http://malsup.github.com/mit-license.txt"
25+
},
26+
{
27+
"type": "GPL",
28+
"url": "http://malsup.github.com/gpl-license-v2.txt"
29+
}
30+
],
31+
"main": "jquery.blockUI.js",
32+
"peerDependencies": {
33+
"jquery": ">=1.7.x"
34+
},
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)