@php-wasm/node-8-4 3.0.44 → 3.0.46

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 CHANGED
@@ -30,7 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  var src_exports = {};
31
31
  __export(src_exports, {
32
32
  getIntlExtensionPath: () => getIntlExtensionPath,
33
+ getMemcachedExtensionPath: () => getMemcachedExtensionPath,
33
34
  getPHPLoaderModule: () => getPHPLoaderModule,
35
+ getRedisExtensionPath: () => getRedisExtensionPath,
34
36
  getXdebugExtensionPath: () => getXdebugExtensionPath,
35
37
  jspi: () => import_wasm_feature_detect.jspi
36
38
  });
@@ -63,10 +65,28 @@ async function getXdebugExtensionPath() {
63
65
  return (0, import_node_path.join)(packageDir, "asyncify/extensions/xdebug/8_4/xdebug.so");
64
66
  }
65
67
  }
68
+ async function getRedisExtensionPath() {
69
+ if (await (0, import_wasm_feature_detect.jspi)()) {
70
+ return (0, import_node_path.join)(packageDir, "jspi/extensions/redis/8_4/redis.so");
71
+ }
72
+ throw new Error(
73
+ "The Redis extension requires JSPI (JavaScript Promise Integration) support. Your current environment is using asyncify, which cannot properly handle exceptions during Redis network operations. Please use Node.js 23+ or a browser with JSPI support to use the Redis extension."
74
+ );
75
+ }
76
+ async function getMemcachedExtensionPath() {
77
+ if (await (0, import_wasm_feature_detect.jspi)()) {
78
+ return (0, import_node_path.join)(packageDir, "jspi/extensions/memcached/8_4/memcached.so");
79
+ }
80
+ throw new Error(
81
+ "The Memcached extension requires JSPI (JavaScript Promise Integration) support. Your current environment is using asyncify, which cannot properly handle exceptions during Memcached network operations. Please use Node.js 23+ or a browser with JSPI support to use the Memcached extension."
82
+ );
83
+ }
66
84
  // Annotate the CommonJS export names for ESM import in node:
67
85
  0 && (module.exports = {
68
86
  getIntlExtensionPath,
87
+ getMemcachedExtensionPath,
69
88
  getPHPLoaderModule,
89
+ getRedisExtensionPath,
70
90
  getXdebugExtensionPath,
71
91
  jspi
72
92
  });
package/index.js CHANGED
@@ -26,9 +26,27 @@ async function getXdebugExtensionPath() {
26
26
  return join(packageDir, "asyncify/extensions/xdebug/8_4/xdebug.so");
27
27
  }
28
28
  }
29
+ async function getRedisExtensionPath() {
30
+ if (await jspi()) {
31
+ return join(packageDir, "jspi/extensions/redis/8_4/redis.so");
32
+ }
33
+ throw new Error(
34
+ "The Redis extension requires JSPI (JavaScript Promise Integration) support. Your current environment is using asyncify, which cannot properly handle exceptions during Redis network operations. Please use Node.js 23+ or a browser with JSPI support to use the Redis extension."
35
+ );
36
+ }
37
+ async function getMemcachedExtensionPath() {
38
+ if (await jspi()) {
39
+ return join(packageDir, "jspi/extensions/memcached/8_4/memcached.so");
40
+ }
41
+ throw new Error(
42
+ "The Memcached extension requires JSPI (JavaScript Promise Integration) support. Your current environment is using asyncify, which cannot properly handle exceptions during Memcached network operations. Please use Node.js 23+ or a browser with JSPI support to use the Memcached extension."
43
+ );
44
+ }
29
45
  export {
30
46
  getIntlExtensionPath,
47
+ getMemcachedExtensionPath,
31
48
  getPHPLoaderModule,
49
+ getRedisExtensionPath,
32
50
  getXdebugExtensionPath,
33
51
  jspi
34
52
  };
Binary file
@@ -0,0 +1,35 @@
1
+ # memcached.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='memcached.so'
9
+
10
+ # Names of this library.
11
+ library_names='memcached.so memcached.so memcached.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/zlib/lib -L/root/libmemcached-install/lib'
18
+
19
+ # Version information for memcached.
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-memcached/modules'
@@ -0,0 +1,35 @@
1
+ # redis.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='redis.so'
9
+
10
+ # Names of this library.
11
+ library_names='redis.so redis.so redis.so'
12
+
13
+ # The name of the static archive.
14
+ old_library=''
15
+
16
+ # Libraries that this one depends upon.
17
+ dependency_libs=''
18
+
19
+ # Version information for redis.
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/phpredis/modules'