Skip to content

Commit

Permalink
fix: resources
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Dec 2, 2023
1 parent ff16001 commit f2b7176
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 113 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build-resources.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

<!-- Tell about the project -->

Link to the resources: [https://github.com/softvisio-node/geoip-asn/releases/tag/resources](https://github.com/softvisio-node/geoip-asn/releases/tag/resources).

## Install

```shell
Expand Down
31 changes: 0 additions & 31 deletions bin/build.js

This file was deleted.

2 changes: 1 addition & 1 deletion bin/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CLI = {

await Cli.parse( CLI );

externalResources.add( "softvisio-node/geoip-asn/resources/geolite2-asn" );
externalResources.add( "softvisio-node/core/resources/geolite2-asn" );

const res = await externalResources.update( {
"force": process.cli.options.force,
Expand Down
2 changes: 0 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<!-- Tell about the project -->

Link to the resources: [https://github.com/softvisio-node/geoip-asn/releases/tag/resources](https://github.com/softvisio-node/geoip-asn/releases/tag/resources).

## Install

```shell
Expand Down
57 changes: 0 additions & 57 deletions lib/external-resources/geolite2-asn.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/geoip-asn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const cache = new CacheLru( { "maxSize": 1000 } );
var mmdb;

const resource = await externalResources
.add( "softvisio-node/geoip-asn/resources/geolite2-asn" )
.add( "softvisio-node/core/resources/geolite2-asn" )
.on( "update", () => ( mmdb = null ) )
.check();

Expand Down

0 comments on commit f2b7176

Please sign in to comment.