@@ -32,3 +32,10 @@ "use strict"; | ||
var import_meta = {}; | ||
var location = new URL(`../release/${process.platform}-${process.arch}`, import_meta.url).pathname; | ||
var { platform, arch } = process; | ||
var filename; | ||
if (arch === "x64") { | ||
filename = `../release/readline-${platform}-amd64.${import_bun_ffi.suffix}`; | ||
} else { | ||
filename = `../release/readline-${platform}-${arch}.${import_bun_ffi.suffix}`; | ||
} | ||
var location = new URL(filename, import_meta.url).pathname; | ||
var { symbols } = (0, import_bun_ffi.dlopen)(location, { | ||
@@ -35,0 +42,0 @@ GetVersion: { |
{ | ||
"name": "bunbot", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6929985
0.01%326
4.49%