@apify/pseudo_url
Advanced tools
Comparing version 2.0.14 to 2.0.15
13
index.js
@@ -22,2 +22,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -41,2 +45,8 @@ mod | ||
var PseudoUrl = class { | ||
/** | ||
* @param purl | ||
* A pseudo-URL string or a regular expression object. | ||
* Using a `RegExp` instance enables more granular control, | ||
* such as making the matching case-sensitive. | ||
*/ | ||
constructor(purl) { | ||
@@ -51,2 +61,5 @@ inputPredicate.parse(purl); | ||
} | ||
/** | ||
* Determines whether a URL matches this pseudo-URL pattern. | ||
*/ | ||
matches(url) { | ||
@@ -53,0 +66,0 @@ return typeof url === "string" && url.match(this.regex) !== null; |
{ | ||
"name": "@apify/pseudo_url", | ||
"version": "2.0.14", | ||
"version": "2.0.15", | ||
"description": "Tool to find the matching URLs on a page (or html document) by providing a URL pattern.", | ||
@@ -42,6 +42,6 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@apify/log": "^2.2.8", | ||
"@apify/log": "^2.2.9", | ||
"@sapphire/shapeshift": "^3.6.0" | ||
}, | ||
"gitHead": "de15d3f81a1a57fb32ea2e84ba751d56db21f923" | ||
"gitHead": "628f113c33df5d2e036540d8f1c8fd8d6f7f8f60" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
35706
235
Updated@apify/log@^2.2.9