@contember/react-client
Advanced tools
Comparing version 1.3.0-alpha.10 to 1.3.0-alpha.11
@@ -122,4 +122,3 @@ import { FileUploadError } from "@contember/client"; | ||
} | ||
const roundedProgress = Math.floor(progress); | ||
if (roundedProgress === previousFileState.progress) { | ||
if (previousFileState.progress && Math.abs(progress - previousFileState.progress) < 0.01) { | ||
continue; | ||
@@ -134,3 +133,3 @@ } | ||
metadata: previousFileState.metadata, | ||
progress: roundedProgress | ||
progress | ||
}); | ||
@@ -137,0 +136,0 @@ } |
@@ -122,4 +122,3 @@ import { FileUploadError } from "@contember/client"; | ||
} | ||
const roundedProgress = Math.floor(progress); | ||
if (roundedProgress === previousFileState.progress) { | ||
if (previousFileState.progress && Math.abs(progress - previousFileState.progress) < 0.01) { | ||
continue; | ||
@@ -134,3 +133,3 @@ } | ||
metadata: previousFileState.metadata, | ||
progress: roundedProgress | ||
progress | ||
}); | ||
@@ -137,0 +136,0 @@ } |
{ | ||
"name": "@contember/react-client", | ||
"license": "Apache-2.0", | ||
"version": "1.3.0-alpha.10", | ||
"version": "1.3.0-alpha.11", | ||
"type": "module", | ||
@@ -37,5 +37,5 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@contember/client": "1.3.0-alpha.10", | ||
"@contember/react-richtext-renderer": "1.3.0-alpha.10", | ||
"@contember/utilities": "1.3.0-alpha.10" | ||
"@contember/client": "1.3.0-alpha.11", | ||
"@contember/react-richtext-renderer": "1.3.0-alpha.11", | ||
"@contember/utilities": "1.3.0-alpha.11" | ||
}, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
@@ -142,6 +142,7 @@ import { FileUploadError } from '@contember/client' | ||
} | ||
const roundedProgress = Math.floor(progress) // throttling | ||
if (roundedProgress === previousFileState.progress) { | ||
if (previousFileState.progress && Math.abs(progress - previousFileState.progress) < 0.01) { | ||
continue | ||
} | ||
(newState ??= new Map(previousState.state)).set(fileId, { | ||
@@ -154,3 +155,3 @@ readyState: 'uploading', | ||
metadata: previousFileState.metadata, | ||
progress: roundedProgress, | ||
progress: progress, | ||
}) | ||
@@ -157,0 +158,0 @@ } |
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
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
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
374577
3903
+ Added@contember/client@1.3.0-alpha.11(transitive)
+ Added@contember/client-content@1.3.0-alpha.11(transitive)
+ Added@contember/graphql-builder@1.3.0-alpha.11(transitive)
+ Added@contember/graphql-client@1.3.0-alpha.11(transitive)
+ Added@contember/react-richtext-renderer@1.3.0-alpha.11(transitive)
+ Added@contember/utilities@1.3.0-alpha.11(transitive)
- Removed@contember/client@1.3.0-alpha.10(transitive)
- Removed@contember/client-content@1.3.0-alpha.10(transitive)
- Removed@contember/graphql-builder@1.3.0-alpha.10(transitive)
- Removed@contember/graphql-client@1.3.0-alpha.10(transitive)
- Removed@contember/react-richtext-renderer@1.3.0-alpha.10(transitive)
- Removed@contember/utilities@1.3.0-alpha.10(transitive)