+19
-10
@@ -210,19 +210,25 @@ // intake by Brendan Conrad | ||
| // CommonJS module | ||
| /* istanbul ignore else */ | ||
| if (typeof exports !== 'undefined') { | ||
| if (typeof module !== 'undefined' && module.exports) { | ||
| exports = module.exports = Intake; | ||
| } | ||
| exports.Intake = Intake; | ||
| /* istanbul ignore else */ | ||
| if (typeof module !== 'undefined' && module.exports) { | ||
| exports = module.exports = Intake; | ||
| } | ||
| exports.Intake = Intake; | ||
| } | ||
| // Register as an anonymous AMD module | ||
| /* istanbul ignore next */ | ||
| if (typeof define === 'function' && define.amd) { | ||
| define([], function () { | ||
| return Intake; | ||
| }); | ||
| /* istanbul ignore next */ | ||
| define([], function () { | ||
| return Intake; | ||
| }); | ||
| } | ||
| // if there is a importsScrips object define intake for worker | ||
| /* istanbul ignore if */ | ||
| if (typeof importScripts !== 'undefined') { | ||
| intake = new Intake(); | ||
| /* istanbul ignore next */ | ||
| intake = new Intake(); | ||
| } | ||
@@ -232,6 +238,9 @@ | ||
| // instantiate and define intake on the window | ||
| /* istanbul ignore next */ | ||
| if (typeof window === "object" && typeof window.document === "object") { | ||
| window.Intake = Intake; | ||
| window.intake = new Intake(); | ||
| /* istanbul ignore next */ | ||
| window.Intake = Intake; | ||
| /* istanbul ignore next */ | ||
| window.intake = new Intake(); | ||
| } | ||
| })(); |
+9
-7
| { | ||
| "name": "intake", | ||
| "version": "0.2.9", | ||
| "version": "0.3.0", | ||
| "description": "JavaScript utilities and other helper methods for intake form applications.", | ||
@@ -14,3 +14,4 @@ "main": "index.js", | ||
| "test": "mocha --reporter spec", | ||
| "cover": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/*" | ||
| "cover": "nyc npm run test", | ||
| "coverage": "nyc report --reporter=text-lcov | coveralls" | ||
| }, | ||
@@ -32,9 +33,10 @@ "repository": { | ||
| "chai": "^4.1.2", | ||
| "coveralls": "^3.0.0", | ||
| "coveralls": "^3.1.0", | ||
| "grunt": "^1.0.2", | ||
| "grunt-contrib-jshint": "^1.1.0", | ||
| "grunt-contrib-jshint": "^2.1.0", | ||
| "grunt-mocha-test": "^0.13.3", | ||
| "istanbul": "^0.4.5", | ||
| "mocha": "^5.1.1" | ||
| } | ||
| "mocha": "^8.1.3", | ||
| "nyc": "^15.1.0" | ||
| }, | ||
| "dependencies": {} | ||
| } |
30642
0.97%694
1.31%