@blockfrost/blockfrost-js
Advanced tools
Comparing version 5.4.0 to 5.5.0-beta.0
@@ -153,3 +153,3 @@ "use strict"; | ||
else { | ||
throw Error('Invalid network option. Valid options: mainnet, testnet, preview, preprod.'); | ||
throw Error('Invalid network option. Valid options: mainnet, testnet, preview, preprod, sanchonet.'); | ||
} | ||
@@ -156,0 +156,0 @@ } |
@@ -5,2 +5,3 @@ export declare const API_URLS: { | ||
preprod: string; | ||
sanchonet: string; | ||
ipfs: string; | ||
@@ -7,0 +8,0 @@ }; |
@@ -8,2 +8,3 @@ "use strict"; | ||
preprod: 'https://cardano-preprod.blockfrost.io/api', | ||
sanchonet: 'https://cardano-sanchonet.blockfrost.io/api', | ||
ipfs: 'https://ipfs.blockfrost.io/api', | ||
@@ -10,0 +11,0 @@ }; |
@@ -23,3 +23,3 @@ import { CacheError, CancelError, TimeoutError, RequestError, ReadError, ParseError, UploadError, HTTPError, MaxRedirectsError, UnsupportedProtocolError, RequiredRetryOptions } from 'got'; | ||
export type Options = (OptionCombination1 | OptionCombination2) & AdditionalOptions; | ||
export type CardanoNetwork = 'mainnet' | 'preview' | 'preprod'; | ||
export type CardanoNetwork = 'mainnet' | 'preview' | 'preprod' | 'sanchonet'; | ||
export type BlockfrostNetwork = CardanoNetwork | 'ipfs'; | ||
@@ -26,0 +26,0 @@ export interface ValidatedOptions { |
@@ -82,2 +82,5 @@ "use strict"; | ||
} | ||
else if (projectId.startsWith('sanchonet')) { | ||
return 'sanchonet'; | ||
} | ||
else if (projectId.startsWith('ipfs')) { | ||
@@ -84,0 +87,0 @@ return 'ipfs'; |
{ | ||
"name": "@blockfrost/blockfrost-js", | ||
"version": "5.4.0", | ||
"version": "5.5.0-beta.0", | ||
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
248420
5238
2