codenotch-react 1.0.17 → 1.0.18

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/dist/index.js +8 -4
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -1,9 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CODENOTCH_ENV = void 0;
4
+ exports.useCodenotch = useCodenotch;
5
+ exports.useCodenotchApp = useCodenotchApp;
1
6
  const CODENOTCH_ENV = {};
7
+ exports.CODENOTCH_ENV = CODENOTCH_ENV;
2
8
  /**
3
9
  * Return Codenotch API
4
10
  * @returns {ICodenotchApi} Codenotch API
5
11
  */
6
- export function useCodenotch() {
12
+ function useCodenotch() {
7
13
  return {
8
14
  ENV: CODENOTCH_ENV,
9
15
  requestSioql: async (sioql, verbose) => {
@@ -60,7 +66,7 @@ export function useCodenotch() {
60
66
  * @param props Codenotch app properties
61
67
  * @returns {ICodenotchApi} Codenotch API
62
68
  */
63
- export function useCodenotchApp(props) {
69
+ function useCodenotchApp(props) {
64
70
  if (props) {
65
71
  if (props.clusterUrl)
66
72
  CODENOTCH_ENV.clusterUrl = props.clusterUrl;
@@ -82,5 +88,3 @@ export function useCodenotchApp(props) {
82
88
  }
83
89
  return useCodenotch();
84
90
  }
85
- // Export de l'environnement pour compatibilité
86
- export { CODENOTCH_ENV };
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "codenotch-react",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
- "type": "module",
7
6
  "author": "Codenotch SA",
8
7
  "scripts": {
9
8
  "build": "tsc",