Lines 1-21javascript
1"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const zr=require("@php-wasm/progress"),N=require("@php-wasm/util"),ke=require("@php-wasm/universal"),ve=require("@wp-playground/storage"),Ps=require("@php-wasm/web-service-worker"),Wr=require("@php-wasm/stream-compression"),oe=require("@php-wasm/logger"),Or=require("@wp-playground/wordpress"),Ge=require("@wp-playground/common");function Ot(e){return e&&"read"in e&&typeof e.read=="function"}async function kt(e){if(typeof e=="string"){let n;try{n=JSON.parse(e)}catch{throw new Error("Raw JSON input must be valid JSON. ...
2
HighCopied Package Dependency Bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
index.cjsView on unpkg · L1 3This Blueprint refers to files that should be bundled with it (like images, plugins, or themes), but the filesystem needed to access these files is not available. This usually happens when:
51. You're trying to load a Blueprint as a standalone JSON file that was meant to be part of a bundle
62. The Blueprint was not packaged correctly as a blueprint.zip file
9• If you're loading from a URL, make sure all referenced files are accessible relative to the Blueprint file
10• If you're using a blueprint.zip file, ensure it contains all the files referenced in the Blueprint
11• Check that the "resource": "bundled" references in your Blueprint match actual files in your bundle
13Learn more about Blueprint resources: https://wordpress.github.io/wordpress-playground/blueprints/data-format#resources`;class Et extends Error{constructor(t=$s){super(t),this.name="BlueprintFilesystemRequiredError"}}class Pr extends Error{constructor(t,o,n){super(t,n),this.name="ResourceDownloadError",this.url=o}}const Os=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled","zip"];function ks(e){return e&&typeof e=="object"&&typeof e.resource=="string"&&Os.includes(e.resource)}function Es(e){try{return new URL(e).hostname==="github-proxy.com"}catch{r ...
15Confirm that the URL is correct, the server is reachable, and the file is actually served at that URL. Original error:
16 ${s}`,t,{cause:s})}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}function js(e){if(!e)return null;const t=e.match(/filename\*?=([^;]+)/i);if(!t)return null;let o=t[1].trim();if((o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))&&(o=o.slice(1,-1)),t[0].includes("filename*")){const n=o.match(/^[^']*'[^']*'(.+)$/);if(n)try{o=decodeURIComponent(n[1])}catch{}}return o}const As=()=>{};class qs extends Hr{constructor(t,o,n){if(super(o ...
18Error details: ${l instanceof Error?l.message:String(l)}`,{cause:l})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0
19 define( 'WP_ADMIN', true );
20 require_once( getenv('DOCROOT') . "/wp-load.php" );
21 require_once( getenv('DOCROOT') . "/wp-admin/includes/plugin.php" );
Long lines were clipped for display.