@php-wasm/node 0.0.2 → 0.1.0
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.d.ts +7 -1
- package/index.js +28 -21
- package/package.json +3 -3
- package/php_5_6.wasm +0 -0
- package/php_7_0.wasm +0 -0
- package/php_7_1.wasm +0 -0
- package/php_7_2.wasm +0 -0
- package/php_7_3.wasm +0 -0
- package/php_7_4.wasm +0 -0
- package/php_8_0.wasm +0 -0
- package/php_8_1.wasm +0 -0
- package/php_8_2.wasm +0 -0
package/index.d.ts
CHANGED
|
@@ -331,7 +331,6 @@ export type MountSettings = {
|
|
|
331
331
|
* It exposes a minimal set of methods to run PHP scripts and to
|
|
332
332
|
* interact with the PHP filesystem.
|
|
333
333
|
*
|
|
334
|
-
* @public
|
|
335
334
|
* @see {startPHP} This class is not meant to be used directly. Use `startPHP` instead.
|
|
336
335
|
*/
|
|
337
336
|
export declare class PHP implements WithPHPIniBindings, WithFilesystem, WithNodeFilesystem, WithCLI, WithRun {
|
|
@@ -344,17 +343,24 @@ export declare class PHP implements WithPHPIniBindings, WithFilesystem, WithNode
|
|
|
344
343
|
*/
|
|
345
344
|
constructor(PHPRuntimeId?: PHPRuntimeId);
|
|
346
345
|
initializeRuntime(runtimeId: PHPRuntimeId): void;
|
|
346
|
+
/** @inheritDoc */
|
|
347
347
|
setPhpIniPath(path: string): void;
|
|
348
|
+
/** @inheritDoc */
|
|
348
349
|
setPhpIniEntry(key: string, value: string): void;
|
|
350
|
+
/** @inheritDoc */
|
|
349
351
|
run(request?: PHPRequest): PHPResponse;
|
|
350
352
|
cli(argv: string[]): Promise<number>;
|
|
351
353
|
setSkipShebang(shouldSkip: boolean): void;
|
|
352
354
|
addServerGlobalEntry(key: string, value: string): void;
|
|
353
355
|
mkdirTree(path: string): void;
|
|
354
356
|
readFileAsText(path: string): string;
|
|
357
|
+
/** @inheritDoc */
|
|
355
358
|
readFileAsBuffer(path: string): Uint8Array;
|
|
359
|
+
/** @inheritDoc */
|
|
356
360
|
writeFile(path: string, data: string | Uint8Array): void;
|
|
361
|
+
/** @inheritDoc */
|
|
357
362
|
unlink(path: string): void;
|
|
363
|
+
/** @inheritDoc */
|
|
358
364
|
listFiles(path: string): string[];
|
|
359
365
|
isDir(path: string): boolean;
|
|
360
366
|
fileExists(path: string): boolean;
|