@thirdweb-dev/storage
Advanced tools
Comparing version 0.2.0 to 0.2.1-nightly-0460327
@@ -5,4 +5,4 @@ 'use strict'; | ||
var fetch = require('cross-fetch'); | ||
var FormData = require('form-data'); | ||
var fetch$1 = require('cross-fetch'); | ||
var zod = require('zod'); | ||
@@ -12,4 +12,4 @@ | ||
var fetch__default = /*#__PURE__*/_interopDefault(fetch); | ||
var FormData__default = /*#__PURE__*/_interopDefault(FormData); | ||
var fetch__default = /*#__PURE__*/_interopDefault(fetch$1); | ||
@@ -746,3 +746,3 @@ function _defineProperty(obj, key, value) { | ||
_context.next = 3; | ||
return fetch("".concat(TW_IPFS_SERVER_URL, "/grant"), { | ||
return fetch__default["default"]("".concat(TW_IPFS_SERVER_URL, "/grant"), { | ||
method: "GET", | ||
@@ -828,3 +828,3 @@ headers: headers | ||
_context2.next = 13; | ||
return fetch(PINATA_IPFS_URL, { | ||
return fetch__default["default"](PINATA_IPFS_URL, { | ||
method: "POST", | ||
@@ -831,0 +831,0 @@ headers: _objectSpread2({ |
@@ -5,4 +5,4 @@ 'use strict'; | ||
var fetch = require('cross-fetch'); | ||
var FormData = require('form-data'); | ||
var fetch$1 = require('cross-fetch'); | ||
var zod = require('zod'); | ||
@@ -12,4 +12,4 @@ | ||
var fetch__default = /*#__PURE__*/_interopDefault(fetch); | ||
var FormData__default = /*#__PURE__*/_interopDefault(FormData); | ||
var fetch__default = /*#__PURE__*/_interopDefault(fetch$1); | ||
@@ -746,3 +746,3 @@ function _defineProperty(obj, key, value) { | ||
_context.next = 3; | ||
return fetch("".concat(TW_IPFS_SERVER_URL, "/grant"), { | ||
return fetch__default["default"]("".concat(TW_IPFS_SERVER_URL, "/grant"), { | ||
method: "GET", | ||
@@ -828,3 +828,3 @@ headers: headers | ||
_context2.next = 13; | ||
return fetch(PINATA_IPFS_URL, { | ||
return fetch__default["default"](PINATA_IPFS_URL, { | ||
method: "POST", | ||
@@ -831,0 +831,0 @@ headers: _objectSpread2({ |
@@ -0,3 +1,3 @@ | ||
import fetch from 'cross-fetch'; | ||
import FormData from 'form-data'; | ||
import fetch$1 from 'cross-fetch'; | ||
import { z } from 'zod'; | ||
@@ -1314,3 +1314,3 @@ | ||
_context7.next = 4; | ||
return fetch$1(uri); | ||
return fetch(uri); | ||
@@ -1518,3 +1518,3 @@ case 4: | ||
_context9.next = 11; | ||
return fetch$1(PINATA_IPFS_URL, { | ||
return fetch(PINATA_IPFS_URL, { | ||
method: "POST", | ||
@@ -1521,0 +1521,0 @@ headers: _objectSpread2({ |
{ | ||
"name": "@thirdweb-dev/storage", | ||
"version": "0.2.0", | ||
"version": "0.2.1-nightly-0460327", | ||
"main": "dist/thirdweb-dev-storage.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/thirdweb-dev-storage.esm.js", |
Sorry, the diff of this file is not supported yet
210092