File Explorer

/var/runtime/node_modules/@aws-sdk/node_modules/get-proto

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

2 dirs
13 files
index.js821 B · 28 lines
'use strict'; var reflectGetProto = require('./Reflect.getPrototypeOf');var originalGetProto = require('./Object.getPrototypeOf'); var getDunderProto = require('dunder-proto/get'); /** @type {import('.')} */module.exports = reflectGetProto	? function getProto(O) {		// @ts-expect-error TS can't narrow inside a closure, for some reason		return reflectGetProto(O);	}	: originalGetProto		? function getProto(O) {			if (!O || (typeof O !== 'object' && typeof O !== 'function')) {				throw new TypeError('getProto: not an object');			}			// @ts-expect-error TS can't narrow inside a closure, for some reason			return originalGetProto(O);		}		: getDunderProto			? function getProto(O) {				// @ts-expect-error TS can't narrow inside a closure, for some reason				return getDunderProto(O);			}			: null;