@multiplayer-app/session-recorder-node 1.3.36 → 2.0.17-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,226 @@
1
+ import js from '@eslint/js'
2
+ import globals from 'globals'
3
+ import tseslint from '@typescript-eslint/eslint-plugin'
4
+ import tsparser from '@typescript-eslint/parser'
5
+
6
+ export default [
7
+ js.configs.recommended,
8
+ {
9
+ ignores: [
10
+ 'node_modules/**',
11
+ 'dist/**',
12
+ 'build/**',
13
+ 'coverage/**',
14
+ '*.min.js',
15
+ '*.bundle.js',
16
+ ],
17
+ },
18
+ {
19
+ files: ['**/*.ts', '**/*.tsx'],
20
+ languageOptions: {
21
+ parser: tsparser,
22
+ parserOptions: {
23
+ ecmaVersion: 'latest',
24
+ sourceType: 'module',
25
+ },
26
+ globals: {
27
+ ...globals.browser,
28
+ // Browser globals
29
+ window: 'readonly',
30
+ document: 'readonly',
31
+ navigator: 'readonly',
32
+ localStorage: 'readonly',
33
+ sessionStorage: 'readonly',
34
+ console: 'readonly',
35
+ setTimeout: 'readonly',
36
+ clearTimeout: 'readonly',
37
+ setInterval: 'readonly',
38
+ clearInterval: 'readonly',
39
+ requestAnimationFrame: 'readonly',
40
+ cancelAnimationFrame: 'readonly',
41
+ fetch: 'readonly',
42
+ Headers: 'readonly',
43
+ HeadersInit: 'readonly',
44
+ Request: 'readonly',
45
+ RequestInfo: 'readonly',
46
+ Response: 'readonly',
47
+ FormData: 'readonly',
48
+ File: 'readonly',
49
+ Blob: 'readonly',
50
+ URL: 'readonly',
51
+ URLSearchParams: 'readonly',
52
+ AbortController: 'readonly',
53
+ AbortSignal: 'readonly',
54
+ ReadableStream: 'readonly',
55
+ WritableStream: 'readonly',
56
+ TransformStream: 'readonly',
57
+ TextEncoder: 'readonly',
58
+ TextDecoder: 'readonly',
59
+ HTMLElement: 'readonly',
60
+ HTMLButtonElement: 'readonly',
61
+ HTMLInputElement: 'readonly',
62
+ HTMLTextAreaElement: 'readonly',
63
+ HTMLAnchorElement: 'readonly',
64
+ XMLHttpRequest: 'readonly',
65
+ XMLHttpRequestBodyInit: 'readonly',
66
+ MouseEvent: 'readonly',
67
+ InputEvent: 'readonly',
68
+ MessageEvent: 'readonly',
69
+ EventListener: 'readonly',
70
+ MutationObserver: 'readonly',
71
+ NodeJS: 'readonly',
72
+ Window: 'readonly',
73
+ Document: 'readonly',
74
+ IDBDatabase: 'readonly',
75
+ indexedDB: 'readonly',
76
+ // Node.js globals
77
+ process: 'readonly',
78
+ Buffer: 'readonly',
79
+ __dirname: 'readonly',
80
+ __filename: 'readonly',
81
+ global: 'readonly',
82
+ module: 'readonly',
83
+ require: 'readonly',
84
+ exports: 'readonly',
85
+ },
86
+ },
87
+ plugins: {
88
+ '@typescript-eslint': tseslint,
89
+ },
90
+ rules: {
91
+ // TypeScript specific rules
92
+ 'no-namespace': 'off',
93
+ 'no-useless-escape': 'off',
94
+ 'no-self-assign': 'off',
95
+ 'no-useless-catch': 'off',
96
+ 'prefer-namespace-keyword': 'off',
97
+ 'no-empty-function': 'off',
98
+ 'no-unused-vars': 'off',
99
+ 'no-explicit-any': 'off',
100
+ 'ban-types': 'off',
101
+ 'object-curly-spacing': ['error', 'always'],
102
+ 'space-before-blocks': 'error',
103
+ 'keyword-spacing': 'error',
104
+
105
+ // General rules
106
+ 'prefer-const': 'error',
107
+ 'block-spacing': ['error', 'always'],
108
+ 'keyword-spacing': [
109
+ 'error',
110
+ {
111
+ before: true,
112
+ after: true,
113
+ },
114
+ ],
115
+ 'indent': ['error', 2, { SwitchCase: 1 }],
116
+ 'linebreak-style': ['error', 'unix'],
117
+ 'quotes': ['error', 'single'],
118
+ 'semi': ['error', 'never'],
119
+ 'comma-dangle': ['error', 'always-multiline'],
120
+ 'no-console': 'warn',
121
+ 'object-curly-spacing': ['error', 'always'],
122
+ 'space-in-parens': ['error', 'never'],
123
+ 'array-bracket-spacing': ['error', 'never'],
124
+ 'no-trailing-spaces': 'error',
125
+ 'no-multi-spaces': 'error',
126
+ 'no-lonely-if': 'error',
127
+ 'key-spacing': 'error',
128
+ 'no-useless-escape': 'error',
129
+ 'no-self-assign': 'error',
130
+ },
131
+ },
132
+ {
133
+ files: ['**/*.js', '**/*.mjs'],
134
+ languageOptions: {
135
+ ecmaVersion: 'latest',
136
+ sourceType: 'module',
137
+ globals: {
138
+ // Browser globals
139
+ window: 'readonly',
140
+ document: 'readonly',
141
+ navigator: 'readonly',
142
+ localStorage: 'readonly',
143
+ sessionStorage: 'readonly',
144
+ console: 'readonly',
145
+ setTimeout: 'readonly',
146
+ clearTimeout: 'readonly',
147
+ setInterval: 'readonly',
148
+ clearInterval: 'readonly',
149
+ requestAnimationFrame: 'readonly',
150
+ cancelAnimationFrame: 'readonly',
151
+ fetch: 'readonly',
152
+ Headers: 'readonly',
153
+ HeadersInit: 'readonly',
154
+ Request: 'readonly',
155
+ RequestInfo: 'readonly',
156
+ Response: 'readonly',
157
+ FormData: 'readonly',
158
+ File: 'readonly',
159
+ Blob: 'readonly',
160
+ URL: 'readonly',
161
+ URLSearchParams: 'readonly',
162
+ AbortController: 'readonly',
163
+ AbortSignal: 'readonly',
164
+ ReadableStream: 'readonly',
165
+ WritableStream: 'readonly',
166
+ TransformStream: 'readonly',
167
+ TextEncoder: 'readonly',
168
+ TextDecoder: 'readonly',
169
+ HTMLElement: 'readonly',
170
+ HTMLButtonElement: 'readonly',
171
+ HTMLInputElement: 'readonly',
172
+ HTMLTextAreaElement: 'readonly',
173
+ HTMLAnchorElement: 'readonly',
174
+ XMLHttpRequest: 'readonly',
175
+ XMLHttpRequestBodyInit: 'readonly',
176
+ MouseEvent: 'readonly',
177
+ InputEvent: 'readonly',
178
+ MessageEvent: 'readonly',
179
+ EventListener: 'readonly',
180
+ MutationObserver: 'readonly',
181
+ NodeJS: 'readonly',
182
+ Window: 'readonly',
183
+ Document: 'readonly',
184
+ IDBDatabase: 'readonly',
185
+ indexedDB: 'readonly',
186
+ // Node.js globals
187
+ process: 'readonly',
188
+ Buffer: 'readonly',
189
+ __dirname: 'readonly',
190
+ __filename: 'readonly',
191
+ global: 'readonly',
192
+ module: 'readonly',
193
+ require: 'readonly',
194
+ exports: 'readonly',
195
+ },
196
+ },
197
+ rules: {
198
+ 'no-useless-escape': 'off',
199
+ 'no-self-assign': 'off',
200
+ 'prefer-const': 'error',
201
+ 'block-spacing': ['error', 'always'],
202
+ 'keyword-spacing': [
203
+ 'error',
204
+ {
205
+ before: true,
206
+ after: true,
207
+ },
208
+ ],
209
+ 'indent': ['error', 2, { SwitchCase: 1 }],
210
+ 'linebreak-style': ['error', 'unix'],
211
+ 'quotes': ['error', 'single'],
212
+ 'semi': ['error', 'never'],
213
+ 'comma-dangle': ['error', 'always-multiline'],
214
+ 'no-console': 'warn',
215
+ 'object-curly-spacing': ['error', 'always'],
216
+ 'space-in-parens': ['error', 'never'],
217
+ 'array-bracket-spacing': ['error', 'never'],
218
+ 'no-trailing-spaces': 'error',
219
+ 'no-multi-spaces': 'error',
220
+ 'no-lonely-if': 'error',
221
+ 'key-spacing': 'error',
222
+ 'no-useless-escape': 'error',
223
+ 'no-self-assign': 'error',
224
+ },
225
+ },
226
+ ]
@@ -30,7 +30,7 @@
30
30
  "lint": "eslint src/**/*.ts --config ../../.eslintrc"
