@forwardslashns/taskit-validation-messages 1.9.0 → 1.9.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.
@@ -2,7 +2,7 @@ import { VALIDATION_MESSAGES } from './validation-messages';
2
2
  export declare const VALIDATION: { [F in keyof typeof VALIDATION_MESSAGES]: {
3
3
  readonly FEATURE: F;
4
4
  } & { [K in keyof (typeof VALIDATION_MESSAGES)[F]]: `${F}.${K & string}`; }; };
5
- export declare const RELATED_CLIENT_PREFIX = "[Related Client \"";
5
+ export declare const RELATED_CLIENT_PREFIX = "[RELATED CLIENT \"";
6
6
  export declare const RELATED_CLIENT_SUFFIX = "\"] ";
7
7
  export declare const getRelatedClientMessagePrefix: (clientName: string) => string;
8
8
  export declare const RELATED_CLIENT_REGEX: RegExp;
@@ -16,11 +16,11 @@ const createValidationConstants = () => {
16
16
  return result;
17
17
  };
18
18
  exports.VALIDATION = createValidationConstants();
19
- exports.RELATED_CLIENT_PREFIX = '[Related Client "';
19
+ exports.RELATED_CLIENT_PREFIX = '[RELATED CLIENT "';
20
20
  exports.RELATED_CLIENT_SUFFIX = '"] ';
21
21
  const getRelatedClientMessagePrefix = (clientName) => `${exports.RELATED_CLIENT_PREFIX}${clientName}${exports.RELATED_CLIENT_SUFFIX}`;
22
22
  exports.getRelatedClientMessagePrefix = getRelatedClientMessagePrefix;
23
- exports.RELATED_CLIENT_REGEX = /^\[Related Client "([^"]+)"\]\s+/i;
23
+ exports.RELATED_CLIENT_REGEX = /^\[RELATED CLIENT "([^"]+)"\]\s+/i;
24
24
  const extractRelatedClientName = (message) => {
25
25
  const match = message.match(exports.RELATED_CLIENT_REGEX);
26
26
  return match ? match[1] : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -25,13 +25,13 @@ export const VALIDATION = createValidationConstants() as {
25
25
  };
26
26
  };
27
27
 
28
- export const RELATED_CLIENT_PREFIX = '[Related Client "';
28
+ export const RELATED_CLIENT_PREFIX = '[RELATED CLIENT "';
29
29
  export const RELATED_CLIENT_SUFFIX = '"] ';
30
30
 
31
31
  export const getRelatedClientMessagePrefix = (clientName: string): string =>
32
32
  `${RELATED_CLIENT_PREFIX}${clientName}${RELATED_CLIENT_SUFFIX}`;
33
33
 
34
- export const RELATED_CLIENT_REGEX = /^\[Related Client "([^"]+)"\]\s+/i;
34
+ export const RELATED_CLIENT_REGEX = /^\[RELATED CLIENT "([^"]+)"\]\s+/i;
35
35
 
36
36
  export const extractRelatedClientName = (message: string): string | null => {
37
37
  const match = message.match(RELATED_CLIENT_REGEX);