@devmoods/express-extras 0.72.1 → 0.72.5

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/dist/auth.js CHANGED
@@ -103,7 +103,7 @@ export function createAuth({ getUserById, filterUser, tokenStorage, providers, l
103
103
  const user = useCurrentUser();
104
104
  if (!user) {
105
105
  setAccessTokenCookie(res, null);
106
- throw Unauthorized();
106
+ return { token: null, user: null };
107
107
  }
108
108
  const { token } = await providerContext.login(req, res, user, true);
109
109
  logger.info('refreshed token');
package/dist/config.js CHANGED
@@ -14,7 +14,7 @@ const app = define({
14
14
  SENTRY_DSN: t.string(),
15
15
  SENTRY_TRACES_SAMPLE_RATE: t.number(0.3),
16
16
  SENTRY_PROFILES_SAMPLE_RATE: t.number(0.3),
17
- SENTRY_EVENT_LOOP_THRESHOLD: t.number(300),
17
+ SENTRY_EVENT_LOOP_THRESHOLD: t.number(750),
18
18
  LOG_LEVEL: t.string(),
19
19
  LOG_SQL: t.boolean(),
20
20
  NODE_ENV: t.string(),
package/dist/sentry.js CHANGED
@@ -30,7 +30,7 @@ export async function sentryOptions(options = {}) {
30
30
  return {
31
31
  dsn: config.SENTRY_DSN,
32
32
  tracesSampleRate: config.SENTRY_TRACES_SAMPLE_RATE,
33
- profilesSampleRate: config.SENTRY_PROFILES_SAMPLE_RATE,
33
+ profileSessionSampleRate: config.SENTRY_PROFILES_SAMPLE_RATE,
34
34
  integrations: nativeIntegrations,
35
35
  enableLogs: true,
36
36
  ...options,
package/dist/vite/ssr.js CHANGED
@@ -117,15 +117,17 @@ async function getAssetLinks(manifestPath, input, publicPath = '/') {
117
117
  // Collect all transitively imported chunk keys so we can gather their CSS too
118
118
  const visited = new Set();
119
119
  const collectImports = (key) => {
120
+ /* c8 ignore start */
120
121
  if (visited.has(key)) {
121
122
  return;
122
123
  }
124
+ /* c8 ignore end */
123
125
  visited.add(key);
124
- const chunk = manifest[key];
125
- if (!chunk) {
126
+ const manifestValue = manifest[key];
127
+ if (!manifestValue) {
126
128
  return;
127
129
  }
128
- for (const importKey of chunk.imports ?? []) {
130
+ for (const importKey of manifestValue.imports ?? []) {
129
131
  collectImports(importKey);
130
132
  }
131
133
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devmoods/express-extras",
3
- "version": "0.72.1",
3
+ "version": "0.72.5",
4
4
  "description": "Kubernetes-ready utilities for rapid Node.js application development",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -68,15 +68,15 @@
68
68
  "vite": "^8.0.8"
69
69
  },
70
70
  "dependencies": {
71
- "@devmoods/config": "0.2.1",
71
+ "@devmoods/config": "0.2.3",
72
72
  "@devmoods/fetch": "^4.3.0",
73
- "@devmoods/observability": "0.1.2",
74
- "@devmoods/postgres": "0.4.0",
73
+ "@devmoods/observability": "0.1.4",
74
+ "@devmoods/postgres": "0.4.2",
75
75
  "@hey-api/openapi-ts": "^0.95.0",
76
76
  "@rolldown/plugin-babel": "^0.2.2",
77
- "@sentry/node": "^10.47.0",
78
- "@sentry/node-native": "^10.47.0",
79
- "@sentry/profiling-node": "^10.47.0",
77
+ "@sentry/node": "^10.48.0",
78
+ "@sentry/node-native": "^10.48.0",
79
+ "@sentry/profiling-node": "^10.48.0",
80
80
  "@standard-schema/spec": "^1.1.0",
81
81
  "@types/bcrypt": "^6.0.0",
82
82
  "@types/cookie-parser": "^1.4.10",
@@ -104,7 +104,7 @@
104
104
  "vitest-fail-on-console": "^0.10.1"
105
105
  },
106
106
  "peerDependencies": {
107
- "@vitejs/plugin-react": ">=4.3.4",
107
+ "@vitejs/plugin-react": ">=6.0.1",
108
108
  "arktype": ">=2.0.0",
109
109
  "express": ">=4.21.2 <5.0.0",
110
110
  "faktory-worker": ">=4.5.1",
@@ -113,5 +113,5 @@
113
113
  "engines": {
114
114
  "node": ">=20 <26"
115
115
  },
116
- "gitHead": "04f69fb0aafc073cc734a0cfc9d278b5850d4ec2"
116
+ "gitHead": "e29bcf8284033887f836a8ca7486b2b80e00852e"
117
117
  }