@openneuro/server 4.1.2 → 4.2.3

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.1.2",
3
+ "version": "4.2.3",
4
4
  "description": "Core service for the OpenNeuro platform.",
5
5
  "license": "MIT",
6
6
  "main": "src/server.js",
@@ -16,13 +16,13 @@
16
16
  },
17
17
  "author": "Squishymedia",
18
18
  "dependencies": {
19
- "@apollo/client": "3.3.14",
20
- "@elastic/elasticsearch": "^7.5.1",
19
+ "@apollo/client": "3.4.17",
20
+ "@elastic/elasticsearch": "7.15.0",
21
21
  "@passport-next/passport-google-oauth2": "^1.0.0",
22
22
  "@sentry/node": "^4.5.3",
23
- "apollo-server": "2.21.0",
23
+ "apollo-server": "2.25.3",
24
24
  "apollo-server-cache-redis": "1.4.0",
25
- "apollo-server-express": "2.21.0",
25
+ "apollo-server-express": "2.25.3",
26
26
  "async": "^2.4.1",
27
27
  "base64url": "^3.0.0",
28
28
  "body-parser": "^1.18.2",
@@ -104,5 +104,5 @@
104
104
  "publishConfig": {
105
105
  "access": "public"
106
106
  },
107
- "gitHead": "e1afd2be2442b57d843fa1e636ab7a4d03e7a5a7"
107
+ "gitHead": "423d7a2ba339e178f009e894de5e2a0f18b7d46d"
108
108
  }
package/src/routes.js CHANGED
@@ -6,10 +6,6 @@ import * as datalad from './handlers/datalad'
6
6
  import * as comments from './handlers/comments'
7
7
  import { clientConfig } from './handlers/config.js'
8
8
  import * as subscriptions from './handlers/subscriptions'
9
- import {
10
- setFlagRedesign2021,
11
- unsetFlagRedesign2021,
12
- } from './handlers/feature-flags'
13
9
  import verifyUser from './libs/authentication/verifyUser.js'
14
10
  import * as google from './libs/authentication/google.js'
15
11
  import * as orcid from './libs/authentication/orcid.js'
@@ -169,17 +165,6 @@ const routes = [
169
165
  url: '/sitemap',
170
166
  handler: sitemapHandler,
171
167
  },
172
- // feature flag setters and unsetters
173
- {
174
- method: 'get',
175
- url: '/feature/redesign-2021/enable',
176
- handler: unsetFlagRedesign2021,
177
- },
178
- {
179
- method: 'get',
180
- url: '/feature/redesign-2021/disable',
181
- handler: setFlagRedesign2021,
182
- },
183
168
  ]
184
169
 
185
170
  // initialize routes -------------------------------
@@ -1,12 +0,0 @@
1
- const feature = {
2
- REDESIGN_2021: 'redesign-classic',
3
- }
4
-
5
- export const setFlagRedesign2021 = (req, res) => {
6
- res.cookie(feature.REDESIGN_2021, true).redirect('/')
7
- }
8
-
9
- export const unsetFlagRedesign2021 = (req, res) => {
10
- res.clearCookie(feature.REDESIGN_2021)
11
- res.redirect('/')
12
- }