@ampless/runtime 1.0.0-alpha.29 → 1.0.0-alpha.30

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -239,6 +239,7 @@ import {
239
239
  import { readFileSync } from "fs";
240
240
  import { fileURLToPath } from "url";
241
241
  var TRUST_LEVELS = ["untrusted", "trusted", "privileged"];
242
+ var metaResolve = typeof import.meta.resolve === "function" ? import.meta.resolve.bind(import.meta) : void 0;
242
243
  function isValidManifest(value) {
243
244
  if (typeof value !== "object" || value === null) return false;
244
245
  const v = value;
@@ -253,9 +254,10 @@ function isValidManifest(value) {
253
254
  return true;
254
255
  }
255
256
  function loadPackageManifest(packageName) {
257
+ if (!metaResolve) return null;
256
258
  let resolvedUrl;
257
259
  try {
258
- resolvedUrl = import.meta.resolve(`${packageName}/package.json`);
260
+ resolvedUrl = metaResolve(`${packageName}/package.json`);
259
261
  } catch {
260
262
  return null;
261
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/runtime",
3
- "version": "1.0.0-alpha.29",
3
+ "version": "1.0.0-alpha.30",
4
4
  "description": "Public-side runtime for ampless: post fetching, theme dispatch, middleware, public route handlers",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,8 +49,8 @@
49
49
  "lucide-react": "^1.16.0",
50
50
  "marked": "^18.0.4",
51
51
  "tailwind-merge": "^3.6.0",
52
- "@ampless/plugin-og-image": "0.2.0-alpha.23",
53
- "ampless": "1.0.0-alpha.23"
52
+ "ampless": "1.0.0-alpha.23",
53
+ "@ampless/plugin-og-image": "0.2.0-alpha.23"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "next": "^15 || ^16",