@tesser-sh/gateway 0.78.0 → 0.79.0
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/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -235,6 +235,8 @@ ${rest}
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
// ../protocol/src/table.ts
|
|
238
|
+
var MESH_CIDR = { base: "100.64.0.0", prefix: 10 };
|
|
239
|
+
var MESH_SIZE = 1 << 32 - MESH_CIDR.prefix;
|
|
238
240
|
function boxIdFromLabel(label) {
|
|
239
241
|
let m = /^box(?:[-_]([0-9a-z]+)|([0-9a-f]+))$/i.exec(label);
|
|
240
242
|
return m === null ? null : `box_${(m[1] ?? m[2]).toLowerCase()}`;
|