@communecter/cocolight-api-client 1.0.11 → 1.0.12

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 (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +6 -3
package/README.md CHANGED
@@ -38,12 +38,14 @@ package.json # Dépendances, scripts, métadonnées
38
38
  ### ESM
39
39
 
40
40
  ```js
41
- import { ApiClient, Api } from "@communecter/cocolight-api-client";
41
+ import Cocolight from "@communecter/cocolight-api-client";
42
+
43
+ const { Api, ApiClient, tokenStorageStrategy } = Cocolight;
42
44
  ```
43
45
  ### CommonJS
44
46
 
45
47
  ```js
46
- const { ApiClient, Api } = require("@communecter/cocolight-api-client").default;
48
+ const { ApiClient, Api, tokenStorageStrategy } = require("@communecter/cocolight-api-client").default;
47
49
  ```
48
50
 
49
51
  ### 🔗 Intégration via CDN
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@communecter/cocolight-api-client",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Client Axios simplifié pour l'API cocolight",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,8 +10,11 @@
10
10
  "main": "./dist/cocolight-api-client.cjs",
11
11
  "browser": "./dist/cocolight-api-client.browser.js",
12
12
  "exports": {
13
- "import": "./dist/cocolight-api-client.mjs.js",
14
- "require": "./dist/cocolight-api-client.cjs"
13
+ ".": {
14
+ "import": "./dist/cocolight-api-client.mjs.js",
15
+ "require": "./dist/cocolight-api-client.cjs"
16
+ },
17
+ "./mjs": "./dist/cocolight-api-client.mjs.js"
15
18
  },
16
19
  "type": "module",
17
20
  "scripts": {