Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,2 @@ | ||
export default dig; | ||
/** | ||
@@ -11,6 +12,1 @@ * A dig function that takes any object with a nested structure and a path, | ||
declare function dig(source: any, path: string, shouldThrow?: boolean): any; | ||
declare const _default: { | ||
dig: typeof dig; | ||
validEmail: (email: string) => boolean; | ||
}; | ||
export default _default; |
@@ -0,1 +1,2 @@ | ||
export default dig; | ||
/** | ||
@@ -57,9 +58,1 @@ * A dig function that takes any object with a nested structure and a path, | ||
} | ||
const validEmail = (email) => { | ||
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
return emailRegex.test(email); | ||
}; | ||
export default { | ||
dig, | ||
validEmail, | ||
}; |
{ | ||
"name": "digx-nps", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.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
2577
68