UNPKG

apns2

Version:

Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens.

66 lines (65 loc) 1.84 kB
{ "name": "apns2", "version": "12.1.0", "description": "Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens.", "author": "Andrew Barba <barba@hey.com>", "license": "MIT", "type": "module", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "types": "./dist/index.d.ts" } }, "engines": { "node": ">=20" }, "repository": { "url": "https://github.com/AndrewBarba/apns2" }, "files": ["dist", "dist/cjs", "dist/esm"], "keywords": [ "apn", "apns", "apns2", "push", "notification", "http2", "jwt", "apple", "ios", "macos", "tvos", "watchos" ], "dependencies": { "fast-jwt": "^5.0.0", "undici": "^7.0.0" }, "devDependencies": { "@biomejs/biome": "^1.9.4", "@tsconfig/node20": "^20.1.4", "@types/node": "^22.10.0", "chai": "^5.1.2", "dotenv": "^16.4.5", "typescript": "^5.7.2", "vitest": "^2.1.6" }, "scripts": { "clean": "rm -rf dist", "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:package-files", "build:cjs": "tsc -p tsconfig.cjs.json", "build:esm": "tsc -p tsconfig.esm.json", "build:package-files": "npm run build:package-files:cjs && npm run build:package-files:esm", "build:package-files:cjs": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", "build:package-files:esm": "echo '{\"type\":\"module\"}' > dist/esm/package.json", "lint": "biome ci src test", "lint:format": "biome format --write src test", "lint:check": "biome check --write --unsafe src test", "test": "vitest --run --dir test" } }