wappsto-redux
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -143,2 +143,5 @@ import querystring from 'querystring'; | ||
} | ||
if(window && window.location && window.location.origin && !url.startsWith('http')){ | ||
url = window.location.origin.replace('http', 'ws') + url; | ||
} | ||
let ws = new WebSocket(url); | ||
@@ -145,0 +148,0 @@ |
export default { | ||
baseUrl: "https://wappsto.com/services" | ||
baseUrl: "/services" | ||
} |
{ | ||
"name": "wappsto-redux", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,3 +21,3 @@ import { combineReducers } from 'redux'; | ||
export default rootReducer = (state, action) => { | ||
export default function rootReducer(state, action){ | ||
if (action.type === REMOVE_SESSION) { | ||
@@ -24,0 +24,0 @@ state = undefined; |
export function parse(json){ | ||
if(json.constructor === Object && json.meta.type === "idlist"){ | ||
if(!json || (json.constructor === Object && json.meta.type === "idlist")){ | ||
return []; | ||
@@ -4,0 +4,0 @@ } |
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
41893
28
1020