jrs-react 1.0.24 → 1.0.26

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 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 = (fn, ...args) => {
21950
+ const test$1 = (fn, ...args) => {
21951
21951
  try {
21952
21952
  return !!fn(...args);
21953
21953
  } catch (e) {
@@ -21955,7 +21955,7 @@ const test = (fn, ...args) => {
21955
21955
  }
21956
21956
  };
21957
21957
 
21958
- const supportsRequestStream = isReadableStreamSupported && test(() => {
21958
+ const supportsRequestStream = isReadableStreamSupported && test$1(() => {
21959
21959
  let duplexAccessed = false;
21960
21960
 
21961
21961
  const hasContentType = new Request(platform.origin, {
@@ -21973,7 +21973,7 @@ const supportsRequestStream = isReadableStreamSupported && test(() => {
21973
21973
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
21974
21974
 
21975
21975
  const supportsResponseStream = isReadableStreamSupported &&
21976
- test(() => utils$1.isReadableStream(new Response('').body));
21976
+ test$1(() => utils$1.isReadableStream(new Response('').body));
21977
21977
 
21978
21978
 
21979
21979
  const resolvers = {
@@ -22940,6 +22940,8 @@ 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
+
22943
22945
  const axiosSubmit = axios$1.create({
22944
22946
  authorization: `Bearer ${localStorage.getItem("accessToken")}`,
22945
22947
  timeout: 120000,
@@ -22949,9 +22951,12 @@ const axiosSubmit = axios$1.create({
22949
22951
  });
22950
22952
  class JRSubmit extends React.Component {
22951
22953
  submit() {
22954
+ po('test', test);
22955
+ // const aaa=colonValueString('xxx',{})
22952
22956
  return axiosSubmit;
22953
22957
  }
22954
22958
  render() {
22959
+ this.submit();
22955
22960
  return /*#__PURE__*/React.createElement("div", null, "JRSubmit");
22956
22961
  }
22957
22962
  }
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 = (fn, ...args) => {
21969
+ const test$1 = (fn, ...args) => {
21970
21970
  try {
21971
21971
  return !!fn(...args);
21972
21972
  } catch (e) {
@@ -21974,7 +21974,7 @@ const test = (fn, ...args) => {
21974
21974
  }
21975
21975
  };
21976
21976
 
21977
- const supportsRequestStream = isReadableStreamSupported && test(() => {
21977
+ const supportsRequestStream = isReadableStreamSupported && test$1(() => {
21978
21978
  let duplexAccessed = false;
21979
21979
 
21980
21980
  const hasContentType = new Request(platform.origin, {
@@ -21992,7 +21992,7 @@ const supportsRequestStream = isReadableStreamSupported && test(() => {
21992
21992
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
21993
21993
 
21994
21994
  const supportsResponseStream = isReadableStreamSupported &&
21995
- test(() => utils$1.isReadableStream(new Response('').body));
21995
+ test$1(() => utils$1.isReadableStream(new Response('').body));
21996
21996
 
21997
21997
 
21998
21998
  const resolvers = {
@@ -22959,6 +22959,8 @@ 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
+
22962
22964
  const axiosSubmit = axios$1.create({
22963
22965
  authorization: `Bearer ${localStorage.getItem("accessToken")}`,
22964
22966
  timeout: 120000,
@@ -22968,9 +22970,12 @@ const axiosSubmit = axios$1.create({
22968
22970
  });
22969
22971
  class JRSubmit extends React.Component {
22970
22972
  submit() {
22973
+ po('test', test);
22974
+ // const aaa=colonValueString('xxx',{})
22971
22975
  return axiosSubmit;
22972
22976
  }
22973
22977
  render() {
22978
+ this.submit();
22974
22979
  return /*#__PURE__*/React.createElement("div", null, "JRSubmit");
22975
22980
  }
22976
22981
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
2
  import axios from 'axios'
3
+ import { po } from './JRUtil'
3
4
 
4
5
  const axiosSubmit = axios.create({
5
6
  authorization: `Bearer ${localStorage.getItem("accessToken")}`
@@ -10,9 +11,12 @@ const axiosSubmit = axios.create({
10
11
 
11
12
  export default class JRSubmit extends React.Component {
12
13
  submit(){
14
+ po('test',test)
15
+ // const aaa=colonValueString('xxx',{})
13
16
  return axiosSubmit
14
17
  }
15
18
  render(){
19
+ const test=this.submit()
16
20
  return <div>JRSubmit</div>
17
21
  }
18
22
  }
@@ -0,0 +1 @@
1
+ export const po=console.debug