Skip to content

Commit cda22c9

Browse files
Upgrade dependencies
1 parent fc20cc1 commit cda22c9

File tree

5 files changed

+428
-411
lines changed

5 files changed

+428
-411
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [4.4.1] - 2022-02-14
11+
- Upgrade dependencies.
12+
1013
## [4.4.0] - 2021-12-21
1114
### Added
1215
- New `security.is_relay` field.
@@ -118,7 +121,8 @@ https://github.com/ipregistry/ipregistry-javascript#configuring-cache-max-age
118121
## [0.9.1] - 2019-07-23
119122
- First public release.
120123

121-
[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.4.0...HEAD
124+
[Unreleased]: https://github.com/ipregistry/ipregistry-javascript/compare/4.4.1...HEAD
125+
[4.4.1]: https://github.com/ipregistry/ipregistry-javascript/compare/4.4.0...4.4.1
122126
[4.4.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.3.0...4.4.0
123127
[4.3.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.2.0...4.3.0
124128
[4.2.0]: https://github.com/ipregistry/ipregistry-javascript/compare/4.1.0...4.2.0

integration_test/ipregistry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ describe('parse', () => {
344344
expect(response.data[0].name).not.null;
345345
});
346346

347-
it('should return 2 parsed user-agent result when 2 valid user-agent value is inputted', async () => {
347+
it('should return 2 parsed user-agent results when 2 valid user-agent values are inputted', async () => {
348348
const client = new IpregistryClient(API_KEY_THROTTLED);
349349
const response =
350350
await client.parse(

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@ipregistry/client",
33
"description": "Official Ipregistry Javascript Library (ES5, ES6+, TypeScript).",
4-
"version": "4.4.0",
4+
"version": "4.4.1",
55
"main": "./dist/index.js",
66
"browser": "./dist/browser/index.js",
77
"module": "./dist/esm/index.js",
@@ -52,19 +52,19 @@
5252
"devDependencies": {
5353
"@types/chai": "^4.3.0",
5454
"@types/lru-cache": "^5.1.1",
55-
"@types/mocha": "^9.0.0",
56-
"chai": "^4.3.4",
57-
"mocha": "^9.1.3",
58-
"ts-node": "^10.4.0",
55+
"@types/mocha": "^9.1.0",
56+
"chai": "^4.3.6",
57+
"mocha": "^9.2.0",
58+
"ts-node": "^10.5.0",
5959
"tslint": "^6.1.3",
60-
"typedoc": "^0.22.10",
61-
"typescript": "^4.5.4",
62-
"webpack": "^5.65.0",
63-
"webpack-cli": "^4.9.1"
60+
"typedoc": "^0.22.11",
61+
"typescript": "^4.5.5",
62+
"webpack": "^5.68.0",
63+
"webpack-cli": "^4.9.2"
6464
},
6565
"dependencies": {
66-
"axios": "^0.24.0",
67-
"lru-cache": "^6.0.0"
66+
"axios": "^0.26.0",
67+
"lru-cache": "^7.3.1"
6868
},
6969
"files": [
7070
"dist/**"

src/cache.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export class InMemoryCache implements IpregistryCache {
4343
this.maximumSize = maximumSize;
4444
this.expireAfter = expireAfter;
4545

46-
const options : LRUCache.Options<string, IpInfo> = {
46+
const options : any = {
4747
max: maximumSize,
48-
maxAge: expireAfter
48+
ttl: expireAfter,
4949
};
5050

5151
this.cache = new LRUCache(options);

0 commit comments

Comments
 (0)