@openneuro/server 4.25.1-orcid-demo.1 → 4.26.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.25.1-orcid-demo.1",
3
+ "version": "4.26.0",
4
4
  "description": "Core service for the OpenNeuro platform.",
5
5
  "license": "MIT",
6
6
  "main": "src/server.js",
@@ -21,7 +21,7 @@
21
21
  "@elastic/elasticsearch": "8.13.1",
22
22
  "@graphql-tools/schema": "^10.0.0",
23
23
  "@keyv/redis": "^2.7.0",
24
- "@openneuro/search": "^4.25.1-orcid-demo.1",
24
+ "@openneuro/search": "^4.26.0",
25
25
  "@passport-next/passport-google-oauth2": "^1.0.0",
26
26
  "@sentry/node": "^4.5.3",
27
27
  "base64url": "^3.0.0",
@@ -63,7 +63,7 @@
63
63
  "ts-node": "9.1.1",
64
64
  "typescript": "5.1.6",
65
65
  "underscore": "^1.8.3",
66
- "uuid": "^3.0.1",
66
+ "uuid": "10.0.0",
67
67
  "xmldoc": "^1.1.0"
68
68
  },
69
69
  "devDependencies": {
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "5e0c24435dce4a9d3add4b79558e420383c99125"
89
+ "gitHead": "d40901233c20aa7eb55d93667b1e3f5c41734cfc"
90
90
  }
@@ -1,4 +1,4 @@
1
- import uuid from "uuid"
1
+ import { v4 as uuidv4 } from "uuid"
2
2
  import mongoose, { Document } from "mongoose"
3
3
  const { Schema, model } = mongoose
4
4
 
@@ -29,7 +29,7 @@ export interface MetadataDocument extends Document {
29
29
  }
30
30
 
31
31
  const metadataSchema = new Schema({
32
- datasetId: { type: String, default: uuid.v4 }, // OpenNeuro id
32
+ datasetId: { type: String, default: uuidv4 }, // OpenNeuro id
33
33
  datasetName: String,
34
34
  datasetUrl: String, // @id type
35
35
  dataProcessed: Boolean, // 'true' | 'false' | 'user input string'
@@ -1,4 +1,4 @@
1
- import uuid from "uuid"
1
+ import { v4 as uuidv4 } from "uuid"
2
2
  import mongoose, { Document } from "mongoose"
3
3
  const { Schema, model } = mongoose
4
4
 
@@ -10,7 +10,7 @@ export interface ReviewerDocument extends Document {
10
10
  }
11
11
 
12
12
  const reviewerSchema = new Schema({
13
- id: { type: String, required: true, default: uuid.v4 },
13
+ id: { type: String, required: true, default: uuidv4 },
14
14
  datasetId: { type: String, required: true },
15
15
  expiration: {
16
16
  type: Date,
@@ -1,4 +1,4 @@
1
- import uuid from "uuid"
1
+ import { v4 as uuidv4 } from "uuid"
2
2
  import mongoose, { Document } from "mongoose"
3
3
  const { Schema, model } = mongoose
4
4
 
@@ -15,7 +15,7 @@ export interface UploadDocument extends Document {
15
15
  * newFiles excludes files in existing commits, as those are handled by other resolvers
16
16
  */
17
17
  const uploadSchema = new Schema({
18
- id: { type: String, required: true, default: uuid.v4 },
18
+ id: { type: String, required: true, default: uuidv4 },
19
19
  datasetId: { type: String, required: true },
20
20
  estimatedSize: Number,
21
21
  complete: { type: Boolean, default: false, required: true },
@@ -1,4 +1,4 @@
1
- import uuid from "uuid"
1
+ import { v4 as uuidv4 } from "uuid"
2
2
  import mongoose, { Document } from "mongoose"
3
3
  const { Schema, model } = mongoose
4
4
 
@@ -17,7 +17,7 @@ export interface UserDocument extends Document {
17
17
  }
18
18
 
19
19
  const userSchema = new Schema({
20
- id: { type: String, default: uuid.v4 }, // OpenNeuro id
20
+ id: { type: String, default: uuidv4 }, // OpenNeuro id
21
21
  email: String,
22
22
  name: String,
23
23
  provider: String, // Login provider