@statewalker/webrun-files-node 0.10.3 → 0.10.5

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,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region \0rolldown/runtime.js
2
+ // \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -20,12 +20,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
20
20
  value: mod,
21
21
  enumerable: true
22
22
  }) : target, mod));
23
- //#endregion
24
23
  let node_fs_promises = require("node:fs/promises");
25
24
  node_fs_promises = __toESM(node_fs_promises, 1);
26
25
  let node_path = require("node:path");
27
26
  node_path = __toESM(node_path, 1);
28
- //#region ../webrun-files/dist/esm/index.js
27
+ // ../webrun-files/dist/esm/index.js
29
28
  /**
30
29
  * The order every `FilesApi.list()` yields: paths compared by Unicode code
31
30
  * point, which is the same as comparing their UTF-8 bytes — the order of
@@ -140,8 +139,7 @@ function dirname(path) {
140
139
  if (lastSlash <= 0) return "/";
141
140
  return normalized.substring(0, lastSlash);
142
141
  }
143
- //#endregion
144
- //#region src/node-files-api.ts
142
+ // src/node-files-api.ts
145
143
  /**
146
144
  * Node.js FilesApi implementation using fs/promises.
147
145
  * Maps virtual paths (starting with /) to the filesystem rooted at rootDir.
@@ -318,5 +316,4 @@ var NodeFilesApi = class {
318
316
  }
319
317
  }
320
318
  };
321
- //#endregion
322
319
  exports.NodeFilesApi = NodeFilesApi;
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as fs from "node:fs/promises";
2
2
  import * as nodePath from "node:path";
3
- //#region ../webrun-files/dist/esm/index.js
3
+ // ../webrun-files/dist/esm/index.js
4
4
  /**
5
5
  * The order every `FilesApi.list()` yields: paths compared by Unicode code
6
6
  * point, which is the same as comparing their UTF-8 bytes — the order of
@@ -115,8 +115,7 @@ function dirname(path) {
115
115
  if (lastSlash <= 0) return "/";
116
116
  return normalized.substring(0, lastSlash);
117
117
  }
118
- //#endregion
119
- //#region src/node-files-api.ts
118
+ // src/node-files-api.ts
120
119
  /**
121
120
  * Node.js FilesApi implementation using fs/promises.
122
121
  * Maps virtual paths (starting with /) to the filesystem rooted at rootDir.
@@ -293,5 +292,4 @@ var NodeFilesApi = class {
293
292
  }
294
293
  }
295
294
  };
296
- //#endregion
297
295
  export { NodeFilesApi };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statewalker/webrun-files-node",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Node.js FilesApi implementation",
@@ -34,14 +34,14 @@
34
34
  "src"
35
35
  ],
36
36
  "dependencies": {
37
- "@statewalker/webrun-files": "^0.10.2"
37
+ "@statewalker/webrun-files": "^0.10.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "^26.6.4",
41
41
  "rimraf": "^6.1.3",
42
42
  "rolldown": "^1.2.12",
43
43
  "typescript": "^7.0.2",
44
- "vitest": "^5.0.3",
44
+ "vitest": "^4.1.4 || ^5.0.3",
45
45
  "@statewalker/webrun-files-tests": "^3.0.0"
46
46
  },
47
47
  "sideEffects": false,