encore.dev 1.33.5-beta.6 → 1.33.6

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,8 +1,14 @@
1
1
  // The version of the runtime this JS bundle was generated for.
2
- const version = "v1.33.5-beta.6";
2
+ const version = "v1.33.6";
3
3
 
4
4
  // Load the native module.
5
- const nativeModule = require("./encore-runtime.node");
5
+ const nativeModulePath = process.env.ENCORE_RUNTIME_LIB;
6
+ if (!nativeModulePath) {
7
+ throw new Error(
8
+ "The ENCORE_RUNTIME_LIB environment variable is not set. It must be set to the path of the Encore runtime library ('encore-runtime.node')."
9
+ );
10
+ }
11
+ const nativeModule = require(nativeModulePath);
6
12
 
7
13
  // Load the exported objects from the native module.
8
14
  const {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "encore.dev",
3
3
  "description": "Encore's JavaScript/TypeScript SDK",
4
- "version": "1.33.5-beta.6",
4
+ "version": "1.33.6",
5
5
  "license": "MPL-2.0",
6
6
  "bugs": {
7
7
  "url": "https://github.com/encoredev/encore/issues"
@@ -78,8 +78,7 @@
78
78
  "*.ts",
79
79
  "**/*.ts",
80
80
  "README.md",
81
- "LICENSE",
82
- "!encore-runtime.node"
81
+ "LICENSE"
83
82
  ],
84
83
  "devDependencies": {
85
84
  "@types/node": "^20.11.19",