@pdfvector/util 0.0.22 → 0.0.24

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.
Files changed (39) hide show
  1. package/.tsc/lib/api-source.d.ts +1 -0
  2. package/.tsc/lib/api-source.d.ts.map +1 -0
  3. package/.tsc/lib/capture-error.d.ts +2 -0
  4. package/.tsc/lib/capture-error.d.ts.map +1 -0
  5. package/.tsc/lib/capture-error.js +4 -0
  6. package/.tsc/lib/date.d.ts +1 -0
  7. package/.tsc/lib/date.d.ts.map +1 -0
  8. package/.tsc/lib/environment.d.ts +4 -0
  9. package/.tsc/lib/environment.d.ts.map +1 -0
  10. package/.tsc/lib/environment.js +56 -0
  11. package/.tsc/lib/error-service.d.ts +5 -0
  12. package/.tsc/lib/error-service.d.ts.map +1 -0
  13. package/.tsc/lib/error-service.js +5 -0
  14. package/.tsc/lib/format.d.ts +1 -0
  15. package/.tsc/lib/format.d.ts.map +1 -0
  16. package/.tsc/lib/free-tier.d.ts +1 -0
  17. package/.tsc/lib/free-tier.d.ts.map +1 -0
  18. package/.tsc/lib/get-error-message.d.ts +1 -0
  19. package/.tsc/lib/get-error-message.d.ts.map +1 -0
  20. package/.tsc/lib/index.d.ts +7 -17
  21. package/.tsc/lib/index.d.ts.map +1 -0
  22. package/.tsc/lib/index.js +6 -81
  23. package/.tsc/lib/plan.d.ts +1 -0
  24. package/.tsc/lib/plan.d.ts.map +1 -0
  25. package/.tsc/lib/ports.d.ts +5 -0
  26. package/.tsc/lib/ports.d.ts.map +1 -0
  27. package/.tsc/lib/ports.js +4 -0
  28. package/.tsc/lib/product-title.d.ts +2 -0
  29. package/.tsc/lib/product-title.d.ts.map +1 -0
  30. package/.tsc/lib/product-title.js +1 -0
  31. package/.tsc/lib/tier.d.ts +1 -0
  32. package/.tsc/lib/tier.d.ts.map +1 -0
  33. package/.tsc/lib/urls.d.ts +5 -0
  34. package/.tsc/lib/urls.d.ts.map +1 -0
  35. package/.tsc/lib/urls.js +14 -0
  36. package/.tsc/lib/usage-status.d.ts +1 -0
  37. package/.tsc/lib/usage-status.d.ts.map +1 -0
  38. package/CHANGELOG.md +14 -0
  39. package/package.json +1 -1
@@ -1,2 +1,3 @@
1
1
  export declare const apiSources: readonly ["make", "zapier", "n8n", "sdk", "playground", "api", "unknown"];
2
2
  export type APISource = (typeof apiSources)[number];
3
+ //# sourceMappingURL=api-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-source.d.ts","sourceRoot":"","sources":["../../lib/api-source.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,YACtB,MAAM,EACN,QAAQ,EACR,KAAK,EACL,KAAK,EACL,YAAY,EACZ,KAAK,EACL,SAAS,CACA,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function captureError(error: unknown): void;
2
+ //# sourceMappingURL=capture-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture-error.d.ts","sourceRoot":"","sources":["../../lib/capture-error.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAEjD"}
@@ -0,0 +1,4 @@
1
+ import { errorService } from "./error-service.js";
2
+ export function captureError(error) {
3
+ errorService.captureError(error);
4
+ }
@@ -2,3 +2,4 @@ export declare function getNextMonthDate(timestamp: number): Date;
2
2
  export declare function getPreviousMonthDate(): Date;
3
3
  export declare function formatShortDateTime(date: Date | number): string;
4
4
  export declare function formatLongDateTime(date: Date | number): string;
