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

Commit

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

* Swapped "safer-buffer" for "safe-buffer" polyfill.

* Change safer-buffer to safe-buffer
  • Loading branch information
RazzM13 authored and martysweet committed Apr 4, 2018
1 parent 2e2a767 commit c32d77a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +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
- Merge PR #130, implementing "safe-buffer" polyfill to be compatible with older NodeJS versions
- Merge PR #126, improving null value validation when null is passed into a template

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

0 comments on commit c32d77a

Please sign in to comment.