Skip to content

Commit da07d8b

Browse files
committed
Added protobuf.roots to minimal runtime, see #554
1 parent b0aef62 commit da07d8b

9 files changed

Lines changed: 17 additions & 21 deletions

File tree

dist/protobuf.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/protobuf.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/protobuf.min.js.gz

0 Bytes
Binary file not shown.

dist/runtime/protobuf.js

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

dist/runtime/protobuf.js.map

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/runtime/protobuf.min.js

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

dist/runtime/protobuf.min.js.gz

9 Bytes
Binary file not shown.

dist/runtime/protobuf.min.js.map

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

runtime/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
// Can be used as a drop-in replacement for the full library as it has the same general structure.
33
var protobuf = exports;
44

5-
var Writer =
6-
protobuf.Writer = require("../src/writer");
5+
var Writer = protobuf.Writer = require("../src/writer");
76
protobuf.BufferWriter = Writer.BufferWriter;
8-
var Reader =
9-
protobuf.Reader = require("../src/reader");
7+
var Reader = protobuf.Reader = require("../src/reader");
108
protobuf.BufferReader = Reader.BufferReader;
11-
protobuf.util = require("../src/util/runtime");
9+
protobuf.util = require("../src/util/runtime");
10+
protobuf.roots = {};
11+
protobuf.configure = configure;
1212

1313
function configure() {
1414
Reader._configure();
1515
}
1616

17-
protobuf.configure = configure;
18-
1917
// Be nice to AMD
2018
if (typeof define === "function" && define.amd)
2119
define(["long"], function(Long) {

0 commit comments

Comments
 (0)