5
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../lib/date.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAIxD;AAED,wBAAgB,oBAAoB,IAAI,IAAI,CAI3C;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAQ/D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAY9D"}
@@ -0,0 +1,4 @@
1
+ export declare const isCI: boolean;
2
+ export declare const isLocal: boolean;
3
+ export declare const isLive: boolean;
4
+ //# sourceMappingURL=environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../lib/environment.ts"],"names":[],"mappings":"AAyDA,eAAO,MAAM,IAAI,SAAoC,CAAC;AACtD,eAAO,MAAM,OAAO,SAA0C,CAAC;AAC/D,eAAO,MAAM,MAAM,SAAW,CAAC"}
@@ -0,0 +1,56 @@
1
+ function getWithBun(name) {
2
+ try {
3
+ return Bun.env[name];
4
+ }
5
+ catch {
6
+ return undefined;
7
+ }
8
+ }
9
+ function getWithNode(name) {
10
+ try {
11
+ return process.env[name];
12
+ }
13
+ catch {
14
+ return undefined;
15
+ }
16
+ }
17
+ function getCIWithNext() {
18
+ try {
19
+ return process.env["NEXT_PUBLIC_CI"];
20
+ }
21
+ catch {
22
+ return undefined;
23
+ }
24
+ }
25
+ function getCIWithVite() {
26
+ try {
27
+ return import.meta.env["VITE_CI"];
28
+ }
29
+ catch {
30
+ return undefined;
31
+ }
32
+ }
33
+ function getLocalWithNext() {
34
+ try {
35
+ return process.env["NEXT_PUBLIC_PDFVECTOR_LOCAL"];
36
+ }
37
+ catch {
38
+ return undefined;
39
+ }
40
+ }
41
+ function getLocalWithVite() {
42
+ try {
43
+ return import.meta.env["VITE_PDFVECTOR_LOCAL"];
44
+ }
45
+ catch {
46
+ return undefined;
47
+ }
48
+ }
49
+ const envCI = getWithBun("CI") ?? getWithNode("CI") ?? getCIWithNext() ?? getCIWithVite();
50
+ const envLocal = getWithBun("PDFVECTOR_LOCAL") ??
51
+ getWithNode("PDFVECTOR_LOCAL") ??
52
+ getLocalWithNext() ??
53
+ getLocalWithVite();
54
+ export const isCI = envCI === "1" || envCI === "true";
55
+ export const isLocal = envLocal === "1" || envLocal === "true";
56
+ export const isLive = !isLocal;
@@ -0,0 +1,5 @@
1
+ export interface ErrorService {
2
+ captureError: (error: unknown) => void;
3
+ }
4
+ export declare const errorService: ErrorService;
5
+ //# sourceMappingURL=error-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-service.d.ts","sourceRoot":"","sources":["../../lib/error-service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,YAAY,EAAE,YAI1B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const errorService = {
2
+ captureError: (error) => {
3
+ console.error(error);
4
+ },
5
+ };
@@ -1 +1,2 @@
1
1
  export declare function formatNumber(value: number): string;
2
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../lib/format.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD"}
@@ -17,3 +17,4 @@ export declare const freeTierLimits: {
17
17
  };
18
18
  };
19
19
  export type FreeTierEndpoint = keyof typeof freeTierLimits;
20
+ //# sourceMappingURL=free-tier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"free-tier.d.ts","sourceRoot":"","sources":["../../lib/free-tier.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,cAAc;;iBAEzB,UAAU,EAAE,CAAC;iBACb,WAAW;iBACX,QAAQ,EAAE,CAAC;;;iBAGX,UAAU,EAAE,EAAE;;;iBAGd,UAAU,EAAE,EAAE;;CAE0C,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,cAAc,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function getErrorMessage(error: unknown): string;
2
+ //# sourceMappingURL=get-error-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-error-message.d.ts","sourceRoot":"","sources":["../../lib/get-error-message.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAItD"}
@@ -1,25 +1,15 @@
1
1
  export * from "./api-source.js";
2
+ export * from "./capture-error.js";
2
3
  export * from "./date.js";
4
+ export * from "./environment.js";
5
+ export * from "./error-service.js";
3
6
  export * from "./format.js";
4
7
  export * from "./free-tier.js";
5
8
  export * from "./get-error-message.js";
6
9
  export * from "./plan.js";
10
+ export * from "./ports.js";
11
+ export * from "./product-title.js";
7
12
  export * from "./tier.js";
13
+ export * from "./urls.js";
8
14
  export * from "./usage-status.js";
9
- export declare const isCI: boolean;
10
- export declare const isLocal: boolean;
11
- export declare const isLive: boolean;
12
- export declare const instanceServerPort = 34000;
13
- export declare const gatewayServerPort = 35000;
14
- export declare const websitePort = 36000;
15
- export declare const appPort = 37000;
16
- export declare const websiteURL: string;
17
- export declare const appURL: string;
18
- export declare const gatewayServerURL: string;
19
- export declare const generalInstanceServerURL: string;
20
- export declare const productTitle = "PDF Vector";
21
- export interface ErrorService {
22
- captureError: (error: unknown) => void;
23
- }
24
- export declare const errorService: ErrorService;
25
- export declare function captureError(error: unknown): void;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
package/.tsc/lib/index.js CHANGED
@@ -1,89 +1,14 @@
1
1
  export * from "./api-source.js";
2
+ export * from "./capture-error.js";
2
3
  export * from "./date.js";
4
+ export * from "./environment.js";
5
+ export * from "./error-service.js";
3
6
  export * from "./format.js";
4
7
  export * from "./free-tier.js";
