-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobals.js
More file actions
40 lines (34 loc) · 762 Bytes
/
globals.js
File metadata and controls
40 lines (34 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const path = require('path');
const fs = require('fs');
const SETTINGS = {
diffExcludedProperties: [
'^__r2',
'^client$',
'^_readableState$',
'^next$',
'^req$',
'^res$',
'^socket$',
'^host$',
'^sessionStore$'
].map(s => new RegExp(s)),
entryPoint: process.cwd() + '/index.js',
views: {
directory: undefined,
extension: undefined
},
attachAsyncProxiesToLatestRequest: false,
ignoreRequests: {
regexes: [],
callbacks: []
}
}
const REQUESTS = new Map();
const FUNCTION_LOCATIONS = new Map();
const SSE = {
heartbeatInterval: null,
backflow: [],
clients: []
}
const VERSION = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'))).version
module.exports = { SETTINGS, REQUESTS, FUNCTION_LOCATIONS, SSE, VERSION }