@tanstack/react-router-devtools 0.0.1-alpha.1 → 0.0.1-alpha.2

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.
Files changed (41) hide show
  1. package/build/cjs/node_modules/date-fns/esm/_lib/assign/index.js +30 -0
  2. package/build/cjs/node_modules/date-fns/esm/_lib/assign/index.js.map +1 -0
  3. package/build/cjs/node_modules/date-fns/esm/_lib/cloneObject/index.js +22 -0
  4. package/build/cjs/node_modules/date-fns/esm/_lib/cloneObject/index.js.map +1 -0
  5. package/build/cjs/node_modules/date-fns/esm/_lib/defaultLocale/index.js +20 -0
  6. package/build/cjs/node_modules/date-fns/esm/_lib/defaultLocale/index.js.map +1 -0
  7. package/build/cjs/node_modules/date-fns/esm/_lib/defaultOptions/index.js +21 -0
  8. package/build/cjs/node_modules/date-fns/esm/_lib/defaultOptions/index.js.map +1 -0
  9. package/build/cjs/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +33 -0
  10. package/build/cjs/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js.map +1 -0
  11. package/build/cjs/node_modules/date-fns/esm/_lib/requiredArgs/index.js +22 -0
  12. package/build/cjs/node_modules/date-fns/esm/_lib/requiredArgs/index.js.map +1 -0
  13. package/build/cjs/node_modules/date-fns/esm/compareAsc/index.js +67 -0
  14. package/build/cjs/node_modules/date-fns/esm/compareAsc/index.js.map +1 -0
  15. package/build/cjs/node_modules/date-fns/esm/formatDistanceStrict/index.js +207 -0
  16. package/build/cjs/node_modules/date-fns/esm/formatDistanceStrict/index.js.map +1 -0
  17. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +26 -0
  18. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js.map +1 -0
  19. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +39 -0
  20. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js.map +1 -0
  21. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +65 -0
  22. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js.map +1 -0
  23. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +34 -0
  24. package/build/cjs/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js.map +1 -0
  25. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +105 -0
  26. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js.map +1 -0
  27. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +52 -0
  28. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js.map +1 -0
  29. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +31 -0
  30. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js.map +1 -0
  31. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +164 -0
  32. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js.map +1 -0
  33. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +116 -0
  34. package/build/cjs/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js.map +1 -0
  35. package/build/cjs/node_modules/date-fns/esm/locale/en-US/index.js +47 -0
  36. package/build/cjs/node_modules/date-fns/esm/locale/en-US/index.js.map +1 -0
  37. package/build/cjs/node_modules/date-fns/esm/toDate/index.js +70 -0
  38. package/build/cjs/node_modules/date-fns/esm/toDate/index.js.map +1 -0
  39. package/build/stats-html.html +1 -1
  40. package/build/stats-react.json +2673 -2673
  41. package/package.json +3 -3
@@ -0,0 +1,70 @@
1
+ /**
2
+ * react-router-devtools
3
+ *
4
+ * Copyright (c) TanStack
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ 'use strict';
12
+
13
+ Object.defineProperty(exports, '__esModule', { value: true });
14
+
15
+ var index = require('../_lib/requiredArgs/index.js');
16
+
17
+ /**
18
+ * @name toDate
19
+ * @category Common Helpers
20
+ * @summary Convert the given argument to an instance of Date.
21
+ *
22
+ * @description
23
+ * Convert the given argument to an instance of Date.
24
+ *
25
+ * If the argument is an instance of Date, the function returns its clone.
26
+ *
27
+ * If the argument is a number, it is treated as a timestamp.
28
+ *
29
+ * If the argument is none of the above, the function returns Invalid Date.
30
+ *
31
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
32
+ *
33
+ * @param {Date|Number} argument - the value to convert
34
+ * @returns {Date} the parsed date in the local time zone
35
+ * @throws {TypeError} 1 argument required
36
+ *
37
+ * @example
38
+ * // Clone the date:
39
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
40
+ * //=> Tue Feb 11 2014 11:30:30
41
+ *
42
+ * @example
43
+ * // Convert the timestamp to date:
44
+ * const result = toDate(1392098430000)
45
+ * //=> Tue Feb 11 2014 11:30:30
46
+ */
47
+
48
+ function toDate(argument) {
49
+ index["default"](1, arguments);
50
+ var argStr = Object.prototype.toString.call(argument); // Clone the date
51
+
52
+ if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
53
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
54
+ return new Date(argument.getTime());
55
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
56
+ return new Date(argument);
57
+ } else {
58
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
59
+ // eslint-disable-next-line no-console
60
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
61
+
62
+ console.warn(new Error().stack);
63
+ }
64
+
65
+ return new Date(NaN);
66
+ }
67
+ }
68
+
69
+ exports["default"] = toDate;
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/date-fns/esm/toDate/index.js"],"sourcesContent":["import requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\n\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument); // Clone the date\n\n if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\"); // eslint-disable-next-line no-console\n\n console.warn(new Error().stack);\n }\n\n return new Date(NaN);\n }\n}"],"names":["requiredArgs"],"mappings":";;;;;;;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,MAAM,CAAC,QAAQ,EAAE;AACzC,EAAEA,gBAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACxD;AACA,EAAE,IAAI,QAAQ,YAAY,IAAI,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM,KAAK,eAAe,EAAE;AAC9F;AACA,IAAI,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;AACxC,GAAG,MAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM,KAAK,iBAAiB,EAAE;AAC3E,IAAI,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC9B,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM,KAAK,iBAAiB,KAAK,OAAO,OAAO,KAAK,WAAW,EAAE;AAC1G;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,oNAAoN,CAAC,CAAC;AACzO;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AACtC,KAAK;AACL;AACA,IAAI,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;AACzB,GAAG;AACH;;;;"}