@xyo-network/file-browser-plugin 3.4.1 → 3.4.2

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.
@@ -1,4 +1,3 @@
1
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
2
1
  import { Payload, Schema } from '@xyo-network/payload-model';
3
2
  import { Promisable } from '@xylabs/promise';
4
3
  import { AbstractWitness } from '@xyo-network/abstract-witness';
@@ -6,6 +5,10 @@ import { AnyConfigSchema } from '@xyo-network/module-model';
6
5
  import { WitnessConfig, WitnessParams, WitnessModule } from '@xyo-network/witness-model';
7
6
  import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
8
7
 
8
+ type BrowserFileWitnessAdditionalParams = {
9
+ file?: File;
10
+ };
11
+
9
12
  type FileSchema = 'network.xyo.file';
10
13
  declare const FileSchema: FileSchema;
11
14
 
@@ -18,21 +21,7 @@ type FilePayload = Payload<{
18
21
  modified?: number;
19
22
  uri: string;
20
23
  }, FileSchema>;
21
- declare const isFilePayload: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
22
- schema: "network.xyo.file";
23
- created?: number | undefined;
24
- hash: BinaryDataHash;
25
- length: number;
26
- meta?: {
27
- [x: string]: string | number;
28
- } | undefined;
29
- modified?: number | undefined;
30
- uri: string;
31
- }>;
32
-
33
- type BrowserFileWitnessAdditionalParams = {
34
- file?: File;
35
- };
24
+ declare const isFilePayload: (x?: unknown | null) => x is FilePayload;
36
25
 
37
26
  type FileWitnessConfigSchema = 'network.xyo.file.witness.config';
38
27
  declare const FileWitnessConfigSchema: FileWitnessConfigSchema;
@@ -52,17 +41,7 @@ type BrowserFileWitnessParams = FileWitnessParams & BrowserFileWitnessAdditional
52
41
  declare class BrowserFileWitness extends FileWitness<BrowserFileWitnessParams> {
53
42
  static readonly configSchemas: Schema[];
54
43
  static readonly defaultConfigSchema: Schema;
55
- protected observeHandler(): Promise<_store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
56
- schema: "network.xyo.file";
57
- created?: number | undefined;
58
- hash: BinaryDataHash;
59
- length: number;
60
- meta?: {
61
- [x: string]: string | number;
62
- } | undefined;
63
- modified?: number | undefined;
64
- uri: string;
65
- }>[]>;
44
+ protected observeHandler(): Promise<FilePayload[]>;
66
45
  private readBinaryFile;
67
46
  private witnessBrowserFile;
68
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/file-browser-plugin",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -32,21 +32,21 @@
32
32
  "@scure/base": "^1.2.4",
33
33
  "@xylabs/assert": "^4.5.1",
34
34
  "@xylabs/promise": "^4.5.1",
35
- "@xyo-network/abstract-witness": "^3.8.5",
36
- "@xyo-network/module-model": "^3.8.5",
37
- "@xyo-network/payload-builder": "^3.8.5",
38
- "@xyo-network/payload-model": "^3.8.5",
39
- "@xyo-network/payloadset-plugin": "^3.8.5",
40
- "@xyo-network/witness-model": "^3.8.5",
35
+ "@xyo-network/abstract-witness": "^3.9.16",
36
+ "@xyo-network/module-model": "^3.9.16",
37
+ "@xyo-network/payload-builder": "^3.9.16",
38
+ "@xyo-network/payload-model": "^3.9.16",
39
+ "@xyo-network/payloadset-plugin": "^3.9.16",
40
+ "@xyo-network/witness-model": "^3.9.16",
41
41
  "sha.js": "^2.4.11"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/sha.js": "^2.4.4",
45
- "@xylabs/ts-scripts-yarn3": "^5.0.22",
46
- "@xylabs/tsconfig": "^5.0.22",
45
+ "@xylabs/ts-scripts-yarn3": "^5.0.24",
46
+ "@xylabs/tsconfig": "^5.0.24",
47
47
  "@xylabs/vitest-extended": "^4.5.1",
48
48
  "typescript": "^5.7.3",
49
- "vitest": "^3.0.5"
49
+ "vitest": "^3.0.6"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"