File Explorer

/var/runtime/node_modules/@aws-sdk/node_modules/axios/lib/helpers

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 /.

callbackify.js417 B · 19 lines
import utils from '../utils.js'; const callbackify = (fn, reducer) => {  return utils.isAsyncFn(fn)    ? function (...args) {        const cb = args.pop();        fn.apply(this, args).then((value) => {          try {            reducer ? cb(null, ...reducer(value)) : cb(null, value);          } catch (err) {            cb(err);          }        }, cb);      }    : fn;}; export default callbackify;