@shakerquiz/utilities 0.5.170 → 0.5.172

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "0.5.170",
4
+ "version": "0.5.172",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -5,7 +5,7 @@ import { Mode } from './mode.js'
5
5
  * - HTTP/1.1 (Core Methods): {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3}
6
6
  * - PATCH: {@link https://datatracker.ietf.org/doc/html/rfc5789}
7
7
  */
8
- export var Method = /** @type {const} */ ({
8
+ export const Method = Object.freeze({
9
9
  'OPTIONS': 'OPTIONS',
10
10
  'GET': 'GET',
11
11
  'POST': 'POST',
@@ -13,12 +13,3 @@ export var Method = /** @type {const} */ ({
13
13
  'PATCH': 'PATCH',
14
14
  'DELETE': 'DELETE',
15
15
  })
16
-
17
- export var Methods = [
18
- Method['OPTIONS'],
19
- Method['GET'],
20
- Method['POST'],
21
- Method['PUT'],
22
- Method['PATCH'],
23
- Method['DELETE'],
24
- ]
@@ -1,4 +1,4 @@
1
- export var Numerosity = /** @type {const} */ ({
1
+ export const Numerosity = Object.freeze({
2
2
  Singular: 'Singular',
3
3
  Dual: 'Dual',
4
4
  Plural: 'Plural',
@@ -127,29 +127,29 @@ export const RouteNumerosity = Object.freeze({
127
127
  })
128
128
 
129
129
  export const RouteRelation = Object.freeze({
130
- [Route['checkin']]: Route['checkins'],
130
+ [Route['checkin']]: Route['checkin'],
131
131
  [Route['checkins']]: Route['checkin'],
132
132
  [Route['cities']]: Route['city'],
133
133
  [Route['cities/country']]: Route['city/country'],
134
134
  [Route['cities/currency']]: Route['city/currency'],
135
135
  [Route['cities/timezone']]: Route['city/timezone'],
136
136
  [Route['cities/venues']]: Route['city/venues'],
137
- [Route['city']]: Route['cities'],
138
- [Route['city/country']]: Route['cities/country'],
139
- [Route['city/currency']]: Route['cities/currency'],
140
- [Route['city/timezone']]: Route['cities/timezone'],
141
- [Route['city/venues']]: Route['cities/venues'],
137
+ [Route['city']]: Route['city'],
138
+ [Route['city/country']]: Route['city/country'],
139
+ [Route['city/currency']]: Route['city/currency'],
140
+ [Route['city/timezone']]: Route['city/timezone'],
141
+ [Route['city/venues']]: Route['city/venues'],
142
142
  [Route['countries']]: Route['country'],
143
- [Route['country']]: Route['countries'],
143
+ [Route['country']]: Route['country'],
144
144
  [Route['currencies']]: Route['currency'],
145
- [Route['currency']]: Route['currencies'],
146
- [Route['game']]: Route['games'],
147
- [Route['game/city']]: Route['games/city'],
148
- [Route['game/registrations']]: Route['games/registrations'],
149
- [Route['game/registrations/export']]: Route['games/registrations/export'],
150
- [Route['game/summary']]: Route['games/summary'],
151
- [Route['game/theme']]: Route['games/theme'],
152
- [Route['game/venue']]: Route['games/venue'],
145
+ [Route['currency']]: Route['currency'],
146
+ [Route['game']]: Route['game'],
147
+ [Route['game/city']]: Route['game/city'],
148
+ [Route['game/registrations']]: Route['game/registrations'],
149
+ [Route['game/registrations/export']]: Route['game/registrations/export'],
150
+ [Route['game/summary']]: Route['game/summary'],
151
+ [Route['game/theme']]: Route['game/theme'],
152
+ [Route['game/venue']]: Route['game/venue'],
153
153
  [Route['games']]: Route['game'],
154
154
  [Route['games/city']]: Route['game/city'],
155
155
  [Route['games/registrations']]: Route['game/registrations'],
@@ -157,27 +157,27 @@ export const RouteRelation = Object.freeze({
157
157
  [Route['games/summary']]: Route['game/summary'],
158
158
  [Route['games/theme']]: Route['game/theme'],
159
159
  [Route['games/venue']]: Route['game/venue'],
160
- [Route['registration']]: Route['registrations'],
161
- [Route['registration/export']]: Route['registrations/export'],
160
+ [Route['registration']]: Route['registration'],
161
+ [Route['registration/export']]: Route['registration/export'],
162
162
  [Route['registrations']]: Route['registration'],
163
163
  [Route['registrations/export']]: Route['registration/export'],
164
- [Route['role']]: Route['roles'],
164
+ [Route['role']]: Route['role'],
165
165
  [Route['roles']]: Route['role'],
166
- [Route['theme']]: Route['themes'],
167
- [Route['theme/cover']]: Route['themes/cover'],
166
+ [Route['theme']]: Route['theme'],
167
+ [Route['theme/cover']]: Route['theme/cover'],
168
168
  [Route['themes']]: Route['theme'],
169
169
  [Route['themes/cover']]: Route['theme/cover'],
170
- [Route['timezone']]: Route['timezones'],
170
+ [Route['timezone']]: Route['timezone'],
171
171
  [Route['timezones']]: Route['timezone'],
172
- [Route['user']]: Route['users'],
173
- [Route['user/cities']]: Route['users/cities'],
174
- [Route['user/password']]: Route['users/password'],
175
- [Route['user/role']]: Route['users/role'],
172
+ [Route['user']]: Route['user'],
173
+ [Route['user/cities']]: Route['user/cities'],
174
+ [Route['user/password']]: Route['user/password'],
175
+ [Route['user/role']]: Route['user/role'],
176
176
  [Route['users']]: Route['user'],
177
177
  [Route['users/cities']]: Route['user/cities'],
178
178
  [Route['users/role']]: Route['user/role'],
179
- [Route['venue']]: Route['venues'],
180
- [Route['venue/city']]: Route['venues/city'],
179
+ [Route['venue']]: Route['venue'],
180
+ [Route['venue/city']]: Route['venue/city'],
181
181
  [Route['venues']]: Route['venue'],
182
182
  [Route['venues/city']]: Route['venue/city'],
183
183
  })