Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "mapql", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A MongoDB inspired ES6 Map() query langauge.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,3 +69,3 @@ /*! | ||
} | ||
switch (obj.constructor.name.toLowerCase()) { | ||
switch (getType(obj).toLowerCase()) { | ||
case 'date': | ||
@@ -97,13 +97,2 @@ return new Date(obj.getTime()); | ||
/* | ||
* A small polyfill to get the constructor name for IE11. | ||
*/ | ||
if (Function.prototype.name === undefined && Object.defineProperty !== undefined) { | ||
Object.defineProperty(Function.prototype, 'name', { | ||
get: ()=>{ | ||
try { return /^function\s+([\w\$]+)\s*\(/.exec((this).toString())[1]; } catch (error) { return ''; } | ||
}, set: ()=>{} | ||
}); | ||
} | ||
/* | ||
* Export all of the helper functions. | ||
@@ -110,0 +99,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
556135
7640