@wp-playground/tools 3.1.59 → 3.1.61

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.
@@ -16,6 +16,11 @@ $cfg['VersionCheck'] = false;
16
16
  $cfg['ShowCreateDb'] = false;
17
17
  $cfg['ShowChgPassword'] = false;
18
18
 
19
+ // Split-origin popups keep phpMyAdmin in a WordPress iframe. Its frame-busting
20
+ // script must not try to replace the app-origin wrapper; the iframe's sandbox
21
+ // and the browser's origin checks still prevent access to app documents/storage.
22
+ $cfg['AllowThirdPartyFraming'] = defined('PLAYGROUND_PARENT_ORIGIN');
23
+
19
24
  // Cookie authentication secret.
20
25
  $cfg['blowfish_secret'] = 'r/g+J#&)L2&p!z5gUS)d(vEU#KAynq#g';
21
26
 
@@ -30,4 +35,4 @@ $cfg['Servers'][1]['compress'] = false;
30
35
  export {
31
36
  e as default
32
37
  };
33
- //# sourceMappingURL=config.inc-Bc6yvduk.js.map
38
+ //# sourceMappingURL=config.inc-DWAICks7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.inc-DWAICks7.js","sources":["../../../../packages/playground/tools/src/phpmyadmin/config.inc.php?raw"],"sourcesContent":["export default \"<?php declare(strict_types = 1);\\n\\n// Configure session save path for Playground environment.\\n$session_dir = '/tmp/phpmyadmin-sessions';\\nif (!is_dir($session_dir)) {\\n mkdir($session_dir, 0700, true);\\n}\\nsession_save_path($session_dir);\\n\\n// Enable development environment to display detailed error messages.\\n$cfg['environment'] = 'development';\\n\\n// Playground-specific configuration.\\n$cfg['CheckConfigurationPermissions'] = false;\\n$cfg['VersionCheck'] = false;\\n$cfg['ShowCreateDb'] = false;\\n$cfg['ShowChgPassword'] = false;\\n\\n// Split-origin popups keep phpMyAdmin in a WordPress iframe. Its frame-busting\\n// script must not try to replace the app-origin wrapper; the iframe's sandbox\\n// and the browser's origin checks still prevent access to app documents/storage.\\n$cfg['AllowThirdPartyFraming'] = defined('PLAYGROUND_PARENT_ORIGIN');\\n\\n// Cookie authentication secret.\\n$cfg['blowfish_secret'] = 'r/g+J#&)L2&p!z5gUS)d(vEU#KAynq#g';\\n\\n// Server configuration\\n$cfg['Servers'][1]['host'] = '127.0.0.1';\\n$cfg['Servers'][1]['auth_type'] = 'config';\\n$cfg['Servers'][1]['user'] = 'root';\\n$cfg['Servers'][1]['password'] = '';\\n$cfg['Servers'][1]['AllowNoPassword'] = true;\\n$cfg['Servers'][1]['compress'] = false;\\n\""],"names":["config_inc"],"mappings":"AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -16,6 +16,11 @@ $cfg['VersionCheck'] = false;
16
16
  $cfg['ShowCreateDb'] = false;
17
17
  $cfg['ShowChgPassword'] = false;
18
18
 
19
+ // Split-origin popups keep phpMyAdmin in a WordPress iframe. Its frame-busting
20
+ // script must not try to replace the app-origin wrapper; the iframe's sandbox
21
+ // and the browser's origin checks still prevent access to app documents/storage.
22
+ $cfg['AllowThirdPartyFraming'] = defined('PLAYGROUND_PARENT_ORIGIN');
23
+
19
24
  // Cookie authentication secret.
20
25
  $cfg['blowfish_secret'] = 'r/g+J#&)L2&p!z5gUS)d(vEU#KAynq#g';
21
26
 
@@ -27,4 +32,4 @@ $cfg['Servers'][1]['password'] = '';
27
32
  $cfg['Servers'][1]['AllowNoPassword'] = true;
28
33
  $cfg['Servers'][1]['compress'] = false;
