@php-wasm/universal 3.1.2 → 3.1.3

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/lib/index.d.ts CHANGED
@@ -48,3 +48,4 @@ export * from './file-lock-interval-tree';
48
48
  export type { Remote } from './comlink-sync';
49
49
  export { createObjectPoolProxy } from './object-pool-proxy';
50
50
  export type { Pooled } from './object-pool-proxy';
51
+ export * from './process-id-allocator';
package/lib/php.d.ts CHANGED
@@ -351,10 +351,18 @@ export declare class PHP implements Disposable {
351
351
  * Moves a file or directory in the PHP filesystem to a
352
352
  * new location.
353
353
  *
354
- * @param oldPath The path to rename.
355
- * @param newPath The new path.
354
+ * @param fromPath The path to rename.
355
+ * @param toPath The new path.
356
356
  */
357
357
  mv(fromPath: string, toPath: string): void;
358
+ /**
359
+ * Copies a file or directory in the PHP filesystem to a
360
+ * new location.
361
+ *
362
+ * @param fromPath The source path.
363
+ * @param toPath The target path.
364
+ */
365
+ cp(fromPath: string, toPath: string): void;
358
366
  /**
359
367
  * Removes a directory from the PHP filesystem.
360
368
  *
@@ -0,0 +1,9 @@
1
+ export declare class ProcessIdAllocator {
2
+ private initialId;
3
+ private maxId;
4
+ private nextId;
5
+ private claimed;
6
+ constructor(initialId?: number, maxId?: number);
7
+ claim(): number;
8
+ release(id: number): boolean;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/universal",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "PHP.wasm – emscripten bindings for PHP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,18 +37,18 @@
37
37
  "module": "./index.js",
38
38
  "types": "index.d.ts",
39
39
  "license": "GPL-2.0-or-later",
40
- "gitHead": "4a2f8903e9d4a58e33382f8f888ef94d42d913dc",
40
+ "gitHead": "54bb87ba4c9624ec02f60194a2f1938b3f42477b",
41
41
  "engines": {
42
42
  "node": ">=20.10.0",
43
43
  "npm": ">=10.2.3"
44
44
  },
45
45
  "dependencies": {
46
46
  "ini": "4.1.2",
47
- "@php-wasm/node-polyfills": "3.1.2",
48
- "@php-wasm/logger": "3.1.2",
49
- "@php-wasm/util": "3.1.2",
50
- "@php-wasm/stream-compression": "3.1.2",
51
- "@php-wasm/progress": "3.1.2"
47
+ "@php-wasm/node-polyfills": "3.1.3",
48
+ "@php-wasm/logger": "3.1.3",
49
+ "@php-wasm/util": "3.1.3",
50
+ "@php-wasm/stream-compression": "3.1.3",
51
+ "@php-wasm/progress": "3.1.3"
52
52
  },
53
53
  "packageManager": "npm@10.9.2",
54
54
  "overrides": {