Update to NPM version

This commit is contained in:
Lucas Patenaude
2024-04-11 04:23:19 -06:00
parent 886d197fa7
commit 6d6ef4f257
8225 changed files with 863748 additions and 1 deletions

18
ProjectSourceCode/node_modules/loupe/lib/class.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import getFuncName from 'get-func-name'
import inspectObject from './object'
const toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false
export default function inspectClass(value, options) {
let name = ''
if (toStringTag && toStringTag in value) {
name = value[toStringTag]
}
name = name || getFuncName(value.constructor)
// Babel transforms anonymous classes to the name `_class`
if (!name || name === '_class') {
name = '<Anonymous Class>'
}
options.truncate -= name.length
return `${name}${inspectObject(value, options)}`
}