pigallery2-extension-kit 2.0.3-edge → 2.0.3-edge2
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.
|
@@ -6,12 +6,8 @@ export declare class ExtensionEvent<I extends unknown[], O> implements IExtensio
|
|
|
6
6
|
after(handler: IExtensionAfterEventHandler<O>): void;
|
|
7
7
|
offAfter(handler: IExtensionAfterEventHandler<O>): void;
|
|
8
8
|
offBefore(handler: IExtensionBeforeEventHandler<I, O>): void;
|
|
9
|
-
triggerBefore(input: {
|
|
10
|
-
inputs: I;
|
|
11
|
-
}, event: {
|
|
9
|
+
triggerBefore(input: I, event: {
|
|
12
10
|
stopPropagation: boolean;
|
|
13
|
-
}): Promise<
|
|
14
|
-
inputs: I;
|
|
15
|
-
} | O>;
|
|
11
|
+
}): Promise<I | O>;
|
|
16
12
|
triggerAfter(output: O): Promise<O>;
|
|
17
13
|
}
|
|
@@ -16,13 +16,9 @@ import { SearchQueryDTO } from '../../../common/entities/SearchQueryDTO';
|
|
|
16
16
|
import { CoverPhotoDTOWithID } from '../database/CoverManager';
|
|
17
17
|
import { ParentDirectoryDTO } from '../../../common/entities/DirectoryDTO';
|
|
18
18
|
import { DirectoryScanSettings } from '../fileaccess/DiskManager';
|
|
19
|
-
export declare type IExtensionBeforeEventHandler<I extends unknown[], O> = (input: {
|
|
20
|
-
inputs: I;
|
|
21
|
-
}, event: {
|
|
19
|
+
export declare type IExtensionBeforeEventHandler<I extends unknown[], O> = (input: I, event: {
|
|
22
20
|
stopPropagation: boolean;
|
|
23
|
-
}) => Promise<
|
|
24
|
-
inputs: I;
|
|
25
|
-
} | O>;
|
|
21
|
+
}) => Promise<I | O>;
|
|
26
22
|
export declare type IExtensionAfterEventHandler<O> = (output: O) => Promise<O>;
|
|
27
23
|
export interface IExtensionEvent<I extends unknown[], O> {
|
|
28
24
|
before: (handler: IExtensionBeforeEventHandler<I, O>) => void;
|
package/package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pigallery2-extension-kit",
|
|
3
|
-
"version": "2.0.3-
|
|
3
|
+
"version": "2.0.3-edge2",
|
|
4
4
|
"description": "Interfaces for developing extensions for pigallery2",
|
|
5
5
|
"author": "Patrik J. Braun",
|
|
6
6
|
"homepage": "https://github.com/bpatrik/pigallery2",
|
|
7
|
-
"license": "MIT"
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"typeconfig": "2.1.2",
|
|
10
|
+
"typeorm": "0.3.12",
|
|
11
|
+
"@types/archiver": "5.3.1",
|
|
12
|
+
"@types/bcrypt": "5.0.0",
|
|
13
|
+
"@types/bcryptjs": "2.4.2",
|
|
14
|
+
"@types/chai": "4.3.4",
|
|
15
|
+
"@types/cookie-parser": "1.4.3",
|
|
16
|
+
"@types/cookie-session": "2.0.44",
|
|
17
|
+
"@types/csurf": "1.11.2",
|
|
18
|
+
"@types/ejs": "3.1.2",
|
|
19
|
+
"@types/express": "4.17.17",
|
|
20
|
+
"@types/express-jwt": "6.0.4",
|
|
21
|
+
"@types/fluent-ffmpeg": "2.1.21",
|
|
22
|
+
"@types/gulp": "4.0.10",
|
|
23
|
+
"@types/gulp-zip": "4.0.2",
|
|
24
|
+
"@types/jasmine": "4.3.1",
|
|
25
|
+
"@types/jsonwebtoken": "9.0.1",
|
|
26
|
+
"@types/leaflet": "1.9.1",
|
|
27
|
+
"@types/leaflet.markercluster": "1.5.1",
|
|
28
|
+
"@types/node": "18.15.0",
|
|
29
|
+
"@types/node-geocoder": "4.2.0",
|
|
30
|
+
"@types/nodemailer": "6.4.9",
|
|
31
|
+
"@types/sharp": "0.31.1",
|
|
32
|
+
"@types/xml2js": "0.4.11"
|
|
33
|
+
}
|
|
8
34
|
}
|