Compare commits
	
		
			No commits in common. "v1.0.6" and "master" have entirely different histories.
		
	
	
		
	
		
							
								
								
									
										41
									
								
								LICENSE
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								LICENSE
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,41 @@
 | 
				
			|||||||
 | 
					Copyright 2018 AJ ONeal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This is open source software; you can redistribute it and/or modify it under the
 | 
				
			||||||
 | 
					terms of either:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   a) the "MIT License"
 | 
				
			||||||
 | 
					   b) the "Apache-2.0 License"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MIT License
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
				
			||||||
 | 
					   of this software and associated documentation files (the "Software"), to deal
 | 
				
			||||||
 | 
					   in the Software without restriction, including without limitation the rights
 | 
				
			||||||
 | 
					   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
				
			||||||
 | 
					   copies of the Software, and to permit persons to whom the Software is
 | 
				
			||||||
 | 
					   furnished to do so, subject to the following conditions:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   The above copyright notice and this permission notice shall be included in all
 | 
				
			||||||
 | 
					   copies or substantial portions of the Software.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
				
			||||||
 | 
					   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
				
			||||||
 | 
					   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
				
			||||||
 | 
					   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
				
			||||||
 | 
					   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
				
			||||||
 | 
					   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 | 
				
			||||||
 | 
					   SOFTWARE.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Apache-2.0 License Summary
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					   you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					   You may obtain a copy of the License at
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					     http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					   distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					   See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					   limitations under the License.
 | 
				
			||||||
@ -1,13 +1,13 @@
 | 
				
			|||||||
/*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 classes = "Boolean Number String Function Array Date RegExp Object".split(" "),
 | 
					    var global = Function('return this')()
 | 
				
			||||||
      i,
 | 
					      , classes = "Boolean Number String Function Array Date RegExp Object".split(" ")
 | 
				
			||||||
      name,
 | 
					      , i
 | 
				
			||||||
      class2type = {};
 | 
					      , name
 | 
				
			||||||
 | 
					      , class2type = {}
 | 
				
			||||||
 | 
					      ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (i in classes) {
 | 
					    for (i in classes) {
 | 
				
			||||||
      if (classes.hasOwnProperty(i)) {
 | 
					      if (classes.hasOwnProperty(i)) {
 | 
				
			||||||
@ -95,13 +95,11 @@ var provide = provide || function () {},
 | 
				
			|||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Boiler Plate
 | 
					    // CommonJS / npm / Ender.JS
 | 
				
			||||||
    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');
 | 
					 | 
				
			||||||
}());
 | 
					}());
 | 
				
			||||||
							
								
								
									
										24
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								package.json
									
									
									
									
									
								
							@ -1,22 +1,14 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
 | 
					  "name"          : "remedial",
 | 
				
			||||||
 | 
					  "description"   : "Deprecated. Utilities for ES3, most of which have been adopted or superseded in ES5.1. Adapted from Douglas Crockford's Remedial JavaScript",
 | 
				
			||||||
 | 
					  "url"           : "http://javascript.crockford.com/remedial.html",
 | 
				
			||||||
 | 
					  "keywords"      : ["util", "isEmpty", "typeOf", "entityify", "quote", "supplant", "trim"],
 | 
				
			||||||
  "author"        : "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com)",
 | 
					  "author"        : "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com)",
 | 
				
			||||||
  "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",
 | 
					  "engines"       : { "node": "*" },
 | 
				
			||||||
  "homepage"      : "https://git.coolaj86.com/coolaj86/remedial.js",
 | 
					  "homepage"      : "https://git.coolaj86.com/coolaj86/remedial.js",
 | 
				
			||||||
  "engines": {
 | 
					  "license"       : "(MIT OR Apache-2.0)",
 | 
				
			||||||
    "node": "*"
 | 
					  "main"          : "./index",
 | 
				
			||||||
  },
 | 
					  "version"       : "1.0.8"
 | 
				
			||||||
  "keywords": [
 | 
					 | 
				
			||||||
    "util",
 | 
					 | 
				
			||||||
    "isEmpty",
 | 
					 | 
				
			||||||
    "typeOf",
 | 
					 | 
				
			||||||
    "entityify",
 | 
					 | 
				
			||||||
    "quote",
 | 
					 | 
				
			||||||
    "supplant",
 | 
					 | 
				
			||||||
    "trim"
 | 
					 | 
				
			||||||
  ],
 | 
					 | 
				
			||||||
  "main": "./remedial",
 | 
					 | 
				
			||||||
  "name": "remedial",
 | 
					 | 
				
			||||||
  "version": "1.0.6"
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user