From 17d9f3ecfb55217f6540f5f6637c783606b882f8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 3 Aug 2016 22:23:07 -0600 Subject: [PATCH] add buffer-v6 polyfill --- node.js | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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": {