diff --git a/public/ReactNativeFile.js b/public/ReactNativeFile.js index fd417ab..f9f19c0 100644 --- a/public/ReactNativeFile.js +++ b/public/ReactNativeFile.js @@ -34,4 +34,6 @@ * }); * ``` */ -module.exports = require("extract-files/public/ReactNativeFile.js"); +const {ReactNativeFile} = require('extract-files'); + +module.exports = ReactNativeFile diff --git a/public/createUploadLink.js b/public/createUploadLink.js index 9c396e9..1641573 100644 --- a/public/createUploadLink.js +++ b/public/createUploadLink.js @@ -10,7 +10,7 @@ const { selectURI, serializeFetchParameter, } = require("@apollo/client/link/http"); -const extractFiles = require("extract-files/public/extractFiles.js"); +const { extractFiles } = require("extract-files"); const formDataAppendFile = require("./formDataAppendFile.js"); const isExtractableFile = require("./isExtractableFile.js"); diff --git a/public/isExtractableFile.js b/public/isExtractableFile.js index a15e062..c607377 100644 --- a/public/isExtractableFile.js +++ b/public/isExtractableFile.js @@ -26,4 +26,6 @@ * const isExtractableFile = require("apollo-upload-client/public/isExtractableFile.js"); * ``` */ -module.exports = require("extract-files/public/isExtractableFile.js"); +const {isExtractableFile} = require('extract-files'); + +module.exports = isExtractableFile