From a0240f5b9867b93152640dcd319dfd576b8b38b1 Mon Sep 17 00:00:00 2001 From: rzcoder Date: Wed, 1 Aug 2018 16:45:08 +0500 Subject: [PATCH] bump version & update readme --- README.md | 3 +++ package.json | 2 +- src/NodeRSA.js | 8 +++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a17c555..79f1b28 100644 --- a/README.md +++ b/README.md @@ -237,6 +237,9 @@ Questions, comments, bug reports, and pull requests are all welcome. ## Changelog +### 1.0.1 + * `importKey()` now returns this + ### 1.0.0 * Using semver now 🎉 * **Breaking change**: Drop support nodejs < 8.11.1 diff --git a/package.json b/package.json index fcf44a4..02e802e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-rsa", - "version": "1.0.0", + "version": "1.0.1", "description": "Node.js RSA library", "main": "src/NodeRSA.js", "scripts": { diff --git a/src/NodeRSA.js b/src/NodeRSA.js index 47b1855..3b0fe88 100644 --- a/src/NodeRSA.js +++ b/src/NodeRSA.js @@ -1,10 +1,8 @@ /*! * RSA library for Node.js * - * Copyright (c) 2014 rzcoder - * All Rights Reserved. - * - * License BSD + * Author: rzcoder + * License MIT */ var constants = require('constants'); @@ -16,7 +14,7 @@ var utils = require('./utils'); var schemes = require('./schemes/schemes.js'); var formats = require('./formats/formats.js'); -if (typeof constants.RSA_NO_PADDING == "undefined") { +if (typeof constants.RSA_NO_PADDING === "undefined") { //patch for node v0.10.x, constants do not defined constants.RSA_NO_PADDING = 3; }