-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.1.0 release
- Loading branch information
Showing
38 changed files
with
2,762 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# ChangeLog | ||
|
||
## [0.1.0] - 2024-05-07 | ||
|
||
- initial beta release | ||
|
||
### Added | ||
|
||
- functions and types for initial beta release inherited from jsrsasign |
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,2 +1,13 @@ | ||
# typepki-webcrypto | ||
W3C WebCrypto API helper sub module for TypePKI library | ||
typepki-webcrypto: W3C Web Crypto API helper function sub module for TypePKI library | ||
==================================================================================== | ||
|
||
The 'TypePKI' library is an opensource free TypeScript PKI library which is the successor of the long lived [jsrsasign](https://kjur.github.io/jsrsasign) library. | ||
|
||
The 'typepki-webcrypto' is W3C Web Crypto API [[1]](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)[[2]](https://www.w3.org/TR/WebCryptoAPI/) helper function sub module for TypePKI library. | ||
|
||
## FEATURE | ||
- easy use for | ||
- keypair generation | ||
- key import | ||
- key export | ||
- Dual CommonJS/ES module package supporting CommonJS(CJS) and ES modules |
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,10 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.4.0/schema.json", | ||
"files": { | ||
"include": ["*.*ts", "**/*.*ts", "*.json"], | ||
"ignore": ["dist"] | ||
}, | ||
"formatter": { | ||
"indentStyle": "space" | ||
} | ||
} |
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,55 @@ | ||
import * as esbuild from "esbuild"; | ||
|
||
const targetBasePath = `${import.meta.dir ?? "."}/src`; | ||
const distBasePath = `${import.meta.dir ?? "."}/dist`; | ||
|
||
// path from base directory without extension | ||
const files = ["index"]; | ||
|
||
function entrypoints(files: string[], extension: "ts" | "mts" | "cts") { | ||
return files.map((v) => `${targetBasePath}/${v}.${extension}`); | ||
} | ||
|
||
const esms = entrypoints(files, "mts"); | ||
const cjss = entrypoints(files, "cts"); | ||
|
||
await Promise.all([ | ||
// Bun.build({ | ||
// entrypoints: esms, | ||
// outdir: `${distBasePath}/import`, | ||
// target: "node", | ||
// format: "esm", | ||
// splitting: true, | ||
// minify: true, | ||
// naming: "[dir]/[name].m[ext]", | ||
// }) | ||
// .then(console.info) | ||
// .catch(console.error), | ||
esbuild | ||
.build({ | ||
entryPoints: esms, | ||
bundle: true, | ||
minify: true, | ||
splitting: true, | ||
outdir: `${distBasePath}/import`, | ||
platform: "neutral", | ||
format: "esm", | ||
target: "esnext", | ||
outExtension: { ".js": ".mjs" }, | ||
}) | ||
.then(console.info) | ||
.catch(console.error), | ||
esbuild | ||
.build({ | ||
entryPoints: cjss, | ||
bundle: true, | ||
minify: true, | ||
outdir: `${distBasePath}/require`, | ||
platform: "node", | ||
format: "cjs", | ||
target: "esnext", | ||
outExtension: { ".js": ".cjs" }, | ||
}) | ||
.then(console.info) | ||
.catch(console.error), | ||
]); |
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 @@ | ||
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. |
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,85 @@ | ||
:root { | ||
--light-hl-0: #AF00DB; | ||
--dark-hl-0: #C586C0; | ||
--light-hl-1: #000000; | ||
--dark-hl-1: #D4D4D4; | ||
--light-hl-2: #795E26; | ||
--dark-hl-2: #DCDCAA; | ||
--light-hl-3: #A31515; | ||
--dark-hl-3: #CE9178; | ||
--light-hl-4: #001080; | ||
--dark-hl-4: #9CDCFE; | ||
--light-hl-5: #098658; | ||
--dark-hl-5: #B5CEA8; | ||
--light-hl-6: #EE0000; | ||
--dark-hl-6: #D7BA7D; | ||
--light-hl-7: #0000FF; | ||
--dark-hl-7: #569CD6; | ||
--light-hl-8: #CD3131; | ||
--dark-hl-8: #F44747; | ||
--light-code-background: #FFFFFF; | ||
--dark-code-background: #1E1E1E; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { :root { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--hl-7: var(--light-hl-7); | ||
--hl-8: var(--light-hl-8); | ||
--code-background: var(--light-code-background); | ||
} } | ||
|
||
@media (prefers-color-scheme: dark) { :root { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--hl-7: var(--dark-hl-7); | ||
--hl-8: var(--dark-hl-8); | ||
--code-background: var(--dark-code-background); | ||
} } | ||
|
||
:root[data-theme='light'] { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--hl-7: var(--light-hl-7); | ||
--hl-8: var(--light-hl-8); | ||
--code-background: var(--light-code-background); | ||
} | ||
|
||
:root[data-theme='dark'] { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--hl-7: var(--dark-hl-7); | ||
--hl-8: var(--dark-hl-8); | ||
--code-background: var(--dark-code-background); | ||
} | ||
|
||
.hl-0 { color: var(--hl-0); } | ||
.hl-1 { color: var(--hl-1); } | ||
.hl-2 { color: var(--hl-2); } | ||
.hl-3 { color: var(--hl-3); } | ||
.hl-4 { color: var(--hl-4); } | ||
.hl-5 { color: var(--hl-5); } | ||
.hl-6 { color: var(--hl-6); } | ||
.hl-7 { color: var(--hl-7); } | ||
.hl-8 { color: var(--hl-8); } | ||
pre, code { background: var(--code-background); } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.