fix(core): update
This commit is contained in:
parent
515257ff48
commit
2aedc2232b
@ -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
|
||||||
|
10
package.json
10
package.json
@ -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
1859
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user