@wp-playground/common
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -49,1 +49,2 @@ function l(e){return`json_decode(base64_decode('${d(JSON.stringify(e))}'), true)`}function $(e){const t={};for(const r in e)t[r]=l(e[r]);return t}function d(e){return p(new TextEncoder().encode(e))}function p(e){const t=String.fromCodePoint(...e);return btoa(t)}function h(e=fetch){const t={};return async function(i,n){t[i]||(t[i]=e(i,n).then(o=>({body:o.body,responseInit:{status:o.status,statusText:o.statusText,headers:o.headers}})));const{body:a,responseInit:s}=await t[i],[f,u]=a.tee();return t[i]={body:f,responseInit:s},new Response(u,s)}}const w="8.0",c="/tmp/file.zip",z=async(e,t,r,i=!0)=>{if(t instanceof File){const a=t;t=c,await e.writeFile(t,new Uint8Array(await a.arrayBuffer()))}const n=$({zipPath:t,extractToPath:r,overwriteFiles:i});await e.run({code:`<?php | ||
`});const n=await e.readFileAsBuffer(r);return e.unlink(r),n};export{w as RecommendedPHPVersion,h as createMemoizedFetch,z as unzipFile,x as zipDirectory}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@wp-playground/common", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Common exports and utilities for WordPress Playground", | ||
@@ -30,9 +30,9 @@ "repository": { | ||
}, | ||
"gitHead": "c6b9b151a8baf922d23294d953e346458b9616cb", | ||
"gitHead": "4990f91c0f2f1657ec3742fedc711f7593afe2f6", | ||
"dependencies": { | ||
"comlink": "^4.4.1", | ||
"ini": "4.1.2", | ||
"@php-wasm/universal": "1.0.17", | ||
"@php-wasm/util": "1.0.17" | ||
"@php-wasm/universal": "1.0.18", | ||
"@php-wasm/util": "1.0.18" | ||
} | ||
} |
13675
6
79
+ Added@php-wasm/logger@1.0.18(transitive)
+ Added@php-wasm/node-polyfills@1.0.18(transitive)
+ Added@php-wasm/progress@1.0.18(transitive)
+ Added@php-wasm/stream-compression@1.0.18(transitive)
+ Added@php-wasm/universal@1.0.18(transitive)
+ Added@php-wasm/util@1.0.18(transitive)
- Removed@php-wasm/logger@1.0.17(transitive)
- Removed@php-wasm/node-polyfills@1.0.17(transitive)
- Removed@php-wasm/progress@1.0.17(transitive)
- Removed@php-wasm/stream-compression@1.0.17(transitive)
- Removed@php-wasm/universal@1.0.17(transitive)
- Removed@php-wasm/util@1.0.17(transitive)
Updated@php-wasm/universal@1.0.18
Updated@php-wasm/util@1.0.18