Skip to content

Commit 1bb6703

Browse files
committed
deps: lru-cache@11.3.3
(cherry picked from commit 413e0a0)
1 parent 37059e4 commit 1bb6703

11 files changed

Lines changed: 2214 additions & 274 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
exports.tracing = exports.metrics = void 0;
4+
// simple node version that imports from node builtin
5+
// this gets compiled to a require() commonjs-style override,
6+
// not using top level await on a conditional dynamic import
7+
const node_diagnostics_channel_1 = require("node:diagnostics_channel");
8+
exports.metrics = (0, node_diagnostics_channel_1.channel)('lru-cache:metrics');
9+
exports.tracing = (0, node_diagnostics_channel_1.tracingChannel)('lru-cache');
10+
//# sourceMappingURL=diagnostics-channel.js.map

node_modules/lru-cache/dist/commonjs/index.js

Lines changed: 227 additions & 130 deletions
Large diffs are not rendered by default.

node_modules/lru-cache/dist/commonjs/index.min.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* no-op polyfills for non-node environments. tries to load the actual
3+
* diagnostics_channel module on platforms that support it, but fails
4+
* gracefully if not found. This means that the first tick of metrics
5+
* and tracing will be missed, but that probably doesn't matter much.
6+
*/
7+
// conditionally import from diagnostic_channel, fall back to dummyfill
8+
// all we actually have to mock is the hasSubscribers, since we alwasy check
9+
/* v8 ignore next */
10+
const dummy = { hasSubscribers: false };
11+
export let metrics = dummy;
12+
export let tracing = dummy;
13+
import('node:diagnostics_channel')
14+
.then(dc => {
15+
metrics = dc.channel('lru-cache:metrics');
16+
tracing = dc.tracingChannel('lru-cache');
17+
})
18+
.catch(() => { });
19+
//# sourceMappingURL=diagnostics-channel-esm.mjs.map

0 commit comments

Comments
 (0)