@shakerquiz/utilities 0.2.8 → 0.2.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakerquiz/utilities",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "author": "yurkimus <yurkimus@gmail.com>",
5
5
  "license": "ISC",
6
6
  "exports": {
@@ -0,0 +1,38 @@
1
+ import { Features } from './features'
2
+
3
+ export let Patterns = {
4
+ /**
5
+ * Users
6
+ */
7
+ [Features.Checkin]: URLPattern,
8
+
9
+ [Features.User]: URLPattern,
10
+
11
+ [Features.Users]: URLPattern,
12
+
13
+ /**
14
+ * Games
15
+ */
16
+ [Features.Theme]: URLPattern,
17
+
18
+ [Features.Themes]: URLPattern,
19
+
20
+ [Features.Game]: URLPattern,
21
+
22
+ [Features.Games]: URLPattern,
23
+
24
+ [Features.Registration]: URLPattern,
25
+
26
+ [Features.Registrations]: URLPattern,
27
+
28
+ /**
29
+ * Locations
30
+ */
31
+ [Features.City]: URLPattern,
32
+
33
+ [Features.Cities]: URLPattern,
34
+
35
+ [Features.Location]: URLPattern,
36
+
37
+ [Features.Locations]: URLPattern,
38
+ }
@@ -0,0 +1,64 @@
1
+ import { Features } from './features.js'
2
+
3
+ export let Patterns = {
4
+ /**
5
+ * Users
6
+ */
7
+ [Features.Checkin]: new URLPattern({
8
+ pathname: '/checkin',
9
+ }),
10
+
11
+ [Features.User]: new URLPattern({
12
+ pathname: '/user/:user?',
13
+ }),
14
+
15
+ [Features.Users]: new URLPattern({
16
+ pathname: '/users',
17
+ }),
18
+
19
+ /**
20
+ * Games
21
+ */
22
+ [Features.Theme]: new URLPattern({
23
+ pathname: '/theme/:theme?',
24
+ }),
25
+
26
+ [Features.Themes]: new URLPattern({
27
+ pathname: '/themes',
28
+ }),
29
+
30
+ [Features.Game]: new URLPattern({
31
+ pathname: '/game/:game?',
32
+ }),
33
+
34
+ [Features.Games]: new URLPattern({
35
+ pathname: '/games',
36
+ }),
37
+
38
+ [Features.Registration]: new URLPattern({
39
+ pathname: '/registration/:registration?',
40
+ }),
41
+
42
+ [Features.Registrations]: new URLPattern({
43
+ pathname: '/registrations',
44
+ }),
45
+
46
+ /**
47
+ * Locations
48
+ */
49
+ [Features.City]: new URLPattern({
50
+ pathname: '/city/:city?',
51
+ }),
52
+
53
+ [Features.Cities]: new URLPattern({
54
+ pathname: '/cities',
55
+ }),
56
+
57
+ [Features.Location]: new URLPattern({
58
+ pathname: '/location/:location?',
59
+ }),
60
+
61
+ [Features.Locations]: new URLPattern({
62
+ pathname: '/locations',
63
+ }),
64
+ }
package/source/index.js CHANGED
@@ -5,6 +5,7 @@ export * from './enumerations/game-statuses.js'
5
5
  export * from './enumerations/kinds.js'
6
6
  export * from './enumerations/methods.js'
7
7
  export * from './enumerations/networks.js'
8
+ export * from './enumerations/patterns.js'
8
9
  export * from './enumerations/phases.js'
9
10
  export * from './enumerations/regexps.js'
10
11
  export * from './enumerations/roles.js'