@live-change/framework 0.8.92 → 0.8.94

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.
@@ -169,10 +169,12 @@ const validators = {
169
169
 
170
170
  httpUrl: (settings) => (value) => {
171
171
  if(!value) return false // ignore empty
172
- const match = value.match(
173
- /^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\._%~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/
174
- )
175
- if(!match) return 'wrongUrl'
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.92",
3
+ "version": "0.8.94",
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.92",
26
- "@live-change/uid": "^0.8.92"
25
+ "@live-change/dao": "^0.8.94",
26
+ "@live-change/uid": "^0.8.94"
27
27
  },
28
- "gitHead": "493a6584a4c2b36794771f85df44fcc7e64a0db5"
28
+ "gitHead": "1c40a298d8d39dfcf4fc17bb754df365e7214d3e"
29
29
  }