Skip to content

Commit

Permalink
Upgrade to ts-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Mar 9, 2022
1 parent fd494fc commit db8674a
Show file tree
Hide file tree
Showing 10 changed files with 10,009 additions and 4,843 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,30 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- "12"
- "*"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install -g npm@8
- run: npm ci
- run: npm test
- uses: codecov/codecov-action@v1
with:
name: Node.js ${{ matrix.node-version }}
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

22 changes: 11 additions & 11 deletions README.md
Expand Up @@ -2,8 +2,8 @@

[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Build status][build-image]][build-url]
[![Build coverage][coverage-image]][coverage-url]

> Popsicle middleware for following HTTP redirects.
Expand All @@ -23,9 +23,9 @@ const middleware = redirects(transport());

### Options

* `fn` Wrap a [`throwback`](https://github.com/serviejs/throwback) compatible middleware function in redirect behavior
* `maxRedirects` Set the maximum number of redirects to attempt before throwing an error (default: `5`)
* `confirmRedirect` Confirmation function for following 307 and 308 non-idempotent redirects (default: `() => false`)
- `fn` Wrap a [`throwback`](https://github.com/serviejs/throwback) compatible middleware function in redirect behavior
- `maxRedirects` Set the maximum number of redirects to attempt before throwing an error (default: `5`)
- `confirmRedirect` Confirmation function for following 307 and 308 non-idempotent redirects (default: `() => false`)

## TypeScript

Expand All @@ -35,11 +35,11 @@ This project is written using [TypeScript](https://github.com/Microsoft/TypeScri

MIT

[npm-image]: https://img.shields.io/npm/v/popsicle-redirects.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/popsicle-redirects
[npm-url]: https://npmjs.org/package/popsicle-redirects
[downloads-image]: https://img.shields.io/npm/dm/popsicle-redirects.svg?style=flat
[downloads-image]: https://img.shields.io/npm/dm/popsicle-redirects
[downloads-url]: https://npmjs.org/package/popsicle-redirects
[travis-image]: https://img.shields.io/travis/serviejs/popsicle-redirects.svg?style=flat
[travis-url]: https://travis-ci.org/serviejs/popsicle-redirects
[coveralls-image]: https://img.shields.io/coveralls/serviejs/popsicle-redirects.svg?style=flat
[coveralls-url]: https://coveralls.io/r/serviejs/popsicle-redirects?branch=master
[build-image]: https://img.shields.io/github/workflow/status/serviejs/popsicle-redirects/CI/main
[build-url]: https://github.com/serviejs/popsicle-redirects/actions/workflows/ci.yml?query=branch%3Amain
[coverage-image]: https://img.shields.io/codecov/c/gh/serviejs/popsicle-redirects
[coverage-url]: https://codecov.io/gh/serviejs/popsicle-redirects

0 comments on commit db8674a

Please sign in to comment.