isy-nodejs 1.0.1-alpha.20 → 1.0.1-alpha.21
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.
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "isy-nodejs",
|
|
3
3
|
"description": "Node.js wrapper for ISY interface including websockets for change notifications. Fork of isy-js by Rod Toll. Designed to be used in a node.js application.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.0.1-alpha.
|
|
5
|
+
"version": "1.0.1-alpha.21",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Pradeep Mouli"
|
|
8
8
|
},
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "076f31525fee4046130d78c9b7a115c10a32c5c2"
|
|
73
73
|
}
|
package/src/Utils.ts
CHANGED
|
@@ -282,13 +282,13 @@ export async function findPackageJson(currentPath: string = getImportMeta().dirn
|
|
|
282
282
|
while (currentPath !== '/') {
|
|
283
283
|
const packageJsonPath = path.join(currentPath, 'package.json');
|
|
284
284
|
if (existsSync(packageJsonPath)) {
|
|
285
|
-
return JSON.parse(await readFile(packageJsonPath
|
|
285
|
+
return JSON.parse((await readFile(packageJsonPath)).toString());
|
|
286
286
|
}
|
|
287
287
|
currentPath = path.join(currentPath, '..');
|
|
288
288
|
}
|
|
289
289
|
} catch {
|
|
290
290
|
//@ts-expect-error
|
|
291
|
-
return (await import('../../package.json')).default;
|
|
291
|
+
return (await import('../../package.json', { with: { type: 'json' } })).default;
|
|
292
292
|
}
|
|
293
293
|
return null;
|
|
294
294
|
}
|