ramm 0.0.37 → 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.
Files changed (2) hide show
  1. package/dist/ramm.js +2 -2
  2. package/package.json +1 -1
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 execCommand("nft list table inet ramm");
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.37",
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"