icanhazip-client 1.3.0 → 1.5.0

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
  ![npm](https://img.shields.io/npm/v/icanhazip-client)
3
3
  ![downloads](https://img.shields.io/npm/dw/icanhazip-client)
4
4
  ![license](https://img.shields.io/npm/l/icanhazip-client)
5
+ ![Security Policy](https://img.shields.io/badge/security-policy-brightgreen)
6
+ ![npm_provenance](https://img.shields.io/badge/npm-provenance-brightgreen?logo=npm)
5
7
  ![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/icanhazip-client)
6
8
  # Icanhazip Client
7
9
  A lightweight JavaScript/TypeScript client for retrieving public IP information using the icanhazip service. This package is **ESM-only** and works in modern browsers and Node.js 18+ environments that support the Fetch API. Provides support for [https://github.com/runvnc/icanhazip](https://github.com/runvnc/icanhazip)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "icanhazip-client",
3
3
  "description": "Tiny fetch-based client for icanhazip.com (IPv4, IPv6, trace)",
4
4
  "type": "module",
5
- "version": "1.3.0",
5
+ "version": "1.5.0",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
@@ -12,9 +12,9 @@
12
12
  }
13
13
  },
14
14
  "scripts": {
15
- "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
16
- "prebuild": "npm run clean",
17
15
  "build": "tsc",
16
+ "clean": "rm -rf -v ./coverage ./dist",
17
+ "publish:check": "npm view icanhazip-client version",
18
18
  "prepublishOnly": "npm run build",
19
19
  "test": "jest",
20
20
  "test:watch": "jest --watch",