Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lpellegr committed Feb 14, 2022
1 parent fc20cc1 commit cda22c9
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 411 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.4.1] - 2022-02-14
- Upgrade dependencies.

## [4.4.0] - 2021-12-21
### Added
- New `security.is_relay` field.
Expand Down Expand Up @@ -118,7 +121,8 @@ https://github.com/ipregistry/ipregistry-javascript#configuring-cache-max-age
## [0.9.1] - 2019-07-23
- First public release.

[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.4.0...HEAD
[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.4.1...HEAD
[4.4.1]: https://github.com/ipregistry/ipregistry-javascript/compare/4.4.0...4.4.1
[4.4.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.3.0...4.4.0
[4.3.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.2.0...4.3.0
[4.2.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.1.0...4.2.0
Expand Down
2 changes: 1 addition & 1 deletion integration_test/ipregistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ describe('parse', () => {
expect(response.data[0].name).not.null;
});

it('should return 2 parsed user-agent result when 2 valid user-agent value is inputted', async () => {
it('should return 2 parsed user-agent results when 2 valid user-agent values are inputted', async () => {
const client = new IpregistryClient(API_KEY_THROTTLED);
const response =
await client.parse(
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ipregistry/client",
"description": "Official Ipregistry Javascript Library (ES5, ES6+, TypeScript).",
"version": "4.4.0",
"version": "4.4.1",
"main": "./dist/index.js",
"browser": "./dist/browser/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -52,19 +52,19 @@
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/lru-cache": "^5.1.1",
"@types/mocha": "^9.0.0",
"chai": "^4.3.4",
"mocha": "^9.1.3",
"ts-node": "^10.4.0",
"@types/mocha": "^9.1.0",
"chai": "^4.3.6",
"mocha": "^9.2.0",
"ts-node": "^10.5.0",
"tslint": "^6.1.3",
"typedoc": "^0.22.10",
"typescript": "^4.5.4",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1"
"typedoc": "^0.22.11",
"typescript": "^4.5.5",
"webpack": "^5.68.0",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"axios": "^0.24.0",
"lru-cache": "^6.0.0"
"axios": "^0.26.0",
"lru-cache": "^7.3.1"
},
"files": [
"dist/**"
Expand Down
4 changes: 2 additions & 2 deletions src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export class InMemoryCache implements IpregistryCache {
this.maximumSize = maximumSize;
this.expireAfter = expireAfter;

const options : LRUCache.Options<string, IpInfo> = {
const options : any = {
max: maximumSize,
maxAge: expireAfter
ttl: expireAfter,
};

this.cache = new LRUCache(options);
Expand Down
Loading

0 comments on commit cda22c9

Please sign in to comment.