pmcf 4.18.7 → 4.18.9

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/bin/pmcf-info CHANGED
@@ -3,12 +3,8 @@ import { prepare } from "../src/cli.mjs";
3
3
 
4
4
  const { root, args, options } = await prepare({});
5
5
 
6
- for (const name of args) {
7
- const [path, expression] = name.split("?");
8
-
9
- const object = await root.load(path);
10
-
11
- let result = object.expression(expression);
6
+ for (const expression of args) {
7
+ let result = root.expression(expression);
12
8
 
13
9
  if (result instanceof Iterator) {
14
10
  result = Array.from(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.18.7",
3
+ "version": "4.18.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -2,7 +2,7 @@ import {
2
2
  default_attribute_writable,
3
3
  string_collection_attribute_writable,
4
4
  string_attribute_writable,
5
- number_attribute_writable,
5
+ integer_attribute_writable,
6
6
  hostname_attribute,
7
7
  boolean_attribute_writable
8
8
  } from "pacc";
@@ -32,8 +32,8 @@ export const networkAttributes = {
32
32
  ssid: string_attribute_writable,
33
33
  psk: string_attribute_writable,
34
34
  secretName: string_attribute_writable,
35
- metric: { ...number_attribute_writable /*default: 1004*/ },
36
- mtu: { ...number_attribute_writable, default: 1500 },
35
+ metric: { ...integer_attribute_writable /*default: 1004*/ },
36
+ mtu: { ...integer_attribute_writable, default: 1500 },
37
37
  gateway: { ...default_attribute_writable, type: "host" },
38
38
  multicastDNS: boolean_attribute_writable
39
39
  };