UNPKG

jsonp-body

Version:

Helper to create more safe jsonp response body for koa and other web framework

77 lines (76 loc) 1.93 kB
{ "name": "jsonp-body", "version": "2.0.0", "description": "Helper to create more safe jsonp response body for koa and other web framework", "homepage": "https://github.com/node-modules/jsonp-body", "repository": { "type": "git", "url": "git://github.com/node-modules/jsonp-body.git" }, "bugs": { "url": "https://github.com/node-modules/jsonp-body/issues" }, "keywords": [ "jsonp", "koa", "json", "CVE-2014-4671", "abusing-jsonp-with-rosetta-flash" ], "author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)", "license": "MIT", "engines": { "node": ">= 18.19.0" }, "dependencies": {}, "devDependencies": { "@arethetypeswrong/cli": "^0.17.1", "@eggjs/tsconfig": "1", "@types/node": "22", "@types/mocha": "10", "@eggjs/bin": "7", "eslint": "8", "eslint-config-egg": "14", "rimraf": "6", "tshy": "3", "tshy-after": "1", "typescript": "5" }, "scripts": { "lint": "eslint --cache src test --ext .ts", "pretest": "npm run clean && npm run lint -- --fix", "test": "egg-bin test", "preci": "npm run clean && npm run lint", "ci": "egg-bin cov", "postci": "npm run prepublishOnly && npm run clean", "clean": "rimraf dist", "prepublishOnly": "tshy && tshy-after && attw --pack" }, "type": "module", "tshy": { "exports": { ".": "./src/index.ts", "./package.json": "./package.json" } }, "exports": { ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } }, "./package.json": "./package.json" }, "files": [ "dist", "src" ], "types": "./dist/commonjs/index.d.ts", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js" }