@bytecodealliance/jco 1.24.0 → 1.24.1

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.
@@ -2632,7 +2632,7 @@ function _lowerImportBackwardsCompat(args) {
2632
2632
 
2633
2633
  if (ctx.useDirectParams) {
2634
2634
  if (ctx.params.length < 2) { throw new Error('expected at least two u32 arguments'); }
2635
- const offset = ctx.params[0];
2635
+ let offset = ctx.params[0];
2636
2636
  if (typeof offset === 'bigint') { offset = Number(offset); }
2637
2637
  if (!Number.isSafeInteger(offset)) { throw new Error('invalid offset'); }
2638
2638
  const len = ctx.params[1];
package/obj/wasm-tools.js CHANGED
@@ -2632,7 +2632,7 @@ function _lowerImportBackwardsCompat(args) {
2632
2632
 
2633
2633
  if (ctx.useDirectParams) {
2634
2634
  if (ctx.params.length < 2) { throw new Error('expected at least two u32 arguments'); }
2635
- const offset = ctx.params[0];
2635
+ let offset = ctx.params[0];
2636
2636
  if (typeof offset === 'bigint') { offset = Number(offset); }
2637
2637
  if (!Number.isSafeInteger(offset)) { throw new Error('invalid offset'); }
2638
2638
  const len = ctx.params[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytecodealliance/jco",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "description": "JavaScript tooling for working with WebAssembly Components",
5
5
  "keywords": [
6
6
  "Component",
package/src/jco.js CHANGED
@@ -25,7 +25,7 @@ program
25
25
  )
26
26
  .usage("<command> [options]")
27
27
  .enablePositionalOptions()
28
- .version("1.24.0");
28
+ .version("1.24.1");
29
29
 
30
30
  function myParseInt(value) {
31
31
  return parseInt(value, 10);