@volter/supercode-teams 0.3.138 → 0.3.139

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.
@@ -1,4 +1,5 @@
1
- import { mkdirSync, readFileSync, writeFileSync, renameSync, existsSync, chmodSync, realpathSync, statSync, openSync, closeSync, fsyncSync, unlinkSync, readSync, readdirSync, rmSync } from 'node:fs';
1
+ import { mkdirSync, readFileSync, writeFileSync, renameSync, existsSync, chmodSync, statSync, openSync, closeSync, fsyncSync, unlinkSync, readSync, readdirSync, rmSync } from 'node:fs';
2
+ import { realpathSync } from './path.mjs';
2
3
  import { redactionBasis } from '@volter/teams/redact';
3
4
  import { Redactor } from './redactor.mjs';
4
5
  import { basename, dirname, join, sep } from 'node:path';
@@ -1,5 +1,6 @@
1
1
  import { createHash } from 'node:crypto';
2
- import { mkdtempSync, mkdirSync, writeFileSync, rmSync, realpathSync, statSync } from 'node:fs';
2
+ import { mkdtempSync, mkdirSync, writeFileSync, rmSync, statSync } from 'node:fs';
3
+ import { realpathSync } from './path.mjs';
3
4
  import { join, resolve, relative, dirname, isAbsolute, sep } from 'node:path';
4
5
 
5
6
  const digest = value => createHash('sha256').update(value).digest('hex');
@@ -0,0 +1,9 @@
1
+ import { realpathSync as nodeRealpathSync } from 'node:fs';
2
+
3
+ // Rust discovery returns Windows namespace paths (\\?\C:\...). Node's JS
4
+ // resolver tries to lstat the drive component as "C:" and refuses those paths.
5
+ // The OS-native resolver accepts them and preserves filesystem resolution,
6
+ // including junctions and UNC paths. Keep the existing POSIX resolver.
7
+ export const realpathSync = process.platform === 'win32'
8
+ ? nodeRealpathSync.native
9
+ : nodeRealpathSync;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.3.138",
3
+ "version": "0.3.139",
4
4
  "type": "module",
5
5
  "description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
6
6
  "license": "MIT",