From b54511edfe3ceccd687a175d6cb42fd0831ae24f Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 10 May 2014 20:56:56 -0700 Subject: [PATCH 1/4] added package.json --- package.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..9b7bd6e --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "lazyload", + "version": "2.0.3", + "license" : "MIT", + "readmeFilename": "README.md", + "description": "LazyLoad is a tiny (only 966 bytes minified and gzipped), dependency-free JavaScript utility that makes it super easy to load external JavaScript and CSS files on demand.", + + "repository": { + "type": "git", + "url": "https://github.com/rgrove/lazyload.git" + }, + "keywords": [ + "lazyload" + ] +} From 619b059ccc5bb6d28f3ef42716c6fdae636196f5 Mon Sep 17 00:00:00 2001 From: iambumblehead Date: Wed, 4 Feb 2015 11:12:38 -0800 Subject: [PATCH 2/4] lower-case lazyload name to follow npm convention lower-case lazyload name to follow npm convention --- lazyload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazyload.js b/lazyload.js index 5adc8a4..d3adcf2 100644 --- a/lazyload.js +++ b/lazyload.js @@ -36,7 +36,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @static */ -LazyLoad = (function (doc) { +lazyload = (function (doc) { // -- Private Variables ------------------------------------------------------ // User agent and feature test information. From e945cbcea9cc06bef414fa799b5a5cfb7ea3350f Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 28 Dec 2015 23:36:18 -0800 Subject: [PATCH 3/4] added main property to package.json --- lazyload.js | 8 ++++++-- package.json | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lazyload.js b/lazyload.js index d3adcf2..08ddb6d 100644 --- a/lazyload.js +++ b/lazyload.js @@ -1,3 +1,7 @@ +// Filename: lazyload.js +// Timestamp: 2015.12.28-23:34:55 (last modified) +// Author(s): bumblehead + /*jslint browser: true, eqeqeq: true, bitwise: true, newcap: true, immed: true, regexp: false */ /** @@ -36,7 +40,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @static */ -lazyload = (function (doc) { +lazyload = module.exports = (function (doc) { // -- Private Variables ------------------------------------------------------ // User agent and feature test information. @@ -387,4 +391,4 @@ lazyload = (function (doc) { } }; -})(this.document); +})(this.document || {}); diff --git a/package.json b/package.json index 9b7bd6e..960ef2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "lazyload", - "version": "2.0.3", + "main": "lazyload", + "version": "2.0.4", "license" : "MIT", "readmeFilename": "README.md", "description": "LazyLoad is a tiny (only 966 bytes minified and gzipped), dependency-free JavaScript utility that makes it super easy to load external JavaScript and CSS files on demand.", From bc0da2dfb5f0a116d9fbc8cbd249c393c2b71a3c Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 28 Dec 2015 23:36:52 -0800 Subject: [PATCH 4/4] added main property to package.json --- lazyload.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lazyload.js b/lazyload.js index 08ddb6d..b8aeadb 100644 --- a/lazyload.js +++ b/lazyload.js @@ -1,6 +1,5 @@ // Filename: lazyload.js -// Timestamp: 2015.12.28-23:34:55 (last modified) -// Author(s): bumblehead +// Timestamp: 2015.12.28-23:36:48 (last modified) /*jslint browser: true, eqeqeq: true, bitwise: true, newcap: true, immed: true, regexp: false */