@parcel/packager-wasm 2.12.1-dev.3185 → 2.12.1-dev.3195

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.
@@ -79,8 +79,8 @@ function WriteSection(name, value, valLenOverride) {
79
79
  const nameBuf = str2ab(name);
80
80
  const valBuf = str2ab(value);
81
81
  const nameLen = encode_uint(nameBuf.length);
82
- const valLen = encode_uint(valLenOverride !== null && valLenOverride !== void 0 ? valLenOverride : valBuf.length);
83
- const sectionLenDeclared = nameLen.length + nameBuf.length + valLen.length + (valLenOverride !== null && valLenOverride !== void 0 ? valLenOverride : valBuf.length);
82
+ const valLen = encode_uint(valLenOverride ?? valBuf.length);
83
+ const sectionLenDeclared = nameLen.length + nameBuf.length + valLen.length + (valLenOverride ?? valBuf.length);
84
84
  const sectionLenActual = nameLen.length + nameBuf.length + valLen.length + valBuf.length;
85
85
  const headerLen = encode_uint(sectionLenDeclared);
86
86
  let bytes = new Uint8Array(sectionLenActual + headerLen.length + 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/packager-wasm",
3
- "version": "2.12.1-dev.3185+298c035e0",
3
+ "version": "2.12.1-dev.3195+7afdafedd",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,11 +16,11 @@
16
16
  "main": "lib/WasmPackager.js",
17
17
  "source": "src/WasmPackager.js",
18
18
  "engines": {
19
- "node": ">=12.0.0",
20
- "parcel": "^2.0.0-dev.1560+298c035e0"
19
+ "node": ">=16.0.0",
20
+ "parcel": "^2.0.0-dev.1570+7afdafedd"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/plugin": "2.0.0-dev.1562+298c035e0"
23
+ "@parcel/plugin": "2.0.0-dev.1572+7afdafedd"
24
24
  },
25
- "gitHead": "298c035e0ffb82d7c5579ce233cc35dce2fe1061"
25
+ "gitHead": "7afdafedd7f01d82b9868ec004b3966a88006300"
26
26
  }