phx-react 1.3.430 → 1.3.432
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/cjs/components/Func/clientMutationV2.js +8 -3
- package/dist/cjs/components/Func/clientMutationV2.js.map +1 -1
- package/dist/cjs/components/Func/clientQueryV2.js +8 -3
- package/dist/cjs/components/Func/clientQueryV2.js.map +1 -1
- package/dist/esm/components/Func/clientMutationV2.js +8 -3
- package/dist/esm/components/Func/clientMutationV2.js.map +1 -1
- package/dist/esm/components/Func/clientQueryV2.js +8 -3
- package/dist/esm/components/Func/clientQueryV2.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,15 +2,20 @@
|
|
|
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
|
+
if (option === void 0) { option = {
|
|
6
|
+
context: {
|
|
7
|
+
headers: {
|
|
8
|
+
'Content-Type': 'application/json',
|
|
9
|
+
'phx-query-mode': 'write'
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}; }
|
|
6
13
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
7
14
|
var startTime, data, endTime, duration;
|
|
8
15
|
return tslib_1.__generator(this, function (_a) {
|
|
9
16
|
switch (_a.label) {
|
|
10
17
|
case 0:
|
|
11
18
|
startTime = performance.now();
|
|
12
|
-
// Added header
|
|
13
|
-
option.context.headers['phx-query-mode'] = 'write';
|
|
14
19
|
return [4 /*yield*/, mutationName(option)];
|
|
15
20
|
case 1:
|
|
16
21
|
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,
|
|
1
|
+
{"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,iBAAiB,CAC7C,YAAyF,EACzF,MAOC;IAPD,uBAAA,EAAA;QACE,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,gBAAgB,EAAE,OAAO;aAC1B;SACF;KACF;;;;;;oBAEK,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;AAxBD,uCAwBC"}
|
|
@@ -2,15 +2,20 @@
|
|
|
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
|
+
if (option === void 0) { option = {
|
|
6
|
+
context: {
|
|
7
|
+
headers: {
|
|
8
|
+
'Content-Type': 'application/json',
|
|
9
|
+
'phx-query-mode': 'read'
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}; }
|
|
6
13
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
7
14
|
var startTime, data, endTime, duration;
|
|
8
15
|
return tslib_1.__generator(this, function (_a) {
|
|
9
16
|
switch (_a.label) {
|
|
10
17
|
case 0:
|
|
11
18
|
startTime = performance.now();
|
|
12
|
-
// Added header
|
|
13
|
-
option.context.headers['phx-query-mode'] = 'read';
|
|
14
19
|
return [4 /*yield*/, queryName(option)];
|
|
15
20
|
case 1:
|
|
16
21
|
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,
|
|
1
|
+
{"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,cAAc,CAC1C,SAAyD,EACzD,MAOC;IAPD,uBAAA,EAAA;QACE,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,gBAAgB,EAAE,MAAM;aACzB;SACF;KACF;;;;;;oBAEK,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;AAvBD,oCAuBC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { __awaiter, __generator } from "tslib";
|
|
2
2
|
export default function PHXClientMutation(mutationName, option) {
|
|
3
|
-
if (option === void 0) { option = {
|
|
3
|
+
if (option === void 0) { option = {
|
|
4
|
+
context: {
|
|
5
|
+
headers: {
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
'phx-query-mode': 'write'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}; }
|
|
4
11
|
return __awaiter(this, void 0, void 0, function () {
|
|
5
12
|
var startTime, data, endTime, duration;
|
|
6
13
|
return __generator(this, function (_a) {
|
|
7
14
|
switch (_a.label) {
|
|
8
15
|
case 0:
|
|
9
16
|
startTime = performance.now();
|
|
10
|
-
// Added header
|
|
11
|
-
option.context.headers['phx-query-mode'] = 'write';
|
|
12
17
|
return [4 /*yield*/, mutationName(option)];
|
|
13
18
|
case 1:
|
|
14
19
|
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,
|
|
1
|
+
{"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,iBAAiB,CAC7C,YAAyF,EACzF,MAOC;IAPD,uBAAA,EAAA;QACE,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,gBAAgB,EAAE,OAAO;aAC1B;SACF;KACF;;;;;;oBAEK,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,14 +1,19 @@
|
|
|
1
1
|
import { __awaiter, __generator } from "tslib";
|
|
2
2
|
export default function PHXClientQuery(queryName, option) {
|
|
3
|
-
if (option === void 0) { option = {
|
|
3
|
+
if (option === void 0) { option = {
|
|
4
|
+
context: {
|
|
5
|
+
headers: {
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
'phx-query-mode': 'read'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}; }
|
|
4
11
|
return __awaiter(this, void 0, void 0, function () {
|
|
5
12
|
var startTime, data, endTime, duration;
|
|
6
13
|
return __generator(this, function (_a) {
|
|
7
14
|
switch (_a.label) {
|
|
8
15
|
case 0:
|
|
9
16
|
startTime = performance.now();
|
|
10
|
-
// Added header
|
|
11
|
-
option.context.headers['phx-query-mode'] = 'read';
|
|
12
17
|
return [4 /*yield*/, queryName(option)];
|
|
13
18
|
case 1:
|
|
14
19
|
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,
|
|
1
|
+
{"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,cAAc,CAC1C,SAAyD,EACzD,MAOC;IAPD,uBAAA,EAAA;QACE,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,gBAAgB,EAAE,MAAM;aACzB;SACF;KACF;;;;;;oBAEK,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"}
|