@shware/analytics 0.3.17 → 0.4.0

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 (40) hide show
  1. package/dist/index.cjs +3 -0
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +2 -1
  4. package/dist/index.d.ts +2 -1
  5. package/dist/index.mjs +2 -0
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/react-router/index.cjs +0 -1
  8. package/dist/react-router/index.cjs.map +1 -1
  9. package/dist/react-router/index.mjs +1 -2
  10. package/dist/react-router/index.mjs.map +1 -1
  11. package/dist/schema/index.cjs +50 -50
  12. package/dist/schema/index.cjs.map +1 -1
  13. package/dist/schema/index.d.cts +28 -151
  14. package/dist/schema/index.d.ts +28 -151
  15. package/dist/schema/index.mjs +1 -1
  16. package/dist/schema/index.mjs.map +1 -1
  17. package/dist/server/conversions-api.cjs +10 -2
  18. package/dist/server/conversions-api.cjs.map +1 -1
  19. package/dist/server/conversions-api.mjs +10 -2
  20. package/dist/server/conversions-api.mjs.map +1 -1
  21. package/dist/track/index.cjs +3 -8
  22. package/dist/track/index.cjs.map +1 -1
  23. package/dist/track/index.mjs +3 -8
  24. package/dist/track/index.mjs.map +1 -1
  25. package/dist/track/types.cjs.map +1 -1
  26. package/dist/track/types.d.cts +1 -1
  27. package/dist/track/types.d.ts +1 -1
  28. package/dist/utils/stripe.cjs +53 -0
  29. package/dist/utils/stripe.cjs.map +1 -0
  30. package/dist/utils/stripe.d.cts +5 -0
  31. package/dist/utils/stripe.d.ts +5 -0
  32. package/dist/utils/stripe.mjs +27 -0
  33. package/dist/utils/stripe.mjs.map +1 -0
  34. package/dist/utils/token-bucket.cjs +73 -0
  35. package/dist/utils/token-bucket.cjs.map +1 -0
  36. package/dist/utils/token-bucket.d.cts +20 -0
  37. package/dist/utils/token-bucket.d.ts +20 -0
  38. package/dist/utils/token-bucket.mjs +48 -0
  39. package/dist/utils/token-bucket.mjs.map +1 -0
  40. package/package.json +7 -8
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils/stripe.ts
21
+ var stripe_exports = {};
22
+ __export(stripe_exports, {
23
+ ZERO_DECIMAL_CURRENCIES: () => ZERO_DECIMAL_CURRENCIES,
24
+ stripeMinorUnits: () => stripeMinorUnits
25
+ });
26
+ module.exports = __toCommonJS(stripe_exports);
27
+ var ZERO_DECIMAL_CURRENCIES = [
28
+ "BIF",
29
+ "CLP",
30
+ "DJF",
31
+ "GNF",
32
+ "JPY",
33
+ "KMF",
34
+ "KRW",
35
+ "MGA",
36
+ "PYG",
37
+ "RWF",
38
+ "UGX",
39
+ "VND",
40
+ "VUV",
41
+ "XAF",
42
+ "XOF",
43
+ "XPF"
44
+ ];
45
+ function stripeMinorUnits(currency) {
46
+ return ZERO_DECIMAL_CURRENCIES.includes(currency.toUpperCase()) ? 1 : 100;
47
+ }
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ ZERO_DECIMAL_CURRENCIES,
51
+ stripeMinorUnits
52
+ });
53
+ //# sourceMappingURL=stripe.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/stripe.ts"],"sourcesContent":["export const ZERO_DECIMAL_CURRENCIES = [\n 'BIF',\n 'CLP',\n 'DJF',\n 'GNF',\n 'JPY',\n 'KMF',\n 'KRW',\n 'MGA',\n 'PYG',\n 'RWF',\n 'UGX',\n 'VND',\n 'VUV',\n 'XAF',\n 'XOF',\n 'XPF',\n];\n\n/** reference: https://docs.stripe.com/currencies#zero-decimal */\nexport function stripeMinorUnits(currency: string) {\n return ZERO_DECIMAL_CURRENCIES.includes(currency.toUpperCase()) ? 1 : 100;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,SAAS,iBAAiB,UAAkB;AACjD,SAAO,wBAAwB,SAAS,SAAS,YAAY,CAAC,IAAI,IAAI;AACxE;","names":[]}
@@ -0,0 +1,5 @@
1
+ declare const ZERO_DECIMAL_CURRENCIES: string[];
2
+ /** reference: https://docs.stripe.com/currencies#zero-decimal */
3
+ declare function stripeMinorUnits(currency: string): 1 | 100;
4
+
5
+ export { ZERO_DECIMAL_CURRENCIES, stripeMinorUnits };
@@ -0,0 +1,5 @@
1
+ declare const ZERO_DECIMAL_CURRENCIES: string[];
2
+ /** reference: https://docs.stripe.com/currencies#zero-decimal */
3
+ declare function stripeMinorUnits(currency: string): 1 | 100;
4
+
5
+ export { ZERO_DECIMAL_CURRENCIES, stripeMinorUnits };
@@ -0,0 +1,27 @@
1
+ // src/utils/stripe.ts
2
+ var ZERO_DECIMAL_CURRENCIES = [
3
+ "BIF",
4
+ "CLP",
5
+ "DJF",
6
+ "GNF",
7
+ "JPY",
8
+ "KMF",
9
+ "KRW",
10
+ "MGA",
11
+ "PYG",
12
+ "RWF",
13
+ "UGX",
14
+ "VND",
15
+ "VUV",
16
+ "XAF",
17
+ "XOF",
18
+ "XPF"
19
+ ];
20
+ function stripeMinorUnits(currency) {
21
+ return ZERO_DECIMAL_CURRENCIES.includes(currency.toUpperCase()) ? 1 : 100;
22
+ }
23
+ export {
24
+ ZERO_DECIMAL_CURRENCIES,
25
+ stripeMinorUnits
26
+ };
27
+ //# sourceMappingURL=stripe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/stripe.ts"],"sourcesContent":["export const ZERO_DECIMAL_CURRENCIES = [\n 'BIF',\n 'CLP',\n 'DJF',\n 'GNF',\n 'JPY',\n 'KMF',\n 'KRW',\n 'MGA',\n 'PYG',\n 'RWF',\n 'UGX',\n 'VND',\n 'VUV',\n 'XAF',\n 'XOF',\n 'XPF',\n];\n\n/** reference: https://docs.stripe.com/currencies#zero-decimal */\nexport function stripeMinorUnits(currency: string) {\n return ZERO_DECIMAL_CURRENCIES.includes(currency.toUpperCase()) ? 1 : 100;\n}\n"],"mappings":";AAAO,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,SAAS,iBAAiB,UAAkB;AACjD,SAAO,wBAAwB,SAAS,SAAS,YAAY,CAAC,IAAI,IAAI;AACxE;","names":[]}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils/token-bucket.ts
21
+ var token_bucket_exports = {};
22
+ __export(token_bucket_exports, {
23
+ TokenBucket: () => TokenBucket
24
+ });
25
+ module.exports = __toCommonJS(token_bucket_exports);
26
+ var INTERVAL_MAP = {
27
+ second: 1e3,
28
+ minute: 60 * 1e3,
29
+ hour: 60 * 60 * 1e3,
30
+ day: 24 * 60 * 60 * 1e3
31
+ };
32
+ var TokenBucket = class {
33
+ rate;
34
+ capacity;
35
+ requested;
36
+ timer;
37
+ tokens;
38
+ constructor({ rate, capacity, requested, interval = "second" }) {
39
+ if (rate <= 0) throw new Error("rate must be greater than 0");
40
+ if (capacity <= 0) throw new Error("capacity must be greater than 0");
41
+ if (requested <= 0) throw new Error("requested must be greater than 0");
42
+ if (requested > capacity) throw new Error("requested must be less than or equal to capacity");
43
+ this.rate = rate;
44
+ this.capacity = capacity;
45
+ this.requested = requested;
46
+ this.tokens = capacity;
47
+ this.timer = setInterval(() => {
48
+ if (this.tokens < this.capacity) {
49
+ const tokens = this.tokens + this.rate;
50
+ this.tokens = Math.min(tokens, this.capacity);
51
+ }
52
+ }, INTERVAL_MAP[interval]);
53
+ }
54
+ wait(ms) {
55
+ return new Promise((resolve) => setTimeout(resolve, ms));
56
+ }
57
+ async removeTokens() {
58
+ while (this.tokens < this.requested) {
59
+ const ms = Math.ceil(1e3 * (this.requested - this.tokens) / this.rate);
60
+ await this.wait(ms);
61
+ }
62
+ this.tokens -= this.requested;
63
+ return this.tokens;
64
+ }
65
+ destroy() {
66
+ clearInterval(this.timer);
67
+ }
68
+ };
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ TokenBucket
72
+ });
73
+ //# sourceMappingURL=token-bucket.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/token-bucket.ts"],"sourcesContent":["type Interval = 'second' | 'minute' | 'hour' | 'day';\n\nconst INTERVAL_MAP: Record<Interval, number> = {\n second: 1000,\n minute: 60 * 1000,\n hour: 60 * 60 * 1000,\n day: 24 * 60 * 60 * 1000,\n};\n\nexport interface TokenBucketOptions {\n rate: number;\n capacity: number;\n requested: number;\n interval?: Interval;\n}\n\nexport class TokenBucket {\n readonly rate: number;\n readonly capacity: number;\n readonly requested: number;\n private readonly timer: number | NodeJS.Timeout;\n private tokens: number;\n\n constructor({ rate, capacity, requested, interval = 'second' }: TokenBucketOptions) {\n if (rate <= 0) throw new Error('rate must be greater than 0');\n if (capacity <= 0) throw new Error('capacity must be greater than 0');\n if (requested <= 0) throw new Error('requested must be greater than 0');\n if (requested > capacity) throw new Error('requested must be less than or equal to capacity');\n\n this.rate = rate;\n this.capacity = capacity;\n this.requested = requested;\n this.tokens = capacity;\n this.timer = setInterval(() => {\n if (this.tokens < this.capacity) {\n const tokens = this.tokens + this.rate;\n this.tokens = Math.min(tokens, this.capacity);\n }\n }, INTERVAL_MAP[interval]);\n }\n\n private wait(ms: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, ms));\n }\n\n async removeTokens(): Promise<number> {\n while (this.tokens < this.requested) {\n const ms = Math.ceil((1000 * (this.requested - this.tokens)) / this.rate);\n await this.wait(ms);\n }\n this.tokens -= this.requested;\n return this.tokens;\n }\n\n destroy() {\n clearInterval(this.timer);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,IAAM,eAAyC;AAAA,EAC7C,QAAQ;AAAA,EACR,QAAQ,KAAK;AAAA,EACb,MAAM,KAAK,KAAK;AAAA,EAChB,KAAK,KAAK,KAAK,KAAK;AACtB;AASO,IAAM,cAAN,MAAkB;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACQ;AAAA,EACT;AAAA,EAER,YAAY,EAAE,MAAM,UAAU,WAAW,WAAW,SAAS,GAAuB;AAClF,QAAI,QAAQ,EAAG,OAAM,IAAI,MAAM,6BAA6B;AAC5D,QAAI,YAAY,EAAG,OAAM,IAAI,MAAM,iCAAiC;AACpE,QAAI,aAAa,EAAG,OAAM,IAAI,MAAM,kCAAkC;AACtE,QAAI,YAAY,SAAU,OAAM,IAAI,MAAM,kDAAkD;AAE5F,SAAK,OAAO;AACZ,SAAK,WAAW;AAChB,SAAK,YAAY;AACjB,SAAK,SAAS;AACd,SAAK,QAAQ,YAAY,MAAM;AAC7B,UAAI,KAAK,SAAS,KAAK,UAAU;AAC/B,cAAM,SAAS,KAAK,SAAS,KAAK;AAClC,aAAK,SAAS,KAAK,IAAI,QAAQ,KAAK,QAAQ;AAAA,MAC9C;AAAA,IACF,GAAG,aAAa,QAAQ,CAAC;AAAA,EAC3B;AAAA,EAEQ,KAAK,IAA2B;AACtC,WAAO,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,EAAE,CAAC;AAAA,EACzD;AAAA,EAEA,MAAM,eAAgC;AACpC,WAAO,KAAK,SAAS,KAAK,WAAW;AACnC,YAAM,KAAK,KAAK,KAAM,OAAQ,KAAK,YAAY,KAAK,UAAW,KAAK,IAAI;AACxE,YAAM,KAAK,KAAK,EAAE;AAAA,IACpB;AACA,SAAK,UAAU,KAAK;AACpB,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,UAAU;AACR,kBAAc,KAAK,KAAK;AAAA,EAC1B;AACF;","names":[]}
@@ -0,0 +1,20 @@
1
+ type Interval = 'second' | 'minute' | 'hour' | 'day';
2
+ interface TokenBucketOptions {
3
+ rate: number;
4
+ capacity: number;
5
+ requested: number;
6
+ interval?: Interval;
7
+ }
8
+ declare class TokenBucket {
9
+ readonly rate: number;
10
+ readonly capacity: number;
11
+ readonly requested: number;
12
+ private readonly timer;
13
+ private tokens;
14
+ constructor({ rate, capacity, requested, interval }: TokenBucketOptions);
15
+ private wait;
16
+ removeTokens(): Promise<number>;
17
+ destroy(): void;
18
+ }
19
+
20
+ export { TokenBucket, type TokenBucketOptions };
@@ -0,0 +1,20 @@
1
+ type Interval = 'second' | 'minute' | 'hour' | 'day';
2
+ interface TokenBucketOptions {
3
+ rate: number;
4
+ capacity: number;
5
+ requested: number;
6
+ interval?: Interval;
7
+ }
8
+ declare class TokenBucket {
9
+ readonly rate: number;
10
+ readonly capacity: number;
11
+ readonly requested: number;
12
+ private readonly timer;
13
+ private tokens;
14
+ constructor({ rate, capacity, requested, interval }: TokenBucketOptions);
15
+ private wait;
16
+ removeTokens(): Promise<number>;
17
+ destroy(): void;
18
+ }
19
+
20
+ export { TokenBucket, type TokenBucketOptions };
@@ -0,0 +1,48 @@
1
+ // src/utils/token-bucket.ts
2
+ var INTERVAL_MAP = {
3
+ second: 1e3,
4
+ minute: 60 * 1e3,
5
+ hour: 60 * 60 * 1e3,
6
+ day: 24 * 60 * 60 * 1e3
7
+ };
8
+ var TokenBucket = class {
9
+ rate;
10
+ capacity;
11
+ requested;
12
+ timer;
13
+ tokens;
14
+ constructor({ rate, capacity, requested, interval = "second" }) {
15
+ if (rate <= 0) throw new Error("rate must be greater than 0");
16
+ if (capacity <= 0) throw new Error("capacity must be greater than 0");
17
+ if (requested <= 0) throw new Error("requested must be greater than 0");
18
+ if (requested > capacity) throw new Error("requested must be less than or equal to capacity");
19
+ this.rate = rate;
20
+ this.capacity = capacity;
21
+ this.requested = requested;
22
+ this.tokens = capacity;
23
+ this.timer = setInterval(() => {
24
+ if (this.tokens < this.capacity) {
25
+ const tokens = this.tokens + this.rate;
26
+ this.tokens = Math.min(tokens, this.capacity);
27
+ }
28
+ }, INTERVAL_MAP[interval]);
29
+ }
30
+ wait(ms) {
31
+ return new Promise((resolve) => setTimeout(resolve, ms));
32
+ }
33
+ async removeTokens() {
34
+ while (this.tokens < this.requested) {
35
+ const ms = Math.ceil(1e3 * (this.requested - this.tokens) / this.rate);
36
+ await this.wait(ms);
37
+ }
38
+ this.tokens -= this.requested;
39
+ return this.tokens;
40
+ }
41
+ destroy() {
42
+ clearInterval(this.timer);
43
+ }
44
+ };
45
+ export {
46
+ TokenBucket
47
+ };
48
+ //# sourceMappingURL=token-bucket.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/token-bucket.ts"],"sourcesContent":["type Interval = 'second' | 'minute' | 'hour' | 'day';\n\nconst INTERVAL_MAP: Record<Interval, number> = {\n second: 1000,\n minute: 60 * 1000,\n hour: 60 * 60 * 1000,\n day: 24 * 60 * 60 * 1000,\n};\n\nexport interface TokenBucketOptions {\n rate: number;\n capacity: number;\n requested: number;\n interval?: Interval;\n}\n\nexport class TokenBucket {\n readonly rate: number;\n readonly capacity: number;\n readonly requested: number;\n private readonly timer: number | NodeJS.Timeout;\n private tokens: number;\n\n constructor({ rate, capacity, requested, interval = 'second' }: TokenBucketOptions) {\n if (rate <= 0) throw new Error('rate must be greater than 0');\n if (capacity <= 0) throw new Error('capacity must be greater than 0');\n if (requested <= 0) throw new Error('requested must be greater than 0');\n if (requested > capacity) throw new Error('requested must be less than or equal to capacity');\n\n this.rate = rate;\n this.capacity = capacity;\n this.requested = requested;\n this.tokens = capacity;\n this.timer = setInterval(() => {\n if (this.tokens < this.capacity) {\n const tokens = this.tokens + this.rate;\n this.tokens = Math.min(tokens, this.capacity);\n }\n }, INTERVAL_MAP[interval]);\n }\n\n private wait(ms: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, ms));\n }\n\n async removeTokens(): Promise<number> {\n while (this.tokens < this.requested) {\n const ms = Math.ceil((1000 * (this.requested - this.tokens)) / this.rate);\n await this.wait(ms);\n }\n this.tokens -= this.requested;\n return this.tokens;\n }\n\n destroy() {\n clearInterval(this.timer);\n }\n}\n"],"mappings":";AAEA,IAAM,eAAyC;AAAA,EAC7C,QAAQ;AAAA,EACR,QAAQ,KAAK;AAAA,EACb,MAAM,KAAK,KAAK;AAAA,EAChB,KAAK,KAAK,KAAK,KAAK;AACtB;AASO,IAAM,cAAN,MAAkB;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACQ;AAAA,EACT;AAAA,EAER,YAAY,EAAE,MAAM,UAAU,WAAW,WAAW,SAAS,GAAuB;AAClF,QAAI,QAAQ,EAAG,OAAM,IAAI,MAAM,6BAA6B;AAC5D,QAAI,YAAY,EAAG,OAAM,IAAI,MAAM,iCAAiC;AACpE,QAAI,aAAa,EAAG,OAAM,IAAI,MAAM,kCAAkC;AACtE,QAAI,YAAY,SAAU,OAAM,IAAI,MAAM,kDAAkD;AAE5F,SAAK,OAAO;AACZ,SAAK,WAAW;AAChB,SAAK,YAAY;AACjB,SAAK,SAAS;AACd,SAAK,QAAQ,YAAY,MAAM;AAC7B,UAAI,KAAK,SAAS,KAAK,UAAU;AAC/B,cAAM,SAAS,KAAK,SAAS,KAAK;AAClC,aAAK,SAAS,KAAK,IAAI,QAAQ,KAAK,QAAQ;AAAA,MAC9C;AAAA,IACF,GAAG,aAAa,QAAQ,CAAC;AAAA,EAC3B;AAAA,EAEQ,KAAK,IAA2B;AACtC,WAAO,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,EAAE,CAAC;AAAA,EACzD;AAAA,EAEA,MAAM,eAAgC;AACpC,WAAO,KAAK,SAAS,KAAK,WAAW;AACnC,YAAM,KAAK,KAAK,KAAM,OAAQ,KAAK,YAAY,KAAK,UAAW,KAAK,IAAI;AACxE,YAAM,KAAK,KAAK,EAAE;AAAA,IACpB;AACA,SAAK,UAAU,KAAK;AACpB,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,UAAU;AACR,kBAAc,KAAK,KAAK;AAAA,EAC1B;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shware/analytics",
3
- "version": "0.3.17",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -45,19 +45,18 @@
45
45
  "dist"
46
46
  ],
47
47
  "dependencies": {
48
- "axios": "^1.8.4",
48
+ "axios": "^1.9.0",
49
49
  "axios-retry": "^4.5.0",
50
50
  "bowser": "^2.11.0",
51
51
  "cookie": "^1.0.2",
52
- "limiter": "^3.0.0",
53
52
  "uuid": "^11.1.0",
54
- "web-vitals": "^4.2.4",
55
- "zod": "^3.24.3"
53
+ "web-vitals": "^5.0.2",
54
+ "zod": "^3.25.53"
56
55
  },
57
56
  "devDependencies": {
58
- "@types/facebook-nodejs-business-sdk": "^20.0.3",
59
- "@types/node": "^22.14.1",
60
- "@types/react": "^19.1.2",
57
+ "@types/facebook-nodejs-business-sdk": "^22.0.0",
58
+ "@types/node": "^22.15.30",
59
+ "@types/react": "^19.1.6",
61
60
  "typescript": "^5.8.3"
62
61
  },
63
62
  "peerDependencies": {