Skip to content

Commit

Permalink
Merge pull request #140 from dibenede/release-bugs
Browse files Browse the repository at this point in the history
Fix typos in asserts and add LICENSE-asserts.md to package.json
  • Loading branch information
dibenede authored Oct 7, 2022
2 parents b792840 + d99e404 commit 3b3a8ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions asserts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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)"
}

0 comments on commit 3b3a8ab

Please sign in to comment.