29
34
  `;exports.default=e;
30
- //# sourceMappingURL=config.inc-BPj6j876.cjs.map
35
+ //# sourceMappingURL=config.inc-DdcuVkVX.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.inc-DdcuVkVX.cjs","sources":["../../../../packages/playground/tools/src/phpmyadmin/config.inc.php?raw"],"sourcesContent":["export default \"<?php declare(strict_types = 1);\\n\\n// Configure session save path for Playground environment.\\n$session_dir = '/tmp/phpmyadmin-sessions';\\nif (!is_dir($session_dir)) {\\n mkdir($session_dir, 0700, true);\\n}\\nsession_save_path($session_dir);\\n\\n// Enable development environment to display detailed error messages.\\n$cfg['environment'] = 'development';\\n\\n// Playground-specific configuration.\\n$cfg['CheckConfigurationPermissions'] = false;\\n$cfg['VersionCheck'] = false;\\n$cfg['ShowCreateDb'] = false;\\n$cfg['ShowChgPassword'] = false;\\n\\n// Split-origin popups keep phpMyAdmin in a WordPress iframe. Its frame-busting\\n// script must not try to replace the app-origin wrapper; the iframe's sandbox\\n// and the browser's origin checks still prevent access to app documents/storage.\\n$cfg['AllowThirdPartyFraming'] = defined('PLAYGROUND_PARENT_ORIGIN');\\n\\n// Cookie authentication secret.\\n$cfg['blowfish_secret'] = 'r/g+J#&)L2&p!z5gUS)d(vEU#KAynq#g';\\n\\n// Server configuration\\n$cfg['Servers'][1]['host'] = '127.0.0.1';\\n$cfg['Servers'][1]['auth_type'] = 'config';\\n$cfg['Servers'][1]['user'] = 'root';\\n$cfg['Servers'][1]['password'] = '';\\n$cfg['Servers'][1]['AllowNoPassword'] = true;\\n$cfg['Servers'][1]['compress'] = false;\\n\""],"names":["config_inc"],"mappings":"gFAAA,MAAAA,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
package/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@php-wasm/util"),s="5.2.3",P=`https://files.phpmyadmin.net/phpMyAdmin/${s}/phpMyAdmin-${s}-english.zip`,e="/tools/phpmyadmin",h=l.joinPaths(e,"config.inc.php"),A="/phpmyadmin",u="/index.php?route=/database/structure&db=wordpress",M={urlPrefix:A,fsPath:e};async function c(){return[{step:"unzip",zipFile:{resource:"url",url:P},extractToPath:"/tmp"},{step:"mkdir",path:e},{step:"mv",fromPath:`/tmp/phpMyAdmin-${s}-english`,toPath:e},{step:"writeFile",path:`${e}/libraries/classes/Dbal/DbiMysqli.php`,data:(await Promise.resolve().then(()=>require("./DbiMysqli-B38TcdRZ.cjs"))).default},{step:"writeFile",path:h,data:(await Promise.resolve().then(()=>require("./config.inc-BPj6j876.cjs"))).default}]}async function _(i){const a=await i.runStream({code:`<?php
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@php-wasm/util"),s="5.2.3",P=`https://files.phpmyadmin.net/phpMyAdmin/${s}/phpMyAdmin-${s}-english.zip`,e="/tools/phpmyadmin",h=l.joinPaths(e,"config.inc.php"),A="/phpmyadmin",u="/index.php?route=/database/structure&db=wordpress",M={urlPrefix:A,fsPath:e};async function c(){return[{step:"unzip",zipFile:{resource:"url",url:P},extractToPath:"/tmp"},{step:"mkdir",path:e},{step:"mv",fromPath:`/tmp/phpMyAdmin-${s}-english`,toPath:e},{step:"writeFile",path:`${e}/libraries/classes/Dbal/DbiMysqli.php`,data:(await Promise.resolve().then(()=>require("./DbiMysqli-B38TcdRZ.cjs"))).default},{step:"writeFile",path:h,data:(await Promise.resolve().then(()=>require("./config.inc-DdcuVkVX.cjs"))).default}]}async function _(i){const a=await i.runStream({code:`<?php
2
2
  $wp_env = require '/internal/shared/wp-env.php';
3
3
  if ($wp_env['db']['type'] !== 'sqlite') {
4
4
  throw new RuntimeException('The site does not use SQLite.');
package/index.js CHANGED
@@ -35,7 +35,7 @@ async function w() {
35
35
  step: "writeFile",
36
36
  path: u,
37
37
  /* @ts-ignore */
38
- data: (await import("./config.inc-Bc6yvduk.js")).default
38
+ data: (await import("./config.inc-DWAICks7.js")).default
39
39
  }
40
40
  ];
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/tools",
3
- "version": "3.1.59",
3
+ "version": "3.1.61",
4
4
  "description": "Tools for WordPress Playground",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,14 +28,14 @@
