Skip to content

Commit

Permalink
chore: upgrade dependencies (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Yip <colin.yip@mattr.global>
  • Loading branch information
pablodenadai and colinyip committed Jun 20, 2022
1 parent 1eeb9d1 commit 07cfae1
Show file tree
Hide file tree
Showing 8 changed files with 534 additions and 2,210 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

[[ -n $HUSKY_BYPASS ]] || npx --no -- commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

[[ -n $HUSKY_BYPASS ]] || npx --no -- pretty-quick --staged
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# [1.1.0](https://github.com/mattrglobal/http-signatures/compare/1.0.0...1.1.0) (2022-06-17)


### Features

* adding github actions to backup repository to s3 ([#23](https://github.com/mattrglobal/http-signatures/issues/23)) ([d01ca51](https://github.com/mattrglobal/http-signatures/commit/d01ca51152286c90d63e2aadf8b062590ddbac96))



# [1.0.0](https://github.com/mattrglobal/http-signatures/compare/0.4.0...1.0.0) (2022-01-09)


Expand Down
3 changes: 0 additions & 3 deletions DEBT.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@ badcrypto.encrypt(privateData);
| ID | Date _(dd/MM/yy)_ | Author | Summary |
| :-- | :---------------- | :----- | :------ |


## Med Priority

| ID | Date _(dd/MM/yy)_ | Author | Summary |
| :-- | :---------------- | :----- | :------ |


## Low Priority

| ID | Date _(dd/MM/yy)_ | Author | Summary |
| :-- | :---------------- | :----- | :------ |

9 changes: 4 additions & 5 deletions __tests__/verify/verify.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ import { createSignatureHeaderOptions } from "../__fixtures__/createSignatureHea
describe("verifySignatureHeader", () => {
Date.now = jest.fn(() => 1577836800); //01.01.2020

const verifyEd25519 = (publicKey: Uint8Array) => async (
keyId: string,
data: Uint8Array,
signature: Uint8Array
): Promise<boolean> => await verify(publicKey, data, signature);
const verifyEd25519 =
(publicKey: Uint8Array) =>
async (keyId: string, data: Uint8Array, signature: Uint8Array): Promise<boolean> =>
await verify(publicKey, data, signature);

let createSignatureResult: { digest?: string; signature: string };
let keyPair: KeyPair;
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
40 changes: 12 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mattrglobal/http-signatures",
"version": "1.0.0",
"version": "1.1.0",
"description": "Http request signing and verifying",
"private": false,
"main": "lib/index.js",
Expand Down Expand Up @@ -34,56 +34,40 @@
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"version:release": "yarn version --message \"chore(release): publish\"",
"publish:stable": "./scripts/publish_stable.sh",
"publish:unstable": "./scripts/publish_unstable.sh"
"publish:unstable": "./scripts/publish_unstable.sh",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "17.0.2",
"@commitlint/config-conventional": "17.0.2",
"@stablelib/ed25519": "1.0.0",
"@stablelib/ed25519": "1.0.2",
"@types/jest": "28.1.1",
"@types/ramda": "0.27.32",
"@typescript-eslint/eslint-plugin": "5.27.1",
"@typescript-eslint/parser": "5.27.1",
"@typescript-eslint/eslint-plugin": "5.28.0",
"@typescript-eslint/parser": "5.28.0",
"conventional-changelog": "3.1.25",
"conventional-changelog-cli": "2.2.2",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.17.0",
"eslint-formatter-table": "7.32.1",
"eslint-plugin-functional": "4.2.1",
"eslint-plugin-header": "3.1.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-node": "11.1.0",
"husky": "4.2.5",
"husky": "8.0.1",
"jest": "28.1.1",
"prettier": "2.0.4",
"prettier": "2.7.1",
"pretty-quick": "2.0.1",
"ts-jest": "28.0.4",
"ts-jest": "28.0.5",
"ts-node": "8.4.1",
"typedoc": "0.22.17",
"typedoc-plugin-markdown": "3.12.1",
"typescript": "4.7.3"
},
"husky": {
"hooks": {
"commit-msg": "[[ -n $HUSKY_BYPASS ]] || commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "[[ -n $HUSKY_BYPASS ]] || pretty-quick --staged"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"@stablelib/base64": "1.0.0",
"@stablelib/sha256": "1.0.0",
"@stablelib/base64": "1.0.1",
"@stablelib/sha256": "1.0.1",
"buffer": "6.0.3",
"canonicalize": "1.0.5",
"canonicalize": "1.0.8",
"neverthrow": "3.0.0",
"ramda": "0.27.1",
"url": "0.11.0"
Expand Down

0 comments on commit 07cfae1

Please sign in to comment.