@dub/utils 0.0.29 → 0.0.30
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/dist/chunk-3DLEUJV3.mjs +1 -0
- package/dist/chunk-46LXJSPI.mjs +1 -0
- package/dist/chunk-4CH6MXF3.mjs +1 -0
- package/dist/chunk-4RSTNN7M.mjs +1 -0
- package/dist/chunk-4UYPINYJ.mjs +1 -0
- package/dist/chunk-63ND5Z3I.mjs +1 -0
- package/dist/chunk-664ZT47I.mjs +1 -0
- package/dist/chunk-6F4SZBJ3.mjs +1 -0
- package/dist/chunk-6VWTK5CW.mjs +1 -0
- package/dist/chunk-ABQ54CVL.mjs +1 -0
- package/dist/chunk-ALOPKGPB.mjs +1 -0
- package/dist/chunk-BEVRCJ4O.mjs +1 -0
- package/dist/chunk-C6XEPXSI.mjs +1 -0
- package/dist/chunk-DPUZZ3ID.mjs +1 -0
- package/dist/chunk-E5X57EHU.mjs +1 -0
- package/dist/chunk-EA7SA6OZ.mjs +1 -0
- package/dist/chunk-EHLVQXPN.mjs +1 -0
- package/dist/chunk-ET54P7CM.mjs +1 -0
- package/dist/chunk-FEGM4SDU.mjs +1 -0
- package/dist/chunk-GGIZK3EO.mjs +1 -0
- package/dist/chunk-HZKMK3KA.mjs +1 -0
- package/dist/chunk-IVQJMP4E.mjs +1 -0
- package/dist/chunk-K4QTPYBS.mjs +1 -0
- package/dist/chunk-KT3MZAWK.mjs +1 -0
- package/dist/chunk-LHYOSLSW.mjs +1 -0
- package/dist/chunk-LMQ4666D.mjs +1 -0
- package/dist/chunk-LQLVMKKY.mjs +1 -0
- package/dist/chunk-OTWCQOKL.mjs +1 -0
- package/dist/chunk-OWV4H34S.mjs +1 -0
- package/dist/chunk-PXBT4TKP.mjs +1 -0
- package/dist/chunk-PXSGKN2A.mjs +1 -0
- package/dist/chunk-SNEDSZS7.mjs +1 -0
- package/dist/chunk-TM2H2P2D.mjs +1 -0
- package/dist/chunk-TTNDDYLJ.mjs +1 -0
- package/dist/chunk-TXJYGQAV.mjs +1 -0
- package/dist/chunk-UVNDPH4P.mjs +1 -0
- package/dist/chunk-W67C4SNA.mjs +1 -0
- package/dist/chunk-YDE3WII6.mjs +1 -0
- package/dist/chunk-YOOUKTVN.mjs +1 -0
- package/dist/chunk-ZRPMW6I7.mjs +1 -0
- package/dist/constants/index.d.ts +454 -2
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/misc.d.ts +2 -1
- package/dist/constants/misc.mjs +1 -1
- package/dist/functions/construct-metadata.mjs +1 -1
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/index.d.ts +0 -1
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/log.d.ts +1 -1
- package/dist/functions/log.mjs +1 -1
- package/dist/functions/misc.mjs +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_C
|
|
|
5
5
|
export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS } from './layout.js';
|
|
6
6
|
export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './localhost.js';
|
|
7
7
|
export { DEFAULT_REDIRECTS, DUB_HEADERS } from './middleware.js';
|
|
8
|
-
export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT } from './misc.js';
|
|
8
|
+
export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './misc.js';
|
|
9
9
|
export { SAML_PROVIDERS } from './saml.js';
|
|
10
10
|
|
|
11
11
|
declare const PLANS: ({
|
|
@@ -234,6 +234,119 @@ declare const FREE_PLAN: {
|
|
|
234
234
|
text: string;
|
|
235
235
|
}[];
|
|
236
236
|
};
|
|
237
|
+
declare const PRO_PLAN: {
|
|
238
|
+
name: string;
|
|
239
|
+
tagline: string;
|
|
240
|
+
price: {
|
|
241
|
+
monthly: number;
|
|
242
|
+
yearly: number;
|
|
243
|
+
ids?: undefined;
|
|
244
|
+
};
|
|
245
|
+
limits: {
|
|
246
|
+
links: number;
|
|
247
|
+
clicks: number;
|
|
248
|
+
domains: number;
|
|
249
|
+
tags: number;
|
|
250
|
+
users: number;
|
|
251
|
+
};
|
|
252
|
+
colors: {
|
|
253
|
+
bg: string;
|
|
254
|
+
text: string;
|
|
255
|
+
};
|
|
256
|
+
cta: {
|
|
257
|
+
text: string;
|
|
258
|
+
href: string;
|
|
259
|
+
color: string;
|
|
260
|
+
shortText?: undefined;
|
|
261
|
+
};
|
|
262
|
+
featureTitle: string;
|
|
263
|
+
features: ({
|
|
264
|
+
text: string;
|
|
265
|
+
footnote?: undefined;
|
|
266
|
+
} | {
|
|
267
|
+
text: string;
|
|
268
|
+
footnote: string;
|
|
269
|
+
} | {
|
|
270
|
+
text: string;
|
|
271
|
+
footnote: {
|
|
272
|
+
title: string;
|
|
273
|
+
cta: string;
|
|
274
|
+
href: string;
|
|
275
|
+
};
|
|
276
|
+
})[];
|
|
277
|
+
link?: undefined;
|
|
278
|
+
} | {
|
|
279
|
+
name: string;
|
|
280
|
+
tagline: string;
|
|
281
|
+
link: string;
|
|
282
|
+
price: {
|
|
283
|
+
monthly: number;
|
|
284
|
+
yearly: number;
|
|
285
|
+
ids: string[];
|
|
286
|
+
};
|
|
287
|
+
limits: {
|
|
288
|
+
links: number;
|
|
289
|
+
clicks: number;
|
|
290
|
+
domains: number;
|
|
291
|
+
tags: number;
|
|
292
|
+
users: number;
|
|
293
|
+
};
|
|
294
|
+
colors: {
|
|
295
|
+
bg: string;
|
|
296
|
+
text: string;
|
|
297
|
+
};
|
|
298
|
+
cta: {
|
|
299
|
+
text: string;
|
|
300
|
+
shortText: string;
|
|
301
|
+
href: string;
|
|
302
|
+
color: string;
|
|
303
|
+
};
|
|
304
|
+
featureTitle: string;
|
|
305
|
+
features: ({
|
|
306
|
+
text: string;
|
|
307
|
+
footnote?: undefined;
|
|
308
|
+
} | {
|
|
309
|
+
text: string;
|
|
310
|
+
footnote: string;
|
|
311
|
+
} | {
|
|
312
|
+
text: string;
|
|
313
|
+
footnote: {
|
|
314
|
+
title: string;
|
|
315
|
+
cta: string;
|
|
316
|
+
href: string;
|
|
317
|
+
};
|
|
318
|
+
})[];
|
|
319
|
+
} | {
|
|
320
|
+
name: string;
|
|
321
|
+
tagline: string;
|
|
322
|
+
link: string;
|
|
323
|
+
price: {
|
|
324
|
+
monthly: null;
|
|
325
|
+
yearly: null;
|
|
326
|
+
ids?: undefined;
|
|
327
|
+
};
|
|
328
|
+
limits: {
|
|
329
|
+
links: null;
|
|
330
|
+
clicks: null;
|
|
331
|
+
domains: null;
|
|
332
|
+
tags?: undefined;
|
|
333
|
+
users?: undefined;
|
|
334
|
+
};
|
|
335
|
+
colors: {
|
|
336
|
+
bg: string;
|
|
337
|
+
text: string;
|
|
338
|
+
};
|
|
339
|
+
cta: {
|
|
340
|
+
text: string;
|
|
341
|
+
href: string;
|
|
342
|
+
color: string;
|
|
343
|
+
shortText?: undefined;
|
|
344
|
+
};
|
|
345
|
+
featureTitle: string;
|
|
346
|
+
features: {
|
|
347
|
+
text: string;
|
|
348
|
+
}[];
|
|
349
|
+
};
|
|
237
350
|
declare const SELF_SERVE_PAID_PLANS: ({
|
|
238
351
|
name: string;
|
|
239
352
|
tagline: string;
|
|
@@ -348,6 +461,345 @@ declare const SELF_SERVE_PAID_PLANS: ({
|
|
|
348
461
|
}[];
|
|
349
462
|
})[];
|
|
350
463
|
declare const FREE_PROJECTS_LIMIT = 2;
|
|
464
|
+
declare const getPlanFromPriceId: (priceId: string) => {
|
|
465
|
+
name: string;
|
|
466
|
+
tagline: string;
|
|
467
|
+
price: {
|
|
468
|
+
monthly: number;
|
|
469
|
+
yearly: number;
|
|
470
|
+
ids?: undefined;
|
|
471
|
+
};
|
|
472
|
+
limits: {
|
|
473
|
+
links: number;
|
|
474
|
+
clicks: number;
|
|
475
|
+
domains: number;
|
|
476
|
+
tags: number;
|
|
477
|
+
users: number;
|
|
478
|
+
};
|
|
479
|
+
colors: {
|
|
480
|
+
bg: string;
|
|
481
|
+
text: string;
|
|
482
|
+
};
|
|
483
|
+
cta: {
|
|
484
|
+
text: string;
|
|
485
|
+
href: string;
|
|
486
|
+
color: string;
|
|
487
|
+
shortText?: undefined;
|
|
488
|
+
};
|
|
489
|
+
featureTitle: string;
|
|
490
|
+
features: ({
|
|
491
|
+
text: string;
|
|
492
|
+
footnote?: undefined;
|
|
493
|
+
} | {
|
|
494
|
+
text: string;
|
|
495
|
+
footnote: string;
|
|
496
|
+
} | {
|
|
497
|
+
text: string;
|
|
498
|
+
footnote: {
|
|
499
|
+
title: string;
|
|
500
|
+
cta: string;
|
|
501
|
+
href: string;
|
|
502
|
+
};
|
|
503
|
+
})[];
|
|
504
|
+
link?: undefined;
|
|
505
|
+
} | {
|
|
506
|
+
name: string;
|
|
507
|
+
tagline: string;
|
|
508
|
+
link: string;
|
|
509
|
+
price: {
|
|
510
|
+
monthly: number;
|
|
511
|
+
yearly: number;
|
|
512
|
+
ids: string[];
|
|
513
|
+
};
|
|
514
|
+
limits: {
|
|
515
|
+
links: number;
|
|
516
|
+
clicks: number;
|
|
517
|
+
domains: number;
|
|
518
|
+
tags: number;
|
|
519
|
+
users: number;
|
|
520
|
+
};
|
|
521
|
+
colors: {
|
|
522
|
+
bg: string;
|
|
523
|
+
text: string;
|
|
524
|
+
};
|
|
525
|
+
cta: {
|
|
526
|
+
text: string;
|
|
527
|
+
shortText: string;
|
|
528
|
+
href: string;
|
|
529
|
+
color: string;
|
|
530
|
+
};
|
|
531
|
+
featureTitle: string;
|
|
532
|
+
features: ({
|
|
533
|
+
text: string;
|
|
534
|
+
footnote?: undefined;
|
|
535
|
+
} | {
|
|
536
|
+
text: string;
|
|
537
|
+
footnote: string;
|
|
538
|
+
} | {
|
|
539
|
+
text: string;
|
|
540
|
+
footnote: {
|
|
541
|
+
title: string;
|
|
542
|
+
cta: string;
|
|
543
|
+
href: string;
|
|
544
|
+
};
|
|
545
|
+
})[];
|
|
546
|
+
} | {
|
|
547
|
+
name: string;
|
|
548
|
+
tagline: string;
|
|
549
|
+
link: string;
|
|
550
|
+
price: {
|
|
551
|
+
monthly: null;
|
|
552
|
+
yearly: null;
|
|
553
|
+
ids?: undefined;
|
|
554
|
+
};
|
|
555
|
+
limits: {
|
|
556
|
+
links: null;
|
|
557
|
+
clicks: null;
|
|
558
|
+
domains: null;
|
|
559
|
+
tags?: undefined;
|
|
560
|
+
users?: undefined;
|
|
561
|
+
};
|
|
562
|
+
colors: {
|
|
563
|
+
bg: string;
|
|
564
|
+
text: string;
|
|
565
|
+
};
|
|
566
|
+
cta: {
|
|
567
|
+
text: string;
|
|
568
|
+
href: string;
|
|
569
|
+
color: string;
|
|
570
|
+
shortText?: undefined;
|
|
571
|
+
};
|
|
572
|
+
featureTitle: string;
|
|
573
|
+
features: {
|
|
574
|
+
text: string;
|
|
575
|
+
}[];
|
|
576
|
+
} | null;
|
|
577
|
+
declare const getPlanDetails: (plan: string) => {
|
|
578
|
+
name: string;
|
|
579
|
+
tagline: string;
|
|
580
|
+
price: {
|
|
581
|
+
monthly: number;
|
|
582
|
+
yearly: number;
|
|
583
|
+
ids?: undefined;
|
|
584
|
+
};
|
|
585
|
+
limits: {
|
|
586
|
+
links: number;
|
|
587
|
+
clicks: number;
|
|
588
|
+
domains: number;
|
|
589
|
+
tags: number;
|
|
590
|
+
users: number;
|
|
591
|
+
};
|
|
592
|
+
colors: {
|
|
593
|
+
bg: string;
|
|
594
|
+
text: string;
|
|
595
|
+
};
|
|
596
|
+
cta: {
|
|
597
|
+
text: string;
|
|
598
|
+
href: string;
|
|
599
|
+
color: string;
|
|
600
|
+
shortText?: undefined;
|
|
601
|
+
};
|
|
602
|
+
featureTitle: string;
|
|
603
|
+
features: ({
|
|
604
|
+
text: string;
|
|
605
|
+
footnote?: undefined;
|
|
606
|
+
} | {
|
|
607
|
+
text: string;
|
|
608
|
+
footnote: string;
|
|
609
|
+
} | {
|
|
610
|
+
text: string;
|
|
611
|
+
footnote: {
|
|
612
|
+
title: string;
|
|
613
|
+
cta: string;
|
|
614
|
+
href: string;
|
|
615
|
+
};
|
|
616
|
+
})[];
|
|
617
|
+
link?: undefined;
|
|
618
|
+
} | {
|
|
619
|
+
name: string;
|
|
620
|
+
tagline: string;
|
|
621
|
+
link: string;
|
|
622
|
+
price: {
|
|
623
|
+
monthly: number;
|
|
624
|
+
yearly: number;
|
|
625
|
+
ids: string[];
|
|
626
|
+
};
|
|
627
|
+
limits: {
|
|
628
|
+
links: number;
|
|
629
|
+
clicks: number;
|
|
630
|
+
domains: number;
|
|
631
|
+
tags: number;
|
|
632
|
+
users: number;
|
|
633
|
+
};
|
|
634
|
+
colors: {
|
|
635
|
+
bg: string;
|
|
636
|
+
text: string;
|
|
637
|
+
};
|
|
638
|
+
cta: {
|
|
639
|
+
text: string;
|
|
640
|
+
shortText: string;
|
|
641
|
+
href: string;
|
|
642
|
+
color: string;
|
|
643
|
+
};
|
|
644
|
+
featureTitle: string;
|
|
645
|
+
features: ({
|
|
646
|
+
text: string;
|
|
647
|
+
footnote?: undefined;
|
|
648
|
+
} | {
|
|
649
|
+
text: string;
|
|
650
|
+
footnote: string;
|
|
651
|
+
} | {
|
|
652
|
+
text: string;
|
|
653
|
+
footnote: {
|
|
654
|
+
title: string;
|
|
655
|
+
cta: string;
|
|
656
|
+
href: string;
|
|
657
|
+
};
|
|
658
|
+
})[];
|
|
659
|
+
} | {
|
|
660
|
+
name: string;
|
|
661
|
+
tagline: string;
|
|
662
|
+
link: string;
|
|
663
|
+
price: {
|
|
664
|
+
monthly: null;
|
|
665
|
+
yearly: null;
|
|
666
|
+
ids?: undefined;
|
|
667
|
+
};
|
|
668
|
+
limits: {
|
|
669
|
+
links: null;
|
|
670
|
+
clicks: null;
|
|
671
|
+
domains: null;
|
|
672
|
+
tags?: undefined;
|
|
673
|
+
users?: undefined;
|
|
674
|
+
};
|
|
675
|
+
colors: {
|
|
676
|
+
bg: string;
|
|
677
|
+
text: string;
|
|
678
|
+
};
|
|
679
|
+
cta: {
|
|
680
|
+
text: string;
|
|
681
|
+
href: string;
|
|
682
|
+
color: string;
|
|
683
|
+
shortText?: undefined;
|
|
684
|
+
};
|
|
685
|
+
featureTitle: string;
|
|
686
|
+
features: {
|
|
687
|
+
text: string;
|
|
688
|
+
}[];
|
|
689
|
+
};
|
|
690
|
+
declare const getNextPlan: (plan: string) => {
|
|
691
|
+
name: string;
|
|
692
|
+
tagline: string;
|
|
693
|
+
price: {
|
|
694
|
+
monthly: number;
|
|
695
|
+
yearly: number;
|
|
696
|
+
ids?: undefined;
|
|
697
|
+
};
|
|
698
|
+
limits: {
|
|
699
|
+
links: number;
|
|
700
|
+
clicks: number;
|
|
701
|
+
domains: number;
|
|
702
|
+
tags: number;
|
|
703
|
+
users: number;
|
|
704
|
+
};
|
|
705
|
+
colors: {
|
|
706
|
+
bg: string;
|
|
707
|
+
text: string;
|
|
708
|
+
};
|
|
709
|
+
cta: {
|
|
710
|
+
text: string;
|
|
711
|
+
href: string;
|
|
712
|
+
color: string;
|
|
713
|
+
shortText?: undefined;
|
|
714
|
+
};
|
|
715
|
+
featureTitle: string;
|
|
716
|
+
features: ({
|
|
717
|
+
text: string;
|
|
718
|
+
footnote?: undefined;
|
|
719
|
+
} | {
|
|
720
|
+
text: string;
|
|
721
|
+
footnote: string;
|
|
722
|
+
} | {
|
|
723
|
+
text: string;
|
|
724
|
+
footnote: {
|
|
725
|
+
title: string;
|
|
726
|
+
cta: string;
|
|
727
|
+
href: string;
|
|
728
|
+
};
|
|
729
|
+
})[];
|
|
730
|
+
link?: undefined;
|
|
731
|
+
} | {
|
|
732
|
+
name: string;
|
|
733
|
+
tagline: string;
|
|
734
|
+
link: string;
|
|
735
|
+
price: {
|
|
736
|
+
monthly: number;
|
|
737
|
+
yearly: number;
|
|
738
|
+
ids: string[];
|
|
739
|
+
};
|
|
740
|
+
limits: {
|
|
741
|
+
links: number;
|
|
742
|
+
clicks: number;
|
|
743
|
+
domains: number;
|
|
744
|
+
tags: number;
|
|
745
|
+
users: number;
|
|
746
|
+
};
|
|
747
|
+
colors: {
|
|
748
|
+
bg: string;
|
|
749
|
+
text: string;
|
|
750
|
+
};
|
|
751
|
+
cta: {
|
|
752
|
+
text: string;
|
|
753
|
+
shortText: string;
|
|
754
|
+
href: string;
|
|
755
|
+
color: string;
|
|
756
|
+
};
|
|
757
|
+
featureTitle: string;
|
|
758
|
+
features: ({
|
|
759
|
+
text: string;
|
|
760
|
+
footnote?: undefined;
|
|
761
|
+
} | {
|
|
762
|
+
text: string;
|
|
763
|
+
footnote: string;
|
|
764
|
+
} | {
|
|
765
|
+
text: string;
|
|
766
|
+
footnote: {
|
|
767
|
+
title: string;
|
|
768
|
+
cta: string;
|
|
769
|
+
href: string;
|
|
770
|
+
};
|
|
771
|
+
})[];
|
|
772
|
+
} | {
|
|
773
|
+
name: string;
|
|
774
|
+
tagline: string;
|
|
775
|
+
link: string;
|
|
776
|
+
price: {
|
|
777
|
+
monthly: null;
|
|
778
|
+
yearly: null;
|
|
779
|
+
ids?: undefined;
|
|
780
|
+
};
|
|
781
|
+
limits: {
|
|
782
|
+
links: null;
|
|
783
|
+
clicks: null;
|
|
784
|
+
domains: null;
|
|
785
|
+
tags?: undefined;
|
|
786
|
+
users?: undefined;
|
|
787
|
+
};
|
|
788
|
+
colors: {
|
|
789
|
+
bg: string;
|
|
790
|
+
text: string;
|
|
791
|
+
};
|
|
792
|
+
cta: {
|
|
793
|
+
text: string;
|
|
794
|
+
href: string;
|
|
795
|
+
color: string;
|
|
796
|
+
shortText?: undefined;
|
|
797
|
+
};
|
|
798
|
+
featureTitle: string;
|
|
799
|
+
features: {
|
|
800
|
+
text: string;
|
|
801
|
+
}[];
|
|
802
|
+
};
|
|
351
803
|
|
|
352
804
|
declare const APP_NAME: string;
|
|
353
805
|
declare const SHORT_DOMAIN: string;
|
|
@@ -379,4 +831,4 @@ declare const DUB_DOMAINS: {
|
|
|
379
831
|
projectId: string;
|
|
380
832
|
}[];
|
|
381
833
|
|
|
382
|
-
export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN };
|
|
834
|
+
export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, PRO_PLAN, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId };
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{A as L,B as M,C as N,D as O,E as P,F as Q,G as R,j as t,k as u,l as v,m as w,n as x,o as y,p as z,q as A,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"../chunk-ALOPKGPB.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import{a as n,b as o}from"../chunk-5VUO5P2B.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-PXSGKN2A.mjs";import{a as B}from"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b}from"../chunk-2RCZ6Q6L.mjs";import{a as c,b as d}from"../chunk-SYT2IXG6.mjs";import{a as e,b as f,c as g,d as h}from"../chunk-2SICE2ZS.mjs";import{a as i,b as j,c as k}from"../chunk-WE5LUVZO.mjs";import{a as l,b as m}from"../chunk-FYXE2IZT.mjs";export{K as ADMIN_HOSTNAMES,j as ALL_TOOLS,J as API_DOMAIN,I as API_HOSTNAMES,G as APP_DOMAIN,H as APP_DOMAIN_WITH_NGROK,F as APP_HOSTNAMES,C as APP_NAME,k as COMPARE_PAGES,b as COUNTRIES,p as DEFAULT_LINK_PROPS,n as DEFAULT_REDIRECTS,N as DEMO_LINK_ID,R as DUB_DOMAINS,o as DUB_HEADERS,L as DUB_LOGO,O as DUB_PROJECT_ID,M as DUB_THUMBNAIL,h as FADE_IN_ANIMATION_SETTINGS,e as FRAMER_MOTION_LIST_ITEM_VARIANTS,u as FREE_PLAN,x as FREE_PROJECTS_LIMIT,q as GOOGLE_FAVICON_URL,i as HIDE_BACKGROUND_SEGMENTS,E as HOME_DOMAIN,P as LEGAL_PROJECT_ID,Q as LEGAL_USER_ID,l as LOCALHOST_GEO_DATA,m as LOCALHOST_IP,r as PAGINATION_LIMIT,t as PLANS,v as PRO_PLAN,B as SAML_PROVIDERS,c as SECOND_LEVEL_DOMAINS,w as SELF_SERVE_PAID_PLANS,D as SHORT_DOMAIN,d as SPECIAL_APEX_DOMAINS,f as STAGGER_CHILD_VARIANTS,g as SWIPE_REVEAL_ANIMATION_SETTINGS,s as TWO_WEEKS_IN_SECONDS,a as ccTLDs,A as getNextPlan,z as getPlanDetails,y as getPlanFromPriceId};
|
package/dist/constants/misc.d.ts
CHANGED
|
@@ -17,5 +17,6 @@ declare const DEFAULT_LINK_PROPS: {
|
|
|
17
17
|
};
|
|
18
18
|
declare const GOOGLE_FAVICON_URL = "https://www.google.com/s2/favicons?sz=64&domain_url=";
|
|
19
19
|
declare const PAGINATION_LIMIT = 100;
|
|
20
|
+
declare const TWO_WEEKS_IN_SECONDS: number;
|
|
20
21
|
|
|
21
|
-
export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT };
|
|
22
|
+
export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS };
|
package/dist/constants/misc.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-PXSGKN2A.mjs";export{a as DEFAULT_LINK_PROPS,b as GOOGLE_FAVICON_URL,c as PAGINATION_LIMIT,d as TWO_WEEKS_IN_SECONDS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-ALOPKGPB.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as constructMetadata};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h}from"../chunk-
|
|
1
|
+
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h}from"../chunk-ALOPKGPB.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as generateDomainFromName,f as getApexDomain,g as getDomainWithoutWWW,e as getSubdomain,h as isDubDomain,b as validDomainRegex,c as validKeyRegex,d as validSlugRegex};
|
|
@@ -11,7 +11,6 @@ export { generateMD5Hash } from './hash.js';
|
|
|
11
11
|
export { isIframeable } from './is-iframeable.js';
|
|
12
12
|
export { linkConstructor } from './link-constructor.js';
|
|
13
13
|
export { log } from './log.js';
|
|
14
|
-
export { getPlanFromPriceId } from './misc.js';
|
|
15
14
|
export { nanoid } from './nanoid.js';
|
|
16
15
|
export { nFormatter } from './nformatter.js';
|
|
17
16
|
export { timeAgo } from './time-ago.js';
|
package/dist/functions/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{a as d,b as s,c as t,d as u,e as v,f as w,g as x,h as y,i as z}from"../chunk-ALOPKGPB.mjs";import{a as F}from"../chunk-GGIZK3EO.mjs";import{a as G}from"../chunk-OWYWG4M6.mjs";import{a as H}from"../chunk-I5Y5DKPK.mjs";import{a as I}from"../chunk-MPU6JRPV.mjs";import{a as J}from"../chunk-ZJKRLIJQ.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r}from"../chunk-UUWTKITJ.mjs";import{a as k}from"../chunk-ZECUYKGD.mjs";import{a as A}from"../chunk-EMO4MGOU.mjs";import{a as B}from"../chunk-6XPTKHZD.mjs";import{a as C}from"../chunk-XWSEDYR7.mjs";import{a as D}from"../chunk-3BUV2ANI.mjs";import{a as E}from"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.mjs";import{a}from"../chunk-GTQBILTE.mjs";import{a as b}from"../chunk-2OJAP233.mjs";import{a as c}from"../chunk-NEIHTFSW.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j}from"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as capitalize,b as chunk,c as cn,d as constructMetadata,p as constructURLFromUTMParams,k as deepEqual,A as fetchWithTimeout,B as fetcher,f as formatDate,s as generateDomainFromName,C as generateMD5Hash,i as getAdjustedBillingCycleStart,x as getApexDomain,j as getBillingStartDate,e as getDateTimeLocal,y as getDomainWithoutWWW,g as getFirstAndLastDay,h as getLastDayOfMonth,o as getParamsFromURL,n as getSearchParams,w as getSubdomain,m as getUrlFromString,r as getUrlWithoutUTMParams,z as isDubDomain,D as isIframeable,l as isValidUrl,E as linkConstructor,F as log,H as nFormatter,G as nanoid,q as paramsMetadata,I as timeAgo,J as truncate,t as validDomainRegex,u as validKeyRegex,v as validSlugRegex};
|
package/dist/functions/log.d.ts
CHANGED
package/dist/functions/log.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GGIZK3EO.mjs";export{a as log};
|
package/dist/functions/misc.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{j as a}from"../chunk-UVNDPH4P.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as getPlanFromPriceId};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN } from './constants/index.js';
|
|
1
|
+
export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, PRO_PLAN, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId } from './constants/index.js';
|
|
2
2
|
export { capitalize } from './functions/capitalize.js';
|
|
3
3
|
export { chunk } from './functions/chunk.js';
|
|
4
4
|
export { cn } from './functions/cn.js';
|
|
@@ -12,7 +12,6 @@ export { generateMD5Hash } from './functions/hash.js';
|
|
|
12
12
|
export { isIframeable } from './functions/is-iframeable.js';
|
|
13
13
|
export { linkConstructor } from './functions/link-constructor.js';
|
|
14
14
|
export { log } from './functions/log.js';
|
|
15
|
-
export { getPlanFromPriceId } from './functions/misc.js';
|
|
16
15
|
export { nanoid } from './functions/nanoid.js';
|
|
17
16
|
export { nFormatter } from './functions/nformatter.js';
|
|
18
17
|
export { timeAgo } from './functions/time-ago.js';
|
|
@@ -25,7 +24,7 @@ export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_C
|
|
|
25
24
|
export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS } from './constants/layout.js';
|
|
26
25
|
export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './constants/localhost.js';
|
|
27
26
|
export { DEFAULT_REDIRECTS, DUB_HEADERS } from './constants/middleware.js';
|
|
28
|
-
export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT } from './constants/misc.js';
|
|
27
|
+
export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './constants/misc.js';
|
|
29
28
|
export { SAML_PROVIDERS } from './constants/saml.js';
|
|
30
29
|
import 'clsx';
|
|
31
30
|
import 'next';
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{A as so,B as uo,C as vo,D as wo,E as yo,F as zo,G as Ao,a as v,b as L,c as M,d as N,e as O,f as P,g as Q,h as R,i as S,j as ro,k as eo,l as fo,m as mo,n as po,o as to,p as xo,q as ao,r as co,s as go,t as ho,u as io,v as jo,w as ko,x as lo,y as no,z as qo}from"./chunk-ALOPKGPB.mjs";import{a as Y}from"./chunk-GGIZK3EO.mjs";import{a as Z}from"./chunk-OWYWG4M6.mjs";import{a as _}from"./chunk-I5Y5DKPK.mjs";import{a as $}from"./chunk-MPU6JRPV.mjs";import{a as oo}from"./chunk-ZJKRLIJQ.mjs";import{a as E,b as F,c as G,d as H,e as I,f as J,g as K}from"./chunk-UUWTKITJ.mjs";import{a as D}from"./chunk-ZECUYKGD.mjs";import{a as T}from"./chunk-EMO4MGOU.mjs";import{a as U}from"./chunk-6XPTKHZD.mjs";import{a as V}from"./chunk-XWSEDYR7.mjs";import{a as W}from"./chunk-3BUV2ANI.mjs";import{a as X}from"./chunk-5PD4TPH7.mjs";import{a as h,b as i}from"./chunk-5VUO5P2B.mjs";import{a as j,b as k,c as l,d as n}from"./chunk-PXSGKN2A.mjs";import{a as bo}from"./chunk-PUFZASP4.mjs";import{a as q}from"./chunk-GTQBILTE.mjs";import{a as s}from"./chunk-2OJAP233.mjs";import{a as u}from"./chunk-NEIHTFSW.mjs";import{a as w,b as y,c as z,d as A,e as B,f as C}from"./chunk-LXJVNY3R.mjs";import{a as o}from"./chunk-YUMUNL66.mjs";import{a as r}from"./chunk-2RCZ6Q6L.mjs";import{a as e,b as f}from"./chunk-SYT2IXG6.mjs";import{a as m,b as p,c as t,d as x}from"./chunk-2SICE2ZS.mjs";import{a,b,c}from"./chunk-WE5LUVZO.mjs";import{a as d,b as g}from"./chunk-FYXE2IZT.mjs";export{qo as ADMIN_HOSTNAMES,b as ALL_TOOLS,no as API_DOMAIN,lo as API_HOSTNAMES,jo as APP_DOMAIN,ko as APP_DOMAIN_WITH_NGROK,io as APP_HOSTNAMES,co as APP_NAME,c as COMPARE_PAGES,r as COUNTRIES,j as DEFAULT_LINK_PROPS,h as DEFAULT_REDIRECTS,vo as DEMO_LINK_ID,Ao as DUB_DOMAINS,i as DUB_HEADERS,so as DUB_LOGO,wo as DUB_PROJECT_ID,uo as DUB_THUMBNAIL,x as FADE_IN_ANIMATION_SETTINGS,m as FRAMER_MOTION_LIST_ITEM_VARIANTS,eo as FREE_PLAN,po as FREE_PROJECTS_LIMIT,k as GOOGLE_FAVICON_URL,a as HIDE_BACKGROUND_SEGMENTS,ho as HOME_DOMAIN,yo as LEGAL_PROJECT_ID,zo as LEGAL_USER_ID,d as LOCALHOST_GEO_DATA,g as LOCALHOST_IP,l as PAGINATION_LIMIT,ro as PLANS,fo as PRO_PLAN,bo as SAML_PROVIDERS,e as SECOND_LEVEL_DOMAINS,mo as SELF_SERVE_PAID_PLANS,go as SHORT_DOMAIN,f as SPECIAL_APEX_DOMAINS,p as STAGGER_CHILD_VARIANTS,t as SWIPE_REVEAL_ANIMATION_SETTINGS,n as TWO_WEEKS_IN_SECONDS,q as capitalize,o as ccTLDs,s as chunk,u as cn,v as constructMetadata,I as constructURLFromUTMParams,D as deepEqual,T as fetchWithTimeout,U as fetcher,y as formatDate,L as generateDomainFromName,V as generateMD5Hash,B as getAdjustedBillingCycleStart,Q as getApexDomain,C as getBillingStartDate,w as getDateTimeLocal,R as getDomainWithoutWWW,z as getFirstAndLastDay,A as getLastDayOfMonth,ao as getNextPlan,H as getParamsFromURL,xo as getPlanDetails,to as getPlanFromPriceId,G as getSearchParams,P as getSubdomain,F as getUrlFromString,K as getUrlWithoutUTMParams,S as isDubDomain,W as isIframeable,E as isValidUrl,X as linkConstructor,Y as log,_ as nFormatter,Z as nanoid,J as paramsMetadata,$ as timeAgo,oo as truncate,M as validDomainRegex,N as validKeyRegex,O as validSlugRegex};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dub/utils",
|
|
3
3
|
"description": "Utility functions and constants for Dub.co",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.30",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"main": "./dist/index.
|
|
6
|
+
"main": "./dist/index.mjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"files": [
|