@uppy/provider-views
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -14,3 +14,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
const packageJson = { | ||
"version": "3.6.0" | ||
"version": "3.7.0" | ||
}; | ||
@@ -17,0 +17,0 @@ function formatBreadcrumbs(breadcrumbs) { |
@@ -10,3 +10,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
const packageJson = { | ||
"version": "3.6.0" | ||
"version": "3.7.0" | ||
}; | ||
@@ -13,0 +13,0 @@ /** |
@@ -162,3 +162,2 @@ import getFileType from '@uppy/utils/lib/getFileType'; | ||
}, | ||
providerOptions: this.provider.opts, | ||
providerName: this.provider.name, | ||
@@ -168,2 +167,11 @@ provider: this.provider.provider | ||
}; | ||
// all properties on this object get saved into the Uppy store. | ||
// Some users might serialize their store (for example using JSON.stringify), | ||
// or when using Golden Retriever it will serialize state into e.g. localStorage. | ||
// However RequestClient is not serializable so we need to prevent it from being serialized. | ||
Object.defineProperty(tagFile.remote, 'requestClient', { | ||
value: this.provider, | ||
enumerable: false | ||
}); | ||
const fileType = getFileType(tagFile); | ||
@@ -170,0 +178,0 @@ |
{ | ||
"name": "@uppy/provider-views", | ||
"description": "View library for Uppy remote provider plugins.", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^5.5.2", | ||
"@uppy/utils": "^5.6.0", | ||
"classnames": "^2.2.6", | ||
@@ -31,4 +31,4 @@ "nanoid": "^4.0.0", | ||
"peerDependencies": { | ||
"@uppy/core": "^3.6.0" | ||
"@uppy/core": "^3.7.0" | ||
} | ||
} |
@@ -79,3 +79,2 @@ import getFileType from '@uppy/utils/lib/getFileType' | ||
}, | ||
providerOptions: this.provider.opts, | ||
providerName: this.provider.name, | ||
@@ -86,2 +85,8 @@ provider: this.provider.provider, | ||
// all properties on this object get saved into the Uppy store. | ||
// Some users might serialize their store (for example using JSON.stringify), | ||
// or when using Golden Retriever it will serialize state into e.g. localStorage. | ||
// However RequestClient is not serializable so we need to prevent it from being serialized. | ||
Object.defineProperty(tagFile.remote, 'requestClient', { value: this.provider, enumerable: false }) | ||
const fileType = getFileType(tagFile) | ||
@@ -88,0 +93,0 @@ |
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
266829
3795
Updated@uppy/utils@^5.6.0