@uppy/companion-client
Advanced tools
Comparing version 4.3.0 to 4.4.0
# @uppy/companion-client | ||
## 4.4.0 | ||
Released: 2025-01-06 | ||
Included in: Uppy v4.11.0 | ||
- @uppy/angular,@uppy/audio,@uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/drop-target,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive-picker,@uppy/google-drive,@uppy/google-photos-picker,@uppy/google-photos,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react,@uppy/remote-sources,@uppy/screen-capture,@uppy/status-bar,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/vue,@uppy/webcam,@uppy/webdav,@uppy/xhr-upload,@uppy/zoom: Remove "paths" from all tsconfig's (Merlijn Vos / #5572) | ||
## 4.2.0 | ||
@@ -4,0 +11,0 @@ |
/** | ||
* Manages communications with Companion | ||
*/ | ||
export { default as RequestClient } from './RequestClient.ts'; | ||
export { default as Provider } from './Provider.ts'; | ||
export { default as SearchProvider } from './SearchProvider.ts'; | ||
export { default as getAllowedHosts } from './getAllowedHosts.ts'; | ||
export * as tokenStorage from './tokenStorage.ts'; | ||
export type { CompanionPluginOptions } from './CompanionPluginOptions.ts'; | ||
export { default as RequestClient } from './RequestClient.js'; | ||
export { default as Provider } from './Provider.js'; | ||
export { default as SearchProvider } from './SearchProvider.js'; | ||
export { default as getAllowedHosts } from './getAllowedHosts.js'; | ||
export * as tokenStorage from './tokenStorage.js'; | ||
export type { CompanionPluginOptions } from './CompanionPluginOptions.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,7 +5,7 @@ /** | ||
export { default as RequestClient } from "./RequestClient.js"; | ||
export { default as Provider } from "./Provider.js"; | ||
export { default as SearchProvider } from "./SearchProvider.js"; | ||
export { default as getAllowedHosts } from "./getAllowedHosts.js"; | ||
import * as _tokenStorage from "./tokenStorage.js"; | ||
export { default as RequestClient } from './RequestClient.js'; | ||
export { default as Provider } from './Provider.js'; | ||
export { default as SearchProvider } from './SearchProvider.js'; | ||
export { default as getAllowedHosts } from './getAllowedHosts.js'; | ||
import * as _tokenStorage from './tokenStorage.js'; | ||
export { _tokenStorage as tokenStorage }; |
@@ -5,4 +5,4 @@ import type { Uppy } from '@uppy/core'; | ||
import type { RequestOptions, CompanionClientProvider } from '@uppy/utils/lib/CompanionClientProvider'; | ||
import RequestClient from './RequestClient.ts'; | ||
import type { CompanionPluginOptions } from './index.ts'; | ||
import RequestClient from './RequestClient.js'; | ||
import type { CompanionPluginOptions } from './index.js'; | ||
export interface Opts extends PluginOpts, CompanionPluginOptions { | ||
@@ -9,0 +9,0 @@ pluginId: string; |
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; } | ||
var id = 0; | ||
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; } | ||
import RequestClient, { authErrorStatusCode } from "./RequestClient.js"; | ||
import { isOriginAllowed } from "./getAllowedHosts.js"; | ||
import RequestClient, { authErrorStatusCode } from './RequestClient.js'; | ||
import { isOriginAllowed } from './getAllowedHosts.js'; | ||
const getName = id => { | ||
@@ -7,0 +7,0 @@ return id.split('-').map(s => s.charAt(0).toUpperCase() + s.slice(1)).join(' '); |
@@ -10,7 +10,7 @@ function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; } | ||
import getSocketHost from '@uppy/utils/lib/getSocketHost'; | ||
import AuthError from "./AuthError.js"; | ||
import AuthError from './AuthError.js'; | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore We don't want TS to generate types for the package.json | ||
const packageJson = { | ||
"version": "4.3.0" | ||
"version": "4.4.0" | ||
}; | ||
@@ -17,0 +17,0 @@ // Remove the trailing slash so we can always safely append /xyz. |
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'; | ||
import type { Uppy } from '@uppy/core'; | ||
import type { CompanionClientSearchProvider } from '@uppy/utils/lib/CompanionClientProvider'; | ||
import RequestClient, { type Opts } from './RequestClient.ts'; | ||
import RequestClient, { type Opts } from './RequestClient.js'; | ||
export default class SearchProvider<M extends Meta, B extends Body> extends RequestClient<M, B> implements CompanionClientSearchProvider { | ||
@@ -6,0 +6,0 @@ provider: string; |
@@ -1,2 +0,2 @@ | ||
import RequestClient from "./RequestClient.js"; | ||
import RequestClient from './RequestClient.js'; | ||
const getName = id => { | ||
@@ -3,0 +3,0 @@ return id.split('-').map(s => s.charAt(0).toUpperCase() + s.slice(1)).join(' '); |
{ | ||
"name": "@uppy/companion-client", | ||
"description": "Client library for communication with Companion. Intended for use in Uppy plugins.", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^6.0.6", | ||
"@uppy/utils": "^6.1.0", | ||
"namespace-emitter": "^2.0.1", | ||
@@ -33,4 +33,4 @@ "p-retry": "^6.1.0" | ||
"peerDependencies": { | ||
"@uppy/core": "^4.3.1" | ||
"@uppy/core": "^4.4.0" | ||
} | ||
} |
import { describe, it, expect } from 'vitest' | ||
import getAllowedHosts, { isOriginAllowed } from './getAllowedHosts.ts' | ||
import getAllowedHosts, { isOriginAllowed } from './getAllowedHosts.js' | ||
@@ -4,0 +4,0 @@ describe('getAllowedHosts', () => { |
@@ -5,10 +5,10 @@ /** | ||
export { default as RequestClient } from './RequestClient.ts' | ||
export { default as Provider } from './Provider.ts' | ||
export { default as SearchProvider } from './SearchProvider.ts' | ||
export { default as RequestClient } from './RequestClient.js' | ||
export { default as Provider } from './Provider.js' | ||
export { default as SearchProvider } from './SearchProvider.js' | ||
export { default as getAllowedHosts } from './getAllowedHosts.ts' | ||
export { default as getAllowedHosts } from './getAllowedHosts.js' | ||
export * as tokenStorage from './tokenStorage.ts' | ||
export * as tokenStorage from './tokenStorage.js' | ||
export type { CompanionPluginOptions } from './CompanionPluginOptions.ts' | ||
export type { CompanionPluginOptions } from './CompanionPluginOptions.js' |
@@ -9,5 +9,5 @@ import type { Uppy } from '@uppy/core' | ||
import type { UnknownProviderPlugin } from '@uppy/core/lib/Uppy.js' | ||
import RequestClient, { authErrorStatusCode } from './RequestClient.ts' | ||
import type { CompanionPluginOptions } from './index.ts' | ||
import { isOriginAllowed } from './getAllowedHosts.ts' | ||
import RequestClient, { authErrorStatusCode } from './RequestClient.js' | ||
import type { CompanionPluginOptions } from './index.js' | ||
import { isOriginAllowed } from './getAllowedHosts.js' | ||
@@ -14,0 +14,0 @@ export interface Opts extends PluginOpts, CompanionPluginOptions { |
import { describe, it, expect } from 'vitest' | ||
import RequestClient from './RequestClient.ts' | ||
import RequestClient from './RequestClient.js' | ||
@@ -4,0 +4,0 @@ describe('RequestClient', () => { |
@@ -12,3 +12,3 @@ import UserFacingApiError from '@uppy/utils/lib/UserFacingApiError' | ||
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider' | ||
import AuthError from './AuthError.ts' | ||
import AuthError from './AuthError.js' | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
@@ -15,0 +15,0 @@ // @ts-ignore We don't want TS to generate types for the package.json |
import type { Body, Meta } from '@uppy/utils/lib/UppyFile' | ||
import type { Uppy } from '@uppy/core' | ||
import type { CompanionClientSearchProvider } from '@uppy/utils/lib/CompanionClientProvider' | ||
import RequestClient, { type Opts } from './RequestClient.ts' | ||
import RequestClient, { type Opts } from './RequestClient.js' | ||
@@ -6,0 +6,0 @@ const getName = (id: string): string => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
163646
Updated@uppy/utils@^6.1.0