1 | {
|
2 | "name": "ow",
|
3 | "version": "0.25.0",
|
4 | "description": "Function argument validation for humans",
|
5 | "license": "MIT",
|
6 | "repository": "sindresorhus/ow",
|
7 | "funding": "https://github.com/sponsors/sindresorhus",
|
8 | "author": {
|
9 | "name": "Sindre Sorhus",
|
10 | "email": "sindresorhus@gmail.com",
|
11 | "url": "https://sindresorhus.com"
|
12 | },
|
13 | "main": "dist/index.js",
|
14 | "engines": {
|
15 | "node": ">=12"
|
16 | },
|
17 | "scripts": {
|
18 | "test": "xo && nyc ava",
|
19 | "docs": "typedoc source/index.ts",
|
20 | "build": "del-cli dist && tsc",
|
21 | "prepare": "npm run build",
|
22 | "postpublish": "npm run docs && gh-pages --dist docs --no-history --message \"Deploy documentation\"",
|
23 | "example": "npm run build && node example.js"
|
24 | },
|
25 | "files": [
|
26 | "dist",
|
27 | "dev-only.js"
|
28 | ],
|
29 | "keywords": [
|
30 | "type",
|
31 | "types",
|
32 | "check",
|
33 | "checking",
|
34 | "guard",
|
35 | "guards",
|
36 | "assert",
|
37 | "assertion",
|
38 | "predicate",
|
39 | "predicates",
|
40 | "is",
|
41 | "validate",
|
42 | "validation",
|
43 | "utility",
|
44 | "util",
|
45 | "typeof",
|
46 | "instanceof",
|
47 | "object"
|
48 | ],
|
49 | "dependencies": {
|
50 | "@sindresorhus/is": "^4.0.1",
|
51 | "callsites": "^3.1.0",
|
52 | "dot-prop": "^6.0.1",
|
53 | "lodash.isequal": "^4.5.0",
|
54 | "type-fest": "^1.2.1",
|
55 | "vali-date": "^1.0.0"
|
56 | },
|
57 | "devDependencies": {
|
58 | "@sindresorhus/tsconfig": "^0.8.0",
|
59 | "@types/lodash.isequal": "^4.5.5",
|
60 | "@types/node": "^15.12.4",
|
61 | "@types/vali-date": "^1.0.0",
|
62 | "ava": "^2.4.0",
|
63 | "del-cli": "^4.0.0",
|
64 | "expect-type": "^0.11.0",
|
65 | "gh-pages": "^3.2.3",
|
66 | "nyc": "^15.1.0",
|
67 | "ts-node": "^10.0.0",
|
68 | "typescript": "^4.3.4",
|
69 | "xo": "^0.38.2"
|
70 | },
|
71 | "browser": {
|
72 | "./dist/utils/infer-label.js": "./dist/utils/infer-label.browser.js"
|
73 | },
|
74 | "types": "dist",
|
75 | "sideEffects": false,
|
76 | "xo": {
|
77 | "parserOptions": {
|
78 | "project": "./tsconfig.xo.json"
|
79 | },
|
80 | "ignores": [
|
81 | "example.js",
|
82 | "dev-only.js",
|
83 | "source/utils/infer-label.browser.ts"
|
84 | ],
|
85 | "rules": {
|
86 | "no-useless-return": "off",
|
87 | "ava/no-ignored-test-files": "off",
|
88 | "@typescript-eslint/explicit-function-return-type": "error",
|
89 | "@typescript-eslint/ban-types": "off",
|
90 | "@typescript-eslint/no-explicit-any": "off",
|
91 | "@typescript-eslint/no-empty-function": "off",
|
92 | "@typescript-eslint/restrict-template-expressions": "off",
|
93 | "@typescript-eslint/no-unused-vars": "off",
|
94 | "import/no-anonymous-default-export": "off"
|
95 | }
|
96 | },
|
97 | "ava": {
|
98 | "babel": false,
|
99 | "compileEnhancements": false,
|
100 | "files": [
|
101 | "test/**",
|
102 | "!test/fixtures/**"
|
103 | ],
|
104 | "extensions": [
|
105 | "ts"
|
106 | ],
|
107 | "require": [
|
108 | "ts-node/register"
|
109 | ]
|
110 | },
|
111 | "nyc": {
|
112 | "reporter": [
|
113 | "text",
|
114 | "lcov"
|
115 | ]
|
116 | }
|
117 | }
|