Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Implemented "safer-buffer" polyfill. (#127)
Browse files Browse the repository at this point in the history
* Implemented "safer-buffer" polyfill.

* Add changelog for safer-buffer polyfill
  • Loading branch information
RazzM13 authored and martysweet committed Apr 2, 2018
1 parent 7e9085e commit 0060de1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Merge PR #120, fixing dependency issue with "@types/colors"
- Merge PR #127, implementing "safer-buffer" polyfill to be compatible with older NodeJS versions

## [1.5.1] - 2018-03-12
### Added
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"js-yaml": "^3.7.0",
"opn": "^5.2.0",
"winston": "^2.4.0",
"source-map-support": "^0.5.0"
"source-map-support": "^0.5.0",
"safer-buffer": "^2.1.0"
},
"devDependencies": {
"@types/chai": "^4.0.4",
Expand Down
3 changes: 2 additions & 1 deletion src/util/polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require('core-js/fn/string/raw');
require('core-js/fn/object/assign');
require('core-js/fn/array/entries');
require('core-js/fn/array/entries');
Buffer = require('safer-buffer').Buffer;

0 comments on commit 0060de1

Please sign in to comment.