feat: use ursa-optional and add it as dependency

This commit is contained in:
Maciej Krüger 2018-07-08 14:06:27 +02:00
parent 81f5961d8e
commit 5e1b014940
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
var ursa = require('ursa'); var ursa = require('ursa-optional');
function notToJson() { function notToJson() {
return undefined; return undefined;

View File

@ -39,7 +39,8 @@
}, },
"homepage": "https://git.coolaj86.com/coolaj86/rsa-compat.js#readme", "homepage": "https://git.coolaj86.com/coolaj86/rsa-compat.js#readme",
"dependencies": { "dependencies": {
"node-forge": "^0.6.41" "node-forge": "^0.6.41",
"ursa-optional": "^0.9.4"
}, },
"trulyOptionalDependencies": { "trulyOptionalDependencies": {
"buffer-v6-polyfill": "^1.0.3", "buffer-v6-polyfill": "^1.0.3",