@xyo-network/image-thumbnail-plugin 3.6.1 → 4.0.0
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/node/index.mjs
CHANGED
|
@@ -9,8 +9,8 @@ import { ImageThumbnailSchema } from "@xyo-network/image-thumbnail-payload-plugi
|
|
|
9
9
|
var ImageThumbnailWitnessConfigSchema = `${ImageThumbnailSchema}.witness.config`;
|
|
10
10
|
|
|
11
11
|
// src/Witness/Witness.ts
|
|
12
|
-
import { Buffer as Buffer2 } from "
|
|
13
|
-
import { promises as dnsPromises } from "
|
|
12
|
+
import { Buffer as Buffer2 } from "buffer";
|
|
13
|
+
import { promises as dnsPromises } from "dns";
|
|
14
14
|
import { exists } from "@xylabs/exists";
|
|
15
15
|
import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
16
16
|
import { ObjectHasher } from "@xyo-network/hash";
|
|
@@ -26,9 +26,9 @@ import shajs from "sha.js";
|
|
|
26
26
|
import Url from "url-parse";
|
|
27
27
|
|
|
28
28
|
// src/Witness/ffmpeg/fluent/getVideoFrameAsImageFluent.ts
|
|
29
|
-
import { unlink, writeFile } from "
|
|
30
|
-
import { tmpdir } from "
|
|
31
|
-
import { Writable } from "
|
|
29
|
+
import { unlink, writeFile } from "fs/promises";
|
|
30
|
+
import { tmpdir } from "os";
|
|
31
|
+
import { Writable } from "stream";
|
|
32
32
|
import ffmpeg from "fluent-ffmpeg";
|
|
33
33
|
import { v4 as uuid } from "uuid";
|
|
34
34
|
var FfmpegOutputStream = class extends Writable {
|
package/dist/types/Plugin.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { ImageThumbnailDiviner } from '@xyo-network/diviner-image-thumbnail';
|
|
2
2
|
import { ImageThumbnailWitness } from './Witness/index.ts';
|
|
3
|
-
export declare const ImageThumbnailPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDualPlugin<ImageThumbnailWitness<import(".
|
|
4
|
-
account?: import(".store/@xyo-network-account-model-npm-3.17.1-d1c40ed920/package").AccountInstance | "random";
|
|
5
|
-
addToResolvers?: boolean;
|
|
6
|
-
additionalSigners?: import(".store/@xyo-network-account-model-npm-3.17.1-d1c40ed920/package").AccountInstance[];
|
|
7
|
-
allowNameResolution?: boolean;
|
|
8
|
-
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Witness/Config.ts").ImageThumbnailWitnessConfig>;
|
|
9
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
10
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
11
|
-
} & import("@xyo-network/module-model").ModuleChildrenParams & {
|
|
12
|
-
loaders?: string[];
|
|
13
|
-
}>, ImageThumbnailDiviner>;
|
|
3
|
+
export declare const ImageThumbnailPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDualPlugin<ImageThumbnailWitness<import("./Witness/Params.ts").ImageThumbnailWitnessParams>, ImageThumbnailDiviner>;
|
|
14
4
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAK5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAK5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,eAAO,MAAM,oBAAoB,8KAa9B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
2
2
|
import type { WitnessParams } from '@xyo-network/witness-model';
|
|
3
3
|
import type { ImageThumbnailWitnessConfig } from './Config.ts';
|
|
4
|
-
export
|
|
4
|
+
export interface ImageThumbnailWitnessParams extends WitnessParams<AnyConfigSchema<ImageThumbnailWitnessConfig>> {
|
|
5
5
|
loaders?: string[];
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/Witness/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE9D,MAAM,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/Witness/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE9D,MAAM,WAAW,2BAA4B,SAAQ,aAAa,CAChE,eAAe,CAAC,2BAA2B,CAAC,CAAC;IAE7C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/image-thumbnail-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
"module": "dist/node/index.mjs",
|
|
32
32
|
"types": "./dist/types/index.d.ts",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@xylabs/assert": "^4.
|
|
35
|
-
"@xylabs/exists": "^4.
|
|
36
|
-
"@xyo-network/abstract-witness": "^
|
|
37
|
-
"@xyo-network/diviner-image-thumbnail": "^
|
|
38
|
-
"@xyo-network/hash": "^
|
|
39
|
-
"@xyo-network/image-thumbnail-payload-plugin": "^
|
|
40
|
-
"@xyo-network/module-model": "^
|
|
41
|
-
"@xyo-network/payload-model": "^
|
|
42
|
-
"@xyo-network/payloadset-plugin": "^
|
|
43
|
-
"@xyo-network/url-payload-plugin": "^
|
|
44
|
-
"@xyo-network/witness-model": "^
|
|
34
|
+
"@xylabs/assert": "^4.12.31",
|
|
35
|
+
"@xylabs/exists": "^4.12.31",
|
|
36
|
+
"@xyo-network/abstract-witness": "^4.0.1",
|
|
37
|
+
"@xyo-network/diviner-image-thumbnail": "^4.0.0",
|
|
38
|
+
"@xyo-network/hash": "^4.0.1",
|
|
39
|
+
"@xyo-network/image-thumbnail-payload-plugin": "^4.0.0",
|
|
40
|
+
"@xyo-network/module-model": "^4.0.1",
|
|
41
|
+
"@xyo-network/payload-model": "^4.0.1",
|
|
42
|
+
"@xyo-network/payloadset-plugin": "^4.0.1",
|
|
43
|
+
"@xyo-network/url-payload-plugin": "^4.0.0",
|
|
44
|
+
"@xyo-network/witness-model": "^4.0.1",
|
|
45
45
|
"async-mutex": "^0.5.0",
|
|
46
|
-
"axios": "^1.
|
|
46
|
+
"axios": "^1.10.0",
|
|
47
47
|
"base64-js": "^1.5.1",
|
|
48
48
|
"file-type": "^21.0.0",
|
|
49
49
|
"fluent-ffmpeg": "^2.1.3",
|
|
50
50
|
"gm": "^1.25.1",
|
|
51
51
|
"hasbin": "^1.2.3",
|
|
52
52
|
"hash-wasm": "^4.12.0",
|
|
53
|
-
"sha.js": "^2.4.
|
|
53
|
+
"sha.js": "^2.4.12",
|
|
54
54
|
"url-parse": "^1.5.10",
|
|
55
55
|
"uuid": "^11.1.0",
|
|
56
56
|
"xml2js": "^0.6.2"
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
"@types/url-parse": "^1.4.11",
|
|
64
64
|
"@types/uuid": "^10.0.0",
|
|
65
65
|
"@types/xml2js": "^0.4.14",
|
|
66
|
-
"@xylabs/delay": "^4.
|
|
67
|
-
"@xylabs/ts-scripts-yarn3": "^6.5.
|
|
68
|
-
"@xylabs/tsconfig": "^6.5.
|
|
69
|
-
"@xylabs/vitest-extended": "^4.
|
|
70
|
-
"@xyo-network/account": "^
|
|
71
|
-
"@xyo-network/archivist-memory": "^
|
|
72
|
-
"@xyo-network/node-memory": "^
|
|
73
|
-
"@xyo-network/payload-builder": "^
|
|
74
|
-
"@xyo-network/sentinel-memory": "^
|
|
75
|
-
"@xyo-network/sentinel-wrapper": "^
|
|
76
|
-
"@xyo-network/witness-timestamp": "^
|
|
77
|
-
"knip": "^5.
|
|
66
|
+
"@xylabs/delay": "^4.12.31",
|
|
67
|
+
"@xylabs/ts-scripts-yarn3": "^6.5.12",
|
|
68
|
+
"@xylabs/tsconfig": "^6.5.12",
|
|
69
|
+
"@xylabs/vitest-extended": "^4.12.31",
|
|
70
|
+
"@xyo-network/account": "^4.0.1",
|
|
71
|
+
"@xyo-network/archivist-memory": "^4.0.1",
|
|
72
|
+
"@xyo-network/node-memory": "^4.0.1",
|
|
73
|
+
"@xyo-network/payload-builder": "^4.0.1",
|
|
74
|
+
"@xyo-network/sentinel-memory": "^4.0.1",
|
|
75
|
+
"@xyo-network/sentinel-wrapper": "^4.0.1",
|
|
76
|
+
"@xyo-network/witness-timestamp": "^4.0.1",
|
|
77
|
+
"knip": "^5.61.3",
|
|
78
78
|
"typescript": "^5.8.3",
|
|
79
|
-
"vitest": "^3.
|
|
79
|
+
"vitest": "^3.2.4"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
package/src/Witness/Params.ts
CHANGED
|
@@ -3,9 +3,8 @@ import type { WitnessParams } from '@xyo-network/witness-model'
|
|
|
3
3
|
|
|
4
4
|
import type { ImageThumbnailWitnessConfig } from './Config.ts'
|
|
5
5
|
|
|
6
|
-
export
|
|
7
|
-
AnyConfigSchema<ImageThumbnailWitnessConfig
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
>
|
|
6
|
+
export interface ImageThumbnailWitnessParams extends WitnessParams<
|
|
7
|
+
AnyConfigSchema<ImageThumbnailWitnessConfig>>
|
|
8
|
+
{
|
|
9
|
+
loaders?: string[]
|
|
10
|
+
}
|