@notabene/javascript-sdk
Advanced tools
Comparing version 2.0.0-next.5 to 2.0.0-next.6
@@ -79,7 +79,7 @@ /** | ||
declare type CAIP10 = string; | ||
declare type CAIP10 = `${CAIP2}:${string}`; | ||
declare type CAIP19 = string; | ||
declare type CAIP19 = `${CAIP2}/${string}:${string}`; | ||
declare type CAIP2 = string; | ||
declare type CAIP2 = `${string}:${string}`; | ||
@@ -163,5 +163,5 @@ declare interface CallbackOptions { | ||
*/ | ||
export declare type destination = BlockchainAddress | CAIP19 | TravelAddress; | ||
export declare type destination = BlockchainAddress | CAIP10 | TravelAddress; | ||
declare type DID = string; | ||
declare type DID = `did:${string}:${string}`; | ||
@@ -168,0 +168,0 @@ declare type DTI = string; |
@@ -12,3 +12,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.0-next.5", | ||
"version": "2.0.0-next.6", | ||
"source": "src/notabene.ts", | ||
@@ -15,0 +15,0 @@ "main": "dist/notabene.js", |
@@ -9,5 +9,5 @@ import { | ||
export type CAIP2 = string; | ||
export type CAIP10 = string; | ||
export type CAIP19 = string; | ||
export type CAIP2 = `${string}:${string}`; | ||
export type CAIP10 = `${CAIP2}:${string}`; | ||
export type CAIP19 = `${CAIP2}/${string}:${string}`; | ||
export type CAIP220 = string; | ||
@@ -33,6 +33,6 @@ | ||
*/ | ||
export type Destination = BlockchainAddress | CAIP19 | TravelAddress; | ||
export type Source = BlockchainAddress | CAIP19; | ||
export type Destination = BlockchainAddress | CAIP10 | TravelAddress; | ||
export type Source = BlockchainAddress | CAIP10; | ||
export type URI = string; | ||
export type DID = string; | ||
export type DID = `did:${string}:${string}`; | ||
@@ -54,13 +54,13 @@ /** | ||
export type TransactionType = 'VASP_2_VASP' | 'SELF_HOSTED'; | ||
// export type TransactionType = 'VASP_2_VASP' | 'SELF_HOSTED'; | ||
export type TransactionTypeAllowed = | ||
| 'ALL' | ||
| 'VASP_2_VASP_ONLY' | ||
| 'FIRST_PARTY_ONLY'; | ||
// export type TransactionTypeAllowed = | ||
// | 'ALL' | ||
// | 'VASP_2_VASP_ONLY' | ||
// | 'FIRST_PARTY_ONLY'; | ||
export type NonCustodialDeclarationType = | ||
| 'SIGNATURE' | ||
| 'DECLARATION' | ||
| 'SIGNATURE_AND_DECLARATION'; | ||
// export type NonCustodialDeclarationType = | ||
// | 'SIGNATURE' | ||
// | 'DECLARATION' | ||
// | 'SIGNATURE_AND_DECLARATION'; | ||
@@ -67,0 +67,0 @@ /** |
@@ -12,11 +12,11 @@ import fc from 'fast-check'; | ||
export const arbitraryCAIP10 = (): fc.Arbitrary<CAIP10> => | ||
fc.stringMatching(CAIP10_MATCHER); | ||
fc.stringMatching(CAIP10_MATCHER) as fc.Arbitrary<CAIP10>; | ||
export const arbitraryCAIP2 = (): fc.Arbitrary<CAIP2> => | ||
fc.stringMatching(CAIP2_MATCHER); | ||
fc.stringMatching(CAIP2_MATCHER) as fc.Arbitrary<CAIP2>; | ||
export const arbitraryCAIP19 = (): fc.Arbitrary<CAIP19> => | ||
fc.stringMatching(CAIP19_MATCHER); | ||
fc.stringMatching(CAIP19_MATCHER) as fc.Arbitrary<CAIP19>; | ||
export const arbitraryCAIP220 = (): fc.Arbitrary<CAIP220> => | ||
fc.stringMatching(CAIP220_MATCHER); | ||
fc.stringMatching(CAIP220_MATCHER) as fc.Arbitrary<CAIP220>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
86704
0