31
31
  },
32
32
  "dependencies": {
33
- "@multiplayer-app/session-recorder-common": "1.3.36",
33
+ "@multiplayer-app/session-recorder-common": "1.3.37",
34
34
  "@opentelemetry/api": "1.9.0",
35
35
  "@opentelemetry/api-logs": "0.203.0",
36
36
  "@opentelemetry/auto-instrumentations-node": "0.62.1",
@@ -49,7 +49,7 @@
49
49
  "@types/jest": "29.5.4",
50
50
  "@types/node": "20.5.7",
51
51
  "@types/restify-errors": "4.3.5",
52
- "eslint": "8.48.0",
52
+ "eslint": "10.1.0",
53
53
  "ts-node": "10.9.1",
54
54
  "typescript": "5.7.3"
55
55
  }
@@ -20,6 +20,9 @@
20
20
  "resolveJsonModule": true,
21
21
  "skipLibCheck": true,
22
22
  "sourceMap": true,
23
+ "types": [
24
+ "node"
25
+ ],
23
26
  "target": "ES2018",
24
27
  "downlevelIteration": true,
25
28
  "strict": true,
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "author": "Multiplayer",
19
19
  "dependencies": {
20
- "@multiplayer-app/session-recorder-node": "1.3.36",
20
+ "@multiplayer-app/session-recorder-node": "1.3.37",
21
21
  "@opentelemetry/api": "1.9.0",
22
22
  "@opentelemetry/api-logs": "0.203.0",
23
23
  "@opentelemetry/auto-instrumentations-node": "0.62.1",
@@ -40,7 +40,7 @@
40
40
  "@types/express": "4.17.17",
41
41
  "@types/jest": "29.5.4",
42
42
  "@types/node": "20.5.7",
43
- "eslint": "8.48.0",
43
+ "eslint": "10.1.0",
44
44
  "nodemon": "3.1.9",
45
45
  "ts-node": "10.9.1",
46
46
  "typescript": "5.7.3"
@@ -20,6 +20,9 @@
20
20
  "resolveJsonModule": true,
21
21
  "skipLibCheck": true,
22
22
  "sourceMap": true,
23
+ "types": [
24
+ "node"
25
+ ],
23
26
  "target": "ES2018",
24
27
  "downlevelIteration": true,
25
28
  "strict": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplayer-app/session-recorder-node",
3
- "version": "1.3.36",
3
+ "version": "2.0.17-alpha.10",
4
4
  "description": "Multiplayer Fullstack Session Recorder for Node.js",
5
5
  "author": {
6
6
  "name": "Multiplayer Software, Inc.",
@@ -29,14 +29,14 @@
29
29
  "fullstack session recorder"
30
30
  ],
31
31
  "scripts": {
32
- "lint": "eslint src/**/*.ts",
32
+ "lint": "eslint 'src/**/*.ts' --config eslint.config.js",
33
33
  "preversion": "npm run lint",
34
34
  "postversion:skip": "git push && git push --tags",
35
35
  "build": "rm -rf dist tsconfig.tsbuildinfo && tsc --build tsconfig.json",
36
36
  "prepublishOnly": "npm run build"
37
37
  },
38
38
  "dependencies": {
39
- "@multiplayer-app/session-recorder-common": "1.3.36",
39
+ "@multiplayer-app/session-recorder-common": "2.0.17-alpha.10",
40
40
  "@opentelemetry/api": "^1.9.0",
41
41
  "@opentelemetry/core": "^2.0.1",
42
42
  "@opentelemetry/otlp-exporter-base": "^0.203.0",
package/tsconfig.json CHANGED
@@ -21,6 +21,9 @@
21
21
  "resolveJsonModule": true,
22
22
  "skipLibCheck": true,
23
23
  "sourceMap": true,
24
+ "types": [
25
+ "node"
26
+ ],
24
27
  "target": "ES2018",
25
28
  "downlevelIteration": true,
26
29
  "strict": true,