@remnawave/node-plugins 0.0.3 → 0.0.5
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/build/backend/index.d.ts +0 -1
- package/build/backend/index.d.ts.map +1 -1
- package/build/backend/index.js +0 -1
- package/build/backend/models/node-plugins.schema.d.ts +23 -29
- package/build/backend/models/node-plugins.schema.d.ts.map +1 -1
- package/build/backend/models/node-plugins.schema.js +6 -7
- package/build/frontend/index.js +0 -1
- package/build/frontend/models/node-plugins.schema.js +6 -7
- package/package.json +1 -1
- package/build/backend/constants/index.d.ts +0 -2
- package/build/backend/constants/index.d.ts.map +0 -1
- package/build/backend/constants/index.js +0 -17
- package/build/backend/constants/torrent-blocker/index.d.ts +0 -2
- package/build/backend/constants/torrent-blocker/index.d.ts.map +0 -1
- package/build/backend/constants/torrent-blocker/index.js +0 -17
- package/build/backend/constants/torrent-blocker/torrent-blocker.constants.d.ts +0 -8
- package/build/backend/constants/torrent-blocker/torrent-blocker.constants.d.ts.map +0 -1
- package/build/backend/constants/torrent-blocker/torrent-blocker.constants.js +0 -12
- package/build/frontend/constants/index.js +0 -17
- package/build/frontend/constants/torrent-blocker/index.js +0 -17
- package/build/frontend/constants/torrent-blocker/torrent-blocker.constants.js +0 -12
package/build/backend/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
package/build/backend/index.js
CHANGED
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./constants"), exports);
|
|
18
17
|
__exportStar(require("./models"), exports);
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SharedListSchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
|
-
|
|
4
|
+
type: z.ZodEnum<["ipList"]>;
|
|
5
|
+
items: z.ZodArray<z.ZodString, "many">;
|
|
5
6
|
}, "strip", z.ZodTypeAny, {
|
|
6
7
|
name: string;
|
|
7
|
-
|
|
8
|
+
type: "ipList";
|
|
9
|
+
items: string[];
|
|
8
10
|
}, {
|
|
9
11
|
name: string;
|
|
10
|
-
|
|
12
|
+
type: "ipList";
|
|
13
|
+
items: string[];
|
|
11
14
|
}>;
|
|
12
15
|
export declare const TorrentBlockerPluginSchema: z.ZodObject<{
|
|
13
16
|
enabled: z.ZodBoolean;
|
|
14
|
-
mode: z.ZodNativeEnum<{
|
|
15
|
-
readonly BLOCK: "BLOCK";
|
|
16
|
-
readonly NOTIFY: "NOTIFY";
|
|
17
|
-
}>;
|
|
18
17
|
blockDuration: z.ZodNumber;
|
|
19
18
|
ignoreLists: z.ZodObject<{
|
|
20
19
|
ip: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">>>;
|
|
@@ -28,7 +27,6 @@ export declare const TorrentBlockerPluginSchema: z.ZodObject<{
|
|
|
28
27
|
}>;
|
|
29
28
|
}, "strip", z.ZodTypeAny, {
|
|
30
29
|
enabled: boolean;
|
|
31
|
-
mode: "BLOCK" | "NOTIFY";
|
|
32
30
|
blockDuration: number;
|
|
33
31
|
ignoreLists: {
|
|
34
32
|
ip: string[];
|
|
@@ -36,7 +34,6 @@ export declare const TorrentBlockerPluginSchema: z.ZodObject<{
|
|
|
36
34
|
};
|
|
37
35
|
}, {
|
|
38
36
|
enabled: boolean;
|
|
39
|
-
mode: "BLOCK" | "NOTIFY";
|
|
40
37
|
blockDuration: number;
|
|
41
38
|
ignoreLists: {
|
|
42
39
|
ip?: string[] | undefined;
|
|
@@ -63,23 +60,22 @@ export declare const ConnectionDropPluginSchema: z.ZodObject<{
|
|
|
63
60
|
enabled: boolean;
|
|
64
61
|
whitelistIps: string[];
|
|
65
62
|
}>;
|
|
66
|
-
export declare const
|
|
67
|
-
sharedLists: z.ZodArray<z.ZodObject<{
|
|
63
|
+
export declare const NodePluginSchema: z.ZodObject<{
|
|
64
|
+
sharedLists: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
65
|
name: z.ZodString;
|
|
69
|
-
|
|
66
|
+
type: z.ZodEnum<["ipList"]>;
|
|
67
|
+
items: z.ZodArray<z.ZodString, "many">;
|
|
70
68
|
}, "strip", z.ZodTypeAny, {
|
|
71
69
|
name: string;
|
|
72
|
-
|
|
70
|
+
type: "ipList";
|
|
71
|
+
items: string[];
|
|
73
72
|
}, {
|
|
74
73
|
name: string;
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
type: "ipList";
|
|
75
|
+
items: string[];
|
|
76
|
+
}>, "many">>>;
|
|
77
77
|
torrentBlocker: z.ZodOptional<z.ZodObject<{
|
|
78
78
|
enabled: z.ZodBoolean;
|
|
79
|
-
mode: z.ZodNativeEnum<{
|
|
80
|
-
readonly BLOCK: "BLOCK";
|
|
81
|
-
readonly NOTIFY: "NOTIFY";
|
|
82
|
-
}>;
|
|
83
79
|
blockDuration: z.ZodNumber;
|
|
84
80
|
ignoreLists: z.ZodObject<{
|
|
85
81
|
ip: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">>>;
|
|
@@ -93,7 +89,6 @@ export declare const NodePluginsSchema: z.ZodObject<{
|
|
|
93
89
|
}>;
|
|
94
90
|
}, "strip", z.ZodTypeAny, {
|
|
95
91
|
enabled: boolean;
|
|
96
|
-
mode: "BLOCK" | "NOTIFY";
|
|
97
92
|
blockDuration: number;
|
|
98
93
|
ignoreLists: {
|
|
99
94
|
ip: string[];
|
|
@@ -101,7 +96,6 @@ export declare const NodePluginsSchema: z.ZodObject<{
|
|
|
101
96
|
};
|
|
102
97
|
}, {
|
|
103
98
|
enabled: boolean;
|
|
104
|
-
mode: "BLOCK" | "NOTIFY";
|
|
105
99
|
blockDuration: number;
|
|
106
100
|
ignoreLists: {
|
|
107
101
|
ip?: string[] | undefined;
|
|
@@ -131,11 +125,11 @@ export declare const NodePluginsSchema: z.ZodObject<{
|
|
|
131
125
|
}, "strip", z.ZodTypeAny, {
|
|
132
126
|
sharedLists: {
|
|
133
127
|
name: string;
|
|
134
|
-
|
|
128
|
+
type: "ipList";
|
|
129
|
+
items: string[];
|
|
135
130
|
}[];
|
|
136
131
|
torrentBlocker?: {
|
|
137
132
|
enabled: boolean;
|
|
138
|
-
mode: "BLOCK" | "NOTIFY";
|
|
139
133
|
blockDuration: number;
|
|
140
134
|
ignoreLists: {
|
|
141
135
|
ip: string[];
|
|
@@ -151,13 +145,13 @@ export declare const NodePluginsSchema: z.ZodObject<{
|
|
|
151
145
|
whitelistIps: string[];
|
|
152
146
|
} | undefined;
|
|
153
147
|
}, {
|
|
154
|
-
sharedLists
|
|
148
|
+
sharedLists?: {
|
|
155
149
|
name: string;
|
|
156
|
-
|
|
157
|
-
|
|
150
|
+
type: "ipList";
|
|
151
|
+
items: string[];
|
|
152
|
+
}[] | undefined;
|
|
158
153
|
torrentBlocker?: {
|
|
159
154
|
enabled: boolean;
|
|
160
|
-
mode: "BLOCK" | "NOTIFY";
|
|
161
155
|
blockDuration: number;
|
|
162
156
|
ignoreLists: {
|
|
163
157
|
ip?: string[] | undefined;
|
|
@@ -173,5 +167,5 @@ export declare const NodePluginsSchema: z.ZodObject<{
|
|
|
173
167
|
whitelistIps: string[];
|
|
174
168
|
} | undefined;
|
|
175
169
|
}>;
|
|
176
|
-
export type
|
|
170
|
+
export type TNodePlugin = z.infer<typeof NodePluginSchema>;
|
|
177
171
|
//# sourceMappingURL=node-plugins.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-plugins.schema.d.ts","sourceRoot":"","sources":["../../../models/node-plugins.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"node-plugins.schema.d.ts","sourceRoot":"","sources":["../../../models/node-plugins.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NodePluginSchema = exports.ConnectionDropPluginSchema = exports.BlacklistPluginSchema = exports.TorrentBlockerPluginSchema = exports.SharedListSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
|
|
6
|
-
exports.SharedIpListSchema = zod_1.z.object({
|
|
5
|
+
exports.SharedListSchema = zod_1.z.object({
|
|
7
6
|
name: zod_1.z.string().startsWith('ext:'),
|
|
8
|
-
|
|
7
|
+
type: zod_1.z.enum(['ipList']),
|
|
8
|
+
items: zod_1.z.array(zod_1.z.string()),
|
|
9
9
|
});
|
|
10
10
|
exports.TorrentBlockerPluginSchema = zod_1.z.object({
|
|
11
11
|
enabled: zod_1.z.boolean(),
|
|
12
|
-
mode: zod_1.z.nativeEnum(constants_1.TORRENT_BLOCKER_MODES),
|
|
13
12
|
blockDuration: zod_1.z.number().int(),
|
|
14
13
|
ignoreLists: zod_1.z.object({
|
|
15
14
|
ip: zod_1.z
|
|
@@ -27,8 +26,8 @@ exports.ConnectionDropPluginSchema = zod_1.z.object({
|
|
|
27
26
|
enabled: zod_1.z.boolean(),
|
|
28
27
|
whitelistIps: zod_1.z.array(zod_1.z.union([zod_1.z.string().ip(), zod_1.z.string().startsWith('ext:')])),
|
|
29
28
|
});
|
|
30
|
-
exports.
|
|
31
|
-
sharedLists: zod_1.z.array(exports.
|
|
29
|
+
exports.NodePluginSchema = zod_1.z.object({
|
|
30
|
+
sharedLists: zod_1.z.array(exports.SharedListSchema).optional().default([]),
|
|
32
31
|
torrentBlocker: exports.TorrentBlockerPluginSchema.optional(),
|
|
33
32
|
blacklist: exports.BlacklistPluginSchema.optional(),
|
|
34
33
|
connectionDrop: exports.ConnectionDropPluginSchema.optional(),
|
package/build/frontend/index.js
CHANGED
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./constants"), exports);
|
|
18
17
|
__exportStar(require("./models"), exports);
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NodePluginSchema = exports.ConnectionDropPluginSchema = exports.BlacklistPluginSchema = exports.TorrentBlockerPluginSchema = exports.SharedListSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
|
|
6
|
-
exports.SharedIpListSchema = zod_1.z.object({
|
|
5
|
+
exports.SharedListSchema = zod_1.z.object({
|
|
7
6
|
name: zod_1.z.string().startsWith('ext:'),
|
|
8
|
-
|
|
7
|
+
type: zod_1.z.enum(['ipList']),
|
|
8
|
+
items: zod_1.z.array(zod_1.z.string()),
|
|
9
9
|
});
|
|
10
10
|
exports.TorrentBlockerPluginSchema = zod_1.z.object({
|
|
11
11
|
enabled: zod_1.z.boolean(),
|
|
12
|
-
mode: zod_1.z.nativeEnum(constants_1.TORRENT_BLOCKER_MODES),
|
|
13
12
|
blockDuration: zod_1.z.number().int(),
|
|
14
13
|
ignoreLists: zod_1.z.object({
|
|
15
14
|
ip: zod_1.z
|
|
@@ -27,8 +26,8 @@ exports.ConnectionDropPluginSchema = zod_1.z.object({
|
|
|
27
26
|
enabled: zod_1.z.boolean(),
|
|
28
27
|
whitelistIps: zod_1.z.array(zod_1.z.union([zod_1.z.string().ip(), zod_1.z.string().startsWith('ext:')])),
|
|
29
28
|
});
|
|
30
|
-
exports.
|
|
31
|
-
sharedLists: zod_1.z.array(exports.
|
|
29
|
+
exports.NodePluginSchema = zod_1.z.object({
|
|
30
|
+
sharedLists: zod_1.z.array(exports.SharedListSchema).optional().default([]),
|
|
32
31
|
torrentBlocker: exports.TorrentBlockerPluginSchema.optional(),
|
|
33
32
|
blacklist: exports.BlacklistPluginSchema.optional(),
|
|
34
33
|
connectionDrop: exports.ConnectionDropPluginSchema.optional(),
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./torrent-blocker"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/torrent-blocker/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./torrent-blocker.constants"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const TORRENT_BLOCKER_MODES: {
|
|
2
|
-
readonly BLOCK: "BLOCK";
|
|
3
|
-
readonly NOTIFY: "NOTIFY";
|
|
4
|
-
};
|
|
5
|
-
export type TTorrentBlockerMode = (typeof TORRENT_BLOCKER_MODES)[keyof typeof TORRENT_BLOCKER_MODES];
|
|
6
|
-
export declare const TORRENT_BLOCKER_MODES_VALUES: ("BLOCK" | "NOTIFY")[];
|
|
7
|
-
export declare const isTorrentBlockerMode: (value: string) => value is TTorrentBlockerMode;
|
|
8
|
-
//# sourceMappingURL=torrent-blocker.constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"torrent-blocker.constants.d.ts","sourceRoot":"","sources":["../../../../constants/torrent-blocker/torrent-blocker.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC3B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,4BAA4B,wBAAuC,CAAC;AAEjF,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,mBAE7D,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isTorrentBlockerMode = exports.TORRENT_BLOCKER_MODES_VALUES = exports.TORRENT_BLOCKER_MODES = void 0;
|
|
4
|
-
exports.TORRENT_BLOCKER_MODES = {
|
|
5
|
-
BLOCK: 'BLOCK',
|
|
6
|
-
NOTIFY: 'NOTIFY',
|
|
7
|
-
};
|
|
8
|
-
exports.TORRENT_BLOCKER_MODES_VALUES = Object.values(exports.TORRENT_BLOCKER_MODES);
|
|
9
|
-
const isTorrentBlockerMode = (value) => {
|
|
10
|
-
return exports.TORRENT_BLOCKER_MODES_VALUES.includes(value);
|
|
11
|
-
};
|
|
12
|
-
exports.isTorrentBlockerMode = isTorrentBlockerMode;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./torrent-blocker"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./torrent-blocker.constants"), exports);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isTorrentBlockerMode = exports.TORRENT_BLOCKER_MODES_VALUES = exports.TORRENT_BLOCKER_MODES = void 0;
|
|
4
|
-
exports.TORRENT_BLOCKER_MODES = {
|
|
5
|
-
BLOCK: 'BLOCK',
|
|
6
|
-
NOTIFY: 'NOTIFY',
|
|
7
|
-
};
|
|
8
|
-
exports.TORRENT_BLOCKER_MODES_VALUES = Object.values(exports.TORRENT_BLOCKER_MODES);
|
|
9
|
-
const isTorrentBlockerMode = (value) => {
|
|
10
|
-
return exports.TORRENT_BLOCKER_MODES_VALUES.includes(value);
|
|
11
|
-
};
|
|
12
|
-
exports.isTorrentBlockerMode = isTorrentBlockerMode;
|