@startbahn/startrail-sdk-js 1.28.1 → 1.28.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startbahn/startrail-sdk-js",
3
- "version": "1.28.1",
3
+ "version": "1.28.2",
4
4
  "description": "Startrail Api for JS SDK",
5
5
  "main": "dist/startrail-sdk.js",
6
6
  "unpkg": "dist/startrail-sdk.js",
@@ -60,7 +60,7 @@
60
60
  "@ethersproject/bignumber": "^5.6.0",
61
61
  "@ethersproject/strings": "^5.6.0",
62
62
  "@metamask/detect-provider": "^1.2.0",
63
- "@toruslabs/torus-embed": "1.20.1",
63
+ "@toruslabs/torus-embed": "1.35.5",
64
64
  "axios": "^0.21.2",
65
65
  "ethereumjs-util": "^7.1.4",
66
66
  "flat": "^5.0.2",
@@ -1,6 +1,7 @@
1
1
  // Generated by dts-bundle v0.7.3
2
2
  // Dependencies for this module:
3
3
  // ../@ethersproject/abstract-signer
4
+ // ../@toruslabs/torus-embed
4
5
  // ../axios
5
6
 
6
7
  declare module '@startbahn/startrail-sdk-js' {
@@ -102,6 +103,7 @@ declare module '@startbahn/startrail-sdk-js' {
102
103
 
103
104
  declare module '@startbahn/startrail-sdk-js/types' {
104
105
  import { TypedDataDomain, TypedDataField } from '@ethersproject/abstract-signer';
106
+ import type { LOGIN_TYPE } from '@toruslabs/torus-embed';
105
107
  export interface AddCustomHistoriesToSRRs extends Pick<HTTPHeadersForStartrailLUW, 'startrailLUWContractAddress'> {
106
108
  tokenIds: string[];
107
109
  customHistoryIds: string[];
@@ -407,14 +409,14 @@ declare module '@startbahn/startrail-sdk-js/types' {
407
409
  * - `'touch'`: displays the UI in a way that leverages a touch interface
408
410
  * - `'wap'`: displays the UI with a "feature phone" type interface
409
411
  */
410
- display?: "page" | "popup" | "touch" | "wap";
412
+ display?: 'page' | 'popup' | 'touch' | 'wap';
411
413
  /**
412
414
  * - `'none'`: do not prompt user for login or consent on reauthentication
413
415
  * - `'login'`: prompt user for reauthentication
414
416
  * - `'consent'`: prompt user for consent before processing request
415
417
  * - `'select_account'`: prompt user to select an account
416
418
  */
417
- prompt?: "none" | "login" | "consent" | "select_account";
419
+ prompt?: 'none' | 'login' | 'consent' | 'select_account';
418
420
  /**
419
421
  * Maximum allowable elasped time (in seconds) since authentication.
420
422
  * If the last time the user authenticated is greater than this value,
@@ -541,7 +543,6 @@ declare module '@startbahn/startrail-sdk-js/types' {
541
543
  */
542
544
  jwtParameters?: JwtParameters;
543
545
  }
544
- type LOGIN_TYPE = 'google' | 'facebook' | 'reddit' | 'discord' | 'twitch' | 'apple' | 'github' | 'linkedin' | 'twitter' | 'weibo' | 'line' | 'jwt' | 'email-password' | 'passwordless';
545
546
  export interface NetworkInterface {
546
547
  host: 'mainnet' | 'rinkeby' | 'ropsten' | 'kovan' | 'goerli' | 'localhost' | 'matic' | string;
547
548
  chainId: number;