diff --git a/bin/build-lib.js b/bin/build-lib.js index ea8dc0465..edd0745c8 100644 --- a/bin/build-lib.js +++ b/bin/build-lib.js @@ -11,7 +11,7 @@ const writeFile = promisify(fs.writeFile) const SOURCE = 'packages/{*,@uppy/*}/src/**/*.js' // Files not to build (such as tests) -const IGNORE = /\.test\.js$|__mocks__|companion/ +const IGNORE = /\.test\.js$|__mocks__|companion\// async function buildLib () { const files = await glob(SOURCE) diff --git a/examples/custom-provider/client/MyCustomProvider.js b/examples/custom-provider/client/MyCustomProvider.js index 62ba459c1..f4806497c 100644 --- a/examples/custom-provider/client/MyCustomProvider.js +++ b/examples/custom-provider/client/MyCustomProvider.js @@ -1,5 +1,5 @@ const { Plugin } = require('@uppy/core') -const { Provider } = require('@uppy/server-utils') +const { Provider } = require('@uppy/companion-client') const ProviderViews = require('@uppy/provider-views') const { h } = require('preact') diff --git a/packages/@uppy/aws-s3-multipart/package.json b/packages/@uppy/aws-s3-multipart/package.json index a3a09eb39..56884185c 100644 --- a/packages/@uppy/aws-s3-multipart/package.json +++ b/packages/@uppy/aws-s3-multipart/package.json @@ -24,7 +24,7 @@ "url": "git+https://github.com/transloadit/uppy.git" }, "dependencies": { - "@uppy/server-utils": "0.26.0", + "@uppy/companion-client": "0.26.0", "@uppy/utils": "0.26.0", "resolve-url": "^0.2.1" }, diff --git a/packages/@uppy/aws-s3-multipart/src/index.js b/packages/@uppy/aws-s3-multipart/src/index.js index b88f38615..09cf6c322 100644 --- a/packages/@uppy/aws-s3-multipart/src/index.js +++ b/packages/@uppy/aws-s3-multipart/src/index.js @@ -1,5 +1,5 @@ const { Plugin } = require('@uppy/core') -const { Socket, RequestClient } = require('@uppy/server-utils') +const { Socket, RequestClient } = require('@uppy/companion-client') const emitSocketProgress = require('@uppy/utils/lib/emitSocketProgress') const getSocketHost = require('@uppy/utils/lib/getSocketHost') const limitPromises = require('@uppy/utils/lib/limitPromises') diff --git a/packages/@uppy/server-utils/LICENSE b/packages/@uppy/companion-client/LICENSE similarity index 100% rename from packages/@uppy/server-utils/LICENSE rename to packages/@uppy/companion-client/LICENSE diff --git a/packages/@uppy/server-utils/README.md b/packages/@uppy/companion-client/README.md similarity index 80% rename from packages/@uppy/server-utils/README.md rename to packages/@uppy/companion-client/README.md index fea172a30..6b82043dd 100644 --- a/packages/@uppy/server-utils/README.md +++ b/packages/@uppy/companion-client/README.md @@ -1,8 +1,8 @@ -# @uppy/server-utils +# @uppy/companion-client Uppy logo: a superman puppy in a pink suit - + Build Status Client library for communication with Uppy Server. Intended for use in Uppy plugins. @@ -13,7 +13,7 @@ Uppy is being developed by the folks at [Transloadit](https://transloadit.com), ```js const Uppy = require('@uppy/core') -const { Provider, RequestClient, Socket } = require('@uppy/server-utils') +const { Provider, RequestClient, Socket } = require('@uppy/companion-client') const uppy = Uppy() @@ -35,7 +35,7 @@ socket.on('progress', () => {}) > Unless you are writing a custom provider plugin, you do not need to install this. ```bash -$ npm install @uppy/server-utils --save +$ npm install @uppy/companion-client --save ```