@prisma/studio-core 0.0.0-dev.202503261810 → 0.0.0-dev.202503261825
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/data/bff/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var
|
|
1
|
+
"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var o in e)i(r,o,{get:e[o],enumerable:!0})},Q=(r,e,o,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of y(e))!d.call(r,t)&&t!==o&&i(r,t,{get:()=>e[t],enumerable:!(u=c(e,t))||u.enumerable});return r};var p=r=>Q(i({},"__esModule",{value:!0}),r);var R={};l(R,{createStudioBFFClient:()=>f});module.exports=p(R);function f(r){let{customHeaders:e,customPayload:o,url:u}=r,t=r.fetch||fetch;return{async query(a){try{let n=await t(u,{body:JSON.stringify({customPayload:o,procedure:"query",query:a}),headers:{Accept:"application/json","Content-Type":"application/json",...e},method:"POST"});if(!n.ok){let s;try{s=await n.text()}catch{s="unknown error"}return{error:new Error(s),results:[]}}return{error:null,results:await n.json()}}catch(n){return{error:n,results:[]}}}}}0&&(module.exports={createStudioBFFClient});
|
|
@@ -33,7 +33,7 @@ interface StudioBFFClient {
|
|
|
33
33
|
*
|
|
34
34
|
* The query is sent as `body.query`.
|
|
35
35
|
*/
|
|
36
|
-
query<Q extends Query>(query: Q): Promise<StudioBFFQueryResponse<Q>>;
|
|
36
|
+
query<Q extends Query>(this: void, query: Q): Promise<StudioBFFQueryResponse<Q>>;
|
|
37
37
|
}
|
|
38
38
|
interface StudioBFFQueryRequest {
|
|
39
39
|
customPayload?: Record<string, unknown>;
|
package/dist/data/bff/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ interface StudioBFFClient {
|
|
|
33
33
|
*
|
|
34
34
|
* The query is sent as `body.query`.
|
|
35
35
|
*/
|
|
36
|
-
query<Q extends Query>(query: Q): Promise<StudioBFFQueryResponse<Q>>;
|
|
36
|
+
query<Q extends Query>(this: void, query: Q): Promise<StudioBFFQueryResponse<Q>>;
|
|
37
37
|
}
|
|
38
38
|
interface StudioBFFQueryRequest {
|
|
39
39
|
customPayload?: Record<string, unknown>;
|