Skip to content

Commit

Permalink
renamed to @mceSystems scope to publish, fixed minor TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido Ben-Harosh committed Dec 12, 2019
1 parent fe3abe0 commit 1750de5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nbind",
"version": "0.3.15",
"name": "@mcesystems/nbind",
"version": "0.3.17",
"description": "Magical headers that make your C++ library accessible from JavaScript",
"main": "dist/nbind.js",
"typings": "dist/nbind.d.ts",
Expand Down Expand Up @@ -65,5 +65,8 @@
"tap": "^10.7.3",
"tslint": "^5.9.1",
"typescript": "^3.4.3"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 2 additions & 1 deletion src/nbind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ function initNode<ExportType extends DefaultExportType>(
binding.queryType = lib.NBind.queryType;
binding.toggleLightGC = function(enable: boolean) {}; // tslint:disable-line:no-empty

Object.keys(lib).forEach(function(key: string) {
// using keyof ExportType instead of string to avoid 'string cannot index ExportType'
Object.keys(lib).forEach(function(key: keyof ExportType) {
binding.lib[key] = lib[key];
});

Expand Down

0 comments on commit 1750de5

Please sign in to comment.