-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(port-hooks): move to deno 2 and refactor usages
- Loading branch information
1 parent
85ff0a3
commit 64668d4
Showing
11 changed files
with
110 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,33 @@ | ||
# hyper63 hooks port | ||
<h1 align="center">hyper-port-hooks</h1> | ||
<p align="center">Port for the Hooks Service in the <a href="https://hyper.io/">hyper</a> Service Framework</p> | ||
</p> | ||
<p align="center"> | ||
<a href="https://nest.land/package/hyper-port-hooks"><img src="https://nest.land/badge.svg" alt="Nest Badge" /></a> | ||
<a href="https://jsr.io/@hyper63/port-hooks"><img src="https://jsr.io/badges/@hyper63/port-hooks" alt="" /></a> | ||
<a href="https://github.com/hyper63/hyper63/actions/workflows/port-hooks.yml"><img src="https://github.com/hyper63/hyper63/actions/workflows/port-hooks.yml/badge.svg" alt="Test" /></a> | ||
</p> | ||
|
||
A hyper63 port is a schema validator for implementation details. These implementation details exist | ||
in the adapter. Using a port you can make sure that the adapter properly implements the port | ||
correctly. | ||
--- | ||
|
||
hyper63 port is a module that validates the schema of an adapter. In this case the hooks port | ||
validates the schema of a hooks adapter. | ||
|
||
<!-- toc --> | ||
|
||
- [Usage](#usage) | ||
- [Test](#test) | ||
- [License](#license) | ||
|
||
<!-- tocstop --> | ||
|
||
## Usage | ||
|
||
## Testing | ||
## Test | ||
|
||
```sh | ||
deno task test | ||
``` | ||
|
||
## License | ||
|
||
## Documentation | ||
Apache-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "@hyper63/port-hooks", | ||
"version": "2.0.0", | ||
"exports": "./mod.ts", | ||
"tasks": { | ||
"test": "deno lint && deno fmt --check && deno test --no-check", | ||
"cache": "deno install --entrypoint mod.ts" | ||
}, | ||
"imports": { | ||
"zod": "npm:[email protected]", | ||
"@std/assert": "jsr:@std/assert@1" | ||
}, | ||
"fmt": { | ||
"include": [ | ||
"./" | ||
], | ||
"lineWidth": 100, | ||
"singleQuote": true, | ||
"semiColons": false | ||
}, | ||
"lint": { | ||
"rules": { | ||
"exclude": [ | ||
"no-slow-types" | ||
] | ||
} | ||
}, | ||
"publish": { | ||
"include": [ | ||
"*" | ||
], | ||
"exclude": [ | ||
"**/*.test.ts" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"$schema": "https://x.nest.land/[email protected]/src/schema.json", | ||
"name": "hyper-port-hooks", | ||
"entry": "./mod.ts", | ||
"description": "Hyper service framework port for Hooks adapters", | ||
"description": "Port for the Hooks Service in the hyper Service Framework", | ||
"homepage": "https://github.com/hyper63/hyper", | ||
"repo": "https://github.com/hyper63/hyper", | ||
"version": "2.0.0", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { z } from './deps.ts' | ||
import { z } from 'zod' | ||
|
||
export const port = z.object({ | ||
// TODO: add port methods | ||
}) | ||
}).passthrough() | ||
|
||
export type HooksPort = z.infer<typeof port> |