@@ -17,4 +17,4 @@ "use strict"; | ||
| index: index + 1, | ||
| isIcann: node[0] === 1 /* RULE_TYPE.ICANN */, | ||
| isPrivate: node[0] === 2 /* RULE_TYPE.PRIVATE */, | ||
| isIcann: (node[0] & 1 /* RULE_TYPE.ICANN */) !== 0, | ||
| isPrivate: (node[0] & 2 /* RULE_TYPE.PRIVATE */) !== 0, | ||
| }; | ||
@@ -21,0 +21,0 @@ } |
@@ -14,4 +14,4 @@ import { fastPathLookup, } from 'tldts-core'; | ||
| index: index + 1, | ||
| isIcann: node[0] === 1 /* RULE_TYPE.ICANN */, | ||
| isPrivate: node[0] === 2 /* RULE_TYPE.PRIVATE */, | ||
| isIcann: (node[0] & 1 /* RULE_TYPE.ICANN */) !== 0, | ||
| isPrivate: (node[0] & 2 /* RULE_TYPE.PRIVATE */) !== 0, | ||
| }; | ||
@@ -18,0 +18,0 @@ } |
+17
-17
| { | ||
| "name": "tldts", | ||
| "version": "7.0.20", | ||
| "version": "7.0.21", | ||
| "description": "Library to work against complex domain names, subdomains and URIs.", | ||
@@ -52,22 +52,22 @@ "author": { | ||
| "prepack": "yarn run bundle", | ||
| "test": "nyc mocha --config ../../.mocharc.cjs" | ||
| "test": "nyc ../../node_modules/.bin/mocha --config ../../.mocharc.cjs" | ||
| }, | ||
| "devDependencies": { | ||
| "@rollup/plugin-node-resolve": "^16.0.0", | ||
| "@rollup/plugin-terser": "^0.4.0", | ||
| "@rollup/plugin-typescript": "^12.1.0", | ||
| "@types/chai": "^4.2.18", | ||
| "@types/mocha": "^10.0.0", | ||
| "@types/node": "^24.3.1", | ||
| "chai": "^4.4.1", | ||
| "mocha": "^11.0.1", | ||
| "nyc": "^17.0.0", | ||
| "rimraf": "^5.0.1", | ||
| "rollup": "^4.1.0", | ||
| "@rollup/plugin-node-resolve": "^16.0.3", | ||
| "@rollup/plugin-terser": "^0.4.4", | ||
| "@rollup/plugin-typescript": "^12.3.0", | ||
| "@types/chai": "^4.3.20", | ||
| "@types/mocha": "^10.0.10", | ||
| "@types/node": "^24.10.9", | ||
| "chai": "^4.5.0", | ||
| "mocha": "^11.7.5", | ||
| "nyc": "^17.1.0", | ||
| "rimraf": "^5.0.10", | ||
| "rollup": "^4.57.1", | ||
| "rollup-plugin-sourcemaps2": "^0.5.4", | ||
| "tldts-tests": "^7.0.20", | ||
| "typescript": "^5.0.4" | ||
| "tldts-tests": "^7.0.21", | ||
| "typescript": "^5.5.4" | ||
| }, | ||
| "dependencies": { | ||
| "tldts-core": "^7.0.20" | ||
| "tldts-core": "^7.0.21" | ||
| }, | ||
@@ -89,3 +89,3 @@ "keywords": [ | ||
| ], | ||
| "gitHead": "793bc4d8007dd680cd97298f12ed7ebb9cb44ff5" | ||
| "gitHead": "1dd6d39f1b2bc9dc69c17dcc5d3d2fe6151f066a" | ||
| } |
@@ -36,4 +36,4 @@ import { | ||
| index: index + 1, | ||
| isIcann: node[0] === RULE_TYPE.ICANN, | ||
| isPrivate: node[0] === RULE_TYPE.PRIVATE, | ||
| isIcann: (node[0] & RULE_TYPE.ICANN) !== 0, | ||
| isPrivate: (node[0] & RULE_TYPE.PRIVATE) !== 0, | ||
| }; | ||
@@ -40,0 +40,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
Sorry, the diff of this file is too big to display
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 too big to display
Sorry, the diff of this file is too big to display
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 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
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
Sorry, the diff of this file is too big to display
3067375
0.29%4349
0.12%Updated