@openneuro/server 4.45.3 → 4.46.0
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": "@openneuro/server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.46.0",
|
|
4
4
|
"description": "Core service for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/server.js",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"author": "Squishymedia",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@apollo/client": "3.13.8",
|
|
19
|
-
"@apollo/server": "4.
|
|
19
|
+
"@apollo/server": "~4.13.0",
|
|
20
20
|
"@apollo/utils.keyvadapter": "3.0.0",
|
|
21
21
|
"@elastic/elasticsearch": "8.13.1",
|
|
22
22
|
"@graphql-tools/schema": "^10.0.0",
|
|
23
23
|
"@keyv/redis": "^4.5.0",
|
|
24
|
-
"@openneuro/search": "^4.
|
|
24
|
+
"@openneuro/search": "^4.46.0",
|
|
25
25
|
"@sentry/node": "^10.37.0",
|
|
26
26
|
"@sentry/profiling-node": "^10.37.0",
|
|
27
27
|
"base64url": "^3.0.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "b40f6f5b597cbb722d09497182059a5157abf110"
|
|
93
93
|
}
|
|
@@ -101,10 +101,10 @@ describe("datalad dataset descriptions", () => {
|
|
|
101
101
|
const repaired = repairDescriptionTypes(description)
|
|
102
102
|
expect(repaired.DatasetType).toEqual("raw")
|
|
103
103
|
})
|
|
104
|
-
it("sets BIDSVersion to '1.
|
|
104
|
+
it("sets BIDSVersion to '1.11.0' if missing", () => {
|
|
105
105
|
const description = {}
|
|
106
106
|
const repaired = repairDescriptionTypes(description)
|
|
107
|
-
expect(repaired.BIDSVersion).toEqual("1.
|
|
107
|
+
expect(repaired.BIDSVersion).toEqual("1.11.0")
|
|
108
108
|
})
|
|
109
109
|
})
|
|
110
110
|
describe("getDescriptionObject()", () => {
|
|
@@ -96,12 +96,16 @@ export const repairDescriptionTypes = (description) => {
|
|
|
96
96
|
}
|
|
97
97
|
// If it's already a string, no change needed.
|
|
98
98
|
}
|
|
99
|
-
// If the field doesn't exist, we don't add it
|
|
99
|
+
// If the field doesn't exist, we don't add it (except Name)
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
// Ensure BIDSVersion is present if missing (common default)
|
|
103
|
-
if (!
|
|
104
|
-
newDescription.BIDSVersion = "1.
|
|
103
|
+
if (!newDescription.BIDSVersion) {
|
|
104
|
+
newDescription.BIDSVersion = "1.11.0"
|
|
105
|
+
}
|
|
106
|
+
// Ensure Name is present if missing
|
|
107
|
+
if (!newDescription.Name) {
|
|
108
|
+
newDescription.Name = "Unnamed Dataset"
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
return newDescription
|
package/src/handlers/datalad.ts
CHANGED