The deprecation checks are using process, which is only available in a Node.js context.
|
const shouldWarn = (code) => !(process.noDeprecation || warned.has(code)) |
|
const warn = (code, what, instead, fn) => { |
|
warned.add(code) |
|
process.emitWarning(`The ${what} is deprecated. Please use ${instead} instead.`, 'DeprecationWarning', code, fn) |
|
} |
Uncaught (in promise) TypeError: process.emitWarning is not a function
The deprecation checks are using
process, which is only available in a Node.js context.node-lru-cache/index.js
Lines 27 to 31 in 2be1d24