path-class 0.15.0 → 0.15.1

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": "path-class",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "A semantic `Path` class for `node` and `bun`. Inspired by `bun`'s [`file(…)`](https://bun.com/docs/runtime/file-io) API, but `node`-compatible.",
5
5
  "author": "Lucas Garron <code@garron.net>",
6
6
  "license": "MIT",
@@ -22,7 +22,6 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "xdg-basedir": "^5.1.0",
26
25
  "@types/node": ">=24.7.1"
27
26
  },
28
27
  "devDependencies": {
@@ -58,7 +58,7 @@ test.concurrent(".existsAsFileSync()", () => {
58
58
  expect(filePath.existsAsFileSync()).toBe(true);
59
59
  });
60
60
 
61
- test.concurrent(".existsAsDir()", () => {
61
+ test.concurrent(".existsAsDirSync()", () => {
62
62
  using tempDir = PathSync.makeTempDirSync();
63
63
  expect(tempDir.existsSync()).toBe(true);
64
64
  expect(() => tempDir.existsSync({ mustBe: "file" })).toThrow(
@@ -282,7 +282,7 @@ test.concurrent(".writeJSONSync(…)", () => {
282
282
  `);
283
283
  });
284
284
 
285
- test.concurrent(".writeJSON(…) with custom options", () => {
285
+ test.concurrent(".writeJSONSync(…) with custom options", () => {
286
286
  {
287
287
  using file = PathSync.tempFilePathSync({
288
288
  basename: "file.json",
@@ -348,7 +348,7 @@ test.concurrent(".readDirSync(…)", () => {
348
348
  );
349
349
  });
350
350
 
351
- test.concurrent(".isEmptyDir(…), .isEmptyishDir(…), and .rmDirIfEmptyish()", () => {
351
+ test.concurrent(".isEmptyDirSync(…), .isEmptyishDirSync(…), and .rmDirIfEmptyishSync()", () => {
352
352
  using dir = PathSync.makeTempDirSync();
353
353
 
354
354
  expect(dir.isEmptyDirSync()).toBe(true);
@@ -51,8 +51,4 @@ mock.module("node:os", () => {
51
51
  return nodeOSMocked;
52
52
  });
53
53
 
54
- mock.module("os", () => {
55
- return nodeOSMocked;
56
- });
57
-
58
54
  process.env = { XDG_CONFIG_HOME: "/xdg/config" };