Skip to content

Commit 151c002

Browse files
authored
Merge pull request #1212 from joshunrau/upgrade-deps
upgrade some dependencies
2 parents 47007e8 + 403bc0d commit 151c002

File tree

6 files changed

+638
-144
lines changed

6 files changed

+638
-144
lines changed

apps/outreach/astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import getReadingTime from 'reading-time';
1212
import symlink from './src/plugins/astro-plugin-symlink';
1313
import { starlightTypeDocPlugin, starlightTypeDocSidebarGroup } from './src/plugins/starlight-plugin-typedoc';
1414

15-
const require = module.createRequire(import.meta.dirname);
15+
const require = module.createRequire(import.meta.url);
1616

1717
const runtimeCoreRoot = path.dirname(require.resolve('@opendatacapture/runtime-core/package.json'));
1818

apps/outreach/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@opendatacapture/runtime-core": "workspace:*",
2929
"@tailwindcss/typography": "^0.5.16",
3030
"@tailwindcss/vite": "^4.1.5",
31-
"astro": "^5.1.8",
31+
"astro": "^5.13.1",
3232
"github-slugger": "^2.0.0",
3333
"sharp": "^0.33.5",
3434
"tailwindcss": "catalog:",

apps/web/src/utils/__tests__/upload.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ describe('Zod3', () => {
3737
const result = Zod3.getZodTypeName(z3.array(z3.object({ age: z3.number(), name: z3.string() })));
3838
expect(result).toMatchObject({
3939
isOptional: false,
40-
multiKeys: ['name', 'age'],
4140
typeName: 'ZodArray'
4241
});
42+
expect(result.multiKeys).toHaveLength(2);
43+
expect(result.multiKeys).toEqual(expect.arrayContaining(['name', 'age']));
4344
expect(result.multiValues).toHaveLength(2);
44-
expect(result.multiValues?.[0]).toMatchObject({ typeName: 'ZodString' });
45-
expect(result.multiValues?.[1]).toMatchObject({ typeName: 'ZodNumber' });
45+
// Find the index of each key to check the corresponding value
46+
const nameIndex = result.multiKeys?.indexOf('name') ?? -1;
47+
const ageIndex = result.multiKeys?.indexOf('age') ?? -1;
48+
expect(result.multiValues?.[nameIndex]).toMatchObject({ typeName: 'ZodString' });
49+
expect(result.multiValues?.[ageIndex]).toMatchObject({ typeName: 'ZodNumber' });
4650
});
4751

4852
it('should parse set type', () => {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
"typescript": "5.6.x"
8181
},
8282
"onlyBuiltDependencies": [
83-
"@nestjs/core"
83+
"@nestjs/core",
84+
"sharp"
8485
]
8586
},
8687
"__isODCRepo": true

0 commit comments

Comments
 (0)