@ic-reactor/react 1.0.7 → 1.0.9
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/context/agent.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ import type { CreateAgentContextReturnType, CreateAgentCotextParameters } from "
|
|
|
25
25
|
* const agentConfig: CreateAgentCotextParameters = {
|
|
26
26
|
* host: "https://localhost:8000",
|
|
27
27
|
* // or
|
|
28
|
-
* //
|
|
28
|
+
* // withLocalEnv: true,
|
|
29
29
|
* // port: 8000,
|
|
30
30
|
* };
|
|
31
31
|
*
|
package/dist/context/agent.js
CHANGED
|
@@ -66,7 +66,7 @@ const extractAgentContext_1 = require("../helpers/extractAgentContext");
|
|
|
66
66
|
* const agentConfig: CreateAgentCotextParameters = {
|
|
67
67
|
* host: "https://localhost:8000",
|
|
68
68
|
* // or
|
|
69
|
-
* //
|
|
69
|
+
* // withLocalEnv: true,
|
|
70
70
|
* // port: 8000,
|
|
71
71
|
* };
|
|
72
72
|
*
|
package/dist/createReactor.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { BaseActor, CreateReactorParameters, CreateReactorReturnType } from
|
|
|
5
5
|
*
|
|
6
6
|
* @param config Configuration {@link CreateReactorParameters} for the reactor, including:
|
|
7
7
|
* - `withProcessEnv` (optional): Specifies whether to use process environment variables to determine if the environment is local or development. Defaults to false.
|
|
8
|
-
* - `
|
|
8
|
+
* - `withLocalEnv` (optional): Indicates if the current environment is local or development, influencing the agent and actor behavior. Useful for testing or development.
|
|
9
9
|
* - `port` (optional): Port number for the local or development environment.
|
|
10
10
|
*
|
|
11
11
|
* @returns An object containing {@link CreateReactorReturnType} hooks and utilities:
|
|
@@ -35,7 +35,7 @@ import type { BaseActor, CreateReactorParameters, CreateReactorReturnType } from
|
|
|
35
35
|
* canisterId,
|
|
36
36
|
* idlFactory,
|
|
37
37
|
* host: "https://localhost:8000", // IC network host |
|
|
38
|
-
*
|
|
38
|
+
* withLocalEnv: true, // Set true for local network | one of these
|
|
39
39
|
* withProcessEnv: true, // Use process.env to determine host |
|
|
40
40
|
* port: 8000, // Port number for local network |
|
|
41
41
|
* };
|
package/dist/createReactor.js
CHANGED
|
@@ -9,7 +9,7 @@ const helpers_1 = require("./helpers");
|
|
|
9
9
|
*
|
|
10
10
|
* @param config Configuration {@link CreateReactorParameters} for the reactor, including:
|
|
11
11
|
* - `withProcessEnv` (optional): Specifies whether to use process environment variables to determine if the environment is local or development. Defaults to false.
|
|
12
|
-
* - `
|
|
12
|
+
* - `withLocalEnv` (optional): Indicates if the current environment is local or development, influencing the agent and actor behavior. Useful for testing or development.
|
|
13
13
|
* - `port` (optional): Port number for the local or development environment.
|
|
14
14
|
*
|
|
15
15
|
* @returns An object containing {@link CreateReactorReturnType} hooks and utilities:
|
|
@@ -39,7 +39,7 @@ const helpers_1 = require("./helpers");
|
|
|
39
39
|
* canisterId,
|
|
40
40
|
* idlFactory,
|
|
41
41
|
* host: "https://localhost:8000", // IC network host |
|
|
42
|
-
*
|
|
42
|
+
* withLocalEnv: true, // Set true for local network | one of these
|
|
43
43
|
* withProcessEnv: true, // Use process.env to determine host |
|
|
44
44
|
* port: 8000, // Port number for local network |
|
|
45
45
|
* };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic-reactor/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "A React library for interacting with Internet Computer canisters",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": ">=10"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ic-reactor/core": "^1.0.
|
|
38
|
+
"@ic-reactor/core": "^1.0.8",
|
|
39
39
|
"zustand-utils": "^1.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react": ">=16.8",
|
|
49
49
|
"zustand": "4.5"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "fc864ae3a99c94f41067e3a3d6ac80d1a66a98f0"
|
|
52
52
|
}
|