Skip to content

Commit

Permalink
fix: semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Nov 15, 2019
1 parent 47cdc67 commit 2474b8f
Show file tree
Hide file tree
Showing 8 changed files with 668 additions and 681 deletions.
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 2
jobs:
test:
docker:
- image: circleci/node:latest
working_directory: ~/repo
steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: yarn test

release:
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: yarn install
- run: npx semantic-release

workflows:
version: 2
test_and_release:
jobs:
- test
- release:
requires:
- test
filters:
branches:
only:
- master
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Please search open/closed issues before submitting since someone might have aske
If you have a support request or question please submit them to one of this resources:
* Stack Overflow: http://stackoverflow.com/questions/tagged/request+node.js using the tags `node.js` & `request`
* Gitter community: https://gitter.im/request/request?utm_source=newissue
* Gitter community: https://gitter.im/cypress-io/request?utm_source=newissue
* Also have a look at the Readme for more information on how to get support:
https://github.com/request/request/blob/master/README.md
https://github.com/cypress-io/request/blob/master/README.md
Issues on GitHub are only related to problems of request itself and we cannot answer
support questions here.
Expand Down
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

1,210 changes: 605 additions & 605 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ These are just guidelines, not rules, use your best judgment and feel free to pr
## Submitting an Issue

1. Provide a small self **sufficient** code example to **reproduce** the issue.
2. Run your test code using [request-debug](https://github.com/request/request-debug) and copy/paste the results inside the issue.
2. Run your test code using [request-debug](https://github.com/cypress-io/request-debug) and copy/paste the results inside the issue.
3. You should **always** use fenced code blocks when submitting code examples or any other formatted output:
<pre>
```js
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

[![npm package](https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/request/)

[![Build status](https://img.shields.io/travis/request/request/master.svg?style=flat-square)](https://travis-ci.org/request/request)
[![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/request/request?branch=master)
[![Coverage](https://img.shields.io/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request)
[![Dependency Status](https://img.shields.io/david/request/request.svg?style=flat-square)](https://david-dm.org/request/request)
[![Build status](https://img.shields.io/travis/cypress-io/request/master.svg?style=flat-square)](https://travis-ci.org/cypress-io/request)
[![Coverage](https://img.shields.io/codecov/c/github/cypress-io/request.svg?style=flat-square)](https://codecov.io/github/cypress-io/request?branch=master)
[![Coverage](https://img.shields.io/coveralls/cypress-io/request.svg?style=flat-square)](https://coveralls.io/r/cypress-io/request)
[![Dependency Status](https://img.shields.io/david/cypress-io/request.svg?style=flat-square)](https://david-dm.org/cypress-io/request)
[![Known Vulnerabilities](https://snyk.io/test/npm/request/badge.svg?style=flat-square)](https://snyk.io/test/npm/request)
[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request?utm_source=badge)
[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/cypress-io/request?utm_source=badge)


## Super simple to use
Expand Down Expand Up @@ -148,9 +148,9 @@ You can still use intermediate proxies, the requests will still follow HTTP forw
`request` supports both streaming and callback interfaces natively. If you'd like `request` to return a Promise instead, you can use an alternative interface wrapper for `request`. These wrappers can be useful if you prefer to work with Promises, or if you'd like to use `async`/`await` in ES2017.

Several alternative interfaces are provided by the request team, including:
- [`request-promise`](https://github.com/request/request-promise) (uses [Bluebird](https://github.com/petkaantonov/bluebird) Promises)
- [`request-promise-native`](https://github.com/request/request-promise-native) (uses native Promises)
- [`request-promise-any`](https://github.com/request/request-promise-any) (uses [any-promise](https://www.npmjs.com/package/any-promise) Promises)
- [`request-promise`](https://github.com/cypress-io/request-promise) (uses [Bluebird](https://github.com/petkaantonov/bluebird) Promises)
- [`request-promise-native`](https://github.com/cypress-io/request-promise-native) (uses native Promises)
- [`request-promise-any`](https://github.com/cypress-io/request-promise-any) (uses [any-promise](https://www.npmjs.com/package/any-promise) Promises)

Also, [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original), which is available from Node.js v8.0 can be used to convert a regular function that takes a callback to return a promise instead.

Expand Down Expand Up @@ -352,7 +352,7 @@ custom `User-Agent` header as well as https.
const request = require('request');

const options = {
url: 'https://api.github.com/repos/request/request',
url: 'https://api.github.com/repos/cypress-io/request',
headers: {
'User-Agent': 'request'
}
Expand Down Expand Up @@ -679,7 +679,7 @@ request.get({

The `ca` value can be an array of certificates, in the event you have a private or internal corporate public-key infrastructure hierarchy. For example, if you want to connect to https://api.some-server.com which presents a key chain consisting of:
1. its own public key, which is signed by:
2. an intermediate "Corp Issuing Server", that is in turn signed by:
2. an intermediate "Corp Issuing Server", that is in turn signed by:
3. a root CA "Corp Root CA";

you can configure your request as follows:
Expand Down Expand Up @@ -947,7 +947,7 @@ Function that returns the specified response header field using a [case-insensit
```js
request('http://www.google.com', function (error, response, body) {
// print the Content-Type header even if the server returned it as 'content-type' (lowercase)
console.log('Content-Type is:', response.caseless.get('Content-Type'));
console.log('Content-Type is:', response.caseless.get('Content-Type'));
});
```

Expand All @@ -967,7 +967,7 @@ There are at least three ways to debug the operation of `request`:
2. Set `require('request').debug = true` at any time (this does the same thing
as #1).

3. Use the [request-debug module](https://github.com/request/request-debug) to
3. Use the [request-debug module](https://github.com/cypress-io/request-debug) to
view request and response headers and bodies.

[back to top](#table-of-contents)
Expand Down
36 changes: 0 additions & 36 deletions disabled.appveyor.yml

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "request",
"description": "Simplified HTTP request client.",
"name": "@cypress/request",
"description": "Cypress's fork of a simplified HTTP request client.",
"keywords": [
"http",
"simple",
Expand All @@ -11,10 +11,10 @@
"author": "Mikeal Rogers <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/request/request.git"
"url": "https://github.com/cypress-io/request.git"
},
"bugs": {
"url": "http://github.com/request/request/issues"
"url": "http://github.com/cypress-io/request/issues"
},
"license": "Apache-2.0",
"engines": {
Expand Down

0 comments on commit 2474b8f

Please sign in to comment.