@jsarc/timez 0.0.0 → 0.0.1-beta.0.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/README.md CHANGED
@@ -56,7 +56,7 @@ const { Timez } = require('@jsarc/timez');
56
56
  ```html
57
57
  <script src="@jsarc/timez/timez.all.js"></script>
58
58
  <script>
59
- // Disponible globalement comme window.Timez
59
+ // Disponible globalement comme (window as any).Timez
60
60
  const now = Timez.now();
61
61
  console.log(now.format('EUROPEAN'));
62
62
  </script>
package/index.ts CHANGED
@@ -24,7 +24,7 @@ interface ParseResult {
24
24
  }
25
25
 
26
26
 
27
- type TimezInput = Date | string | number | Timez | undefined;
27
+ type TimezInput = Date | string | number | typeof Timez | undefined;
28
28
 
29
29
  const globalFunct = (function(global: any) {
30
30
  'use strict';
@@ -880,13 +880,13 @@ const globalFunct = (function(global: any) {
880
880
 
881
881
  static exposeToGlobal(): void {
882
882
  if (typeof window !== 'undefined') {
883
- window.Timez = Timez;
883
+ (window as any).Timez = Timez;
884
884
  }
885
885
  }
886
886
  }
887
887
 
888
888
  if (typeof window !== 'undefined') {
889
- window.Timez = Timez;
889
+ (window as any).Timez = Timez;
890
890
  }
891
891
 
892
892
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.0.0",
6
+ "version": "0.0.1-beta.0.1",
7
7
  "description": "Timez est une bibliothèque JavaScript/TypeScript puissante et intuitive pour la manipulation des dates et fuseaux horaires. Inspirée par les meilleures pratiques de Python et Moment.js, elle offre une API fluide et type-safe pour tous vos besoins de gestion temporelle.",
8
8
  "main": "index.ts",
9
9
  "keywords": [],