@uploadcare/blocks
Advanced tools
Comparing version 0.22.10 to 0.22.11
@@ -217,2 +217,4 @@ import { UploaderBlock } from '../../abstract/UploaderBlock.js'; | ||
const allowedFileTypes = mergeFileTypes([...(imagesOnly ? IMAGE_ACCEPT_LIST : []), accept]); | ||
if (!allowedFileTypes.length) return; | ||
const mimeType = entry.getValue('mimeType'); | ||
@@ -225,2 +227,3 @@ const fileName = entry.getValue('fileName'); | ||
const extOk = needExtCheck ? matchExtension(fileName, allowedFileTypes) : true; | ||
if (!mimeOk && !extOk) { | ||
@@ -227,0 +230,0 @@ // Assume file type is not allowed if both mime and ext checks fail |
/** Do not edit this file manually. It's generated during build process. */ | ||
export const PACKAGE_NAME: "blocks"; | ||
export const PACKAGE_VERSION: "0.22.10"; | ||
export const PACKAGE_VERSION: "0.22.11"; | ||
//# sourceMappingURL=env.d.ts.map |
/** Do not edit this file manually. It's generated during build process. */ | ||
export const PACKAGE_NAME = 'blocks'; | ||
export const PACKAGE_VERSION = '0.22.10'; | ||
export const PACKAGE_VERSION = '0.22.11'; |
@@ -529,3 +529,3 @@ export const ActivityBlock: { | ||
export const PACKAGE_NAME: "blocks"; | ||
export const PACKAGE_VERSION: "0.22.10"; | ||
export const PACKAGE_VERSION: "0.22.11"; | ||
export const PresenceToggle: { | ||
@@ -532,0 +532,0 @@ new (): {}; |
@@ -794,3 +794,3 @@ export const ActivityBlock = class { | ||
export const PACKAGE_NAME = `blocks`; | ||
export const PACKAGE_VERSION = `0.22.10`; | ||
export const PACKAGE_VERSION = `0.22.11`; | ||
export const PresenceToggle = class { | ||
@@ -797,0 +797,0 @@ static template = ` <slot></slot> `; |
{ | ||
"name": "@uploadcare/blocks", | ||
"version": "0.22.10", | ||
"version": "0.22.11", | ||
"description": "Building blocks for Uploadcare products integration", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1856848
20015