diff --git a/asserts.js b/asserts.js index b4a1e5f..5ac5850 100644 --- a/asserts.js +++ b/asserts.js @@ -132,9 +132,9 @@ jspb.asserts.fail = function(opt_message, ...args) { */ jspb.asserts.assertInstanceof = function(value, type, opt_message, ...args) { if (!(value instanceof type)) { - jspb.assert.doAssertFailure( + jspb.asserts.doAssertFailure( 'Expected instanceof %s but got %s.', - [jspb.asserts.getType(type), jspb.asseerts.getType(value)], + [jspb.asserts.getType(type), jspb.asserts.getType(value)], opt_message, args); } return value; diff --git a/package.json b/package.json index ba5efde..bcc6128 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,13 @@ "description": "Protocol Buffers for JavaScript", "main": "google-protobuf.js", "files": [ - "google" + "google/protobuf/*_pb.js", + "google/protobuf/compiler/*_pb.js", + "google-protobuf.js", + "LICENSE.md", + "LICENSE-asserts.md", + "package.json", + "README.md" ], "dependencies": {}, "devDependencies": { @@ -24,5 +30,5 @@ "url": "https://github.com/protocolbuffers/protobuf-javascript" }, "author": "Google Protocol Buffers Team", - "license": "BSD-3-Clause" + "license": "(BSD-3-Clause AND Apache-2.0)" }