5
8
  export * from "./get-error-message.js";
6
9
  export * from "./plan.js";
10
+ export * from "./ports.js";
11
+ export * from "./product-title.js";
7
12
  export * from "./tier.js";
13
+ export * from "./urls.js";
8
14
  export * from "./usage-status.js";
9
- function getCIWithBun() {
10
- try {
11
- return Bun.env.CI;
12
- }
13
- catch { }
14
- }
15
- function getCIWithNode() {
16
- try {
17
- return process.env.CI;
18
- }
19
- catch { }
20
- }
21
- function getCIWithNext() {
22
- try {
23
- return process.env.NEXT_PUBLIC_CI;
24
- }
25
- catch { }
26
- }
27
- function getCIWithVite() {
28
- try {
29
- return import.meta.env.VITE_CI;
30
- }
31
- catch { }
32
- }
33
- function getLocalWithBun() {
34
- try {
35
- return Bun.env.PDFVECTOR_LOCAL;
36
- }
37
- catch { }
38
- }
39
- function getLocalWithNode() {
40
- try {
41
- return process.env.PDFVECTOR_LOCAL;
42
- }
43
- catch { }
44
- }
45
- function getLocalWithNext() {
46
- try {
47
- return process.env.NEXT_PUBLIC_PDFVECTOR_LOCAL;
48
- }
49
- catch { }
50
- }
51
- function getLocalWithVite() {
52
- try {
53
- return import.meta.env.VITE_PDFVECTOR_LOCAL;
54
- }
55
- catch { }
56
- }
57
- const envCI = getCIWithBun() ?? getCIWithNode() ?? getCIWithNext() ?? getCIWithVite();
58
- const envLocal = getLocalWithBun() ??
59
- getLocalWithNode() ??
60
- getLocalWithNext() ??
61
- getLocalWithVite();
62
- export const isCI = envCI === "1" || envCI === "true";
63
- export const isLocal = envLocal === "1" || envLocal === "true";
64
- export const isLive = !isLocal;
65
- export const instanceServerPort = 34000;
66
- export const gatewayServerPort = 35000;
67
- export const websitePort = 36000;
68
- export const appPort = 37000;
69
- export const websiteURL = isLocal
70
- ? `http://localhost:${websitePort}`
71
- : "https://www.pdfvector.com";
72
- export const appURL = isLocal
73
- ? `http://localhost:${appPort}`
74
- : "https://app.pdfvector.com";
75
- export const gatewayServerURL = isLocal
76
- ? `http://localhost:${gatewayServerPort}`
77
- : "https://gateway.pdfvector.com";
78
- export const generalInstanceServerURL = isLocal
79
- ? `http://localhost:${instanceServerPort}`
80
- : "https://global.pdfvector.com";
81
- export const productTitle = "PDF Vector";
82
- export const errorService = {
83
- captureError: (error) => {
84
- console.error(error);
85
- },
86
- };
87
- export function captureError(error) {
88
- errorService.captureError(error);
89
- }
@@ -27,3 +27,4 @@ export declare function isPlanKey(value: string): value is PlanKey;
27
27
  export declare function capitalizeKey(key: string): string;
28
28
  export declare function getPlanLabel(key: string): string;
29
29
  export declare function formatPlanLabel(plan: Plan): string;
30
+ //# sourceMappingURL=plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../lib/plan.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,IAAI;IACpB,GAAG,EAAE,UAAU,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;CACX;AAED,MAAM,WAAW,WAAW;IAC3B,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,cAAc,CAsB3D,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAmC,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AAEhF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAEzD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAMlD"}
@@ -0,0 +1,5 @@
1
+ export declare const instanceServerPort = 34000;
2
+ export declare const gatewayServerPort = 35000;
3
+ export declare const websitePort = 36000;
4
+ export declare const appPort = 37000;
5
+ //# sourceMappingURL=ports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../lib/ports.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,OAAO,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export const instanceServerPort = 34000;
2
+ export const gatewayServerPort = 35000;
3
+ export const websitePort = 36000;
4
+ export const appPort = 37000;
@@ -0,0 +1,2 @@
1
+ export declare const productTitle = "PDF Vector";
2
+ //# sourceMappingURL=product-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-title.d.ts","sourceRoot":"","sources":["../../lib/product-title.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ export const productTitle = "PDF Vector";
@@ -44,3 +44,4 @@ export declare const academicCreditCosts: {
44
44
  readonly academicSimilarPapers: 3;
45
45
  readonly grantSearch: 2;
46
46
  };
