@oneuptime/common 8.0.5574 → 8.0.5575
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.
- package/Models/DatabaseModels/Index.ts +4 -0
- package/Models/DatabaseModels/StatusPagePrivateUserSession.ts +413 -0
- package/Models/DatabaseModels/UserSession.ts +318 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1762890441920-MigrationName.ts +91 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +2 -0
- package/Server/Services/Index.ts +4 -0
- package/Server/Services/StatusPagePrivateUserSessionService.ts +369 -0
- package/Server/Services/UserSessionService.ts +350 -0
- package/Server/Utils/Cookie.ts +127 -5
- package/Server/Utils/Express.ts +100 -0
- package/Server/Utils/JsonWebToken.ts +8 -1
- package/Types/CookieName.ts +1 -0
- package/Types/JsonWebTokenData.ts +1 -0
- package/Types/Text.ts +15 -0
- package/UI/Utils/API/API.ts +39 -1
- package/Utils/API.ts +74 -5
- package/build/dist/Models/DatabaseModels/Index.js +4 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPagePrivateUserSession.js +456 -0
- package/build/dist/Models/DatabaseModels/StatusPagePrivateUserSession.js.map +1 -0
- package/build/dist/Models/DatabaseModels/UserSession.js +356 -0
- package/build/dist/Models/DatabaseModels/UserSession.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1762890441920-MigrationName.js +38 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1762890441920-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +2 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Services/Index.js +4 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/StatusPagePrivateUserSessionService.js +214 -0
- package/build/dist/Server/Services/StatusPagePrivateUserSessionService.js.map +1 -0
- package/build/dist/Server/Services/UserSessionService.js +202 -0
- package/build/dist/Server/Services/UserSessionService.js.map +1 -0
- package/build/dist/Server/Utils/Cookie.js +74 -7
- package/build/dist/Server/Utils/Cookie.js.map +1 -1
- package/build/dist/Server/Utils/Express.js +62 -0
- package/build/dist/Server/Utils/Express.js.map +1 -1
- package/build/dist/Server/Utils/JsonWebToken.js +8 -2
- package/build/dist/Server/Utils/JsonWebToken.js.map +1 -1
- package/build/dist/Types/CookieName.js +1 -0
- package/build/dist/Types/CookieName.js.map +1 -1
- package/build/dist/Types/Text.js +9 -0
- package/build/dist/Types/Text.js.map +1 -1
- package/build/dist/UI/Utils/API/API.js +27 -0
- package/build/dist/UI/Utils/API/API.js.map +1 -1
- package/build/dist/Utils/API.js +36 -6
- package/build/dist/Utils/API.js.map +1 -1
- package/package.json +146 -146
package/package.json
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
2
|
+
"name": "@oneuptime/common",
|
|
3
|
+
"version": "8.0.5575",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "cd .. && export $(grep -v '^#' config.env | xargs) && cd Common && node node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles",
|
|
8
|
+
"test-file": "cd .. && export $(grep -v '^#' config.env | xargs) && cd Common && node node_modules/.bin/jest --runInBand $1 --detectOpenHandles",
|
|
9
|
+
"coverage": "jest --detectOpenHandles --coverage",
|
|
10
|
+
"compile": "tsc",
|
|
11
|
+
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
|
12
|
+
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
|
13
|
+
"debug:test": "cd .. && export $(grep -v '^#' config.env | xargs) && cd Common && node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles",
|
|
14
|
+
"debug:test-file": "cd .. && export $(grep -v '^#' config.env | xargs) && cd Common && node --inspect node_modules/.bin/jest --runInBand $1 --detectOpenHandles"
|
|
15
|
+
},
|
|
16
|
+
"author": "OneUptime <hello@oneuptime.com> (https://oneuptime.com/)",
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@faker-js/faker": "^8.0.2",
|
|
20
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
21
|
+
"@testing-library/react": "^13.3.0",
|
|
22
|
+
"@testing-library/user-event": "^14.4.3",
|
|
23
|
+
"@types/cookie-parser": "^1.4.4",
|
|
24
|
+
"@types/cors": "^2.8.12",
|
|
25
|
+
"@types/ejs": "^3.1.1",
|
|
26
|
+
"@types/express": "^4.17.13",
|
|
27
|
+
"@types/jest": "^28.1.4",
|
|
28
|
+
"@types/json2csv": "^5.0.3",
|
|
29
|
+
"@types/jsonwebtoken": "^8.5.9",
|
|
30
|
+
"@types/node": "^17.0.45",
|
|
31
|
+
"@types/node-cron": "^3.0.7",
|
|
32
|
+
"@types/nodemailer": "^6.4.7",
|
|
33
|
+
"@types/react": "^18.2.38",
|
|
34
|
+
"@types/react-beautiful-dnd": "^13.1.2",
|
|
35
|
+
"@types/react-big-calendar": "^1.8.5",
|
|
36
|
+
"@types/react-color": "^3.0.6",
|
|
37
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
38
|
+
"@types/react-toggle": "^4.0.3",
|
|
39
|
+
"jest": "^28.1.1",
|
|
40
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
41
|
+
"jest-mock-extended": "^3.0.5",
|
|
42
|
+
"react-test-renderer": "^18.2.0",
|
|
43
|
+
"sass": "^1.89.2",
|
|
44
|
+
"ts-jest": "^28.0.5"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@asteasolutions/zod-to-openapi": "^7.3.2",
|
|
48
|
+
"@bull-board/express": "^5.21.4",
|
|
49
|
+
"@clickhouse/client": "^1.10.1",
|
|
50
|
+
"@elastic/elasticsearch": "^8.12.1",
|
|
51
|
+
"@monaco-editor/react": "^4.4.6",
|
|
52
|
+
"@opentelemetry/api": "^1.9.0",
|
|
53
|
+
"@opentelemetry/api-logs": "^0.206.0",
|
|
54
|
+
"@opentelemetry/context-zone": "^1.25.1",
|
|
55
|
+
"@opentelemetry/exporter-logs-otlp-http": "^0.207.0",
|
|
56
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.207.0",
|
|
57
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.207.0",
|
|
58
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.207.0",
|
|
59
|
+
"@opentelemetry/id-generator-aws-xray": "^1.2.2",
|
|
60
|
+
"@opentelemetry/instrumentation": "^0.207.0",
|
|
61
|
+
"@opentelemetry/instrumentation-fetch": "^0.207.0",
|
|
62
|
+
"@opentelemetry/instrumentation-xml-http-request": "^0.207.0",
|
|
63
|
+
"@opentelemetry/resources": "^1.25.1",
|
|
64
|
+
"@opentelemetry/sdk-logs": "^0.207.0",
|
|
65
|
+
"@opentelemetry/sdk-metrics": "^1.25.1",
|
|
66
|
+
"@opentelemetry/sdk-node": "^0.207.0",
|
|
67
|
+
"@opentelemetry/sdk-trace-node": "^1.25.1",
|
|
68
|
+
"@opentelemetry/sdk-trace-web": "^1.25.1",
|
|
69
|
+
"@opentelemetry/semantic-conventions": "^1.26.0",
|
|
70
|
+
"@remixicon/react": "^4.2.0",
|
|
71
|
+
"@simplewebauthn/server": "^13.2.2",
|
|
72
|
+
"@tippyjs/react": "^4.2.6",
|
|
73
|
+
"@types/archiver": "^6.0.3",
|
|
74
|
+
"@types/crypto-js": "^4.2.2",
|
|
75
|
+
"@types/qrcode": "^1.5.5",
|
|
76
|
+
"@types/react-highlight": "^0.12.8",
|
|
77
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
78
|
+
"@types/uuid": "^8.3.4",
|
|
79
|
+
"@types/web-push": "^3.6.4",
|
|
80
|
+
"acme-client": "^5.3.0",
|
|
81
|
+
"airtable": "^0.12.2",
|
|
82
|
+
"archiver": "^7.0.1",
|
|
83
|
+
"axios": "^1.12.0",
|
|
84
|
+
"botbuilder": "^4.23.3",
|
|
85
|
+
"bullmq": "^5.61.0",
|
|
86
|
+
"cookie-parser": "^1.4.7",
|
|
87
|
+
"cors": "^2.8.5",
|
|
88
|
+
"cron-parser": "^4.8.1",
|
|
89
|
+
"crypto-js": "^4.2.0",
|
|
90
|
+
"dotenv": "^16.4.4",
|
|
91
|
+
"ejs": "^3.1.10",
|
|
92
|
+
"elkjs": "^0.10.0",
|
|
93
|
+
"esbuild": "^0.25.5",
|
|
94
|
+
"express": "^4.21.1",
|
|
95
|
+
"formik": "^2.4.6",
|
|
96
|
+
"history": "^5.3.0",
|
|
97
|
+
"ioredis": "^5.3.2",
|
|
98
|
+
"json2csv": "^5.0.7",
|
|
99
|
+
"json5": "^2.2.3",
|
|
100
|
+
"jsonwebtoken": "^9.0.0",
|
|
101
|
+
"jwt-decode": "^4.0.0",
|
|
102
|
+
"marked": "^12.0.2",
|
|
103
|
+
"moment": "^2.30.1",
|
|
104
|
+
"moment-timezone": "^0.5.45",
|
|
105
|
+
"node-cron": "^3.0.3",
|
|
106
|
+
"nodemailer": "^7.0.7",
|
|
107
|
+
"otpauth": "^9.3.1",
|
|
108
|
+
"pg": "^8.7.3",
|
|
109
|
+
"playwright": "^1.56.0",
|
|
110
|
+
"posthog-js": "^1.275.3",
|
|
111
|
+
"prop-types": "^15.8.1",
|
|
112
|
+
"qrcode": "^1.5.3",
|
|
113
|
+
"react": "^18.3.1",
|
|
114
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
115
|
+
"react-big-calendar": "^1.13.0",
|
|
116
|
+
"react-color": "^2.19.3",
|
|
117
|
+
"react-dom": "^18.3.1",
|
|
118
|
+
"react-dropzone": "^14.2.2",
|
|
119
|
+
"react-error-boundary": "^4.0.13",
|
|
120
|
+
"react-highlight": "^0.15.0",
|
|
121
|
+
"react-markdown": "^8.0.3",
|
|
122
|
+
"react-router-dom": "^6.24.1",
|
|
123
|
+
"react-select": "^5.4.0",
|
|
124
|
+
"react-spinners": "^0.14.1",
|
|
125
|
+
"react-syntax-highlighter": "^16.0.0",
|
|
126
|
+
"react-toggle": "^4.1.3",
|
|
127
|
+
"reactflow": "^11.11.4",
|
|
128
|
+
"recharts": "^2.12.7",
|
|
129
|
+
"redis-semaphore": "^5.5.1",
|
|
130
|
+
"reflect-metadata": "^0.2.2",
|
|
131
|
+
"remark-gfm": "^3.0.1",
|
|
132
|
+
"slackify-markdown": "^4.4.0",
|
|
133
|
+
"slugify": "^1.6.5",
|
|
134
|
+
"socket.io": "^4.7.4",
|
|
135
|
+
"socket.io-client": "^4.7.5",
|
|
136
|
+
"stripe": "^10.17.0",
|
|
137
|
+
"tailwind-merge": "^2.5.2",
|
|
138
|
+
"tippy.js": "^6.3.7",
|
|
139
|
+
"twilio": "^4.22.0",
|
|
140
|
+
"typeorm": "^0.3.26",
|
|
141
|
+
"typeorm-extension": "^2.2.13",
|
|
142
|
+
"universal-cookie": "^7.2.1",
|
|
143
|
+
"use-async-effect": "^2.2.6",
|
|
144
|
+
"uuid": "^8.3.2",
|
|
145
|
+
"web-push": "^3.6.7",
|
|
146
|
+
"zod": "^3.25.76"
|
|
147
|
+
}
|
|
148
148
|
}
|