@picked/vite-plugin-picked 0.0.1-dev.1771981674305 → 0.0.1-dev.1772085077346

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/dist/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@picked/client/plugins/dynamic-experiences"),o=require("vite"),n="https://api.picked.app",f="__PICKED_PROJECT_CONFIG__";function d(e){const r=e.apiUrl??n,c=o.createLogger(void 0,{prefix:"[picked]"});return{name:"picked",config:async()=>{c.info(`Fetching project config for "${e.projectId}" from ${r}`);const t=await i.fetchProject(r,e.projectId);if(!t){c.warn(`Failed to fetch project config for "${e.projectId}"`);return}return c.info(`Project config fetched successfully for "${e.projectId}"`),{define:{[f]:JSON.stringify(t)}}}}}exports.picked=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@picked/client/plugins/dynamic-experiences"),o=require("vite"),n="https://api.picked.app",f="__PICKED_PROJECT_CONFIG__";function p(e){const r=e.apiUrl??n,c=o.createLogger("info",{prefix:"[picked]"});return{name:"picked",config:async()=>{c.info(`Fetching project config for "${e.projectId}" from ${r}`);const t=await i.fetchProject(r,e.projectId);if(!t){c.warn(`Failed to fetch project config for "${e.projectId}"`);return}return c.info(`Project config fetched successfully for "${e.projectId}"`),{define:{[f]:JSON.stringify(t)}}}}}exports.picked=p;
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { fetchProject as t } from "@picked/client/plugins/dynamic-experiences";
2
2
  import { createLogger as f } from "vite";
3
3
  const i = "https://api.picked.app", n = "__PICKED_PROJECT_CONFIG__";
4
- function a(c) {
5
- const r = c.apiUrl ?? i, e = f(void 0, { prefix: "[picked]" });
4
+ function d(c) {
5
+ const r = c.apiUrl ?? i, e = f("info", { prefix: "[picked]" });
6
6
  return {
7
7
  name: "picked",
8
8
  config: async () => {
@@ -21,5 +21,5 @@ function a(c) {
21
21
  };
22
22
  }
23
23
  export {
24
- a as picked
24
+ d as picked
25
25
  };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@picked/vite-plugin-picked",
3
3
  "description": "Vite plugin for build-time config injection",
4
- "version": "0.0.1-dev.1771981674305",
4
+ "version": "0.0.1-dev.1772085077346",
5
5
  "dependencies": {
6
- "@picked/client": "0.0.1-dev.1771981674305"
6
+ "@picked/client": "0.0.1-dev.1772085077346"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@repo/eslint-config": "workspace:*",