@shakerquiz/utilities 4.0.9 → 4.0.11

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.
@@ -1,6 +1,7 @@
1
1
  name: Publish aquamarine
2
2
 
3
3
  on:
4
+ workflow_dispatch:
4
5
  pull_request:
5
6
  types: [ closed ]
6
7
  branches:
@@ -13,7 +14,9 @@ permissions:
13
14
  jobs:
14
15
  publish:
15
16
  runs-on: ubuntu-latest
16
- if: github.event.pull_request.merged == true
17
+ if: |
18
+ github.event_name == 'workflow_dispatch' ||
19
+ github.event.pull_request.merged == true
17
20
  steps:
18
21
  - uses: actions/checkout@v5
19
22
  with:
@@ -22,7 +25,6 @@ jobs:
22
25
  with:
23
26
  node-version: 24
24
27
  - uses: oven-sh/setup-bun@v2
25
- - run: npm install -g npm@latest
26
28
  - run: git config user.name "github-actions[bot]"
27
29
  - run: git config user.email "github-actions[bot]@users.noreply.github.com"
28
30
  - run: npm version patch
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "4.0.9",
4
+ "version": "4.0.11",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,9 +1,13 @@
1
- export const ThemeStatus = Object.freeze({
2
- 'Active': 'Active',
3
- 'Archive': 'Archive',
4
- })
1
+ export const ThemeStatuses = Object.freeze(
2
+ /** @type {const} */ ([
3
+ 'Active',
4
+ 'Archive',
5
+ ]),
6
+ )
5
7
 
6
- export const ThemeStatuses = Object.freeze([
7
- 'Active',
8
- 'Archive',
9
- ])
8
+ export const ThemeStatus = Object.freeze(
9
+ /** @type {{ [x in typeof ThemeStatuses[number]]: x }} */ (ThemeStatuses.reduce(
10
+ (o, x) => (o[x] = x, o),
11
+ {},
12
+ )),
13
+ )
@@ -1,9 +1,13 @@
1
- export const VenueAudience = Object.freeze({
2
- 'Open': 'Open',
3
- 'Adults': 'Adults',
4
- })
1
+ export const VenueAudiences = Object.freeze(
2
+ /** @type {const} */ ([
3
+ 'Open',
4
+ 'Adults',
5
+ ]),
6
+ )
5
7
 
6
- export const VenueAudiences = Object.freeze([
7
- 'Open',
8
- 'Adults',
9
- ])
8
+ export const VenueAudience = Object.freeze(
9
+ /** @type {{ [x in typeof VenueAudiences[number]]: x }} */ (VenueAudiences.reduce(
10
+ (o, x) => (o[x] = x, o),
11
+ {},
12
+ )),
13
+ )
@@ -1,9 +1,13 @@
1
- export const VenueStatus = Object.freeze({
2
- 'Active': 'Active',
3
- 'Archive': 'Archive',
4
- })
1
+ export const VenueStatuses = Object.freeze(
2
+ /** @type {const} */ ([
3
+ 'Active',
4
+ 'Archive',
5
+ ]),
6
+ )
5
7
 
6
- export const VenueStatuses = Object.freeze([
7
- 'Active',
8
- 'Archive',
9
- ])
8
+ export const VenueStatus = Object.freeze(
9
+ /** @type {{ [x in typeof VenueStatuses[number]]: x }} */ (VenueStatuses.reduce(
10
+ (o, x) => (o[x] = x, o),
11
+ {},
12
+ )),
13
+ )