@k03mad/ip2geo 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +3 -0
- package/.github/workflows/publish.yml +16 -3
- package/package.json +1 -1
- package/tests/shared/consts.js +13 -13
package/.editorconfig
CHANGED
|
@@ -11,11 +11,24 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-22.04
|
|
12
12
|
steps:
|
|
13
13
|
- uses: actions/checkout@v4
|
|
14
|
-
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
|
|
17
|
+
- uses: tj-actions/changed-files@v42
|
|
18
|
+
id: changed-files
|
|
19
|
+
with:
|
|
20
|
+
files: package.json
|
|
21
|
+
|
|
22
|
+
- if: steps.changed-files.outputs.any_changed == 'true'
|
|
23
|
+
uses: actions/setup-node@v4
|
|
15
24
|
with:
|
|
16
25
|
node-version-file: '.nvmrc'
|
|
17
26
|
registry-url: 'https://registry.npmjs.org'
|
|
18
|
-
|
|
19
|
-
-
|
|
27
|
+
|
|
28
|
+
- if: steps.changed-files.outputs.any_changed == 'true'
|
|
29
|
+
run: npm run setup
|
|
30
|
+
|
|
31
|
+
- if: steps.changed-files.outputs.any_changed == 'true'
|
|
32
|
+
run: npm publish
|
|
20
33
|
env:
|
|
21
34
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED
package/tests/shared/consts.js
CHANGED
|
@@ -15,19 +15,19 @@ export const REQUEST_IPV4 = {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const REQUEST_IPV4_MAP_OFF_ONLY = {
|
|
18
|
-
ip: '
|
|
19
|
-
continent: '
|
|
20
|
-
continentCode: '
|
|
21
|
-
country: '
|
|
22
|
-
countryCode: '
|
|
23
|
-
countryEmoji: '
|
|
24
|
-
region: '
|
|
25
|
-
regionCode: '
|
|
26
|
-
city: '
|
|
27
|
-
connectionAsn:
|
|
28
|
-
connectionOrg: '
|
|
29
|
-
connectionIsp: '
|
|
30
|
-
connectionDomain: '
|
|
18
|
+
ip: '9.9.9.9',
|
|
19
|
+
continent: 'Europe',
|
|
20
|
+
continentCode: 'EU',
|
|
21
|
+
country: 'Switzerland',
|
|
22
|
+
countryCode: 'CH',
|
|
23
|
+
countryEmoji: '🇨🇭',
|
|
24
|
+
region: 'Zurich',
|
|
25
|
+
regionCode: 'ZH',
|
|
26
|
+
city: 'Zürich',
|
|
27
|
+
connectionAsn: 19_281,
|
|
28
|
+
connectionOrg: 'Quad9',
|
|
29
|
+
connectionIsp: 'Quad9',
|
|
30
|
+
connectionDomain: 'quad9.net',
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const REQUEST_IPV6 = {
|