shoonya-sdk 1.3.0 → 1.3.2

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/index.cjs CHANGED
@@ -120,7 +120,7 @@ var Tokens = class {
120
120
  }
121
121
  };
122
122
  var tokens = new Tokens();
123
- async function refreshAccessToken(retryCount = 3) {
123
+ async function refreshAccessToken(retryCount = 1) {
124
124
  let errorMsg = "";
125
125
  for (let i = 0; i < retryCount; i++) {
126
126
  try {
@@ -605,7 +605,7 @@ var RestClient = class {
605
605
  const multiplier = 3;
606
606
  let currentDate = /* @__PURE__ */ new Date();
607
607
  let dates = [];
608
- for (let i = 0; i <= 7 * multiplier; i++) {
608
+ for (let i = 0; i <= 30 * multiplier; i++) {
609
609
  const formattedDate = this.getFormattedExpiry(currentDate);
610
610
  const d = [formattedDate, new Date(currentDate)];
611
611
  dates.push(d);
package/dist/index.js CHANGED
@@ -85,7 +85,7 @@ var Tokens = class {
85
85
  }
86
86
  };
87
87
  var tokens = new Tokens();
88
- async function refreshAccessToken(retryCount = 3) {
88
+ async function refreshAccessToken(retryCount = 1) {
89
89
  let errorMsg = "";
90
90
  for (let i = 0; i < retryCount; i++) {
91
91
  try {
@@ -577,7 +577,7 @@ var RestClient = class {
577
577
  const multiplier = 3;
578
578
  let currentDate = /* @__PURE__ */ new Date();
579
579
  let dates = [];
580
- for (let i = 0; i <= 7 * multiplier; i++) {
580
+ for (let i = 0; i <= 30 * multiplier; i++) {
581
581
  const formattedDate = this.getFormattedExpiry(currentDate);
582
582
  const d = [formattedDate, new Date(currentDate)];
583
583
  dates.push(d);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoonya-sdk",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Wrapper around Shoonya API",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",