jxp 2.12.2 → 2.12.4

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.
Files changed (2) hide show
  1. package/bin/setup.js +4 -3
  2. package/package.json +15 -12
package/bin/setup.js CHANGED
@@ -70,7 +70,7 @@ async function main() {
70
70
  "start": "node bin/server.js"
71
71
  },
72
72
  "dependencies": {
73
- "jxp": "^2.0.1-4"
73
+ "jxp": "^2.12.3"
74
74
  },
75
75
  "author": app_author,
76
76
  "license": app_license
@@ -81,8 +81,9 @@ async function main() {
81
81
  await mkdir(path.join(destination_path, "models"));
82
82
  await mkdir(path.join(destination_path, "config"));
83
83
  await mkdir(path.join(destination_path, "logs"));
84
+ await mkdir(path.join(destination_path, "libs"));
84
85
  await cp_replace("../config_sample.json", path.join(destination_path, "config/default.json"), opts, "{", "}");
85
- await cp_replace("./server.js", path.join(destination_path, "bin/server.js"), { "../libs/jxp": "jxp" });
86
+ await cp_replace("./server.js", path.join(destination_path, "bin/server.js"), { "../libs/jxp": "jxp/libs/jxp", "../libs/connection_string": "jxp/libs/connection_string" });
86
87
  for (let model of models) {
87
88
  await cp("../models/" + model + "_model.js", path.join(destination_path, "models/" + model + "_model.js"));
88
89
  }
@@ -149,7 +150,7 @@ async function main() {
149
150
  * Copy from to replacing text as we go
150
151
  *
151
152
  */
152
- function cp_replace(from, to, opts, startEnclosure, endEnclosure) {
153
+ function cp_replace(from, to, opts, startEnclosure = "", endEnclosure = "") {
153
154
  startEnclosure = startEnclosure || "";
154
155
  endEnclosure = endEnclosure || "";
155
156
  from = path.join(__dirname, from);
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "jxp",
3
3
  "description:": "An opinionated RESTful API library based on Mongoose and Restify. Make an API by just writing Mongoose models.",
4
- "version": "2.12.2",
4
+ "version": "2.12.4",
5
5
  "private": false,
6
6
  "main": "libs/jxp.js",
7
7
  "scripts": {
8
8
  "start": "node bin/server.js",
9
9
  "test": "mocha --timeout 1000 -b --exit",
10
- "wstest": "mocha test/wstest"
10
+ "wstest": "mocha test/wstest",
11
+ "setup": "node bin/setup.js"
11
12
  },
12
13
  "bin": {
14
+ "jxp": "bin/setup.js",
13
15
  "jxp-setup": "bin/setup.js",
14
16
  "jxp-add-admin": "bin/init_db.js"
15
17
  },
@@ -27,34 +29,35 @@
27
29
  "url": "https://github.com/j-norwood-young/jexpress-2/issues"
28
30
  },
29
31
  "dependencies": {
30
- "axios": "^1.2.1",
32
+ "axios": "^1.2.3",
31
33
  "bcryptjs": "^2.4.3",
32
- "commander": "^9.4.1",
33
- "config": "^3.3.8",
34
+ "commander": "^10.0.0",
35
+ "config": "^3.3.9",
34
36
  "dotenv": "^16.0.3",
35
- "glob": "8.0.3",
37
+ "glob": "8.1.0",
36
38
  "js-yaml": "4.1.0",
37
39
  "json2csv": "^5.0.7",
38
- "jsonwebtoken": "^8.5.1",
40
+ "jsonwebtoken": "^9.0.0",
39
41
  "jstransformer-markdown-it": "^3.0.0",
40
42
  "jxp-helper": "^1.4.0",
41
- "mkdirp": "^1.0.4",
42
- "mongoose": "6.8.0",
43
+ "mkdirp": "^2.1.3",
44
+ "moment": "^2.29.4",
45
+ "mongoose": "6.8.4",
43
46
  "mongoose-friendly": "^0.1.4",
44
47
  "morgan": "^1.10.0",
45
- "nodemailer": "^6.8.0",
48
+ "nodemailer": "^6.9.0",
46
49
  "nodemailer-smtp-transport": "^2.7.4",
47
50
  "path": "^0.12.7",
48
51
  "pug": "^3.0.2",
49
52
  "querystring": "^0.2.1",
50
53
  "rand-token": "^1.0.1",
51
54
  "readline-sync": "^1.4.10",
52
- "restify": "^10.0.0",
55
+ "restify": "^11.0.0",
53
56
  "restify-cors-middleware2": "^2.2.0",
54
57
  "restify-errors": "^8.0.2",
55
58
  "traverse": "^0.6.7",
56
59
  "underscore": "^1.13.6",
57
- "ws": "^8.11.0"
60
+ "ws": "^8.12.0"
58
61
  },
59
62
  "devDependencies": {
60
63
  "chai": "^4.3.7",