Comparing version 4.2.0 to 4.3.0
@@ -12,7 +12,7 @@ /** | ||
*/ | ||
export declare const isbot: (userAgent: string | null) => boolean; | ||
export declare const isbot: (userAgent?: string | null) => boolean; | ||
/** | ||
* Create a custom isbot function with a custom pattern. | ||
*/ | ||
export declare const createIsbot: (customPattern: RegExp) => (userAgent: string | null) => boolean; | ||
export declare const createIsbot: (customPattern: RegExp) => (userAgent?: string | null) => boolean; | ||
/** | ||
@@ -25,14 +25,14 @@ * Create a custom isbot function with a custom pattern. | ||
*/ | ||
export declare const isbotMatch: (userAgent: string | null) => string | null; | ||
export declare const isbotMatch: (userAgent?: string | null) => string | null; | ||
/** | ||
* Find all parts of the user agent that match a bot pattern. | ||
*/ | ||
export declare const isbotMatches: (userAgent: string | null) => string[]; | ||
export declare const isbotMatches: (userAgent?: string | null) => string[]; | ||
/** | ||
* Find the first bot patterns that match the given user agent. | ||
*/ | ||
export declare const isbotPattern: (userAgent: string | null) => string | null; | ||
export declare const isbotPattern: (userAgent?: string | null) => string | null; | ||
/** | ||
* Find all bot patterns that match the given user agent. | ||
*/ | ||
export declare const isbotPatterns: (userAgent: string | null) => string[]; | ||
export declare const isbotPatterns: (userAgent?: string | null) => string[]; |
{ | ||
"name": "isbot", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "🤖 Recognise bots/crawlers/spiders using the user agent string.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
27364