Comparing version 0.0.2 to 0.0.3
@@ -17,2 +17,5 @@ /* ================================================================ | ||
var util = require('util'); | ||
var _file = require('./file'); | ||
var Type = require('./typeof'); | ||
/** | ||
@@ -127,14 +130,2 @@ * noop | ||
/** | ||
* type | ||
*/ | ||
function _type(c){ | ||
if (c === null || typeof c === "undefined") { | ||
return String(c); | ||
} else { | ||
return Object.prototype.toString.call(c).replace(/\[object |\]/g, '').toLowerCase(); | ||
} | ||
}; | ||
/** | ||
* decode uri | ||
@@ -165,9 +156,19 @@ */ | ||
indexOf: _indexOf, | ||
type: _type, | ||
decode: _decode | ||
decode: _decode, | ||
file: _file | ||
}; | ||
_merge(util,Util); | ||
/** | ||
* merge typeof | ||
*/ | ||
_merge(Util, Type); | ||
/** | ||
* merge origin util | ||
*/ | ||
_merge(util, Util); | ||
module.exports = util; | ||
{ | ||
"name": "xutil", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "xutil", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -18,3 +18,2 @@ /* ================================================================ | ||
describe('', function(){ | ||
}); | ||
console.log(xutil.isString(1111111111)) |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
8194
14
207
1