@monkeyplus/flow 6.0.113 → 6.0.115

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.113",
3
+ "version": "6.0.115",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -1,7 +1,9 @@
1
1
  import { resolve } from "node:path";
2
2
  import { pathToFileURL } from "node:url";
3
+ import { useRuntimeConfig } from "nitro/runtime-config";
3
4
  let prerenderFetchHandlerPromise;
4
5
  function resolvePrerenderServiceUrls() {
6
+ globalThis.useRuntimeConfig = useRuntimeConfig;
5
7
  const cwd = process.cwd();
6
8
  return [
7
9
  pathToFileURL(resolve(cwd, "node_modules/.nitro/vite/services/ssr/index.js")).href,
@@ -74,7 +74,6 @@ export default defineComponent({
74
74
  baseURL: "/_ipx",
75
75
  dirImages: "/images"
76
76
  });
77
- console.log("mkImageOptions", options.value);
78
77
  const nSizes = computed(() => {
79
78
  if (!props.sizes || !imageUtils.getImage?.getSizes) {
80
79
  return void 0;
@@ -69,7 +69,6 @@ export default defineComponent({
69
69
  baseURL: "/_ipx",
70
70
  dirImages: "/images"
71
71
  });
72
- console.log("mkPictureOptions", options.value);
73
72
  const originalFormat = () => getFileExtension(resolvedSrc.value);
74
73
  const isTransparent = () => ["png", "webp", "gif"].includes(originalFormat());
75
74
  const nFormat = () => {
@@ -32,7 +32,6 @@ export function createBootImageUtils(boot) {
32
32
  return {
33
33
  getImage: resolver.getImage,
34
34
  getImageMeta(src) {
35
- console.log("getImageMeta", src, stateImages.all[src]);
36
35
  return stateImages.all[src];
37
36
  },
38
37
  getImageOptions() {
@@ -67,7 +66,7 @@ export function useImage(props) {
67
66
  grayscale: props.grayscale,
68
67
  rotate: props.rotate,
69
68
  size: props.size,
70
- watermark: typeof props.watermark === "object" && props.watermark !== null ? `b64${typeof btoa !== "undefined" ? btoa(unescape(encodeURIComponent(JSON.stringify(props.watermark)))) : ""}` : props.watermark
69
+ watermark: typeof props.watermark === "object" && props.watermark !== null ? "b64" + (typeof btoa !== "undefined" ? btoa(unescape(encodeURIComponent(JSON.stringify(props.watermark)))) : "") : props.watermark
71
70
  }));
72
71
  const nOption = computed(() => ({
73
72
  provider: props.provider,