ramm 0.0.36 → 0.0.38
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/ramm.js +2 -2
- package/package.json +3 -6
package/dist/ramm.js
CHANGED
|
@@ -178,7 +178,7 @@ var createSystemdService = async (context, serviceName, pathToServiceFile) => {
|
|
|
178
178
|
// src/nft.ts
|
|
179
179
|
var createNftTable = ({
|
|
180
180
|
allowedIpV4,
|
|
181
|
-
allowedPorts
|
|
181
|
+
allowedPorts = []
|
|
182
182
|
}) => {
|
|
183
183
|
const nftTable = `table inet ramm {
|
|
184
184
|
set allowed_ipv4 {
|
|
@@ -217,7 +217,7 @@ var setupNftable = async ({
|
|
|
217
217
|
allowedIpV4,
|
|
218
218
|
allowedPorts
|
|
219
219
|
}) => {
|
|
220
|
-
const listTable = await
|
|
220
|
+
const listTable = await execCommandMayError("nft list table inet ramm");
|
|
221
221
|
if (listTable.spawnResult.exitCode === 0) {
|
|
222
222
|
await execCommand("nft delete table inet ramm");
|
|
223
223
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ramm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.38",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "bun build ./src/ramm.ts --target bun --outdir ./dist && cp ./src/bun.sh ./dist/bun.sh",
|
|
7
7
|
"types": "tsc --project tsconfig.types.json"
|
|
@@ -16,10 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/bun": "latest",
|
|
19
|
-
"typescript": "^5.8.2"
|
|
20
|
-
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"dapes": "^0.0.26",
|
|
23
|
-
"desy": "^0.0.14"
|
|
19
|
+
"typescript": "^5.8.2",
|
|
20
|
+
"dapes": "^0.0.26"
|
|
24
21
|
}
|
|
25
22
|
}
|