@dwmt/comlink
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -391,2 +391,3 @@ import Cookies from 'js-cookie'; | ||
this._channels[chn.name] = chn; | ||
console.log(this._channels, chn); | ||
} | ||
@@ -459,2 +460,4 @@ | ||
_this3.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this3._deafultHTTPChannel; | ||
@@ -495,2 +498,9 @@ var channel = _this3._channels[channelName]; | ||
}, { | ||
key: "checkDefaultHTTPChannel", | ||
value: function checkDefaultHTTPChannel() { | ||
if (!this._deafultHTTPChannel) { | ||
throw new Error('[Comlink] No default HTTP channel'); | ||
} | ||
} | ||
}, { | ||
key: "post", | ||
@@ -503,2 +513,4 @@ value: function post(URI, data) { | ||
_this5.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this5._deafultHTTPChannel; | ||
@@ -546,2 +558,4 @@ var channel = _this5._channels[channelName]; | ||
_this7.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this7._deafultHTTPChannel; | ||
@@ -589,2 +603,4 @@ var channel = _this7._channels[channelName]; | ||
_this9.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this9._deafultHTTPChannel; | ||
@@ -591,0 +607,0 @@ var channel = _this9._channels[channelName]; |
@@ -395,2 +395,3 @@ 'use strict'; | ||
this._channels[chn.name] = chn; | ||
console.log(this._channels, chn); | ||
} | ||
@@ -463,2 +464,4 @@ | ||
_this3.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this3._deafultHTTPChannel; | ||
@@ -499,2 +502,9 @@ var channel = _this3._channels[channelName]; | ||
}, { | ||
key: "checkDefaultHTTPChannel", | ||
value: function checkDefaultHTTPChannel() { | ||
if (!this._deafultHTTPChannel) { | ||
throw new Error('[Comlink] No default HTTP channel'); | ||
} | ||
} | ||
}, { | ||
key: "post", | ||
@@ -507,2 +517,4 @@ value: function post(URI, data) { | ||
_this5.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this5._deafultHTTPChannel; | ||
@@ -550,2 +562,4 @@ var channel = _this5._channels[channelName]; | ||
_this7.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this7._deafultHTTPChannel; | ||
@@ -593,2 +607,4 @@ var channel = _this7._channels[channelName]; | ||
_this9.checkDefaultHTTPChannel(); | ||
var channelName = options.channel || _this9._deafultHTTPChannel; | ||
@@ -595,0 +611,0 @@ var channel = _this9._channels[channelName]; |
{ | ||
"name": "@dwmt/comlink", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Communication library for lazy enthusiasts", | ||
@@ -5,0 +5,0 @@ "main": "dist/Comlink.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67449
1942