@php-wasm/web-8-0 3.0.32 → 3.0.34
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.
- package/index.cjs +4 -4
- package/index.js +0 -6
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -37,16 +37,16 @@ module.exports = __toCommonJS(src_exports);
|
|
|
37
37
|
var import_wasm_feature_detect = require("wasm-feature-detect");
|
|
38
38
|
async function getPHPLoaderModule() {
|
|
39
39
|
if (await (0, import_wasm_feature_detect.jspi)()) {
|
|
40
|
-
return await
|
|
40
|
+
return await import("./jspi/php_8_0.js");
|
|
41
41
|
} else {
|
|
42
|
-
return await
|
|
42
|
+
return await import("./asyncify/php_8_0.js");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
async function getIntlExtensionPath() {
|
|
46
46
|
if (await (0, import_wasm_feature_detect.jspi)()) {
|
|
47
|
-
return (await
|
|
47
|
+
return (await import("./jspi/extensions/intl/8_0/intl.so?url")).default;
|
|
48
48
|
} else {
|
|
49
|
-
return (await
|
|
49
|
+
return (await import("./asyncify/extensions/intl/8_0/intl.so?url")).default;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
// Annotate the CommonJS export names for ESM import in node:
|
package/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
|
-
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
-
const __filename = import.meta.filename;
|
|
4
|
-
const __dirname = import.meta.dirname;
|
|
5
|
-
|
|
6
|
-
|
|
7
1
|
// packages/php-wasm/web-builds/8-0/src/index.ts
|
|
8
2
|
import { jspi } from "wasm-feature-detect";
|
|
9
3
|
async function getPHPLoaderModule() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-0",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.34",
|
|
4
4
|
"description": "PHP 8.0 WebAssembly binaries for web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"node": ">=20.18.3",
|
|
36
36
|
"npm": ">=10.1.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "5e146a8f0772bb97881a28a52747ae4abfa36f9b",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"ini": "4.1.2",
|
|
41
41
|
"wasm-feature-detect": "1.8.0",
|
|
42
|
-
"@php-wasm/universal": "3.0.
|
|
42
|
+
"@php-wasm/universal": "3.0.34"
|
|
43
43
|
},
|
|
44
44
|
"packageManager": "npm@10.9.2",
|
|
45
45
|
"overrides": {
|