idmission-web-sdk 2.2.24 → 2.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk2.cjs.development.js +4 -4
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +3 -3
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +611 -6449
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -2
package/dist/sdk2.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import platform from 'platform';
|
|
|
5
5
|
import styled, { keyframes, useTheme, ThemeProvider as ThemeProvider$1 } from 'styled-components';
|
|
6
6
|
import { useTranslation, initReactI18next } from 'react-i18next';
|
|
7
7
|
import { Upload } from 'tus-js-client';
|
|
8
|
-
import
|
|
8
|
+
import SparkMD5 from 'spark-md5';
|
|
9
9
|
import useResizeObserver from 'use-resize-observer';
|
|
10
10
|
import { ImageSegmenter, FilesetResolver, ImageClassifier, FaceDetector, ObjectDetector } from '@mediapipe/tasks-vision';
|
|
11
11
|
import { useDebouncedCallback, useThrottledCallback } from 'use-debounce';
|
|
@@ -201,7 +201,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
201
201
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
var webSdkVersion = '2.2.
|
|
204
|
+
var webSdkVersion = '2.2.25';
|
|
205
205
|
|
|
206
206
|
function getPlatform() {
|
|
207
207
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1881,7 +1881,7 @@ function calculateMd5(blob) {
|
|
|
1881
1881
|
reader.readAsArrayBuffer(blob);
|
|
1882
1882
|
reader.onloadend = function () {
|
|
1883
1883
|
if (!reader.result) return reject(new Error('Failed to read file'));
|
|
1884
|
-
resolve(
|
|
1884
|
+
resolve(SparkMD5.ArrayBuffer.hash(reader.result));
|
|
1885
1885
|
};
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|