8000 Also separate sources · protobufjs/bytebuffer.js@87f7a38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 87f7a38

Browse files
committed
Also separate sources
1 parent 61c21e4 commit 87f7a38

15 files changed

+17
-60
lines changed

dist/ByteBufferAB.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* [BUILD] ByteBufferAB - Backing buffer: ArrayBuffer, Accessor: Uint8Array
2020
* Released under the Apache License, Version 2.0
2121
* see: https://github.com/dcodeIO/ByteBuffer.js for details
22-
*/ //
22+
*/
2323
(function(global, factory) {
2424

2525
/* AMD */ if (typeof define === 'function' && define["amd"])
@@ -3695,6 +3695,5 @@
36953695
return bb;
36963696
};
36973697

3698-
36993698
return ByteBuffer;
37003699
});

dist/ByteBufferAB.min.js.gz

0 Bytes
Binary file not shown.

dist/ByteBufferAB.min.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/ByteBufferAB_DataView.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
/**
1818
* @license ByteBuffer.js (c) 2015 Daniel Wirtz <dcode@dcode.io>
19-
* [BUILD] ByteBufferAB_DataView - Backing buffer: ArrayBuffer, Accessor: DataView
19+
* [BUILD] ByteBufferAB - Backing buffer: ArrayBuffer, Accessor: DataView
2020
* Released under the Apache License, Version 2.0
2121
* see: https://github.com/dcodeIO/ByteBuffer.js for details
22-
*/ //
22+
*/
2323
(function(global, factory) {
2424

2525
/* AMD */ if (typeof define === 'function' && define["amd"])
@@ -3400,6 +3400,5 @@
34003400
return bb;
34013401
};
34023402

3403-
34043403
return ByteBuffer;
34053404
});

dist/ByteBufferAB_DataView.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ByteBufferAB_DataView.min.js.gz

-5 Bytes
Binary file not shown.

dist/ByteBufferAB_DataView.min.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ delete scope.BUFFERVIEW;
9696
console.log("Building ByteBufferAB with scope", JSON.stringify(scope, null, 2));
9797
fs.writeFileSync(
9898
path.join(distDir, "ByteBufferAB.js"),
99-
MetaScript.transform(fs.readFileSync(filename = path.join(srcDir, "ByteBufferAB.js")), filename, scope)
99+
MetaScript.transform(fs.readFileSync(filename = path.join(srcDir, "wrap.js")), filename, scope)
100100
);
101101

102102
// Build alternative browser ByteBuffer using a DataView
@@ -105,7 +105,7 @@ scope.DATAVIEW = true;
105105
console.log("Building ByteBufferAB_DataView with scope", JSON.stringify(scope, null, 2));
106106
fs.writeFileSync(
107107
path.join(distDir, "ByteBufferAB_DataView.js"),
108-
MetaScript.transform(fs.readFileSync(filename = path.join(srcDir, "ByteBufferAB_DataView.js")), filename, scope)
108+
MetaScript.transform(fs.readFileSync(filename = path.join(srcDir, "wrap.js")), filename, scope)
109109
);
110110

111111
// Update bower.json

src/ByteBuffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,4 @@ var ByteBufferPrototype = ByteBuffer.prototype;
214214
//? if (ENCODINGS) {
215215

216216
//? include("encodings/*.js");
217-
//? }
217+
//? }

src/ByteBufferAB_DataView.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/encodings/base64.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ ByteBuffer.atob = function(b64) {
9494
return ByteBuffer.fromBase64(b64).toBinary();
9595
};
9696

97-
//? }
97+
//? }

src/encodings/binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ ByteBuffer.fromBinary = function(str, littleEndian, noAssert) {
9090
return bb;
9191
};
9292

93-
//? }
93+
//? }

src/encodings/hex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ ByteBuffer.fromHex = function(str, littleEndian, noAssert) {
7474
return bb;
7575
};
7676

77-
//? }
77+
//? }

src/encodings/utf8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ ByteBuffer.fromUTF8 = function(str, littleEndian, noAssert) {
7070
return bb;
7171
};
7272

73-
//? }
73+
//? }

src/ByteBufferAB.js renamed to src/wrap.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16-
//? NODE = false; DATAVIEW = false;
1716

1817
/**
1918
* @license ByteBuffer.js (c) 2015 Daniel Wirtz <dcode@dcode.io>
19+
//? if (DATAVIEW)
20+
* [BUILD] ByteBufferAB - Backing buffer: ArrayBuffer, Accessor: DataView
21+
//? else
2022
* [BUILD] ByteBufferAB - Backing buffer: ArrayBuffer, Accessor: Uint8Array
2123
* Released under the Apache License, Version 2.0
2224
* see: https://github.com/dcodeIO/ByteBuffer.js for details
23-
*/ //
25+
*/
2426
(function(global, factory) {
2527

2628
/* AMD */ if (typeof define === 'function' && define["amd"])
@@ -37,6 +39,5 @@
3739
"use strict";
3840

3941
//? include("ByteBuffer.js");
40-
4142
return ByteBuffer;
4243
});

0 commit comments

Comments
 (0)
0