File Explorer

/var/lang/lib/node_modules/npm/node_modules/undici/lib/interceptor

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

redirect.js588 B · 25 lines
'use strict'const RedirectHandler = require('../handler/redirect-handler') module.exports = opts => {  const globalMaxRedirections = opts?.maxRedirections  return dispatch => {    return function redirectInterceptor (opts, handler) {      const { maxRedirections = globalMaxRedirections, ...baseOpts } = opts       if (!maxRedirections) {        return dispatch(opts, handler)      }       const redirectHandler = new RedirectHandler(        dispatch,        maxRedirections,        opts,        handler      )       return dispatch(baseOpts, redirectHandler)    }  }}