28
28
  "access": "public",
29
29
  "directory": "../../../dist/packages/playground/tools"
30
30
  },
31
- "gitHead": "d5483ab9efa6dfedcf3610443eea12cfaba75f1c",
31
+ "gitHead": "1e779217fceedb5b29b1359a196dc97ce40f31de",
32
32
  "dependencies": {
33
- "@php-wasm/node": "3.1.59",
34
- "@wp-playground/common": "3.1.59",
35
- "@wp-playground/wordpress": "3.1.59",
36
- "@php-wasm/util": "3.1.59",
37
- "@php-wasm/universal": "3.1.59",
38
- "@wp-playground/blueprints": "3.1.59"
33
+ "@php-wasm/node": "3.1.61",
34
+ "@wp-playground/common": "3.1.61",
35
+ "@wp-playground/wordpress": "3.1.61",
36
+ "@php-wasm/util": "3.1.61",
37
+ "@php-wasm/universal": "3.1.61",
38
+ "@wp-playground/blueprints": "3.1.61"
39
39
  },
40
40
  "packageManager": "npm@10.9.2",
41
41
  "overrides": {
@@ -50,5 +50,6 @@
50
50
  "glob": "^9.3.0",
51
51
  "webpackbar": "^7.0.0",
52
52
  "ws": "8.21.0"
53
- }
53
+ },
54
+ "optionalDependencies": {}
54
55
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.inc-BPj6j876.cjs","sources":["../../../../packages/playground/tools/src/phpmyadmin/config.inc.php?raw"],"sourcesContent":["export default \"<?php declare(strict_types = 1);\\n\\n// Configure session save path for Playground environment.\\n$session_dir = '/tmp/phpmyadmin-sessions';\\nif (!is_dir($session_dir)) {\\n mkdir($session_dir, 0700, true);\\n}\\nsession_save_path($session_dir);\\n\\n// Enable development environment to display detailed error messages.\\n$cfg['environment'] = 'development';\\n\\n// Playground-specific configuration.\\n$cfg['CheckConfigurationPermissions'] = false;\\n$cfg['VersionCheck'] = false;\\n$cfg['ShowCreateDb'] = false;\\n$cfg['ShowChgPassword'] = false;\\n\\n// Cookie authentication secret.\\n$cfg['blowfish_secret'] = 'r/g+J#&)L2&p!z5gUS)d(vEU#KAynq#g';\\n\\n// Server configuration\\n$cfg['Servers'][1]['host'] = '127.0.0.1';\\n$cfg['Servers'][1]['auth_type'] = 'config';\\n$cfg['Servers'][1]['user'] = 'root';\\n$cfg['Servers'][1]['password'] = '';\\n$cfg['Servers'][1]['AllowNoPassword'] = true;\\n$cfg['Servers'][1]['compress'] = false;\\n\""],"names":["config_inc"],"mappings":"gFAAA,MAAAA,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.inc-Bc6yvduk.js","sources":["../../../../packages/playground/tools/src/phpmyadmin/config.inc.php?raw"],"sourcesContent":["export default \"<?php declare(strict_types = 1);\\n\\n// Configure session save path for Playground environment.\\n$session_dir = '/tmp/phpmyadmin-sessions';\\nif (!is_dir($session_dir)) {\\n mkdir($session_dir, 0700, true);\\n}\\nsession_save_path($session_dir);\\n\\n// Enable development environment to display detailed error messages.\\n$cfg['environment'] = 'development';\\n\\n// Playground-specific configuration.\\n$cfg['CheckConfigurationPermissions'] = false;\\n$cfg['VersionCheck'] = false;\\n$cfg['ShowCreateDb'] = false;\\n$cfg['ShowChgPassword'] = false;\\n\\n// Cookie authentication secret.\\n$cfg['blowfish_secret'] = 'r/g+J#&)L2&p!z5gUS)d(vEU#KAynq#g';\\n\\n// Server configuration\\n$cfg['Servers'][1]['host'] = '127.0.0.1';\\n$cfg['Servers'][1]['auth_type'] = 'config';\\n$cfg['Servers'][1]['user'] = 'root';\\n$cfg['Servers'][1]['password'] = '';\\n$cfg['Servers'][1]['AllowNoPassword'] = true;\\n$cfg['Servers'][1]['compress'] = false;\\n\""],"names":["config_inc"],"mappings":"AAAA,MAAAA,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}