Comparing version 0.1.0 to 0.1.1
14
main.js
/* global Blob File FormData $ */ | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var crypto = require('crypto') | ||
} | ||
var crypto = require('crypto') | ||
@@ -18,3 +16,3 @@ var tools = { | ||
onBrowser: function () { | ||
return (typeof window !== 'undefined' && typeof module === 'undefined') | ||
return typeof window === 'object' && window instanceof Window | ||
} | ||
@@ -286,2 +284,10 @@ }, | ||
/** | ||
* @todo check if both are objects | ||
*/ | ||
inherits: function (destination, source) { | ||
Object.getOwnPropertyNames(source).forEach((property) => { | ||
destination[property] = source[property] | ||
}) | ||
}, | ||
/** | ||
* @todo properly | ||
@@ -288,0 +294,0 @@ */ |
{ | ||
"name": "a-toolbox", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "basic lightweight tools", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
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
21304
548