Skip to content

Commit 3c62fec

Browse files
authored
Revert "Remove buffer" (#15)
* Revert "Remove buffer (#14)" This reverts commit 28e2c3b. * Update package.json
1 parent 28e2c3b commit 3c62fec

File tree

3 files changed

+86
-3
lines changed

3 files changed

+86
-3
lines changed

package-lock.json

Lines changed: 83 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@watergis/terrain-rgb",
3-
"version": "1.1.10",
3+
"version": "1.1.11",
44
"description": "This module is to get elevation from terrain RGB tilesets by longitude and latitude.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -49,6 +49,7 @@
4949
"dependencies": {
5050
"@canvas/image-data": "^1.0.0",
5151
"axios": "^0.21.1",
52+
"buffer": "^6.0.3",
5253
"pako": "^2.0.4",
5354
"webp-hero": "0.0.0-dev.27"
5455
},

src/tile/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import axios from 'axios';
22
import { WebpMachine, loadBinaryData } from 'webp-hero';
3+
import { Buffer } from 'buffer';
34
import PNG from '../png';
45
import * as tilebelt from '../tilebelt';
56

0 commit comments

Comments
 (0)