@bitefoundry/onenote 0.4.1 → 0.4.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitefoundry/onenote",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Microsoft OneNote terminal client & AI agent toolkit — Notebooks, Sections, Pages, XHTML/Markdown & Resources (CLI, TUI, HTTP API, MCP)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,11 +40,11 @@
40
40
  "build:npm": "node scripts/build-npm.mjs"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@bitefoundry/onenote-win32-x64": "0.4.1",
44
- "@bitefoundry/onenote-win32-arm64": "0.4.1",
45
- "@bitefoundry/onenote-darwin-x64": "0.4.1",
46
- "@bitefoundry/onenote-darwin-arm64": "0.4.1",
47
- "@bitefoundry/onenote-linux-x64": "0.4.1",
48
- "@bitefoundry/onenote-linux-arm64": "0.4.1"
43
+ "@bitefoundry/onenote-win32-x64": "0.4.2",
44
+ "@bitefoundry/onenote-win32-arm64": "0.4.2",
45
+ "@bitefoundry/onenote-darwin-x64": "0.4.2",
46
+ "@bitefoundry/onenote-darwin-arm64": "0.4.2",
47
+ "@bitefoundry/onenote-linux-x64": "0.4.2",
48
+ "@bitefoundry/onenote-linux-arm64": "0.4.2"
49
49
  }
50
50
  }
@@ -252,7 +252,18 @@ export function runPostinstall(options = {}) {
252
252
  return { skipped: false, platform, linked };
253
253
  }
254
254
 
255
- if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
255
+ function resolveRealPath(targetPath) {
256
+ try {
257
+ return fs.realpathSync(targetPath);
258
+ } catch {
259
+ return path.resolve(targetPath);
260
+ }
261
+ }
262
+
263
+ if (
264
+ process.argv[1] &&
265
+ resolveRealPath(process.argv[1]) === resolveRealPath(fileURLToPath(import.meta.url))
266
+ ) {
256
267
  try {
257
268
  runPostinstall();
258
269
  } catch {