47
+ //# sourceMappingURL=tier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tier.d.ts","sourceRoot":"","sources":["../../lib/tier.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAExD,eAAO,MAAM,UAAU,EAAE,SAAS,EAAmC,CAAC;AAItE,MAAM,WAAW,SAAS;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAMhD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAG9B,CAAC;AAIF,uCAAuC;AACvC,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAKxD,CAAC;AAEF,6CAA6C;AAC7C,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAK7D,CAAC;AAEF;2DAC2D;AAC3D,eAAO,MAAM,qBAAqB,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CACxE,MAAM,EACN,MAAM,GAAG,SAAS,CAIlB,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAKhE,CAAC;AAIF,mEAAmE;AACnE,eAAO,MAAM,cAAc,YAC1B,KAAK,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,KAAK,EACL,8BAA8B,EAC9B,MAAM,EACN,KAAK,EACL,iCAAiC,EACjC,MAAM,EACN,wCAAwC,CAC/B,CAAC;AAEX,+CAA+C;AAC/C,eAAO,MAAM,wBAAwB,YACpC,mCAAmC,CAC1B,CAAC;AAEX,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,kIAC2F,CAAC;AAEjI,4DAA4D;AAC5D,eAAO,MAAM,uBAAuB,QAKe,CAAC;AAEpD;qFACqF;AACrF,eAAO,MAAM,oBAAoB;aAChC,SAAS,EAAE,EAAE;aACb,SAAS,EAAE,KAAK;CACP,CAAC;AAEX,wFAAwF;AACxF,eAAO,MAAM,wBAAwB,QAIkJ,CAAC;AAIxL,oDAAoD;AACpD,eAAO,MAAM,mBAAmB;aAC/B,cAAc,EAAE,CAAC;aACjB,aAAa,EAAE,CAAC;aAChB,gCAAgC,EAAE,CAAC;aACnC,qBAAqB,EAAE,CAAC;aACxB,yBAAyB,EAAE,EAAE;aAC7B,qBAAqB,EAAE,CAAC;aACxB,WAAW,EAAE,CAAC;CACL,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const websiteURL: string;
2
+ export declare const appURL: string;
3
+ export declare const gatewayServerURL: string;
4
+ export declare const generalInstanceServerURL: string;
5
+ //# sourceMappingURL=urls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urls.d.ts","sourceRoot":"","sources":["../../lib/urls.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU,QAEO,CAAC;AAE/B,eAAO,MAAM,MAAM,QAEW,CAAC;AAE/B,eAAO,MAAM,gBAAgB,QAEK,CAAC;AAEnC,eAAO,MAAM,wBAAwB,QAEJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { isLocal } from "./environment.js";
2
+ import { appPort, gatewayServerPort, instanceServerPort, websitePort, } from "./ports.js";
3
+ export const websiteURL = isLocal
4
+ ? `http://localhost:${websitePort}`
5
+ : "https://www.pdfvector.com";
6
+ export const appURL = isLocal
7
+ ? `http://localhost:${appPort}`
8
+ : "https://app.pdfvector.com";
9
+ export const gatewayServerURL = isLocal
10
+ ? `http://localhost:${gatewayServerPort}`
11
+ : "https://gateway.pdfvector.com";
12
+ export const generalInstanceServerURL = isLocal
13
+ ? `http://localhost:${instanceServerPort}`
14
+ : "https://global.pdfvector.com";
@@ -2,3 +2,4 @@ export declare const usageStatuses: readonly ["success", "user_error", "system_e
2
2
  export type UsageStatus = (typeof usageStatuses)[number];
3
3
  export declare const errorStages: readonly ["auth", "validation", "preprocessing", "processing"];
4
4
  export type ErrorStage = (typeof errorStages)[number];
5
+ //# sourceMappingURL=usage-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-status.d.ts","sourceRoot":"","sources":["../../lib/usage-status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,YAAI,SAAS,EAAE,YAAY,EAAE,cAAc,CAAU,CAAC;AAEhF,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,WAAW,YACvB,MAAM,EACN,YAAY,EACZ,eAAe,EACf,YAAY,CACH,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @pdfvector/util
2
2
 
3
+ ## 0.0.24
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#304](https://github.com/phuctm97/pdfvector/pull/304) [`3b6df52`](https://github.com/phuctm97/pdfvector/commit/3b6df52ce23f3cf3fe869c9aeeba907836ab1f9e) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Reorganize application, API, parsing, and release boundaries while preserving existing behavior and public contracts.
9
+
10
+ ## 0.0.23
11
+ ### Patch Changes
12
+
13
+
14
+
15
+ - [#273](https://github.com/phuctm97/pdfvector/pull/273) [`905025f`](https://github.com/phuctm97/pdfvector/commit/905025f926b760b5b1b7f6cfc876fc8557c70d46) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Release npm packages with trusted publishing
16
+
3
17
  ## 0.0.22
4
18
  ### Patch Changes
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfvector/util",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "main": ".tsc/lib/index.js",
6
6
  "files": [