Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -24,6 +24,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run typecheck
- run: npm run format:check
- run: npm test
- run: npm run build
- run: npm run test-imports
- run: npm run test:imports
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
coverage
lib
test/data
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "always"
"arrowParens": "always",
"tabWidth": 2
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"author": "Dmitry Shirokov <deadrunk@gmail.com>",
"contributors": [
"William Storey @horgh",
"Uman Shahzad @UmanShahzad"
"Uman Shahzad @UmanShahzad",
"Gregory Oschwald @oschwald"
],
"devDependencies": {
"@types/ip-address": "7.0.0",
Expand All @@ -22,7 +23,7 @@
"@types/sinon": "17.0.4",
"ip-address": "10.0.1",
"mocha": "^11.0.0",
"prettier": "^3.0.0",
"prettier": "^3.5.3",
"semantic-release": "^24.0.0",
"sinon": "20.0.0",
"ts-node": "^10.4.0",
Expand Down Expand Up @@ -50,8 +51,9 @@
"build": "rm -rf lib/* && tsc",
"typecheck": "tsc --noEmit",
"test": "mocha",
"test-imports": "node test/imports/commonjs.js && node test/imports/esm.mjs && ts-node test/imports/typescript.ts",
"test:imports": "node test/imports/commonjs.js && node test/imports/esm.mjs && ts-node test/imports/typescript.ts",
"format": "prettier --write src",
"format:check": "prettier --check src",
"prepublish": "npm run build",
"semantic-release": "semantic-release"
}
Expand Down
4 changes: 2 additions & 2 deletions src/reader/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export interface AnonymousIPResponse {

export interface AnonymousPlusResponse extends AnonymousIPResponse {
readonly anonymizer_confidence?: number;
readonly network_last_seen?: string
readonly provider_name?: string
readonly network_last_seen?: string;
readonly provider_name?: string;
}

export interface AsnResponse {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const assert = (condition: boolean, message: string): void => {
if (!condition) {
throw new Error(message);
}
}
};

export default {
assert,
Expand Down