@koralabs/kora-labs-common 2.2.0 → 2.2.1

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.
@@ -10,7 +10,7 @@ const checkHandlePattern = (handle, root) => {
10
10
  message: constants_1.RESPONSE_UNAVAILABLE_LEGENDARY
11
11
  };
12
12
  }
13
- if (!handle.match(constants_1.REGEX_SUB_HANDLE) && root ? handle.endsWith(`@${root}`) : true) {
13
+ if (!handle.match(constants_1.REGEX_SUB_HANDLE) && (root ? handle.endsWith(`@${root}`) : true)) {
14
14
  return {
15
15
  valid: false,
16
16
  message: constants_1.RESPONSE_INVALID_HANDLE_FORMAT
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const validation_1 = require("./validation");
4
+ describe('validation tests', () => {
5
+ it('should return true', () => {
6
+ const result = (0, validation_1.checkHandlePattern)('...');
7
+ expect(result).toBe(null);
8
+ });
9
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",