File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ exports.base64 = true;
3
3
exports . array = true ;
4
4
exports . string = true ;
5
5
exports . arraybuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined" ;
6
- // contains true if JSZip can read/generate nodejs Buffer, false otherwise, aka checks if we arn't in a browser.
7
- exports . nodebuffer = ! process . browser ;
6
+ // contains true if JSZip can read/generate nodejs Buffer, false otherwise.
7
+ // Browserify will provide a Buffer implementation for browsers, which is
8
+ // an augmented Uint8Array (i.e., can be used as either Buffer or U8).
9
+ exports . nodebuffer = typeof Buffer !== "undefined" ;
8
10
// contains true if JSZip can read/generate Uint8Array, false otherwise.
9
11
exports . uint8array = typeof Uint8Array !== "undefined" ;
10
12
Original file line number Diff line number Diff line change 9
9
"test-browser" : " grunt build && grunt test" ,
10
10
"lint" : " grunt jshint"
11
11
},
12
- "browser" : {
13
- "./nodeBuffer" : false ,
14
- "./nodeBufferReader" : false
15
- },
16
12
"contributors" : [
17
13
{
18
14
"name" : " Franz Buchinger"
You can’t perform that action at this time.
0 commit comments