@folklore/hooks 0.0.17 → 0.0.18

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/dist/cjs.js CHANGED
@@ -125,7 +125,7 @@ var useDailymotionPlayer = function useDailymotionPlayer() {
125
125
  _params$getVideoId = params.getVideoId,
126
126
  getVideoId = _params$getVideoId === void 0 ? function (url) {
127
127
  if (url === null || url.match(/^https?:/) === null) {
128
- return null;
128
+ return url;
129
129
  }
130
130
 
131
131
  var match = url.match(/\/video\/([^/?]+)/);
package/dist/es.js CHANGED
@@ -113,7 +113,7 @@ var useDailymotionPlayer = function useDailymotionPlayer() {
113
113
  _params$getVideoId = params.getVideoId,
114
114
  getVideoId = _params$getVideoId === void 0 ? function (url) {
115
115
  if (url === null || url.match(/^https?:/) === null) {
116
- return null;
116
+ return url;
117
117
  }
118
118
 
119
119
  var match = url.match(/\/video\/([^/?]+)/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/hooks",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "React hooks",
5
5
  "keywords": [
6
6
  "javascript",
@@ -48,7 +48,7 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "e4a344b6f9588e581e3bc9a9f2e42f9b6b5bc54c",
51
+ "gitHead": "f98daae27869fa6aaec9f26a4c2f6fc4310b8ff3",
52
52
  "dependencies": {
53
53
  "@folklore/events": "^0.0.3",
54
54
  "@folklore/services": "^0.1.36",