phx-react 1.3.446 → 1.3.447

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.
@@ -11,7 +11,7 @@ function PHXClientMutation(mutationName, option) {
11
11
  startTime = performance.now();
12
12
  env = (0, read_env_config_1.getEnv)('NEXT_PUBLIC_ENV', process.env.NEXT_PUBLIC_ENV);
13
13
  uri = (0, read_env_config_1.getEnv)('NEXT_PUBLIC_API', process.env.NEXT_PUBLIC_API);
14
- if (!(env === 'LOCAL')) return [3 /*break*/, 2];
14
+ if (!(env === 'local')) return [3 /*break*/, 2];
15
15
  return [4 /*yield*/, mutationName(tslib_1.__assign(tslib_1.__assign({}, option), { context: { uri: uri } }))];
16
16
  case 1:
17
17
  mutationResult = _a.sent();
@@ -11,7 +11,7 @@ function PHXClientQuery(queryName, option) {
11
11
  startTime = performance.now();
12
12
  env = (0, read_env_config_1.getEnv)('NEXT_PUBLIC_ENV', process.env.NEXT_PUBLIC_ENV);
13
13
  uri = (0, read_env_config_1.getEnv)('NEXT_PUBLIC_API', process.env.NEXT_PUBLIC_API);
14
- if (!(env === 'LOCAL')) return [3 /*break*/, 2];
14
+ if (!(env === 'local')) return [3 /*break*/, 2];
15
15
  return [4 /*yield*/, queryName(tslib_1.__assign(tslib_1.__assign({}, option), { context: { uri: uri } }))];
16
16
  case 1:
17
17
  queryResult = _a.sent();
@@ -9,7 +9,7 @@ export default function PHXClientMutation(mutationName, option) {
9
9
  startTime = performance.now();
10
10
  env = getEnv('NEXT_PUBLIC_ENV', process.env.NEXT_PUBLIC_ENV);
11
11
  uri = getEnv('NEXT_PUBLIC_API', process.env.NEXT_PUBLIC_API);
12
- if (!(env === 'LOCAL')) return [3 /*break*/, 2];
12
+ if (!(env === 'local')) return [3 /*break*/, 2];
13
13
  return [4 /*yield*/, mutationName(__assign(__assign({}, option), { context: { uri: uri } }))];
14
14
  case 1:
15
15
  mutationResult = _a.sent();
@@ -9,7 +9,7 @@ export default function PHXClientQuery(queryName, option) {
9
9
  startTime = performance.now();
10
10
  env = getEnv('NEXT_PUBLIC_ENV', process.env.NEXT_PUBLIC_ENV);
11
11
  uri = getEnv('NEXT_PUBLIC_API', process.env.NEXT_PUBLIC_API);
12
- if (!(env === 'LOCAL')) return [3 /*break*/, 2];
12
+ if (!(env === 'local')) return [3 /*break*/, 2];
13
13
  return [4 /*yield*/, queryName(__assign(__assign({}, option), { context: { uri: uri } }))];
14
14
  case 1:
15
15
  queryResult = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-react",
3
- "version": "1.3.446",
3
+ "version": "1.3.447",
4
4
  "description": "PHX REACT",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",