@shakerquiz/guards 0.0.1 → 0.0.3

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.
@@ -18,15 +18,12 @@ jobs:
18
18
  steps:
19
19
  - uses: actions/checkout@v7
20
20
  with:
21
- fetch-depth: 0
22
21
  ref: main
23
22
  - uses: actions/setup-node@v7
24
23
  with:
25
24
  node-version: lts/*
26
- - uses: oven-sh/setup-bun@v2
27
25
  - run: git config user.name "github-actions[bot]"
28
26
  - run: git config user.email "github-actions[bot]@users.noreply.github.com"
29
27
  - run: npm version patch
30
- - run: bun install --frozen-lockfile
31
28
  - run: npm publish --tag latest --access public
32
29
  - run: git push --follow-tags
package/jsconfig.json CHANGED
@@ -4,11 +4,6 @@
4
4
  "module": "esnext",
5
5
  "moduleResolution": "bundler",
6
6
  "allowJs": true,
7
- "checkJs": true,
8
- "paths": {
9
- "source/*": [
10
- "./source/*"
11
- ]
12
- }
7
+ "checkJs": true
13
8
  }
14
- }
9
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/guards",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,5 +1,5 @@
1
1
  import { Channel, Channels } from '@shakerquiz/utilities'
2
- import { guardBody } from 'source/utilities/guard-body.js'
2
+ import { guardBody } from '../../utilities/guard-body.js'
3
3
 
4
4
  export const ChannelsQueryPropValidation = Object.freeze({
5
5
  channel: value => Object.hasOwn(Channel, value),
@@ -1,5 +1,5 @@
1
1
  import { Pattern } from '@shakerquiz/utilities'
2
- import { guardBody } from 'source/utilities/guard-body.js'
2
+ import { guardBody } from '../../utilities/guard-body.js'
3
3
 
4
4
  export const ParticipantsQueryPropValidation = Object.freeze({
5
5
  id: value =>
@@ -1,4 +1,4 @@
1
- import { guardBody } from 'source/utilities/guard-body.js'
1
+ import { guardBody } from '../utilities/guard-body.js'
2
2
 
3
3
  export const ChannelMailingMessagePropValidation = Object.freeze({
4
4
  sender: value => typeof value === 'string' && value !== '',
@@ -1,4 +1,4 @@
1
- import { guardBody } from 'source/utilities/guard-body.js'
1
+ import { guardBody } from '../utilities/guard-body.js'
2
2
 
3
3
  export const ChannelPropValidation = Object.freeze({
4
4
  id: value => typeof value === 'string' && value !== '',
@@ -1,5 +1,5 @@
1
1
  import { Phase } from '@shakerquiz/utilities'
2
- import { guardBody } from 'source/utilities/guard-body.js'
2
+ import { guardBody } from '../utilities/guard-body.js'
3
3
 
4
4
  export const MailingPropValidation = Object.freeze({
5
5
  phase: value => Object.hasOwn(Phase, value),
@@ -1,6 +1,6 @@
1
1
  import { MessageKind } from '@shakerquiz/utilities'
2
2
  import { isStringTag } from '@yurkimus/string-tag'
3
- import { guardBody } from 'source/utilities/guard-body.js'
3
+ import { guardBody } from '../utilities/guard-body.js'
4
4
 
5
5
  export const MessagePropValidation = Object.freeze({
6
6
  // Template is not implemented yet, so we handle only Inline messages.
@@ -1,5 +1,5 @@
1
1
  import { ParticipantChoice } from '@shakerquiz/utilities'
2
- import { guardBody } from 'source/utilities/guard-body.js'
2
+ import { guardBody } from '../utilities/guard-body.js'
3
3
 
4
4
  export const ParticipantPropValidation = Object.freeze({
5
5
  mongo_id: value => typeof value === 'string' && value !== '',
package/source/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from 'source/guards/channel-mailing-message.js'
2
- export * from 'source/guards/channel.js'
3
- export * from 'source/guards/mailing.js'
4
- export * from 'source/guards/message.js'
5
- export * from 'source/guards/participant.js'
6
- export * from 'source/guards/QUERY/channels.js'
7
- export * from 'source/guards/QUERY/participants.js'
1
+ export * from './guards/channel-mailing-message.js'
2
+ export * from './guards/channel.js'
3
+ export * from './guards/mailing.js'
4
+ export * from './guards/message.js'
5
+ export * from './guards/participant.js'
6
+ export * from './guards/QUERY/channels.js'
7
+ export * from './guards/QUERY/participants.js'