@polywrap/asyncify-js
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -112,7 +112,7 @@ "use strict"; | ||
// Extract the initial memory page-range size | ||
var memoryInitalLimits = config.module[sigIdx + envMemoryImportSignature.length + 1]; | ||
if (memoryInitalLimits === undefined) { | ||
var memoryInitialLimits = config.module[sigIdx + envMemoryImportSignature.length + 1]; | ||
if (memoryInitialLimits === undefined) { | ||
throw Error("No initial memory number found, this should never happen..."); | ||
} | ||
return new WebAssembly.Memory({ initial: memoryInitalLimits }); | ||
return new WebAssembly.Memory({ initial: memoryInitialLimits }); | ||
}; | ||
@@ -119,0 +119,0 @@ AsyncWasmInstance.createInstance = function (config) { |
{ | ||
"name": "@polywrap/asyncify-js", | ||
"description": "Async Wasm Imports Support Using Asyncify", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/polywrap/monorepo.git" | ||
"url": "https://github.com/polywrap/javascript-client.git" | ||
}, | ||
@@ -16,13 +16,13 @@ "main": "build/index.js", | ||
"build": "rimraf ./build && tsc --project tsconfig.build.json", | ||
"lint": "eslint --color -c ../../../.eslintrc.js --ignore-pattern src/__tests__/cases/* src/", | ||
"test": "jest --passWithNoTests --runInBand --verbose", | ||
"lint": "eslint --color -c ../../.eslintrc.js --ignore-pattern src/__tests__/cases/* src/", | ||
"test": "jest --passWithNoTests --runInBand --verbose --config ../../jest.config.js --rootDir .", | ||
"test:watch": "yarn test -- --watch" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.8", | ||
"@types/jest": "29.5.0", | ||
"@types/prettier": "2.6.0", | ||
"assemblyscript": "0.19.23", | ||
"jest": "26.6.3", | ||
"jest": "29.5.0", | ||
"rimraf": "3.0.2", | ||
"ts-jest": "26.5.4", | ||
"ts-jest": "29.1.0", | ||
"ts-loader": "8.0.17", | ||
@@ -29,0 +29,0 @@ "ts-node": "10.9.1", |
Sorry, the diff of this file is not supported yet
25919