fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-09 17:52:13 +01:00
parent 515257ff48
commit 2aedc2232b
7 changed files with 962 additions and 923 deletions

View File

@ -119,6 +119,6 @@ jobs:
run: | run: |
npmci node install stable npmci node install stable
npmci npm install npmci npm install
pnpm install -g @gitzone/tsdoc pnpm install -g @git.zone/tsdoc
npmci command tsdoc npmci command tsdoc
continue-on-error: true continue-on-error: true

View File

@ -13,15 +13,15 @@
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.66", "@git.zone/tsbuild": "^2.1.72",
"@gitzone/tsrun": "^1.2.44", "@git.zone/tsrun": "^1.2.46",
"@gitzone/tstest": "^1.0.77", "@git.zone/tstest": "^1.0.86",
"@push.rocks/tapbundle": "^5.0.15", "@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.5.1" "@types/node": "^20.11.17"
}, },
"dependencies": { "dependencies": {
"@push.rocks/smartpromise": "^4.0.3", "@push.rocks/smartpromise": "^4.0.3",
"@types/node-forge": "^1.3.4", "@types/node-forge": "^1.3.11",
"node-forge": "^1.3.1" "node-forge": "^1.3.1"
}, },
"files": [ "files": [

1859
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartcrypto', name: '@push.rocks/smartcrypto',
version: '2.0.2', version: '2.0.3',
description: 'easy crypto methods' description: 'easy crypto methods'
} }

View File

@ -21,4 +21,8 @@ export class PrivateKey {
public toPemString(): string { public toPemString(): string {
return plugins.nodeForge.pki.privateKeyToPem(this.forgePrivateKey); return plugins.nodeForge.pki.privateKeyToPem(this.forgePrivateKey);
} }
public toOpenSSH(): string {
return plugins.nodeForge.ssh.privateKeyToOpenSSH(this.forgePrivateKey, 'user@host');
}
} }

View File

@ -21,4 +21,8 @@ export class PublicKey {
public toPemString(): string { public toPemString(): string {
return plugins.nodeForge.pki.publicKeyToPem(this.forgePublicKey); return plugins.nodeForge.pki.publicKeyToPem(this.forgePublicKey);
} }
public toOpenSSH(): string {
return plugins.nodeForge.ssh.publicKeyToOpenSSH(this.forgePublicKey, 'user@host');
}
} }

View File

@ -3,8 +3,8 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"useDefineForClassFields": false, "useDefineForClassFields": false,
"target": "ES2022", "target": "ES2022",
"module": "ES2022", "module": "NodeNext",
"moduleResolution": "nodenext", "moduleResolution": "NodeNext",
"esModuleInterop": true, "esModuleInterop": true,
"verbatimModuleSyntax": true "verbatimModuleSyntax": true
}, },