@wharfkit/antelope
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@wharfkit/antelope", | ||
"description": "Library for working with Antelope powered blockchains.", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"homepage": "https://github.com/wharfkit/antelope", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause-No-Military-License", |
@@ -55,5 +55,12 @@ import {APIMethods} from './client' | ||
const url = this.url + args.path | ||
const reqBody = args.params !== undefined ? JSON.stringify(args.params) : undefined | ||
const reqHeaders = {} | ||
if (reqBody) { | ||
reqHeaders['Content-Type'] = 'application/json' | ||
} | ||
const response = await this.fetch(url, { | ||
method: args.method || 'POST', | ||
body: args.params !== undefined ? JSON.stringify(args.params) : undefined, | ||
body: reqBody, | ||
headers: reqHeaders, | ||
}) | ||
@@ -60,0 +67,0 @@ const text = await response.text() |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1155175
21013