@openneuro/server 4.29.5-alpha.0 → 4.29.6

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.29.5-alpha.0",
3
+ "version": "4.29.6",
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.29.5-alpha.0",
24
+ "@openneuro/search": "^4.29.6",
25
25
  "@sentry/node": "^8.25.0",
26
26
  "@sentry/profiling-node": "^8.25.0",
27
27
  "base64url": "^3.0.0",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "f328970660a3e9f9121a71f17064539f6e844135"
88
+ "gitHead": "dc3b42368288fc820ea33e09d809d8249bc73a9c"
89
89
  }
@@ -36,7 +36,6 @@ export const snapshotValidation = async (snapshot) => {
36
36
  datasetId,
37
37
  })
38
38
  .exec()
39
- .then((data) => (data ? data.issues : null))
40
39
  }
41
40
 
42
41
  /**
@@ -1,6 +1,7 @@
1
1
  import passport from "passport"
2
2
  import User from "../../models/user"
3
3
  import { parsedJwtFromRequest } from "./jwt"
4
+ import * as Sentry from "@sentry/node"
4
5
 
5
6
  export const requestAuth = passport.authenticate("orcid", {
6
7
  session: false,
@@ -9,6 +10,7 @@ export const requestAuth = passport.authenticate("orcid", {
9
10
  export const authCallback = (req, res, next) =>
10
11
  passport.authenticate("orcid", (err, user) => {
11
12
  if (err) {
13
+ Sentry.captureException(err)
12
14
  if (err.type) {
13
15
  return res.redirect(`/error/orcid/${err.type}`)
14
16
  } else {
package/src/libs/orcid.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  import request from "request"
3
3
  import xmldoc from "xmldoc"
4
4
  import config from "../config"
5
+ import * as Sentry from "@sentry/node"
5
6
 
6
7
  export default {
7
8
  getProfile(token) {
@@ -20,6 +21,7 @@ export default {
20
21
  },
21
22
  (err, res) => {
22
23
  if (err) {
24
+ Sentry.captureException(err)
23
25
  reject({
24
26
  message:
25
27
  "An unexpected ORCID login failure occurred, please try again later.",