Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Jan 8, 2025
1 parent 58e94ed commit 1da99ad
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
rules: {
camelcase: ["error", { properties: "never" }],
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

export * from "./pkg/matrix_sdk_crypto_wasm.d";
export * from "./pkg/matrix_sdk_crypto_wasm.d.ts";

/**
* Load the WebAssembly module in the background, if it has not already been loaded.
Expand Down
4 changes: 2 additions & 2 deletions node.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ let initialised = false;
*
* It will throw if there is an attempt to load the module asynchronously running
*
* @returns {typeof import("./pkg/matrix_sdk_crypto_wasm_bg.wasm.d")}
* @returns {typeof import("./pkg/matrix_sdk_crypto_wasm_bg.wasm.d", { with: { "resolution-mode": "require" } })}
*/
function loadModuleSync() {
if (modPromise) throw new Error("The WASM module is being loaded asynchronously but hasn't finished");
Expand All @@ -80,7 +80,7 @@ function loadModuleSync() {
/**
* Loads and instantiates the WASM module asynchronously
*
* @returns {Promise<typeof import("./pkg/matrix_sdk_crypto_wasm_bg.wasm.d")>}
* @returns {Promise<typeof import("./pkg/matrix_sdk_crypto_wasm_bg.wasm.d", { with: { "resolution-mode": "require" } })>}
*/
async function loadModuleAsync() {
const bytes = await readFile(filename);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
}
},
"files": [
"index.mjs",
"index.js",
"index-wasm-esm.mjs",
"index.cjs",
"index-wasm-esm.js",
"index.d.ts",
"node.mjs",
"node.js",
"node.cjs",
"pkg/matrix_sdk_crypto_wasm.d.ts",
"pkg/matrix_sdk_crypto_wasm_bg.js",
"pkg/matrix_sdk_crypto_wasm_bg.cjs",
Expand Down

0 comments on commit 1da99ad

Please sign in to comment.