phx-react 1.3.428 → 1.3.429

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.
@@ -2,12 +2,15 @@
2
2
  exports.__esModule = true;
3
3
  var tslib_1 = require("tslib");
4
4
  function PHXClientMutation(mutationName, option) {
5
+ if (option === void 0) { option = {}; }
5
6
  return tslib_1.__awaiter(this, void 0, void 0, function () {
6
7
  var startTime, data, endTime, duration;
7
8
  return tslib_1.__generator(this, function (_a) {
8
9
  switch (_a.label) {
9
10
  case 0:
10
11
  startTime = performance.now();
12
+ // Added header
13
+ option.context.headers['phx-query-mode'] = 'write';
11
14
  return [4 /*yield*/, mutationName(option)];
12
15
  case 1:
13
16
  data = _a.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,iBAAiB,CAC7C,YAAyF,EACzF,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,YAAY,CAAC,MAAM,CAAC,EAAA;;oBAAjC,IAAI,GAAG,SAA0B;oBAEjC,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ;AAjBD,uCAiBC"}
1
+ {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,iBAAiB,CAC7C,YAAyF,EACzF,MAA+B;IAA/B,uBAAA,EAAA,WAA+B;;;;;;oBAEzB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAEnC,eAAe;oBACf,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAA;oBAGrC,qBAAM,YAAY,CAAC,MAAM,CAAC,EAAA;;oBAAjC,IAAI,GAAG,SAA0B;oBAEjC,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ;AApBD,uCAoBC"}
@@ -2,12 +2,15 @@
2
2
  exports.__esModule = true;
3
3
  var tslib_1 = require("tslib");
4
4
  function PHXClientQuery(queryName, option) {
5
+ if (option === void 0) { option = {}; }
5
6
  return tslib_1.__awaiter(this, void 0, void 0, function () {
6
7
  var startTime, data, endTime, duration;
7
8
  return tslib_1.__generator(this, function (_a) {
8
9
  switch (_a.label) {
9
10
  case 0:
10
11
  startTime = performance.now();
12
+ // Added header
13
+ option.context.headers['phx-query-mode'] = 'read';
11
14
  return [4 /*yield*/, queryName(option)];
12
15
  case 1:
13
16
  data = _a.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,cAAc,CAC1C,SAAyD,EACzD,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAA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AAO,IAAI,EAAA;;;;CACZ;AAnBD,oCAmBC"}
@@ -1,11 +1,14 @@
1
1
  import { __awaiter, __generator } from "tslib";
2
2
  export default function PHXClientMutation(mutationName, option) {
3
+ if (option === void 0) { option = {}; }
3
4
  return __awaiter(this, void 0, void 0, function () {
4
5
  var startTime, data, endTime, duration;
5
6
  return __generator(this, function (_a) {
6
7
  switch (_a.label) {
7
8
  case 0:
8
9
  startTime = performance.now();
10
+ // Added header
11
+ option.context.headers['phx-query-mode'] = 'write';
9
12
  return [4 /*yield*/, mutationName(option)];
10
13
  case 1:
11
14
  data = _a.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,iBAAiB,CAC7C,YAAyF,EACzF,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,YAAY,CAAC,MAAM,CAAC,EAAA;;oBAAjC,IAAI,GAAG,SAA0B;oBAEjC,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
1
+ {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,iBAAiB,CAC7C,YAAyF,EACzF,MAA+B;IAA/B,uBAAA,EAAA,WAA+B;;;;;;oBAEzB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAEnC,eAAe;oBACf,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAA;oBAGrC,qBAAM,YAAY,CAAC,MAAM,CAAC,EAAA;;oBAAjC,IAAI,GAAG,SAA0B;oBAEjC,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
@@ -1,11 +1,14 @@
1
1
  import { __awaiter, __generator } from "tslib";
2
2
  export default function PHXClientQuery(queryName, option) {
3
+ if (option === void 0) { option = {}; }
3
4
  return __awaiter(this, void 0, void 0, function () {
4
5
  var startTime, data, endTime, duration;
5
6
  return __generator(this, function (_a) {
6
7
  switch (_a.label) {
7
8
  case 0:
8
9
  startTime = performance.now();
10
+ // Added header
11
+ option.context.headers['phx-query-mode'] = 'read';
9
12
  return [4 /*yield*/, queryName(option)];
10
13
  case 1:
11
14
  data = _a.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,cAAc,CAC1C,SAAyD,EACzD,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,SAAS,CAAC,MAAM,CAAC,EAAA;;oBAA9B,IAAI,GAAG,SAAuB;oBAC9B,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
1
+ {"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,cAAc,CAC1C,SAAyD,EACzD,MAA+B;IAA/B,uBAAA,EAAA,WAA+B;;;;;;oBAEzB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAEnC,eAAe;oBACf,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAA;oBAGpC,qBAAM,SAAS,CAAC,MAAM,CAAC,EAAA;;oBAA9B,IAAI,GAAG,SAAuB;oBAC9B,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-react",
3
- "version": "1.3.428",
3
+ "version": "1.3.429",
4
4
  "description": "PHX REACT",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",