diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 03f7e42..217a177 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,9 +3,9 @@ name: Build on: push: branches: [master] - pull_request_target: + pull_request: branches: ['*'] - types: [opened, synchronize] + # types: [opened, synchronize] jobs: build: @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [16.x, 18.x, 20.x, 22.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 diff --git a/LICENSE b/LICENSE index c79b35e..b606b7f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2022 Dmitry Shirokov +Copyright 2025 Dmitry Shirokov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/package.json b/package.json index 4aa4a1f..1ab9326 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/runk/node-geolite2#readme", "dependencies": { - "node-fetch": "^3.0.0", + "node-fetch": "^2.7.0", "tar": "^7.0.0" }, "devDependencies": { diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 435f796..0237d0d 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -3,6 +3,7 @@ const zlib = require('zlib'); const tar = require('tar'); const path = require('path'); const fetch = require('node-fetch'); + const { getAccountId, getLicense, getSelectedDbs } = require('../utils'); let licenseKey;