package.json 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "_from": "fetch-cookie@^2.0.3",
  3. "_id": "fetch-cookie@2.2.0",
  4. "_inBundle": false,
  5. "_integrity": "sha512-h9AgfjURuCgA2+2ISl8GbavpUdR+WGAM2McW/ovn4tVccegp8ZqCKWSBR8uRdM8dDNlx5WdKRWxBYUwteLDCNQ==",
  6. "_location": "/fetch-cookie",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "fetch-cookie@^2.0.3",
  12. "name": "fetch-cookie",
  13. "escapedName": "fetch-cookie",
  14. "rawSpec": "^2.0.3",
  15. "saveSpec": null,
  16. "fetchSpec": "^2.0.3"
  17. },
  18. "_requiredBy": [
  19. "/@microsoft/signalr"
  20. ],
  21. "_resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-2.2.0.tgz",
  22. "_shasum": "01086b6b5b1c3e08f15ffd8647b02ca100377365",
  23. "_spec": "fetch-cookie@^2.0.3",
  24. "_where": "D:\\project\\czzn-app\\node_modules\\@microsoft\\signalr",
  25. "author": {
  26. "name": "Val",
  27. "url": "https://val.codejam.info"
  28. },
  29. "bugs": {
  30. "url": "https://github.com/valeriangalliat/fetch-cookie/issues"
  31. },
  32. "bundleDependencies": false,
  33. "dependencies": {
  34. "set-cookie-parser": "^2.4.8",
  35. "tough-cookie": "^4.0.0"
  36. },
  37. "deprecated": false,
  38. "description": "Decorator for a `fetch` function to support automatic cookies.",
  39. "devDependencies": {
  40. "@tsconfig/recommended": "^1.0.1",
  41. "@types/chai": "^4.3.0",
  42. "@types/express": "^4.17.13",
  43. "@types/mocha": "^9.1.0",
  44. "@types/node": "^17.0.18",
  45. "@types/node-fetch": "^2.6.1",
  46. "@types/set-cookie-parser": "^2.4.2",
  47. "@types/tough-cookie": "^4.0.1",
  48. "chai": "^4.3.6",
  49. "esbuild": "^0.14.21",
  50. "express": "^4.17.3",
  51. "mocha": "^9.2.0",
  52. "node-fetch": "^3.2.0",
  53. "ts-node": "^10.7.0",
  54. "ts-standard": "^11.0.0",
  55. "typescript": "^4.5.5",
  56. "undici": "^4.14.1"
  57. },
  58. "exports": {
  59. "./package.json": "./package.json",
  60. ".": {
  61. "import": {
  62. "types": "./esm/index.d.ts",
  63. "default": "./esm/index.js"
  64. },
  65. "require": {
  66. "types": "./cjs/index.d.ts",
  67. "default": "./cjs/index-wrapper.js"
  68. }
  69. }
  70. },
  71. "homepage": "https://github.com/valeriangalliat/fetch-cookie#readme",
  72. "license": "Unlicense",
  73. "main": "./cjs/index-wrapper.js",
  74. "module": "./esm/index.js",
  75. "name": "fetch-cookie",
  76. "repository": {
  77. "type": "git",
  78. "url": "git+https://github.com/valeriangalliat/fetch-cookie.git"
  79. },
  80. "scripts": {
  81. "build": "esbuild src/*.ts --format=esm --outdir=esm && esbuild src/*.ts --format=cjs --outdir=cjs",
  82. "lint": "ts-standard src/*.ts test/*.js",
  83. "patch-undici": "sed -i.old 's/^const forbiddenResponseHeaderNames =.*$/const forbiddenResponseHeaderNames = []/' node_modules/undici/lib/fetch/constants.js",
  84. "prepack": "npm run prepare && npm run lint && npm run type-check && npm test && npm run test-import",
  85. "prepare": "npm run build && npm run type-declarations",
  86. "test": "npm run build && mocha",
  87. "test-import": "node test/cjs/import.js && ts-node test/cjs/import.ts",
  88. "type-check": "tsc -noEmit",
  89. "type-declarations": "tsc --project tsconfig.build.json --declaration --emitDeclarationOnly --outDir esm && cat esm/index.d.ts | sed 's/^export default /export = /' > cjs/index.d.ts"
  90. },
  91. "type": "module",
  92. "types": "esm/index.d.ts",
  93. "version": "2.2.0"
  94. }