meadow-endpoints 4.0.7 → 4.0.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "meadow-endpoints",
3
- "version": "4.0.7",
3
+ "version": "4.0.9",
4
4
  "description": "Automatic API endpoints for Meadow data.",
5
5
  "main": "source/Meadow-Endpoints.js",
6
6
  "scripts": {
@@ -47,33 +47,35 @@
47
47
  },
48
48
  "homepage": "https://github.com/stevenvelozo/meadow-endpoints",
49
49
  "devDependencies": {
50
- "alasql": "^4.0.0",
51
- "browserify": "^17.0.0",
52
- "chai": "4.3.7",
53
- "chance": "^1.1.11",
54
- "gulp": "^4.0.2",
50
+ "alasql": "^4.17.0",
51
+ "better-sqlite3": "^12.6.2",
52
+ "browserify": "^17.0.1",
53
+ "chai": "6.2.2",
54
+ "chance": "^1.1.13",
55
+ "gulp": "^5.0.1",
55
56
  "gulp-babel": "^8.0.0",
56
57
  "gulp-sourcemaps": "^3.0.0",
57
58
  "gulp-terser": "^2.1.0",
58
59
  "gulp-util": "^3.0.8",
59
- "mocha": "10.2.0",
60
- "mysql2": "^3.3.1",
61
- "nyc": "^15.1.0",
62
- "orator-serviceserver-restify": "^1.0.4",
63
- "papaparse": "^5.4.1",
64
- "supertest": "^6.3.3",
65
- "typescript": "^5.9.2",
60
+ "meadow-connection-sqlite": "file:../meadow-connection-sqlite",
61
+ "mocha": "11.7.5",
62
+ "mysql2": "^3.16.3",
63
+ "nyc": "^17.1.0",
64
+ "orator-serviceserver-restify": "^2.0.5",
65
+ "papaparse": "^5.5.3",
66
+ "supertest": "^7.2.2",
67
+ "typescript": "^5.9.3",
66
68
  "vinyl-buffer": "^1.0.1",
67
69
  "vinyl-source-stream": "^2.0.0",
68
- "why-is-node-running": "^2.2.2"
70
+ "why-is-node-running": "^3.2.2"
69
71
  },
70
72
  "dependencies": {
73
+ "async": "3.2.6",
74
+ "fable": "^3.1.55",
71
75
  "JSONStream": "^1.3.5",
72
- "async": "3.2.4",
73
- "fable": "^3.0.37",
74
- "meadow": "^2.0.16",
76
+ "meadow": "^2.0.22",
75
77
  "meadow-filter": "^1.0.10",
76
- "orator": "^3.0.11",
77
- "underscore": "^1.13.6"
78
+ "orator": "^5.0.2",
79
+ "underscore": "^1.13.7"
78
80
  }
79
81
  }
@@ -100,7 +100,15 @@ const doUpdate = function(pRecordToModify, pRequest, pRequestState, pResponse, f
100
100
  {
101
101
  if (pError)
102
102
  {
103
- tmpRequestState.Record.Error = pError;
103
+ // Ensure we have a record object to attach the error to
104
+ if (tmpRequestState.Record)
105
+ {
106
+ tmpRequestState.Record.Error = pError;
107
+ }
108
+ else
109
+ {
110
+ tmpRequestState.Record = { Error: pError };
111
+ }
104
112
 
105
113
  tmpRequestState.ParentRequestState.RecordUpdateError = true;
106
114
  tmpRequestState.ParentRequestState.RecordUpdateErrorObject = pError;