payjp 2.1.1 → 2.1.3

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/built/index.d.ts CHANGED
@@ -233,6 +233,7 @@ declare namespace Payjp {
233
233
  livemode: boolean;
234
234
  metadata: OptionsMetadata | null;
235
235
  name: string | null;
236
+ three_d_secure_status: string | null;
236
237
  }
237
238
  export interface Plan {
238
239
  object: "plan";
package/built/resource.js CHANGED
@@ -26,7 +26,7 @@ class Resource {
26
26
  }
27
27
  getCurrentDelay(retryCount, initialDelay, maxDelay) {
28
28
  const delay = Math.min(initialDelay * 2 ** retryCount, maxDelay);
29
- return Math.floor(delay / 2 * (1 + Math.random()));
29
+ return Math.ceil(delay / 2 * (1 + Math.random()));
30
30
  }
31
31
  request(method, endpoint, query = {}, headers = {}) {
32
32
  const url = `${this.payjp.config.apibase}/${endpoint}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payjp",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "PAY.JP node.js bindings",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",