Skip to content

Commit

Permalink
version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg committed Apr 14, 2019
1 parent 25aa31c commit 3faef60
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 18 deletions.
9 changes: 6 additions & 3 deletions dist/portal-vue.common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/portal-vue.common.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/portal-vue.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/portal-vue.esm.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/portal-vue.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* portal-vue © Thorsten Lünborg, 2019
*
* Version: 2.0.1
* Version: 2.1.0
*
* LICENCE: MIT
*
Expand Down Expand Up @@ -176,10 +176,13 @@
this.$delete(this.sources, source);
},
hasTarget: function hasTarget(to) {
return !!this.targets[to] && this.targets[to][0];
return !!(this.targets[to] && this.targets[to][0]);
},
hasSource: function hasSource(to) {
return !!this.sources[to] && this.sources[to][0];
return !!(this.sources[to] && this.sources[to][0]);
},
hasContentFor: function hasContentFor(to) {
return !!this.transports[to] && !!this.transports[to].length;
},
// Internal
$_getTransportIndex: function $_getTransportIndex(_ref) {
Expand Down
4 changes: 2 additions & 2 deletions dist/portal-vue.umd.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "portal-vue",
"version": "2.0.1",
"version": "2.1.0",
"license": "MIT",
"repository": "https://github.com/LinusBorg/portal-vue",
"author": {
Expand All @@ -16,6 +16,7 @@
"roll": "ROLL=1 node ./scripts/build && yarn minify",
"minify": "minify dist/portal-vue.umd.js --out-file dist/portal-vue.umd.min.js",
"lint": "vue-cli-service lint",
"test": "yarn test:unit",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e"
},
Expand Down
10 changes: 6 additions & 4 deletions types/lib/components/wormhole.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export declare const Wormhole: import("vue").VueConstructor<{
unregisterTarget(target: string): void;
registerSource(source: string, vm: Vue, force?: boolean | undefined): void;
unregisterSource(source: string): void;
hasTarget(to: string): Vue;
hasSource(to: string): Vue;
hasTarget(to: string): true;
hasSource(to: string): true;
hasContentFor(to: string): boolean;
$_getTransportIndex({ to, from }: TransportVector): number;
} & Record<never, any> & Vue>;
declare const wormhole: import("vue/types/vue").CombinedVueInstance<{
Expand All @@ -28,8 +29,9 @@ declare const wormhole: import("vue/types/vue").CombinedVueInstance<{
unregisterTarget(target: string): void;
registerSource(source: string, vm: Vue, force?: boolean | undefined): void;
unregisterSource(source: string): void;
hasTarget(to: string): Vue;
hasSource(to: string): Vue;
hasTarget(to: string): true;
hasSource(to: string): true;
hasContentFor(to: string): boolean;
$_getTransportIndex({ to, from }: TransportVector): number;
} & Record<never, any> & Vue, object, object, object, Record<never, any>>;
export { wormhole };

0 comments on commit 3faef60

Please sign in to comment.