@hobenakicoffee/libraries 1.9.0 → 1.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hobenakicoffee/libraries",
3
- "version": "1.9.0",
3
+ "version": "1.10.1",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "exports": {
@@ -4,7 +4,7 @@ import type { ServiceType } from "./services";
4
4
 
5
5
  describe("ServiceTypes", () => {
6
6
  test("should contain all expected service type keys", () => {
7
- const expectedKeys = ["GIFT", "EXCLUSIVE_CONTENT", "WITHDRAWAL"];
7
+ const expectedKeys = ["GIFT", "EXCLUSIVE_CONTENT", "WITHDRAWAL", "FOLLOW"];
8
8
  expect(Object.keys(ServiceTypes)).toEqual(expectedKeys);
9
9
  });
10
10
 
@@ -12,6 +12,7 @@ describe("ServiceTypes", () => {
12
12
  expect(ServiceTypes.GIFT).toBe("gift");
13
13
  expect(ServiceTypes.EXCLUSIVE_CONTENT).toBe("exclusive_content");
14
14
  expect(ServiceTypes.WITHDRAWAL).toBe("withdrawal");
15
+ expect(ServiceTypes.FOLLOW).toBe("follow");
15
16
  });
16
17
 
17
18
  test("should be read-only at compile time", () => {
@@ -26,8 +27,8 @@ describe("ServiceTypes", () => {
26
27
  expect(validType).toBe("gift");
27
28
  });
28
29
 
29
- test("should have 2 service types", () => {
30
- expect(Object.keys(ServiceTypes).length).toBe(3);
30
+ test("should have 4 service types", () => {
31
+ expect(Object.keys(ServiceTypes).length).toBe(4);
31
32
  });
32
33
 
33
34
  test("all values should be lowercase or snake_case strings", () => {
@@ -2,6 +2,7 @@ export const ServiceTypes = {
2
2
  GIFT: "gift",
3
3
  EXCLUSIVE_CONTENT: "exclusive_content",
4
4
  WITHDRAWAL: "withdrawal",
5
+ FOLLOW: "follow",
5
6
  } as const;
6
7
 
7
8
  export type ServiceType = (typeof ServiceTypes)[keyof typeof ServiceTypes];