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/CONTRIBUTING.md +50 -0
- package/README.md +172 -51
- package/dist/indoctrinate_content_staging/Indoctrinate-Catalog-AppData.json +4548 -0
- package/docs/README.md +326 -0
- package/docs/_sidebar.md +37 -0
- package/docs/crud/README.md +220 -0
- package/docs/crud/count.md +168 -0
- package/docs/crud/create.md +194 -0
- package/docs/crud/delete.md +237 -0
- package/docs/crud/read.md +324 -0
- package/docs/crud/schema.md +349 -0
- package/docs/crud/update.md +203 -0
- package/docs/css/docuserve.css +73 -0
- package/docs/index.html +39 -0
- package/docs/retold-catalog.json +177 -0
- package/docs/retold-keyword-index.json +6720 -0
- package/package.json +21 -19
- package/source/endpoints/update/Meadow-Operation-Update.js +9 -1
- package/test/MeadowEndpoints_basic_tests.js +1586 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meadow-endpoints",
|
|
3
|
-
"version": "4.0.
|
|
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.
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
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
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
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": "^
|
|
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
|
-
"
|
|
73
|
-
"fable": "^3.0.37",
|
|
74
|
-
"meadow": "^2.0.16",
|
|
76
|
+
"meadow": "^2.0.22",
|
|
75
77
|
"meadow-filter": "^1.0.10",
|
|
76
|
-
"orator": "^
|
|
77
|
-
"underscore": "^1.13.
|
|
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
|
-
|
|
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;
|