From d34584f9668647c9b0bd01ce57cc8166e813ac1b Mon Sep 17 00:00:00 2001 From: zdm Date: Wed, 12 Jul 2023 11:51:54 +0300 Subject: [PATCH] fix: resource location --- bin/update.js | 2 +- lib/geoip-asn.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update.js b/bin/update.js index 7885b64..403eee6 100644 --- a/bin/update.js +++ b/bin/update.js @@ -18,7 +18,7 @@ const CLI = { await Cli.parse( CLI ); -externalResources.add( "softvisio-node/geoip-asn/resources/geolite2-asn", import.meta.url ); +externalResources.add( "softvisio-node/geoip-asn/resources/geolite2-asn" ); const res = await externalResources.update( { "remote": true, diff --git a/lib/geoip-asn.js b/lib/geoip-asn.js index 6ca8f28..25f8af1 100644 --- a/lib/geoip-asn.js +++ b/lib/geoip-asn.js @@ -8,7 +8,7 @@ const cache = new CacheLru( { "maxSize": 1000 } ); var mmdb; const resource = await externalResources - .add( "softvisio-node/geoip-asn/resources/geolite2-asn", import.meta.url ) + .add( "softvisio-node/geoip-asn/resources/geolite2-asn" ) .on( "update", () => ( mmdb = null ) ) .check();