Comparing version 1.0.3 to 1.0.4
14
index.js
@@ -241,3 +241,3 @@ /** | ||
/** | ||
* Test if 'value' is a uuid. | ||
* Test if 'value' is a uuid (v1-v5) | ||
* @param {Any} value to test. | ||
@@ -1240,1 +1240,13 @@ * @return {Boolean} true if 'value is a valid RFC4122 UUID. Case non-specific. | ||
is.phone = is.phoneNumber; | ||
/** | ||
* Test is a string is a valid URL | ||
* @param {string} val - the possible url to check | ||
* @return true if str contains a phone number, false otherwise. | ||
*/ | ||
var isUrl = require('is-url'); | ||
is.url = function(val) { | ||
return isUrl(val); | ||
}; | ||
is.uri = is.url; | ||
{ | ||
"name": "is2", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A type checking library where each exported function returns either true or false and does not throw. Also added tests.", | ||
@@ -48,3 +48,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"deep-is": "0.1.3", | ||
"deep-is": "^0.1.3", | ||
"is-url": "^1.2.1", | ||
"objectid": "^3.2.1" | ||
@@ -51,0 +52,0 @@ }, |
@@ -110,2 +110,3 @@ is2 | ||
* is.systemPort(val) - is.sysPort | ||
* is.url(val) - is.uri | ||
* is.userPort(val) | ||
@@ -112,0 +113,0 @@ |
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
2438
162
115324
3
7
+ Addedis-url@^1.2.1
+ Addeddeep-is@0.1.4(transitive)
+ Addedis-url@1.2.4(transitive)
- Removeddeep-is@0.1.3(transitive)
Updateddeep-is@^0.1.3