We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7ff56 commit 5cf3963Copy full SHA for 5cf3963
src/utils/utils.ts
@@ -264,7 +264,7 @@ const isModuleExists = (path) => {
264
265
const getSDKVersion = () => {
266
const agentPkg = PackageManager.getPackage(join(process.cwd(), '/node_modules/@securenative/agent/', PACKAGE_FILE_NAME));
267
- return agentPkg.version;
+ return agentPkg && agentPkg.version || 'unknown';
268
};
269
270
export {
0 commit comments