Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jul 1, 2022
1 parent 8535e46 commit 7538c27
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 7,654 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.*.js
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto
* text=auto eol=lf
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
node_version:
- 14
- 16
- 18
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ coverage
.nyc_output
locales/
package-lock.json

yarn.lock

Thumbs.db
tmp/
temp/
*.lcov
.env
4 changes: 2 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
npx --no-install commitlint --edit $1
6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged && yarn test
npx --no-install lint-staged && npm test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# koa-redirect-loop

[![build status](https://img.shields.io/travis/com/ladjs/koa-redirect-loop.svg)](https://app.travis-ci.com/github/ladjs/koa-redirect-loop)
[![code coverage](https://img.shields.io/codecov/c/github/ladjs/koa-redirect-loop.svg)](https://codecov.io/gh/ladjs/koa-redirect-loop)
[![build status](https://github.com/ladjs/koa-redirect-loop/actions/workflows/ci.yml/badge.svg)](https://github.com/ladjs/koa-redirect-loop/actions/workflows/ci.yml)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
Expand Down Expand Up @@ -30,12 +29,6 @@
npm install koa-redirect-loop
```

[yarn][]:

```sh
yarn add koa-redirect-loop
```


## Usage

Expand Down Expand Up @@ -79,5 +72,3 @@ app.use(redirectLoop.middleware);
##

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/
28 changes: 13 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "koa-redirect-loop",
"description": "Prevent redirect loops with sessions since HTTP referrer header is unreliable and ensures sessions are saved upon redirect",
"version": "2.0.0",
"version": "2.0.1",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
"ava": {
"serial": true,
Expand All @@ -20,34 +20,33 @@
"url-parse": "^1.5.10"
},
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@hapi/boom": "^10.0.0",
"@koa/router": "^10.1.1",
"@ladjs/state-helper": "^1.0.0",
"ava": "^4.3.0",
"cabin": "^9.1.2",
"codecov": "^3.8.3",
"cross-env": "^7.0.3",
"crypto-random-string": "3",
"eslint": "^8.16.0",
"eslint-config-xo-lass": "^1.0.6",
"eslint": "^8.18.0",
"eslint-config-xo-lass": "^2.0.1",
"fixpack": "^4.0.0",
"husky": "^8.0.1",
"ioredis": "^5.0.6",
"ioredis": "^5.1.0",
"ioredis-mock": "^8.2.2",
"koa": "^2.13.4",
"koa-better-error-handler": "^9.0.0",
"koa-better-flash": "^0.0.4",
"koa-compress": "^5.1.0",
"koa-generic-session": "^2.3.0",
"koa-redis": "^4.0.1",
"lint-staged": "^13.0.0",
"lint-staged": "^13.0.3",
"nyc": "latest",
"remark-cli": "^10.0.1",
"remark-preset-github": "^4.0.2",
"remark-cli": "^11.0.0",
"remark-preset-github": "^4.0.4",
"supertest": "^6.2.3",
"xo": "^0.49.0"
"xo": "^0.50.0"
},
"engines": {
"node": ">=14"
Expand Down Expand Up @@ -90,10 +89,9 @@
"url": "https://github.com/ladjs/koa-redirect-loop"
},
"scripts": {
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "xo && remark . -qfo",
"lint": "xo --fix && remark . -qfo && fixpack",
"prepare": "husky install",
"test": "npm run lint && npm run test-coverage",
"test-coverage": "cross-env NODE_ENV=test nyc ava"
"pretest": "npm run lint",
"test": "cross-env NODE_ENV=test nyc ava"
}
}
Loading

0 comments on commit 7538c27

Please sign in to comment.