@php-wasm/web-8-2 3.0.31
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/README.md +32 -0
- package/asyncify/8_2_29/php_8_2.wasm +0 -0
- package/asyncify/extensions/intl/8_2/intl.la +35 -0
- package/asyncify/extensions/intl/8_2/intl.so +0 -0
- package/asyncify/php_8_2.js +27345 -0
- package/index.cjs +57 -0
- package/index.js +27 -0
- package/jspi/8_2_29/php_8_2.wasm +0 -0
- package/jspi/extensions/intl/8_2/intl.la +35 -0
- package/jspi/extensions/intl/8_2/intl.so +0 -0
- package/jspi/php_8_2.js +26402 -0
- package/package.json +57 -0
package/index.cjs
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// packages/php-wasm/web-builds/8-2/src/index.ts
|
|
30
|
+
var src_exports = {};
|
|
31
|
+
__export(src_exports, {
|
|
32
|
+
getIntlExtensionPath: () => getIntlExtensionPath,
|
|
33
|
+
getPHPLoaderModule: () => getPHPLoaderModule,
|
|
34
|
+
jspi: () => import_wasm_feature_detect.jspi
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
var import_wasm_feature_detect = require("wasm-feature-detect");
|
|
38
|
+
async function getPHPLoaderModule() {
|
|
39
|
+
if (await (0, import_wasm_feature_detect.jspi)()) {
|
|
40
|
+
return await Promise.resolve().then(() => __toESM(require("./jspi/php_8_2.js"), 1));
|
|
41
|
+
} else {
|
|
42
|
+
return await Promise.resolve().then(() => __toESM(require("./asyncify/php_8_2.js"), 1));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async function getIntlExtensionPath() {
|
|
46
|
+
if (await (0, import_wasm_feature_detect.jspi)()) {
|
|
47
|
+
return (await Promise.resolve().then(() => __toESM(require("./jspi/extensions/intl/8_2/intl.so?url"), 1))).default;
|
|
48
|
+
} else {
|
|
49
|
+
return (await Promise.resolve().then(() => __toESM(require("./asyncify/extensions/intl/8_2/intl.so?url"), 1))).default;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
getIntlExtensionPath,
|
|
55
|
+
getPHPLoaderModule,
|
|
56
|
+
jspi
|
|
57
|
+
});
|
package/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
// packages/php-wasm/web-builds/8-2/src/index.ts
|
|
8
|
+
import { jspi } from "wasm-feature-detect";
|
|
9
|
+
async function getPHPLoaderModule() {
|
|
10
|
+
if (await jspi()) {
|
|
11
|
+
return await import("./jspi/php_8_2.js");
|
|
12
|
+
} else {
|
|
13
|
+
return await import("./asyncify/php_8_2.js");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
async function getIntlExtensionPath() {
|
|
17
|
+
if (await jspi()) {
|
|
18
|
+
return (await import("./jspi/extensions/intl/8_2/intl.so?url")).default;
|
|
19
|
+
} else {
|
|
20
|
+
return (await import("./asyncify/extensions/intl/8_2/intl.so?url")).default;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
getIntlExtensionPath,
|
|
25
|
+
getPHPLoaderModule,
|
|
26
|
+
jspi
|
|
27
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# intl.la - a libtool library file
|
|
2
|
+
# Generated by ltmain.sh - GNU libtool 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)
|
|
3
|
+
#
|
|
4
|
+
# Please DO NOT delete this file!
|
|
5
|
+
# It is necessary for linking the library.
|
|
6
|
+
|
|
7
|
+
# The name that we can dlopen(3).
|
|
8
|
+
dlname='intl.so'
|
|
9
|
+
|
|
10
|
+
# Names of this library.
|
|
11
|
+
library_names='intl.so intl.so intl.so'
|
|
12
|
+
|
|
13
|
+
# The name of the static archive.
|
|
14
|
+
old_library=''
|
|
15
|
+
|
|
16
|
+
# Libraries that this one depends upon.
|
|
17
|
+
dependency_libs=' -L/root/lib'
|
|
18
|
+
|
|
19
|
+
# Version information for intl.
|
|
20
|
+
current=0
|
|
21
|
+
age=0
|
|
22
|
+
revision=0
|
|
23
|
+
|
|
24
|
+
# Is this an already installed library?
|
|
25
|
+
installed=yes
|
|
26
|
+
|
|
27
|
+
# Should we warn about portability when linking against -modules?
|
|
28
|
+
shouldnotlink=yes
|
|
29
|
+
|
|
30
|
+
# Files to dlopen/dlpreopen
|
|
31
|
+
dlopen=''
|
|
32
|
+
dlpreopen=''
|
|
33
|
+
|
|
34
|
+
# Directory that this library needs to be installed in:
|
|
35
|
+
libdir='/root/php-src/ext/intl/modules'
|
|
Binary file
|