@live-change/framework 0.8.93 → 0.8.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/validators.js +6 -4
- package/package.json +4 -4
package/lib/utils/validators.js
CHANGED
|
@@ -169,10 +169,12 @@ const validators = {
|
|
|
169
169
|
|
|
170
170
|
httpUrl: (settings) => (value) => {
|
|
171
171
|
if(!value) return false // ignore empty
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
try {
|
|
173
|
+
const url = new URL(value)
|
|
174
|
+
if(url.protocol !== 'http:' && url.protocol !== 'https:') return 'wrongUrl'
|
|
175
|
+
} catch(e) {
|
|
176
|
+
return 'wrongUrl'
|
|
177
|
+
}
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
180
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.95",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@live-change/dao": "^0.8.
|
|
26
|
-
"@live-change/uid": "^0.8.
|
|
25
|
+
"@live-change/dao": "^0.8.95",
|
|
26
|
+
"@live-change/uid": "^0.8.95"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "852e9817a89ffe5f2b6dc13c658d7a1bfd4f8fa6"
|
|
29
29
|
}
|