jrs-react 1.0.26 → 1.0.27
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/build/index.es.js +4 -6
- package/build/index.js +4 -6
- package/package.json +1 -1
- package/src/components/JRSubmit.jsx +1 -1
package/build/index.es.js
CHANGED
|
@@ -21947,7 +21947,7 @@ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
|
21947
21947
|
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
|
21948
21948
|
);
|
|
21949
21949
|
|
|
21950
|
-
const test
|
|
21950
|
+
const test = (fn, ...args) => {
|
|
21951
21951
|
try {
|
|
21952
21952
|
return !!fn(...args);
|
|
21953
21953
|
} catch (e) {
|
|
@@ -21955,7 +21955,7 @@ const test$1 = (fn, ...args) => {
|
|
|
21955
21955
|
}
|
|
21956
21956
|
};
|
|
21957
21957
|
|
|
21958
|
-
const supportsRequestStream = isReadableStreamSupported && test
|
|
21958
|
+
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
21959
21959
|
let duplexAccessed = false;
|
|
21960
21960
|
|
|
21961
21961
|
const hasContentType = new Request(platform.origin, {
|
|
@@ -21973,7 +21973,7 @@ const supportsRequestStream = isReadableStreamSupported && test$1(() => {
|
|
|
21973
21973
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
21974
21974
|
|
|
21975
21975
|
const supportsResponseStream = isReadableStreamSupported &&
|
|
21976
|
-
test
|
|
21976
|
+
test(() => utils$1.isReadableStream(new Response('').body));
|
|
21977
21977
|
|
|
21978
21978
|
|
|
21979
21979
|
const resolvers = {
|
|
@@ -22940,8 +22940,6 @@ axios.default = axios;
|
|
|
22940
22940
|
// this module should only have a default export
|
|
22941
22941
|
var axios$1 = axios;
|
|
22942
22942
|
|
|
22943
|
-
const po = console.debug;
|
|
22944
|
-
|
|
22945
22943
|
const axiosSubmit = axios$1.create({
|
|
22946
22944
|
authorization: `Bearer ${localStorage.getItem("accessToken")}`,
|
|
22947
22945
|
timeout: 120000,
|
|
@@ -22951,7 +22949,7 @@ const axiosSubmit = axios$1.create({
|
|
|
22951
22949
|
});
|
|
22952
22950
|
class JRSubmit extends React.Component {
|
|
22953
22951
|
submit() {
|
|
22954
|
-
po('test',
|
|
22952
|
+
// po('test',test)
|
|
22955
22953
|
// const aaa=colonValueString('xxx',{})
|
|
22956
22954
|
return axiosSubmit;
|
|
22957
22955
|
}
|
package/build/index.js
CHANGED
|
@@ -21966,7 +21966,7 @@ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
|
21966
21966
|
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
|
21967
21967
|
);
|
|
21968
21968
|
|
|
21969
|
-
const test
|
|
21969
|
+
const test = (fn, ...args) => {
|
|
21970
21970
|
try {
|
|
21971
21971
|
return !!fn(...args);
|
|
21972
21972
|
} catch (e) {
|
|
@@ -21974,7 +21974,7 @@ const test$1 = (fn, ...args) => {
|
|
|
21974
21974
|
}
|
|
21975
21975
|
};
|
|
21976
21976
|
|
|
21977
|
-
const supportsRequestStream = isReadableStreamSupported && test
|
|
21977
|
+
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
21978
21978
|
let duplexAccessed = false;
|
|
21979
21979
|
|
|
21980
21980
|
const hasContentType = new Request(platform.origin, {
|
|
@@ -21992,7 +21992,7 @@ const supportsRequestStream = isReadableStreamSupported && test$1(() => {
|
|
|
21992
21992
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
21993
21993
|
|
|
21994
21994
|
const supportsResponseStream = isReadableStreamSupported &&
|
|
21995
|
-
test
|
|
21995
|
+
test(() => utils$1.isReadableStream(new Response('').body));
|
|
21996
21996
|
|
|
21997
21997
|
|
|
21998
21998
|
const resolvers = {
|
|
@@ -22959,8 +22959,6 @@ axios.default = axios;
|
|
|
22959
22959
|
// this module should only have a default export
|
|
22960
22960
|
var axios$1 = axios;
|
|
22961
22961
|
|
|
22962
|
-
const po = console.debug;
|
|
22963
|
-
|
|
22964
22962
|
const axiosSubmit = axios$1.create({
|
|
22965
22963
|
authorization: `Bearer ${localStorage.getItem("accessToken")}`,
|
|
22966
22964
|
timeout: 120000,
|
|
@@ -22970,7 +22968,7 @@ const axiosSubmit = axios$1.create({
|
|
|
22970
22968
|
});
|
|
22971
22969
|
class JRSubmit extends React.Component {
|
|
22972
22970
|
submit() {
|
|
22973
|
-
po('test',
|
|
22971
|
+
// po('test',test)
|
|
22974
22972
|
// const aaa=colonValueString('xxx',{})
|
|
22975
22973
|
return axiosSubmit;
|
|
22976
22974
|
}
|
package/package.json
CHANGED