Skip to content

Commit 5cf3963

Browse files
committed
fix(pencil): fallback default v3ersion
1 parent 2e7ff56 commit 5cf3963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const isModuleExists = (path) => {
264264

265265
const getSDKVersion = () => {
266266
const agentPkg = PackageManager.getPackage(join(process.cwd(), '/node_modules/@securenative/agent/', PACKAGE_FILE_NAME));
267-
return agentPkg.version;
267+
return agentPkg && agentPkg.version || 'unknown';
268268
};
269269

270270
export {

0 commit comments

Comments
 (0)