Compare commits
	
		
			No commits in common. "aaf82310b0e310da737b4712f0edf5aaadd464be" and "3e66d00607bf6e7894a2fe743509de3dcba81204" have entirely different histories.
		
	
	
		
			aaf82310b0
			...
			3e66d00607
		
	
		
| @ -1,20 +1,18 @@ | |||||||
| /*jslint onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */ | /*jslint onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */ | ||||||
|  | var provide = provide || function () {}, | ||||||
|  |   global = (function () {return this; }()); | ||||||
| (function () { | (function () { | ||||||
|     "use strict"; |     "use strict"; | ||||||
| 
 | 
 | ||||||
|     var global = Function('return this')() |     var classes = "Boolean Number String Function Array Date RegExp Object".split(" "), | ||||||
|       , classes = "Boolean Number String Function Array Date RegExp Object".split(" ") |       i, | ||||||
|       , i |       name, | ||||||
|       , name |       class2type = {}; | ||||||
|       , class2type = {} |  | ||||||
|       ; |  | ||||||
| 
 | 
 | ||||||
|     for (i in classes) { |     for (i in classes) { | ||||||
|       if (classes.hasOwnProperty(i)) { |  | ||||||
|       name = classes[i]; |       name = classes[i]; | ||||||
|       class2type["[object " + name + "]"] = name.toLowerCase(); |       class2type["[object " + name + "]"] = name.toLowerCase(); | ||||||
|     } |     } | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     function typeOf(obj) { |     function typeOf(obj) { | ||||||
|       return (null === obj || undefined === obj) ? String(obj) : class2type[Object.prototype.toString.call(obj)] || "object"; |       return (null === obj || undefined === obj) ? String(obj) : class2type[Object.prototype.toString.call(obj)] || "object"; | ||||||
| @ -95,11 +93,13 @@ | |||||||
|         }; |         }; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // CommonJS / npm / Ender.JS
 |     // Boiler Plate
 | ||||||
|  |     if ('undefined' === typeof module) { module = {}; } | ||||||
|     module.exports = { |     module.exports = { | ||||||
|         typeOf: typeOf, |         typeOf: typeOf, | ||||||
|         isEmpty: isEmpty |         isEmpty: isEmpty | ||||||
|     }; |     }; | ||||||
|     global.typeOf = global.typeOf || typeOf; |     global.typeOf = global.typeOf || typeOf; | ||||||
|     global.isEmpty = global.isEmpty || isEmpty; |     global.isEmpty = global.isEmpty || isEmpty; | ||||||
|  |     provide('remedial'); | ||||||
| }()); | }()); | ||||||
| @ -3,7 +3,6 @@ | |||||||
|   "contributors": [ "Douglas Crockford <douglas@crockford.com>" ], |   "contributors": [ "Douglas Crockford <douglas@crockford.com>" ], | ||||||
|   "dependencies": {}, |   "dependencies": {}, | ||||||
|   "description": "Deprecated. Utilities for ES3, most of which have been adopted or superseded in ES5.1. Adapted from Douglas Crockford's Remedial JavaScript", |   "description": "Deprecated. Utilities for ES3, most of which have been adopted or superseded in ES5.1. Adapted from Douglas Crockford's Remedial JavaScript", | ||||||
|   "homepage": "https://git.coolaj86.com/coolaj86/remedial.js", |  | ||||||
|   "engines": { |   "engines": { | ||||||
|     "node": "*" |     "node": "*" | ||||||
|   }, |   }, | ||||||
| @ -16,7 +15,9 @@ | |||||||
|     "supplant", |     "supplant", | ||||||
|     "trim" |     "trim" | ||||||
|   ], |   ], | ||||||
|   "main": "./index", |   "lib": "lib", | ||||||
|  |   "main": "./lib/remedial", | ||||||
|   "name": "remedial", |   "name": "remedial", | ||||||
|   "version": "1.0.7" |   "homepage": "https://git.coolaj86.com/coolaj86/remedial.js", | ||||||
|  |   "version": "1.0.5" | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user