json-server 0.17.4 → 1.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,102 +1,52 @@
1
1
  {
2
2
  "name": "json-server",
3
- "version": "0.17.4",
4
- "description": "Get a full fake REST API with zero coding in less than 30 seconds",
5
- "main": "./lib/server/index.js",
6
- "bin": "./lib/cli/bin.js",
3
+ "version": "1.0.0-alpha.3",
4
+ "description": "",
5
+ "type": "module",
6
+ "exports": "./lib/index.js",
7
+ "types": "lib",
7
8
  "files": [
8
9
  "lib",
9
10
  "public"
10
11
  ],
11
12
  "scripts": {
13
+ "css": "tailwindcss -i ./views/input.css -o ./public/output.css",
14
+ "watch-ts": "tsx watch src/bin.ts db.json",
15
+ "watch-css": "npm run css -- --watch",
16
+ "dev": "concurrently npm:watch-*",
17
+ "build": "rm -rf lib && tsc && npm run css",
18
+ "test": "node --import tsx/esm --test src/**/*.test.ts",
19
+ "lint": "eslint src --ext .ts --ignore-path .gitignore",
12
20
  "prepare": "husky install",
13
- "test": "npm run build && cross-env NODE_ENV=test jest",
14
- "start": "babel-node -- src/cli/bin db.json -r routes.json",
15
- "lint": "eslint . --ignore-path .gitignore",
16
- "fix": "npm run lint -- --fix",
17
- "build": "babel src -d lib",
18
- "toc": "markdown-toc -i README.md",
19
- "postversion": "git push && git push --tags",
20
- "prepublish": "npm test && npm run build"
21
- },
22
- "dependencies": {
23
- "body-parser": "^1.19.0",
24
- "chalk": "^4.1.2",
25
- "compression": "^1.7.4",
26
- "connect-pause": "^0.1.1",
27
- "cors": "^2.8.5",
28
- "errorhandler": "^1.5.1",
29
- "express": "^4.17.1",
30
- "express-urlrewrite": "^1.4.0",
31
- "json-parse-helpfulerror": "^1.0.3",
32
- "lodash": "^4.17.21",
33
- "lodash-id": "^0.14.1",
34
- "lowdb": "^1.0.0",
35
- "method-override": "^3.0.0",
36
- "morgan": "^1.10.0",
37
- "nanoid": "^3.1.23",
38
- "please-upgrade-node": "^3.2.0",
39
- "pluralize": "^8.0.0",
40
- "server-destroy": "^1.0.1",
41
- "yargs": "^17.0.1"
21
+ "prepublishOnly": "npm run build"
42
22
  },
23
+ "keywords": [],
24
+ "author": "",
25
+ "license": "SEE LICENSE IN ./LICENSE",
43
26
  "devDependencies": {
44
- "@babel/cli": "^7.12.1",
45
- "@babel/core": "^7.12.3",
46
- "@babel/node": "^7.12.6",
47
- "@babel/preset-env": "^7.12.1",
48
- "cross-env": "^7.0.2",
49
- "eslint": "^7.13.0",
50
- "eslint-config-prettier": "^8.3.0",
51
- "eslint-config-standard": "^16.0.1",
52
- "eslint-plugin-import": "^2.22.1",
53
- "eslint-plugin-node": "^11.1.0",
54
- "eslint-plugin-prettier": "^3.1.4",
55
- "eslint-plugin-promise": "^4.2.1",
56
- "eslint-plugin-standard": "^4.1.0",
57
- "husky": "^6.0.0",
58
- "jest": "^26.6.3",
59
- "markdown-toc": "^1.2.0",
60
- "mkdirp": "^1.0.4",
61
- "npm-run-all": "^4.1.5",
62
- "os-tmpdir": "^2.0.0",
63
- "prettier": "^2.3.2",
64
- "rimraf": "^3.0.2",
65
- "server-ready": "^0.3.1",
66
- "standard": "^17.1.0",
67
- "supertest": "^6.0.1",
68
- "temp-write": "^4.0.0"
27
+ "@sindresorhus/tsconfig": "^5.0.0",
28
+ "@tailwindcss/typography": "^0.5.10",
29
+ "@types/node": "^20.10.0",
30
+ "@typicode/eslint-config": "^1.2.0",
31
+ "concurrently": "^8.2.2",
32
+ "get-port": "^7.0.0",
33
+ "husky": "^8.0.3",
34
+ "tailwindcss": "^3.3.5",
35
+ "tempy": "^3.1.0",
36
+ "tsx": "^4.5.0",
37
+ "type-fest": "^4.8.2",
38
+ "typescript": "^5.3.2"
69
39
  },
70
- "repository": {
71
- "type": "git",
72
- "url": "git://github.com/typicode/json-server.git"
73
- },
74
- "keywords": [
75
- "JSON",
76
- "server",
77
- "fake",
78
- "REST",
79
- "API",
80
- "prototyping",
81
- "mock",
82
- "mocking",
83
- "test",
84
- "testing",
85
- "rest",
86
- "data",
87
- "dummy",
88
- "sandbox"
89
- ],
90
- "author": "Typicode <typicode@gmail.com>",
91
- "license": "MIT",
92
- "bugs": {
93
- "url": "https://github.com/typicode/json-server/issues"
94
- },
95
- "homepage": "https://github.com/typicode/json-server",
96
- "engines": {
97
- "node": ">=12"
98
- },
99
- "jest": {
100
- "testURL": "http://localhost/"
40
+ "dependencies": {
41
+ "@tinyhttp/app": "^2.2.1",
42
+ "chokidar": "^3.5.3",
43
+ "dot-prop": "^8.0.2",
44
+ "eta": "^3.1.1",
45
+ "inflection": "^3.0.0",
46
+ "lowdb": "^6.1.1",
47
+ "milliparsec": "^2.3.0",
48
+ "sirv": "^2.0.3",
49
+ "sort-on": "^6.0.0",
50
+ "zod": "^3.22.4"
101
51
  }
102
52
  }