-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
129 lines (129 loc) · 3.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "casbin-pg-adapter",
"version": "1.4.0",
"description": "PostgreSQL native adapter for Node-Casbin with advanced filter capability and improved performance.",
"author": "Touchify <[email protected]>",
"license": "MIT",
"main": "index.js",
"types": "index.d.ts",
"homepage": "https://github.com/touchifyapp/casbin-pg-adapter#readme",
"bugs": {
"url": "https://github.com/touchifyapp/casbin-pg-adapter/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/touchifyapp/casbin-pg-adapter.git"
},
"files": [
"*.d.ts",
"*.js",
"lib/**/*.d.ts",
"lib/**/*.js",
"migrations/**/*.js"
],
"scripts": {
"clean": "rimraf *.{js,d.ts} {lib,migrations}/**/*.{js,d.ts}",
"build": "npm run clean && npm run lint && npm run build:ts",
"build:ts": "tsc -p .",
"build:migrations": "tsc migrations/*.ts",
"test": "npm run clean && npm run lint && npm run build:migrations && npm run test:jest",
"test:only": "npm run lint && npm run test:jest",
"test:coverage": "npm run test -- -- --coverage",
"test:jest": "jest --runInBand",
"test:startdb": "docker run --name casbin-pg-adapter-db -e POSTGRES_USER=casbin -e POSTGRES_PASSWORD=casbin -e POSTGRES_DB=casbin -p 5432:5432 -d postgres:11-alpine",
"test:cleandb": "docker rm casbin-pg-adapter-db --force || echo No DB running",
"test:ci": "npm run test:coverage -- --ci",
"lint": "npm run lint:ts",
"lint:ts": "eslint --ext .ts *.ts {lib,migrations}/**/*.ts",
"migrate": "node-pg-migrate",
"preversion": "npm run lint",
"postversion": "git push && git push --tags",
"prepublishOnly": "npm run test && npm run build"
},
"dependencies": {
"casbin": "^5.0.4",
"node-pg-migrate": "^5.1.0",
"pg": "^8.2.1"
},
"devDependencies": {
"@types/jest": "^25.2.3",
"@types/node": "^12.0.0",
"@types/pg": "^7.14.3",
"@typescript-eslint/eslint-plugin": "^3.1.0",
"@typescript-eslint/parser": "^3.1.0",
"eslint": "^7.2.0",
"jest": "^26.0.1",
"rimraf": "^3.0.2",
"ts-jest": "^26.1.0",
"typescript": "^3.9.5"
},
"keywords": [
"casbin",
"node-casbin",
"adapter",
"postgres",
"pg",
"node-pg",
"access-control",
"authorization",
"auth",
"authz",
"acl",
"rbac",
"abac"
],
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/tests/**/*.spec.ts"
],
"collectCoverageFrom": [
"*.ts",
"lib/**/*.ts"
]
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json",
"./tests/tsconfig.json"
]
},
"env": {
"node": true
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": false,
"typedefs": false
}
],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"@typescript-eslint/array-type": [
"error",
{
"default": "array-simple",
"readonly": "array-simple"
}
]
}
}
}