bare-module 7.5.1 → 7.5.2

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.
@@ -1,4 +1,4 @@
1
- const instantiate = require('bare-wasm-abi')
1
+ const instantiate = require('#wasm')
2
2
  const SyntheticModule = require('./synthetic')
3
3
 
4
4
  module.exports = class AddonModule extends SyntheticModule {
@@ -0,0 +1,5 @@
1
+ const errors = require('../errors')
2
+
3
+ module.exports = function instantiate() {
4
+ throw errors.ADDON_HOST_INCOMPATIBLE('WebAssembly addons are not supported on this platform')
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "description": "The module system that powers Bare",
5
5
  "exports": {
6
6
  "./package": "./package.json",
@@ -17,6 +17,12 @@
17
17
  "default": "./lib/loader.js"
18
18
  }
19
19
  },
20
+ "imports": {
21
+ "#wasm": {
22
+ "freertos": "./lib/wasm/unavailable.js",
23
+ "default": "bare-wasm-abi"
24
+ }
25
+ },
20
26
  "files": [
21
27
  "index.js",
22
28
  "index.d.ts",