@php-wasm/node 3.1.35 → 3.1.38

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.
Files changed (3) hide show
  1. package/index.cjs +5 -0
  2. package/index.js +9 -1
  3. package/package.json +17 -16
package/index.cjs CHANGED
@@ -44,6 +44,11 @@ module.exports = __toCommonJS(src_exports);
44
44
  // packages/php-wasm/node/src/lib/get-php-loader-module.ts
45
45
  var import_universal = require("@php-wasm/universal");
46
46
  async function getPHPLoaderModule(version = import_universal.LatestSupportedPHPVersion) {
47
+ if ((0, import_universal.isPHPNextVersion)(version)) {
48
+ throw new Error(
49
+ "PHP next is only available in the web runtime for now."
50
+ );
51
+ }
47
52
  try {
48
53
  switch (version) {
49
54
  case "8.5":
package/index.js CHANGED
@@ -7,8 +7,16 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  });
8
8
 
9
9
  // packages/php-wasm/node/src/lib/get-php-loader-module.ts
10
- import { LatestSupportedPHPVersion } from "@php-wasm/universal";
10
+ import {
11
+ LatestSupportedPHPVersion,
12
+ isPHPNextVersion
13
+ } from "@php-wasm/universal";
11
14
  async function getPHPLoaderModule(version = LatestSupportedPHPVersion) {
15
+ if (isPHPNextVersion(version)) {
16
+ throw new Error(
17
+ "PHP next is only available in the web runtime for now."
18
+ );
19
+ }
12
20
  try {
13
21
  switch (version) {
14
22
  case "8.5":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "3.1.35",
3
+ "version": "3.1.38",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,21 +41,21 @@
41
41
  "dependencies": {
42
42
  "fs-ext-extra-prebuilt": "2.2.7",
43
43
  "wasm-feature-detect": "1.8.0",
44
- "ws": "8.18.0",
45
- "@php-wasm/universal": "3.1.35",
46
- "@php-wasm/node-8-5": "3.1.35",
47
- "@php-wasm/node-8-4": "3.1.35",
48
- "@php-wasm/node-8-3": "3.1.35",
49
- "@php-wasm/node-8-2": "3.1.35",
50
- "@php-wasm/node-8-1": "3.1.35",
51
- "@php-wasm/node-8-0": "3.1.35",
52
- "@php-wasm/node-7-4": "3.1.35",
53
- "@php-wasm/cli-util": "3.1.35",
54
- "@php-wasm/logger": "3.1.35",
55
- "@php-wasm/node-5-2": "3.1.35",
56
- "@php-wasm/util": "3.1.35"
44
+ "ws": "8.21.0",
45
+ "@php-wasm/universal": "3.1.38",
46
+ "@php-wasm/node-8-5": "3.1.38",
47
+ "@php-wasm/node-8-4": "3.1.38",
48
+ "@php-wasm/node-8-3": "3.1.38",
49
+ "@php-wasm/node-8-2": "3.1.38",
50
+ "@php-wasm/node-8-1": "3.1.38",
51
+ "@php-wasm/node-8-0": "3.1.38",
52
+ "@php-wasm/node-7-4": "3.1.38",
53
+ "@php-wasm/cli-util": "3.1.38",
54
+ "@php-wasm/logger": "3.1.38",
55
+ "@php-wasm/node-5-2": "3.1.38",
56
+ "@php-wasm/util": "3.1.38"
57
57
  },
58
- "gitHead": "9d29b73246e12465902d8ce42c0fe747125bc69a",
58
+ "gitHead": "2850a2a6f512e68e68407f4a9426dad705b426f0",
59
59
  "engines": {
60
60
  "node": ">=20.10.0",
61
61
  "npm": ">=10.2.3"
@@ -71,6 +71,7 @@
71
71
  "form-data": "^4.0.4",
72
72
  "lodash": "^4.17.23",
73
73
  "glob": "^9.3.0",
74
- "webpackbar": "^7.0.0"
74
+ "webpackbar": "^7.0.0",
75
+ "ws": "8.21.0"
75
76
  }
76
77
  }