@amityco/ts-sdk-react-native 6.14.0 → 6.14.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAcA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;AAmDD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAcA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;AAmDD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,kCAqFnD,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -118,8 +118,8 @@ const PostContentType = Object.freeze({
|
|
|
118
118
|
|
|
119
119
|
function getVersion() {
|
|
120
120
|
try {
|
|
121
|
-
// the string ''v6.14.
|
|
122
|
-
return 'v6.14.
|
|
121
|
+
// the string ''v6.14.1-cjs'' should be replaced by actual value by @rollup/plugin-replace
|
|
122
|
+
return 'v6.14.1-cjs';
|
|
123
123
|
}
|
|
124
124
|
catch (error) {
|
|
125
125
|
return '__dev__';
|
|
@@ -1745,6 +1745,9 @@ const createHttpTransport = (endpoint) => {
|
|
|
1745
1745
|
// unexpected error.
|
|
1746
1746
|
throw new Error((_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : error);
|
|
1747
1747
|
});
|
|
1748
|
+
instance.defaults.paramsSerializer = {
|
|
1749
|
+
encode: params => encodeURIComponent(params),
|
|
1750
|
+
};
|
|
1748
1751
|
return instance;
|
|
1749
1752
|
};
|
|
1750
1753
|
|
package/dist/index.esm.js
CHANGED
|
@@ -84,8 +84,8 @@ const PostContentType = Object.freeze({
|
|
|
84
84
|
|
|
85
85
|
function getVersion() {
|
|
86
86
|
try {
|
|
87
|
-
// the string ''v6.14.
|
|
88
|
-
return 'v6.14.
|
|
87
|
+
// the string ''v6.14.1-esm'' should be replaced by actual value by @rollup/plugin-replace
|
|
88
|
+
return 'v6.14.1-esm';
|
|
89
89
|
}
|
|
90
90
|
catch (error) {
|
|
91
91
|
return '__dev__';
|
|
@@ -1711,6 +1711,9 @@ const createHttpTransport = (endpoint) => {
|
|
|
1711
1711
|
// unexpected error.
|
|
1712
1712
|
throw new Error((_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : error);
|
|
1713
1713
|
});
|
|
1714
|
+
instance.defaults.paramsSerializer = {
|
|
1715
|
+
encode: params => encodeURIComponent(params),
|
|
1716
|
+
};
|
|
1714
1717
|
return instance;
|
|
1715
1718
|
};
|
|
1716
1719
|
|