@rvoh/psychic 2.3.1 → 2.3.3

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.
@@ -22,7 +22,8 @@ export default async function generateSyncEnumsInitializer(outfile, initializerF
22
22
  }
23
23
  const contents = `\
24
24
  import { DreamCLI } from '@rvoh/dream/system'
25
- import { PsychicApp, PsychicBin } from "@rvoh/psychic"
25
+ import { PsychicApp } from "@rvoh/psychic"
26
+ import { PsychicBin } from "@rvoh/psychic/system"
26
27
  import AppEnv from '../AppEnv.js'
27
28
 
28
29
  export default function ${camelized}(psy: PsychicApp) {
@@ -1,5 +1,5 @@
1
1
  export default function isUuid(val) {
2
2
  if (typeof val !== 'string')
3
3
  return false;
4
- return /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(val);
4
+ return /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(val);
5
5
  }
@@ -20,6 +20,8 @@ export function createPsychicHttpInstance(app, sslCredentials) {
20
20
  return https.createServer({
21
21
  key: fs.readFileSync(sslCredentials.key),
22
22
  cert: fs.readFileSync(sslCredentials.cert),
23
+ ca: sslCredentials.ca?.map(filePath => fs.readFileSync(filePath)),
24
+ rejectUnauthorized: sslCredentials?.rejectUnauthorized,
23
25
  }, app);
24
26
  }
25
27
  else {
@@ -22,7 +22,8 @@ export default async function generateSyncEnumsInitializer(outfile, initializerF
22
22
  }
23
23
  const contents = `\
24
24
  import { DreamCLI } from '@rvoh/dream/system'
25
- import { PsychicApp, PsychicBin } from "@rvoh/psychic"
25
+ import { PsychicApp } from "@rvoh/psychic"
26
+ import { PsychicBin } from "@rvoh/psychic/system"
26
27
  import AppEnv from '../AppEnv.js'
27
28
 
28
29
  export default function ${camelized}(psy: PsychicApp) {
@@ -1,5 +1,5 @@
1
1
  export default function isUuid(val) {
2
2
  if (typeof val !== 'string')
3
3
  return false;
4
- return /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(val);
4
+ return /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(val);
5
5
  }
@@ -20,6 +20,8 @@ export function createPsychicHttpInstance(app, sslCredentials) {
20
20
  return https.createServer({
21
21
  key: fs.readFileSync(sslCredentials.key),
22
22
  cert: fs.readFileSync(sslCredentials.cert),
23
+ ca: sslCredentials.ca?.map(filePath => fs.readFileSync(filePath)),
24
+ rejectUnauthorized: sslCredentials?.rejectUnauthorized,
23
25
  }, app);
24
26
  }
25
27
  else {
@@ -254,6 +254,8 @@ export interface CustomCookieMaxAgeOptions {
254
254
  export interface PsychicSslCredentials {
255
255
  key: string | undefined;
256
256
  cert: string | undefined;
257
+ ca: string[] | undefined;
258
+ rejectUnauthorized: boolean | undefined;
257
259
  }
258
260
  export interface DefaultPsychicOpenapiOptions extends PsychicOpenapiBaseOptions {
259
261
  outputFilepath?: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic",
4
4
  "description": "Typescript web framework",
5
- "version": "2.3.1",
5
+ "version": "2.3.3",
6
6
  "author": "RVOHealth",
7
7
  "repository": {
8
8
  "type": "git",
@@ -88,7 +88,7 @@
88
88
  "devDependencies": {
89
89
  "@eslint/js": "^9.39.1",
90
90
  "@jest-mock/express": "^3.0.0",
91
- "@rvoh/dream": "^2.2.0",
91
+ "@rvoh/dream": "^2.2.3",
92
92
  "@rvoh/dream-spec-helpers": "^2.0.0",
93
93
  "@rvoh/psychic-spec-helpers": "^2.0.0",
94
94
  "@types/body-parser": "^1.19.6",
@@ -124,5 +124,10 @@
124
124
  "vitest": "^4.0.9",
125
125
  "winston": "^3.14.2"
126
126
  },
127
- "packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
127
+ "packageManager": "pnpm@10.26.0+sha512.3b3f6c725ebe712506c0ab1ad4133cf86b1f4b687effce62a9b38b4d72e3954242e643190fc51fa1642949c735f403debd44f5cb0edd657abe63a8b6a7e1e402",
128
+ "pnpm": {
129
+ "overrides": {
130
+ "diff": ">=8.0.3"
131
+ }
132
+ }
128
133
  }