1 | {
|
2 | "name": "parse-domain",
|
3 | "version": "4.1.0",
|
4 | "description": "Splits a hostname into subdomains, domain and (effective) top-level domains",
|
5 | "keywords": [
|
6 | "domain",
|
7 | "url",
|
8 | "sub-domain",
|
9 | "tld",
|
10 | "parse",
|
11 | "sanitize",
|
12 | "top-level"
|
13 | ],
|
14 | "main": "./build-cjs/src/main.js",
|
15 | "module": "./build-esm/src/main.js",
|
16 | "types": "./build-esm/src/main.d.ts",
|
17 | "exports": {
|
18 | "require": "./build-cjs/src/main.js",
|
19 | "node": "./build-cjs/src/main.mjs",
|
20 | "import": "./build-esm/src/main.js"
|
21 | },
|
22 | "scripts": {
|
23 | "test": "jest",
|
24 | "posttest": "run-s build posttest:*",
|
25 | "posttest:lint": "eslint --cache --ext js,ts *.js src bin",
|
26 | "build": "run-s build:*",
|
27 | "build:cleanup": "rimraf build-cjs build-esm",
|
28 | "build:tsc": "run-p build:tsc:cjs build:tsc:esm",
|
29 | "build:tsc:cjs": "tsc -p ./tsconfig.build-cjs.json",
|
30 | "build:tsc:esm": "tsc -p ./tsconfig.build-esm.json",
|
31 | "build:cpy": "cpy ./src/main.mjs ./build-cjs/src",
|
32 | "build:update": "./bin/update.js",
|
33 | "prepare": "husky install",
|
34 | "update:psl-fixture": "ts-node --transpile-only ./src/scripts/update-psl-fixture.ts",
|
35 | "update:tries": "ts-node --transpile-only ./src/scripts/update-tries.ts -- ../../serialized-tries",
|
36 | "update:dependencies": "updtr"
|
37 | },
|
38 | "bin": {
|
39 | "parse-domain-update": "./bin/update.js"
|
40 | },
|
41 | "repository": {
|
42 | "type": "git",
|
43 | "url": "https://github.com/peerigon/parse-domain.git"
|
44 | },
|
45 | "author": "peerigon <developers@peerigon.com>",
|
46 | "license": "MIT",
|
47 | "files": [
|
48 | "bin",
|
49 | "build-cjs",
|
50 | "build-esm"
|
51 | ],
|
52 | "sideEffects": false,
|
53 | "lint-staged": {
|
54 | "*.{ts,tsx,js,cjs,mjs,jsx}": [
|
55 | "eslint --cache --fix",
|
56 | "prettier --write"
|
57 | ],
|
58 | ".github/workflows/*.{yml,yaml}": [
|
59 | "pin-github-action --allow-empty",
|
60 | "prettier --write"
|
61 | ],
|
62 | "*.{json,css,md,yml,yaml}": "prettier --write"
|
63 | },
|
64 | "dependencies": {
|
65 | "is-ip": "^3.1.0",
|
66 | "node-fetch": "^2.6.1",
|
67 | "punycode": "^2.1.1"
|
68 | },
|
69 | "devDependencies": {
|
70 | "@types/jest": "^27.0.1",
|
71 | "@types/node": "^16.7.10",
|
72 | "@types/node-fetch": "^2.5.12",
|
73 | "@types/punycode": "^2.1.0",
|
74 | "@typescript-eslint/eslint-plugin": "^4.30.0",
|
75 | "@typescript-eslint/parser": "^4.30.0",
|
76 | "cpy-cli": "^3.1.1",
|
77 | "eslint": "^7.32.0",
|
78 | "eslint-config-peerigon": "^31.0.2",
|
79 | "eslint-plugin-no-null": "^1.0.2",
|
80 | "eslint-plugin-node": "^11.1.0",
|
81 | "husky": "^7.0.2",
|
82 | "jest": "^27.1.0",
|
83 | "lint-staged": "^11.1.2",
|
84 | "nock": "^13.1.3",
|
85 | "npm-run-all": "^4.1.5",
|
86 | "pin-github-action": "^1.4.0",
|
87 | "prettier": "^2.3.2",
|
88 | "rimraf": "^3.0.2",
|
89 | "ts-jest": "^27.0.5",
|
90 | "ts-node": "^10.2.1",
|
91 | "typescript": "^4.4.2",
|
92 | "updtr": "^4.0.0"
|
93 | }
|
94 | }
|