From 7e1ae0fd83133e36f6f25711f8742f6775105e61 Mon Sep 17 00:00:00 2001 From: hijimo Date: Sat, 28 Jan 2023 13:23:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/sqlite3-binding.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sqlite3-binding.js b/lib/sqlite3-binding.js index 65f01546e..3092ac2af 100644 --- a/lib/sqlite3-binding.js +++ b/lib/sqlite3-binding.js @@ -1,5 +1,5 @@ -const binary = require('@mapbox/node-pre-gyp'); -const path = require('path'); -const binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json'))); -const binding = require(binding_path); +// const binary = require('@mapbox/node-pre-gyp'); +// const path = require('path'); +// const binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json'))); +const binding = require('../build/Release/node_sqlite3.node'); module.exports = exports = binding; From c08ecbac2fc939805376b31c237c32af3cf50a29 Mon Sep 17 00:00:00 2001 From: hijimo Date: Sat, 28 Jan 2023 14:10:50 +0800 Subject: [PATCH 2/2] 1 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a505725c0..bda692e34 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "sqlite3", + "name": "jstsec_sqlite3", "description": "Asynchronous, non-blocking SQLite3 bindings", "version": "5.1.4", "homepage": "https://github.com/TryGhost/node-sqlite3", @@ -90,4 +90,4 @@ "@tryghost:base" ] } -} +} \ No newline at end of file