1
0

@ff-labs%2Ffff-bun@0.10.1.patch 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. diff --git a/src/download.ts b/src/download.ts
  2. index 74918f3d27917197f4dce589937d0d8fa9956226..6515c40223fec909f9f80e5721b82ed1e4d87fcc 100644
  3. --- a/src/download.ts
  4. +++ b/src/download.ts
  5. @@ -10,7 +10,7 @@ import { existsSync } from "node:fs";
  6. import { createRequire } from "node:module";
  7. import { dirname, join } from "node:path";
  8. import { fileURLToPath } from "node:url";
  9. -import { getLibFilename, getNpmPackageName } from "./platform";
  10. +import { getLibFilename, getNpmPackageName } from "./platform.js";
  11. /**
  12. * Get the current file's directory
  13. diff --git a/src/ffi.ts b/src/ffi.ts
  14. index 0a9f3b075a8153db8fbad9593cb1ebd5938279f1..3599a15d9da40ca0e78850651ac3b7e1952ba230 100644
  15. --- a/src/ffi.ts
  16. +++ b/src/ffi.ts
  17. @@ -17,8 +17,8 @@ import {
  18. ptr,
  19. read,
  20. } from "bun:ffi";
  21. -import { findBinary } from "./download";
  22. -import { embeddedLibPath } from "./embedded";
  23. +import { findBinary } from "./download.js";
  24. +import { embeddedLibPath } from "./embedded.js";
  25. import type {
  26. DirItem,
  27. DirSearchResult,
  28. @@ -34,8 +34,8 @@ import type {
  29. SearchResult,
  30. WatchEvent,
  31. WatchEventKind,
  32. -} from "./fff-api";
  33. -import { createGrepCursor, err } from "./fff-api";
  34. +} from "./fff-api.js";
  35. +import { createGrepCursor, err } from "./fff-api.js";
  36. /** Grep mode constants matching the C API (u8). */
  37. const GREP_MODE_PLAIN = 0;
  38. diff --git a/src/finder.ts b/src/finder.ts
  39. index d8210b43f4502527a2356fb0c3de837bc909ac97..31724f6a8aee51f76c76c5ebd6de5e12f3fafd99 100644
  40. --- a/src/finder.ts
  41. +++ b/src/finder.ts
  42. @@ -36,7 +36,7 @@ import {
  43. isAvailable,
  44. type NativeHandle,
  45. readWatchEventBatch,
  46. -} from "./ffi";
  47. +} from "./ffi.js";
  48. import type {
  49. DirSearchOptions,
  50. @@ -56,9 +56,9 @@ import type {
  51. WatchBatchCallback,
  52. WatchOptions,
  53. WatchUnsubscribe,
  54. -} from "./fff-api";
  55. +} from "./fff-api.js";
  56. -import { err } from "./fff-api";
  57. +import { err } from "./fff-api.js";
  58. /**
  59. * FileFinder - Fast file finder with fuzzy search
  60. diff --git a/src/index.ts b/src/index.ts
  61. index 3b54b82d03bd5d37f3665d59c91273dc62118c1b..17bf456ea78d6b1f432d514f12eb430cc8bfcab1 100644
  62. --- a/src/index.ts
  63. +++ b/src/index.ts
  64. @@ -1,4 +1,4 @@
  65. -export { binaryExists, findBinary } from "./download";
  66. +export { binaryExists, findBinary } from "./download.js";
  67. export type {
  68. DbHealth,
  69. DirItem,
  70. @@ -29,12 +29,12 @@ export type {
  71. WatchEventKind,
  72. WatchOptions,
  73. WatchUnsubscribe,
  74. -} from "./fff-api";
  75. +} from "./fff-api.js";
  76. -export { FileFinder } from "./finder";
  77. +export { FileFinder } from "./finder.js";
  78. export {
  79. getLibExtension,
  80. getLibFilename,
  81. getNpmPackageName,
  82. getTriple,
  83. -} from "./platform";
  84. +} from "./platform.js";