Skip to content

Commit af6803c

Browse files
committed
more cr feedback
1 parent 955f02c commit af6803c

File tree

7 files changed

+32
-53
lines changed

7 files changed

+32
-53
lines changed

app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@
170170
"@testing-library/react-native": "^13.3.3",
171171
"@tsconfig/react-native": "^3.0.6",
172172
"@types/add": "^2",
173+
"@types/bn.js": "^5.2.0",
173174
"@types/dompurify": "^3.2.0",
174-
"@types/elliptic": "^6",
175+
"@types/elliptic": "^6.4.18",
175176
"@types/jest": "^29.5.14",
176177
"@types/node": "^22.18.3",
177178
"@types/node-forge": "^1.3.14",

app/scripts/alias-imports.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ function transformProjectToAliasImports(project, appRootPath) {
6565
declaration.setModuleSpecifier(newSpec);
6666
} catch (error) {
6767
// Skip declarations that can't be processed (e.g., type-only imports with issues)
68+
const msg = error instanceof Error ? error.message : String(error);
69+
console.warn(
70+
`Skipping import declaration in ${sourceFile.getFilePath()}: ${msg}`,
71+
);
72+
try {
73+
console.debug('Import declaration text:', declaration.getText());
74+
} catch {}
75+
if (error && typeof error === 'object' && 'stack' in error) {
76+
console.debug('Error stack:', error.stack);
77+
}
6878
continue;
6979
}
7080
}
@@ -116,6 +126,16 @@ function transformProjectToAliasImports(project, appRootPath) {
116126
declaration.setModuleSpecifier(newSpec);
117127
} catch (error) {
118128
// Skip declarations that can't be processed
129+
const msg = error instanceof Error ? error.message : String(error);
130+
console.warn(
131+
`Skipping export declaration in ${sourceFile.getFilePath()}: ${msg}`,
132+
);
133+
try {
134+
console.debug('Export declaration text:', declaration.getText());
135+
} catch {}
136+
if (error && typeof error === 'object' && 'stack' in error) {
137+
console.debug('Error stack:', error.stack);
138+
}
119139
continue;
120140
}
121141
}

app/src/navigation/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export type RootStackParamList = Omit<
5656
'ComingSoon' | 'IDPicker' | 'AadhaarUpload' | 'AadhaarUploadError'
5757
> & {
5858
ComingSoon: {
59-
countryCode: string;
59+
countryCode?: string;
6060
documentCategory?: string;
6161
};
6262
IDPicker: {

app/src/providers/selfClientProvider.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,10 @@ export const SelfClientProvider = ({ children }: PropsWithChildren) => {
163163
countryCode: string | null;
164164
documentCategory: string | null;
165165
}) => {
166-
// Only navigate if we have a valid country code
167-
if (countryCode) {
168-
navigateIfReady('ComingSoon', {
169-
countryCode,
170-
documentCategory: documentCategory ?? undefined,
171-
});
172-
}
166+
navigateIfReady('ComingSoon', {
167+
countryCode: countryCode ?? undefined,
168+
documentCategory: documentCategory ?? undefined,
169+
});
173170
},
174171
);
175172

app/src/types/elliptic.d.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

packages/mobile-sdk-alpha/src/types/public.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: BUSL-1.1
33
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
44

5-
import type { create } from 'zustand';
5+
import { create } from 'zustand';
66

77
import type { DocumentCatalog, IDDocument, PassportData } from '@selfxyz/common';
88

yarn.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7346,8 +7346,9 @@ __metadata:
73467346
"@testing-library/react-native": "npm:^13.3.3"
73477347
"@tsconfig/react-native": "npm:^3.0.6"
73487348
"@types/add": "npm:^2"
7349+
"@types/bn.js": "npm:^5.2.0"
73497350
"@types/dompurify": "npm:^3.2.0"
7350-
"@types/elliptic": "npm:^6"
7351+
"@types/elliptic": "npm:^6.4.18"
73517352
"@types/jest": "npm:^29.5.14"
73527353
"@types/node": "npm:^22.18.3"
73537354
"@types/node-forge": "npm:^1.3.14"
@@ -11512,7 +11513,7 @@ __metadata:
1151211513
languageName: node
1151311514
linkType: hard
1151411515

11515-
"@types/bn.js@npm:*, @types/bn.js@npm:^5.1.0":
11516+
"@types/bn.js@npm:*, @types/bn.js@npm:^5.1.0, @types/bn.js@npm:^5.2.0":
1151611517
version: 5.2.0
1151711518
resolution: "@types/bn.js@npm:5.2.0"
1151811519
dependencies:
@@ -11635,7 +11636,7 @@ __metadata:
1163511636
languageName: node
1163611637
linkType: hard
1163711638

11638-
"@types/elliptic@npm:^6":
11639+
"@types/elliptic@npm:^6.4.18":
1163911640
version: 6.4.18
1164011641
resolution: "@types/elliptic@npm:6.4.18"
1164111642
dependencies:

0 commit comments

Comments
 (0)