Skip to content

Commit

Permalink
Fix for new comlink import stytle
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Jun 13, 2018
1 parent c6ab12e commit 4e06a80
Show file tree
Hide file tree
Showing 12 changed files with 548 additions and 1,257 deletions.
480 changes: 480 additions & 0 deletions dist/bundle/clooney.js

Large diffs are not rendered by default.

476 changes: 0 additions & 476 deletions dist/clooney.bundle.js

This file was deleted.

14 changes: 0 additions & 14 deletions dist/clooney.bundle.min.js

This file was deleted.

3 changes: 2 additions & 1 deletion dist/clooney.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import * as Comlink from "comlinkjs";
import { Endpoint } from "comlinkjs";
export { Comlink } from "comlinkjs";
export { Comlink };
/**
* `asRemoteValue` marks a value. If a marked value is used as an parameter or return value, it will not be transferred but instead proxied.
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/clooney.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Comlink } from "comlinkjs"; // eslint-disable-line no-unused-vars
import * as Comlink from "comlinkjs"; // eslint-disable-line no-unused-vars
// Automatically proxy functions
Comlink.transferHandlers.set("FUNCTION", {
canHandle(obj) {
Expand Down Expand Up @@ -44,7 +44,7 @@ Comlink.transferHandlers.set("EVENT", {
return obj;
}
});
export { Comlink } from "comlinkjs";
export { Comlink };
/**
* `asRemoteValue` marks a value. If a marked value is used as an parameter or return value, it will not be transferred but instead proxied.
*/
Expand Down
14 changes: 0 additions & 14 deletions dist/clooney.min.js

This file was deleted.

3 changes: 1 addition & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ module.exports = function(config) {
basePath: '',
frameworks: ['mocha', 'chai'],
files: [
'node_modules/comlinkjs/comlink.global.js',
'dist/clooney.bundle.js',
'dist/bundle/clooney.js',
'tests/sometests.js',
{
pattern: 'tests/fixtures/**',
Expand Down
Loading

0 comments on commit 4e06a80

Please sign in to comment.