@daeda/mcp-pro 0.1.49 → 0.1.50

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -82982,6 +82982,17 @@ var withFileLock = async (filePath, fn9) => {
82982
82982
  }
82983
82983
  };
82984
82984
  var readStateFile = (filePath) => fs5.existsSync(filePath) ? fs5.readFileSync(filePath, "utf-8") : null;
82985
+ var syncParentDirectoryForAtomicRename = (filePath) => {
82986
+ if (process.platform === "win32") {
82987
+ return;
82988
+ }
82989
+ const dirHandle = fs5.openSync(path2.dirname(filePath), "r");
82990
+ try {
82991
+ fs5.fsyncSync(dirHandle);
82992
+ } finally {
82993
+ fs5.closeSync(dirHandle);
82994
+ }
82995
+ };
82985
82996
  var writeStateFileAtomic = (filePath, content) => {
82986
82997
  fs5.mkdirSync(path2.dirname(filePath), { recursive: true });
82987
82998
  const tempPath = `${filePath}.tmp-${process.pid}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
@@ -82993,12 +83004,7 @@ var writeStateFileAtomic = (filePath, content) => {
82993
83004
  fs5.closeSync(fileHandle);
82994
83005
  fileHandle = null;
82995
83006
  fs5.renameSync(tempPath, filePath);
82996
- const dirHandle = fs5.openSync(path2.dirname(filePath), "r");
82997
- try {
82998
- fs5.fsyncSync(dirHandle);
82999
- } finally {
83000
- fs5.closeSync(dirHandle);
83001
- }
83007
+ syncParentDirectoryForAtomicRename(filePath);
83002
83008
  } catch (error) {
83003
83009
  if (fileHandle !== null) {
83004
83010
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daeda/mcp-pro",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "MCP server for HubSpot CRM — sync, query, and manage your portal data",
5
5
  "type": "module",
6
6
  "bin": {