Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 13bdb0a

Browse files
doc update
[ci skip]
1 parent 26cb921 commit 13bdb0a

File tree

4 files changed

+10
-26
lines changed

4 files changed

+10
-26
lines changed

‎CHANGELOG.md‎

Whitespace-only changes.

‎CONTRIBUTING.md‎

Whitespace-only changes.

‎README.md‎

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
# Deprecated!
2-
3-
As of Feb 11th 2020, request is fully deprecated. No new changes are expected to land. In fact, none have landed for some time.
4-
5-
For more information about why request is deprecated and possible alternatives refer to
6-
[this issue](https://github.com/request/request/issues/3142).
7-
8-
# @cypress/request - Simplified HTTP client
9-
10-
[![npm package](https://nodei.co/npm/@cypress/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/@cypress/request/)
11-
12-
**This is a fork of [`request`](https://github.com/request/request) for use in [Cypress](https://github.com/cypress-io/cypress).**
13-
141
## Super simple to use
152

163
Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.
174

185
```js
19-
const request = require('@cypress/request');
6+
const request = require('@search-dump/request');
207
request('http://www.google.com', function (error, response, body) {
218
console.error('error:', error); // Print the error if one occurred
229
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
@@ -348,7 +335,7 @@ of stars and forks for the request repository. This requires a
348335
custom `User-Agent` header as well as https.
349336

350337
```js
351-
const request = require('request');
338+
const request = require('@search-dump/request');
352339

353340
const options = {
354341
url: 'https://api.github.com/repos/cypress-io/request',
@@ -520,7 +507,7 @@ const fs = require('fs')
520507
, certFile = path.resolve(__dirname, 'ssl/client.crt')
521508
, keyFile = path.resolve(__dirname, 'ssl/client.key')
522509
, caFile = path.resolve(__dirname, 'ssl/ca.cert.pem')
523-
, request = require('request');
510+
, request = require('@search-dump/request');
524511

525512
const options = {
526513
url: 'https://api.some-server.com/',
@@ -543,7 +530,7 @@ const fs = require('fs')
543530
, path = require('path')
544531
, certFile = path.resolve(__dirname, 'ssl/client.crt')
545532
, keyFile = path.resolve(__dirname, 'ssl/client.key')
546-
, request = require('request');
533+
, request = require('@search-dump/request');
547534

548535
const options = {
549536
url: 'https://api.some-server.com/',
@@ -616,7 +603,7 @@ The `options.har` property will override the values: `url`, `method`, `qs`, `hea
616603
A validation step will check if the HAR Request format matches the latest spec (v1.2) and will skip parsing if not matching.
617604

618605
```js
619-
const request = require('request')
606+
const request = require('@search-dump/request')
620607
request({
621608
// will be ignored
622609
method: 'GET',
@@ -872,7 +859,7 @@ There are at least three ways to debug the operation of `request`:
872859
1. Launch the node process like `NODE_DEBUG=request node script.js`
873860
(`lib,request,otherlib` works too).
874861

875-
2. Set `require('request').debug = true` at any time (this does the same thing
862+
2. Set `require('@search-dump/request').debug = true` at any time (this does the same thing
876863
as #1).
877864

878865
3. Use the [request-debug module](https://github.com/cypress-io/request-debug) to
@@ -916,7 +903,7 @@ request.get('http://10.255.255.1', {timeout: 1500}, function(err) {
916903
## Examples:
917904

918905
```js
919-
const request = require('request')
906+
const request = require('@search-dump/request')
920907
, rand = Math.floor(Math.random()*100000000).toString()
921908
;
922909
request(
@@ -947,7 +934,7 @@ while the response object is unmodified and will contain compressed data if
947934
the server sent a compressed response.
948935

949936
```js
950-
const request = require('request')
937+
const request = require('@search-dump/request')
951938
request(
952939
{ method: 'GET'
953940
, uri: 'http://www.google.com'

‎package.json‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@
77
"util",
88
"utility"
99
],
10-
"version": "2.88.1",
10+
"version": "2.90.1",
1111
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>",
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/cypress-io/request.git"
15-
},
16-
"bugs": {
17-
"url": "http://github.com/cypress-io/request/issues"
14+
"url": "https://github.com/elasticsearch-dump/request.git"
1815
},
1916
"license": "Apache-2.0",
2017
"engines": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /