diff --git a/node.js b/node.js index 18ebf00..8fa42e5 100644 --- a/node.js +++ b/node.js @@ -4,6 +4,9 @@ * Apache-2.0 OR MIT (and hence also MPL 2.0) */ 'use strict'; + +require('buffer-v6-polyfill'); + var RSA = {}; var NOBJ = {}; diff --git a/package.json b/package.json index a195a0f..1bd39ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rsa-compat", - "version": "1.2.0", + "version": "1.2.1", "description": "RSA utils that work on Windows, Mac, and Linux with or without C compiler", "main": "node.js", "scripts": { @@ -36,6 +36,7 @@ }, "homepage": "https://github.com/Daplie/rsa-compat.js#readme", "dependencies": { + "buffer-v6-polyfill": "^1.0.0", "node-forge": "^0.6.41" }, "optionalDependencies": {