Skip to content

Commit

Permalink
style: set tab width to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Nov 10, 2021
1 parent a9e08e0 commit 3db52e1
Show file tree
Hide file tree
Showing 15 changed files with 16,412 additions and 16,412 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120
"printWidth": 120,
"tabWidth": 4
}
22 changes: 11 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,54 @@

### Bug Fixes

- **deps:** update dependency tslib to v2.3.1 ([fa0d482](https://github.com/screendriver/verify-github-webhook-secret/commit/fa0d4820ab4408046f02937540d586fb5dad303a))
- **deps:** update dependency tslib to v2.3.1 ([fa0d482](https://github.com/screendriver/verify-github-webhook-secret/commit/fa0d4820ab4408046f02937540d586fb5dad303a))

## [2.0.5](https://github.com/screendriver/verify-github-webhook-secret/compare/v2.0.4...v2.0.5) (2021-06-12)

### Bug Fixes

- **deps:** update dependency tslib to v2.3.0 ([662ea26](https://github.com/screendriver/verify-github-webhook-secret/commit/662ea26c57ccaef3c076c95e6d259ff4d1c2e5d1))
- **deps:** update dependency tslib to v2.3.0 ([662ea26](https://github.com/screendriver/verify-github-webhook-secret/commit/662ea26c57ccaef3c076c95e6d259ff4d1c2e5d1))

## [2.0.4](https://github.com/screendriver/verify-github-webhook-secret/compare/v2.0.3...v2.0.4) (2021-05-07)

### Bug Fixes

- **deps:** update dependency tslib to v2.2.0 ([749f453](https://github.com/screendriver/verify-github-webhook-secret/commit/749f453df0b16b63096cf67156ab346ddc6f1fde))
- **deps:** update dependency tslib to v2.2.0 ([749f453](https://github.com/screendriver/verify-github-webhook-secret/commit/749f453df0b16b63096cf67156ab346ddc6f1fde))

## [2.0.3](https://github.com/screendriver/verify-github-webhook-secret/compare/v2.0.2...v2.0.3) (2021-01-06)

### Bug Fixes

- **deps:** update dependency tslib to v2.1.0 ([b100ef4](https://github.com/screendriver/verify-github-webhook-secret/commit/b100ef4092526968dcf7ddcbfce0cae9a1b99a56))
- **deps:** update dependency tslib to v2.1.0 ([b100ef4](https://github.com/screendriver/verify-github-webhook-secret/commit/b100ef4092526968dcf7ddcbfce0cae9a1b99a56))

## [2.0.2](https://github.com/screendriver/verify-github-webhook-secret/compare/v2.0.1...v2.0.2) (2020-10-11)

### Bug Fixes

- **deps:** update dependency tslib to v2.0.3 ([6e5a6a0](https://github.com/screendriver/verify-github-webhook-secret/commit/6e5a6a0b6bff843db1b1c18a6636436787d67b33))
- **deps:** update dependency tslib to v2.0.3 ([6e5a6a0](https://github.com/screendriver/verify-github-webhook-secret/commit/6e5a6a0b6bff843db1b1c18a6636436787d67b33))

## [2.0.1](https://github.com/screendriver/verify-github-webhook-secret/compare/v2.0.0...v2.0.1) (2020-10-07)

### Bug Fixes

- change order in lint script ([10b2679](https://github.com/screendriver/verify-github-webhook-secret/commit/10b2679dc9c366eec5836946bc1df5c9a0e497bf))
- change order in lint script ([10b2679](https://github.com/screendriver/verify-github-webhook-secret/commit/10b2679dc9c366eec5836946bc1df5c9a0e497bf))

# 2.0.0

- Export named function `verifySecret()` instead of a single object (no `export =` anymore)
- Export named function `verifySecret()` instead of a single object (no `export =` anymore)

# 1.1.0

- Allow to call function directly with body and signature
- Allow to call function directly with body and signature

# 1.0.3

- fix README
- fix README

# 1.0.2

- Replace co-body with micro
- Replace co-body with micro

# 1.0.1

- Add missing files for publishing
- Add missing files for publishing
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import micro from 'micro';
import { verifySecret } from 'verify-github-webhook-secret';

const server = micro(async (req) => {
const valid = await verifySecret(req, 'my-secret');
return valid ? 'Allowed' : 'Not allowed';
const valid = await verifySecret(req, 'my-secret');
return valid ? 'Allowed' : 'Not allowed';
});
```

Expand All @@ -40,7 +40,7 @@ Another way to call the function is directly with the HTTP body and the `x-hub-s
import { verifySecret } from 'verify-github-webhook-secret';

async function myFunc() {
const valid = await verifySecret('{"foo":"bar"}', 'my-secret', 'sha1=30a233839fe2ddd9233c49fd593e8f1aec68f553');
return valid ? 'Allowed' : 'Not allowed';
const valid = await verifySecret('{"foo":"bar"}', 'my-secret', 'sha1=30a233839fe2ddd9233c49fd593e8f1aec68f553');
return valid ? 'Allowed' : 'Not allowed';
}
```
11 changes: 5 additions & 6 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module.exports = {
// files: ['test/**/*.test.*'],
extensions: ['ts'],
require: ['ts-node/register/transpile-only'],
environmentVariables: {
TS_NODE_PROJECT: 'tsconfig.base.json',
},
extensions: ['ts'],
require: ['ts-node/register/transpile-only'],
environmentVariables: {
TS_NODE_PROJECT: 'tsconfig.base.json',
},
};
Loading

0 comments on commit 3db52e1

Please sign in to comment.