{"_id":"request-got-adapter","_rev":"8-7f804558357730fc839ef42cbf7e5612","name":"request-got-adapter","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.0":{"name":"request-got-adapter","version":"0.1.0","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"license":"MIT","_id":"request-got-adapter@0.1.0","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"homepage":"https://github.com/toriihq/request-got-adapter#readme","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"dist":{"shasum":"51031a774c6f2c4d250f2826c0ddcb1a50fd09d6","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.0.tgz","fileCount":29,"integrity":"sha512-rgkVaQ6vEw9SAMTHe2ScLjaeRn4bE5esfkGetQWVSq70Y/0rICXeagi8JdrvZ9OQ9P+GRK8u5lU3NWftMSTsUw==","signatures":[{"sig":"MEQCIFxvVZNkzZ6kSfrX4RHeEpzs/72/DsncbENNw+W8ks62AiAF9MRYPfXPveM7sRUh7lI1C7vOuERCOHMcpaCyXrtVag==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58169},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"gitHead":"2b58fee4adae7b9e3b6f957fc7d3818069f21db1","scripts":{"lint":"biome check src test type-fixtures","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"tsc","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"berzniz","email":"berzniz@gmail.com"},"repository":{"url":"git+https://github.com/toriihq/request-got-adapter.git","type":"git"},"_npmVersion":"10.9.2","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","directories":{},"_nodeVersion":"22.15.0","dependencies":{"qs":"^6.15.3","got":"^14.6.6","form-data":"^4.0.6","tough-cookie":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","@types/qs":"^6.14.0","typescript":"^5.6.0","@types/jest":"^29.5.14","@types/node":"^22.0.0","@biomejs/biome":"^1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/request-got-adapter_0.1.0_1784028026288_0.52343146162831","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"request-got-adapter","version":"0.1.1","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"license":"MIT","_id":"request-got-adapter@0.1.1","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"homepage":"https://github.com/toriihq/request-got-adapter#readme","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"dist":{"shasum":"c4b43de5025c08576faeb76f01340d28577013ba","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.1.tgz","fileCount":29,"integrity":"sha512-NioqERN76tp0TKzsDXpuVl8CSv2G3a+XY91uk4Hll0IoN5z0MHoyGOZUiW+I+Li6gzDjGm5jmLQsYkDStrCK7g==","signatures":[{"sig":"MEUCIBqKOiFgK62w6z5KBM7i3sHwjp6GhXfi6m9mZk/ZjoykAiEAp59P7cv69AfR2o4wOUfWzghbgBWQvfWBYAI6dAq+vmY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58169},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"gitHead":"995598724d7023f76412c3bad4c56608292a4a94","scripts":{"lint":"biome check src test type-fixtures","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"tsc","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:4744e806-8571-4d38-b9f0-72949a1f6383"}},"repository":{"url":"git+https://github.com/toriihq/request-got-adapter.git","type":"git"},"_npmVersion":"11.18.0","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"qs":"^6.15.3","got":"^14.6.6","form-data":"^4.0.6","tough-cookie":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","@types/qs":"^6.14.0","typescript":"^5.6.0","@types/jest":"^29.5.14","@types/node":"^22.0.0","@biomejs/biome":"^1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/request-got-adapter_0.1.1_1784028627493_0.4171204785032536","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"request-got-adapter","version":"0.1.2","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"license":"MIT","_id":"request-got-adapter@0.1.2","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"homepage":"https://github.com/toriihq/request-got-adapter#readme","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"dist":{"shasum":"d4da5886a5e142c4566fcef975d522f6d45a4ef4","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.2.tgz","fileCount":29,"integrity":"sha512-e7al9OcH2t6lLL9o8uU3q5BGlU3boZSf5X00TO0RLTm8BI03byRplyZSe7mytF1HqWQcZRgRRfnGEgjr3oAi6Q==","signatures":[{"sig":"MEYCIQDnL2Yf1/TpjKCpgj76foeRu3ZhWLY0qw+sTwrSMW8pNwIhAPuZzha//x2epodAx0y4APqzBVH42wGThTbCzqO8cbMd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61615},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"gitHead":"0ccbb8515ea8df389a211f9105efd63ccd83d628","scripts":{"lint":"biome check src test type-fixtures","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"tsc","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:4744e806-8571-4d38-b9f0-72949a1f6383"}},"repository":{"url":"git+https://github.com/toriihq/request-got-adapter.git","type":"git"},"_npmVersion":"11.18.0","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"qs":"^6.15.3","got":"^14.6.6","form-data":"^4.0.6","tough-cookie":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","@types/qs":"^6.14.0","typescript":"^5.6.0","@types/jest":"^29.5.14","@types/node":"^22.0.0","@biomejs/biome":"^1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/request-got-adapter_0.1.2_1784035714095_0.4058034608475316","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"request-got-adapter","version":"0.1.3","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"license":"MIT","_id":"request-got-adapter@0.1.3","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"homepage":"https://github.com/toriihq/request-got-adapter#readme","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"dist":{"shasum":"95597b9db38c2b9c313a7918b5720e8e3eaab698","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.3.tgz","fileCount":29,"integrity":"sha512-U1TA/YQ//hfEmcEWoRY/f8eN7F8oF6RxHwxx0BN/GLwE0NPc0kWLhtB6Tk/VDrb1Ptvxp2LUcohw5CKpqvyE0Q==","signatures":[{"sig":"MEUCIQD5vEfJUTf3alQCii1kQMqn1+CHfCc3Ji7/XrF0SwrvzgIgLaZ1kkD59FiloSxu3sc3QV4/ONxMdy+q+g9JxJcLyPg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61752},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"gitHead":"b9227db48ae6b17e56766929fb58c162ed003c83","scripts":{"lint":"biome check src test type-fixtures","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"tsc","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:4744e806-8571-4d38-b9f0-72949a1f6383"}},"repository":{"url":"git+https://github.com/toriihq/request-got-adapter.git","type":"git"},"_npmVersion":"11.18.0","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"qs":"^6.15.3","got":"^14.6.6","form-data":"^4.0.6","tough-cookie":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","@types/qs":"^6.14.0","typescript":"^5.6.0","@types/jest":"^29.5.14","@types/node":"^22.0.0","@biomejs/biome":"^1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/request-got-adapter_0.1.3_1784041477187_0.4174947143487051","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"request-got-adapter","version":"0.1.4","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"license":"MIT","_id":"request-got-adapter@0.1.4","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"homepage":"https://github.com/toriihq/request-got-adapter#readme","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"dist":{"shasum":"ac7b00a2850aff37185e1eb6617a48e288ed2ed4","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.4.tgz","fileCount":29,"integrity":"sha512-UrC+klYE1irXP9N+8jYSGXdJdQlO755P1Fc1FHWfePjiUZ5pqCnF55MvbxnttYcbIBPGijM7QGbkYotbgUeC/w==","signatures":[{"sig":"MEYCIQD61KFhBfjIVEHe2uVPVYt3SLJB7LRhcrw+DnVvY+ZFzQIhAI0wB8upMYFVGrjonNZ9zbAe2nxHN7drP8SAKGi57/co","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61962},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"gitHead":"1d112b9a333843c2e8a773d1201cefc6c31417d6","scripts":{"lint":"biome check src test type-fixtures","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"tsc","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:4744e806-8571-4d38-b9f0-72949a1f6383"}},"repository":{"url":"git+https://github.com/toriihq/request-got-adapter.git","type":"git"},"_npmVersion":"11.18.0","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"qs":"^6.15.3","got":"^14.6.6","form-data":"^4.0.6","tough-cookie":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","@types/qs":"^6.14.0","typescript":"^5.6.0","@types/jest":"^29.5.14","@types/node":"^22.0.0","@biomejs/biome":"^1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/request-got-adapter_0.1.4_1784456722457_0.48922291112921856","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"request-got-adapter","version":"0.1.5","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"license":"MIT","_id":"request-got-adapter@0.1.5","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"homepage":"https://github.com/toriihq/request-got-adapter#readme","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"dist":{"shasum":"0405d65769f9b44780ab15ecec5c49204987a707","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.5.tgz","fileCount":29,"integrity":"sha512-LPcesPKnJ//U4bcZMrkPrZrmJNyYdKuEQ1WSyBYFe/a+loe3wkrcOxzNh6o4eheDh4NJVy7NYQAd/vHIk4muTw==","signatures":[{"sig":"MEUCIGxSowfy5vgH2+ZHu7SHn8xB8MaKqpU4frZQbQ6W9Xc+AiEA16INyspZUfykMT2KJKMzEZ6m1jlB2SAObP8e7rps+nk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66081},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"gitHead":"340a1e5a79258bb4fb5a097d8d73e4bd9a07cb57","scripts":{"lint":"biome check src test type-fixtures","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"tsc","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:4744e806-8571-4d38-b9f0-72949a1f6383"}},"repository":{"url":"git+https://github.com/toriihq/request-got-adapter.git","type":"git"},"_npmVersion":"11.18.0","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"qs":"^6.15.3","got":"^14.6.6","form-data":"^4.0.6","tough-cookie":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","@types/qs":"^6.14.0","typescript":"^5.6.0","@types/jest":"^29.5.14","@types/node":"^22.0.0","@biomejs/biome":"^1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/request-got-adapter_0.1.5_1784462816871_0.3371335569524547","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"request-got-adapter","version":"0.1.6","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"license":"MIT","_id":"request-got-adapter@0.1.6","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"homepage":"https://github.com/toriihq/request-got-adapter#readme","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"dist":{"shasum":"7e7a8cf25b82e79d9feb7b7456207d588adc8a6b","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.6.tgz","fileCount":29,"integrity":"sha512-Cu7//zLU7GoGcVWkDrag7Z5RpU5NKIStfhdXffRLbyVbELzhNgJQmfCFxsM6omGr68tawlCXGsjStkwDQU1ZoQ==","signatures":[{"sig":"MEUCID0E/muvX4RPQ6NwxTdCRXuP2YBwHv4xOqGkBgJDxvsMAiEArbD5Wt6PJ+RA/hbfr896XVRYJZIwt8P/2P6alx0/mJ4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66629},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"gitHead":"6571b663357808327d4c109a15441695c46a14ba","scripts":{"lint":"biome check src test type-fixtures","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"tsc","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:4744e806-8571-4d38-b9f0-72949a1f6383"}},"repository":{"url":"git+https://github.com/toriihq/request-got-adapter.git","type":"git"},"_npmVersion":"11.18.0","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"qs":"^6.15.3","got":"^14.6.6","form-data":"^4.0.6","tough-cookie":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","@types/qs":"^6.14.0","typescript":"^5.6.0","@types/jest":"^29.5.14","@types/node":"^22.0.0","@biomejs/biome":"^1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/request-got-adapter_0.1.6_1784464048474_0.8892070828305241","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"request-got-adapter","version":"0.1.7","description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/toriihq/request-got-adapter.git"},"keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./errors":{"types":"./errors.d.ts","default":"./errors.js"},"./package.json":"./package.json"},"engines":{"node":">=22"},"scripts":{"build":"tsc","test":"NODE_OPTIONS=--experimental-vm-modules jest","lint":"biome check src test type-fixtures","lint:fix":"biome check --write src test type-fixtures","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"dependencies":{"form-data":"^4.0.6","got":"^14.6.6","qs":"^6.15.3","tough-cookie":"^6.0.2"},"devDependencies":{"@biomejs/biome":"^1.9.4","@types/jest":"^29.5.14","@types/node":"^22.0.0","@types/qs":"^6.14.0","jest":"^29.7.0","ts-jest":"^29.2.5","typescript":"^5.6.0"},"gitHead":"6cc49ac6ad4a1b695c7649e5d16b818217892e67","_id":"request-got-adapter@0.1.7","bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"homepage":"https://github.com/toriihq/request-got-adapter#readme","_nodeVersion":"22.14.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-EeM3iIUI5vGE6veZYCBj8LWMSgPRVwU+pzHiStM89YLdmJe1Cks8DF7WEgOBAKYA0o3aN1iGQH0yq6hmTCXMpQ==","shasum":"7ca49eb90b46b4ff3aeae8f25ee85695b809c945","tarball":"https://registry.npmjs.org/request-got-adapter/-/request-got-adapter-0.1.7.tgz","fileCount":31,"unpackedSize":70973,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDnCbbcnqawsRV2VirDa8HQ/l7JlqUspezig1iw7khW7wIgYg6Su67AgtIcHjc767up9xY0X8vlL/x42RwX0w5vPA0="}]},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:4744e806-8571-4d38-b9f0-72949a1f6383"}},"directories":{},"maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/request-got-adapter_0.1.7_1787770626012_0.21987157925188483"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-14T11:20:26.220Z","modified":"2026-08-26T18:57:06.290Z","0.1.0":"2026-07-14T11:20:26.441Z","0.1.1":"2026-07-14T11:30:27.627Z","0.1.2":"2026-07-14T13:28:34.250Z","0.1.3":"2026-07-14T15:04:37.336Z","0.1.4":"2026-07-19T10:25:22.589Z","0.1.5":"2026-07-19T12:06:57.024Z","0.1.6":"2026-07-19T12:27:28.610Z","0.1.7":"2026-08-26T18:57:06.155Z"},"bugs":{"url":"https://github.com/toriihq/request-got-adapter/issues"},"license":"MIT","homepage":"https://github.com/toriihq/request-got-adapter#readme","keywords":["request","request-promise","request-promise-native","got","http","https","client","drop-in","adapter","migration"],"repository":{"type":"git","url":"git+https://github.com/toriihq/request-got-adapter.git"},"description":"Drop-in replacement for request-promise-native, backed by got. Same API, same options, same errors — no deprecated request-family dependencies.","maintainers":[{"name":"berzniz","email":"berzniz@gmail.com"}],"readme":"# request-got-adapter\n\nA drop-in replacement for [`request-promise-native`](https://github.com/request/request-promise-native), backed by [`got`](https://github.com/sindresorhus/got) — with **zero request-family dependencies**.\n\nThe [`request`](https://github.com/request/request) ecosystem was deprecated in 2020 but still powers a lot of production code. Rewriting every call site to a modern HTTP client is a big, risky migration. This package takes the other path: keep your code exactly as it is and swap the engine underneath.\n\n```diff\n- const request = require('request-promise-native')\n+ const request = require('request-got-adapter')\n```\n\nThat's the whole migration. Same options, same response shapes, same error classes, same TypeScript types.\n\nYou can even do it without touching code, via an npm alias:\n\n```json\n{\n  \"dependencies\": {\n    \"request-promise-native\": \"npm:request-got-adapter@^0.1.0\"\n  }\n}\n```\n\n## Install\n\n```bash\nnpm install request-got-adapter\n```\n\nRequires Node.js >= 22. Works from plain CommonJS (`require`) — the ESM-only `got` is loaded internally.\n\n## Usage\n\nExactly like request-promise-native:\n\n```js\nconst rp = require('request-got-adapter')\n\n// simple GET — resolves with the body\nconst html = await rp('https://example.com')\n\n// options object\nconst user = await rp({\n  uri: 'https://api.example.com/users/42',\n  qs: { include: 'profile' },\n  headers: { Authorization: 'Bearer token' },\n  json: true\n})\n\n// full response\nconst response = await rp({\n  uri: 'https://api.example.com/health',\n  resolveWithFullResponse: true,\n  simple: false\n})\nconsole.log(response.statusCode, response.headers)\n\n// errors behave identically\nconst { StatusCodeError, RequestError } = require('request-got-adapter/errors')\ntry {\n  await rp({ uri: 'https://api.example.com/missing', json: true })\n} catch (err) {\n  if (err instanceof StatusCodeError) {\n    console.log(err.statusCode)   // 404\n    console.log(err.error)        // parsed body\n    console.log(err.message)      // '404 - {\"error\":\"not found\"}'\n  }\n}\n```\n\nTypeScript works the same way as with `@types/request-promise-native`:\n\n```ts\nimport request, { type Options, type FullResponse } from 'request-got-adapter'\nimport { StatusCodeError } from 'request-got-adapter/errors'\n```\n\n## Setting a default agent\n\n`agent`, `agentOptions` and `forever` work per call, as in request. When you want one agent\nfor the whole process — a connection pool, a proxy agent, or an agent that vets where sockets\nmay connect — set it once at bootstrap:\n\n```ts\nimport request from 'request-got-adapter'\n\nrequest.setDefaultAgent(myAgent)                              // one agent for http and https\nrequest.setDefaultAgent({ http: myHttpAgent, https: myTlsAgent })  // or one per protocol\nrequest.setDefaultAgent(undefined)                            // back to got's own agent\nrequest.getDefaultAgent()                                     // whatever is currently set\n```\n\nUnset by default, so the package stays a drop-in. It applies only when the call itself asked\nfor nothing: a per-call `agent`, `agentOptions` or `forever: true` still wins, since each of\nthose names a specific agent. Every request — and every redirect hop — otherwise goes through\nit, which is what makes it a usable place to enforce a connection policy: an agent that throws\nfrom `createConnection` surfaces as an ordinary `RequestError`.\n\n## Compatibility philosophy\n\nThe contract is **observable behavior parity** with request-promise-native — down to error message formats, redirect semantics, and header behavior. A separate repo, [`request-got-adapter-parity-tests`](https://github.com/toriihq/request-got-adapter-parity-tests), runs one behavioral test suite against both the real `request-promise-native` and this adapter and expects identical results. If a test passes there for rpn and fails for this package, that's a bug here — no debate.\n\nNotable parity details handled for you:\n\n- No default `user-agent` header (got normally adds one)\n- No `accept-encoding` / decompression unless you pass `gzip: true` (got normally auto-negotiates)\n- No automatic retries (got defaults to 2)\n- `StatusCodeError.message` is `` `${statusCode} - ${JSON.stringify(body)}` `` — strings included\n- `RequestError.message` is `String(cause)`, e.g. `'Error: getaddrinfo ENOTFOUND nope.example'`\n- Timeouts map to `ETIMEDOUT` (connect phase, with `connect: true`) / `ESOCKETTIMEDOUT` (after connect)\n- Redirects: GET/HEAD followed by default (plain truthiness, like request), any method with `followAllRedirects`; body/content-type/content-length stripped on any status except 401/307 (308 is *not* special in request), method rewritten to GET only under `followAllRedirects` (kept with `followOriginalHttpMethod`), `referer` header added, `maxRedirects` compared with request's raw JS coercion\n- `qs`-based query/form serialization (arrays as `a[0]=x&a[1]=y`, RFC 3986 escaping), `useQuerystring` supported\n- Option-validation errors reject the returned promise (and reach a provided callback) — never synchronous throws\n\nDeliberate improvements over the reference — cases where real request on Node >= 22 crashes the whole process instead of rejecting, and this adapter rejects cleanly:\n\n- object `body` without `json: true` (rejects with request's `Argument error, options.body.`; request also crashes with an uncaught async TypeError)\n- invalid `encoding` values like `false` or `''` (request throws `ERR_UNKNOWN_ENCODING` synchronously inside a stream handler)\n- `formData` combined with a `body` (request writes the body after ending the multipart stream — `write after end`)\n\n## Supported options\n\n| Option | Status |\n|---|---|\n| `uri` / `url` / `baseUrl` / `method` | ✅ |\n| `qs` / `qsStringifyOptions` / `qsParseOptions` / `useQuerystring` | ✅ |\n| `headers` (case-preserving, case-insensitive lookup) | ✅ |\n| `body` / `json` (boolean or value) | ✅ |\n| `form` / `formData` (multipart via form-data) | ✅ |\n| `auth` — Basic, Bearer, `sendImmediately: false`, **Digest** | ✅ |\n| `oauth` — OAuth 1.0 (HMAC-SHA1/SHA256, RSA-SHA1, PLAINTEXT; header/query/body transports, body_hash) | ✅ |\n| `simple` / `resolveWithFullResponse` | ✅ |\n| `gzip` / `encoding` (incl. `null` → Buffer) | ✅ |\n| `followRedirect` / `followAllRedirects` / `followOriginalHttpMethod` / `maxRedirects` | ✅ |\n| `timeout` / `time` (elapsedTime, timingPhases) | ✅ |\n| `strictSSL` / `rejectUnauthorized` / `ca` / `cert` / `key` / `pfx` / `passphrase` | ✅ |\n| `agent` / `agentOptions` / `forever` / `.forever()` | ✅ |\n| `jar` / `request.jar()` / `request.cookie()` (tough-cookie) | ✅ |\n| `transform` / `transform2xxOnly` | ✅ |\n| `response.caseless` (case-insensitive header helper) | ✅ |\n| `localAddress` / `family` / `lookup` | ✅ |\n| `.defaults()` (chainable) | ✅ |\n| Callback style `(err, response, body)` alongside promises | ✅ |\n| Verb helpers `.get/.post/.put/.patch/.del/.delete/.head/.options` | ✅ |\n\n## GAPS / TODO\n\nThese request features are **not implemented**. Passing them throws a clear `not implemented` error rather than silently misbehaving (except where noted). PRs welcome.\n\n| Option / feature | Status |\n|---|---|\n| Stream mode — `.pipe()`, `.on('response')`, `.on('data')` on the returned object | ❌ TODO — the returned object is a promise, not a duplex stream |\n| `.cancel()` on the returned promise | ❌ not present (matches request-promise-**native**, which also lacks it) |\n| `har` | ❌ throws |\n| `aws` (AWS signing) | ❌ throws |\n| `httpSignature` | ❌ throws |\n| `proxy` / `tunnel` | ❌ throws — use an `agent` (e.g. [hpagent](https://github.com/delvedor/hpagent)) instead |\n| `multipart` / `preambleCRLF` / `postambleCRLF` (raw multipart, not formData) | ❌ throws |\n| `jsonReviver` / `jsonReplacer` | ❌ throws |\n| `pool` | ❌ throws — use `agent` |\n| `removeRefererHeader` | ❌ throws |\n| `followRedirect` as a function | ❌ throws |\n| `request.debug` / `request.initParams` | ❌ not present |\n| TypeScript: `rp.delete(...)` | runtime works; types expose `.del` (`delete` is a reserved word in the type namespace) |\n\n## How it works\n\nA thin, clean-room translation layer:\n\n1. **Translate** request-promise-native options into got options (`translate.ts`)\n2. **Execute** via got with parity settings (`throwHttpErrors: false`, `retry: {limit: 0}`, `decompress` off unless `gzip: true`)\n3. **Shape** got's response back into request's response shape, or throw re-implemented `StatusCodeError` / `RequestError` / `TransformError`\n\nDependencies: `got`, `qs`, `tough-cookie`, `form-data`. OAuth 1.0 signing and Digest auth are implemented natively with `node:crypto`. CI fails if any request-family package sneaks into the dependency tree.\n\n## License\n\nMIT — see [LICENSE](LICENSE)\n","readmeFilename":"README.md"}