@datapos/datapos-tool-file-operators 0.0.13 → 0.0.14

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.
@@ -8299,16 +8299,16 @@ async function $e(i) {
8299
8299
  };
8300
8300
  }
8301
8301
  const x = Qe[e.ext];
8302
- return x == null ? {
8302
+ return x != null ? {
8303
8303
  bytes: i,
8304
- dataFormatId: void 0,
8304
+ dataFormatId: x.isSupported ? e.ext : void 0,
8305
8305
  encodingId: void 0,
8306
8306
  encodingConfidenceLevel: void 0,
8307
8307
  fileTypeConfig: e,
8308
8308
  text: void 0
8309
8309
  } : {
8310
8310
  bytes: i,
8311
- dataFormatId: x.isSupported ? e.ext : void 0,
8311
+ dataFormatId: void 0,
8312
8312
  encodingId: void 0,
8313
8313
  encodingConfidenceLevel: void 0,
8314
8314
  fileTypeConfig: e,
@@ -1,5 +1,5 @@
1
1
  import { FileTypeResult } from 'file-type';
2
- import { DataFormatId } from '@datapos/datapos-shared';
2
+ import { DataFormatId } from '@datapos/datapos-shared/component/dataView';
3
3
  interface PreviewConfig {
4
4
  bytes: Uint8Array;
5
5
  dataFormatId: DataFormatId | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-tool-file-operators",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -65,7 +65,7 @@
65
65
  "update": "node -e \"import('@datapos/datapos-development').then(m => m.updateDataPosDependencies(['development']))\""
66
66
  },
67
67
  "dependencies": {
68
- "@datapos/datapos-shared": "^0.3.436",
68
+ "@datapos/datapos-shared": "^0.3.452",
69
69
  "chardet": "^2.1.1",
70
70
  "file-type": "^21.2.0"
71
71
  }