@folklore/hooks 0.0.43 → 0.0.44

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
@@ -1401,7 +1401,7 @@ function useYouTubePlayer(id) {
1401
1401
  }
1402
1402
  const regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
1403
1403
  const match = url.match(regExp);
1404
- return match && match[7].length === 11 ? match[7] : null;
1404
+ return match !== null ? match[7] : null;
1405
1405
  }
1406
1406
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1407
1407
  const debug = react.useMemo(() => createDebug__default["default"]('folklore:video:youtube'), []);
package/dist/es.js CHANGED
@@ -1390,7 +1390,7 @@ function useYouTubePlayer(id) {
1390
1390
  }
1391
1391
  const regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
1392
1392
  const match = url.match(regExp);
1393
- return match && match[7].length === 11 ? match[7] : null;
1393
+ return match !== null ? match[7] : null;
1394
1394
  }
1395
1395
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1396
1396
  const debug = useMemo(() => createDebug('folklore:video:youtube'), []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/hooks",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "React hooks",
5
5
  "keywords": [
6
6
  "javascript",
@@ -49,7 +49,7 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "72c8c36208e3f4adb397321866cf9a8e606cf130",
52
+ "gitHead": "d17ece8ec14646ba798b01cc8e022d4b8f6bc9f1",
53
53
  "dependencies": {
54
54
  "@folklore/events": "^0.0.5",
55
55
  "@folklore/services": "^0.1.38",