Comparing version 1.9.0 to 1.10.0
@@ -5,3 +5,3 @@ /*eslint no-var:0, prefer-arrow-callback: 0, object-shorthand: 0 */ | ||
var Punycode = require('punycode'); | ||
var Punycode = require('punycode/'); | ||
@@ -28,3 +28,3 @@ | ||
// | ||
// Check is given string ends with `suffix`. | ||
// Check if given string ends with `suffix`. | ||
// | ||
@@ -45,3 +45,3 @@ internals.endsWith = function (str, suffix) { | ||
if (rule.punySuffix === -1){ | ||
if (rule.punySuffix === -1) { | ||
rule.punySuffix = Punycode.toASCII(rule.suffix); | ||
@@ -243,3 +243,3 @@ } | ||
parsed.sld = privateParts.pop(); | ||
parsed.domain = [parsed.sld, parsed.tld].join('.'); | ||
parsed.domain = [parsed.sld, parsed.tld].join('.'); | ||
@@ -246,0 +246,0 @@ if (privateParts.length) { |
{ | ||
"name": "psl", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Domain name parser based on the Public Suffix List", | ||
@@ -13,4 +13,4 @@ "repository": { | ||
"test": "mocha test/*.spec.js", | ||
"test:browserstack": "node test/browserstack.js", | ||
"watch": "mocha test --watch", | ||
"test:browserstack": "browserstack-node-sdk playwright test", | ||
"watch": "mocha test/*.spec.js --watch", | ||
"prebuild": "./scripts/update-rules.js", | ||
@@ -28,18 +28,17 @@ "build": "browserify ./index.js --standalone=psl > ./dist/psl.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"punycode": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^17.0.0", | ||
"browserslist-browserstack": "^3.1.1", | ||
"browserstack-local": "^1.5.1", | ||
"chai": "^4.3.6", | ||
"@playwright/test": "^1.48.2", | ||
"browserify": "^17.0.1", | ||
"browserstack-node-sdk": "^1.34.21", | ||
"chai": "^5.1.2", | ||
"commit-and-pr": "^1.0.4", | ||
"eslint": "^8.19.0", | ||
"eslint": "^9.14.0", | ||
"JSONStream": "^1.3.5", | ||
"mocha": "^7.2.0", | ||
"porch": "^2.0.0", | ||
"mocha": "^10.8.2", | ||
"request": "^2.88.2", | ||
"selenium-webdriver": "^4.3.0", | ||
"serve-handler": "^6.1.3", | ||
"uglify-js": "^3.16.2", | ||
"watchify": "^4.0.0" | ||
"uglify-js": "^3.19.3" | ||
} | ||
} |
@@ -41,3 +41,3 @@ # psl (Public Suffix List) | ||
Download [psl.min.js](https://raw.githubusercontent.com/lupomontero/psl/master/dist/psl.min.js) | ||
Download [psl.min.js](https://raw.githubusercontent.com/lupomontero/psl/main/dist/psl.min.js) | ||
and include it in a script tag. | ||
@@ -53,2 +53,7 @@ | ||
The script is also available on most popular CDNs. For example: | ||
* https://cdnjs.cloudflare.com/ajax/libs/psl/1.9.0/psl.min.js | ||
* https://unpkg.com/psl@1.9.0/dist/psl.min.js | ||
## API | ||
@@ -55,0 +60,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
532113
10
14
21041
217
1
+ Addedpunycode@^2.3.1
+ Addedpunycode@2.3.1(transitive)