Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prisma/studio

Package Overview
Dependencies
Maintainers
5
Versions
530
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/studio - npm Package Compare versions

Comparing version 0.30.0 to 0.31.0

build/studioBundle.bdf7894082146b03b960.css

2

build/serverBus.js

@@ -1,1 +0,1 @@

!function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=424)}({186:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const s="photon",o="photon-response";let r=0;class i{constructor(){this.requests={},this._onMessage=({requestId:e,data:t,error:n})=>{if(this.requests[e])return n?this.requests[e].reject(n):this.requests[e].resolve(t),void delete this.requests[e]},window.transportBus.on(o,this._onMessage)}connect(e){return this._execute("connect",{credentials:e})}disconnect(){return this._execute("disconnect")}getDMMF(){return this._execute("get-dmmf")}getPhotonTypings(){return this._execute("get-typings")}request(e){return this._execute("request",{query:e})}_execute(e,t={}){return new Promise(async(n,o)=>{this.requests[r]={resolve:n,reject:o},window.transportBus.send(s,{requestId:r,action:e,data:t}),r++})}}},424:function(e,t,n){"use strict";n.r(t);const s=15;var o=n(186);window.transportBus=new class{constructor(){this.type="websocket",this.listeners={},this.queuedEvents=[],this.once=(e,t)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({once:!0,callback:t})},this.on=(e,t)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({once:!1,callback:t})},this.send=(e,t)=>{if(this.socket.readyState!==WebSocket.OPEN)return console.log("Websocket not open. Queueing this event:",JSON.stringify(t)),void this.queuedEvents.push({channel:e,payload:t});this.socket.send(JSON.stringify({channel:e,payload:t}))},this.onOpen=()=>{console.log("Socket connection established"),this.fireListenersForChannel("connect"),clearTimeout(this.reconnectTimeoutHandle),this.reconnectTimeoutHandle=void 0,this.queuedEvents.length>0&&(console.log("Replaying queued events"),this.queuedEvents.forEach(e=>this.send(e.channel,e.payload)),this.queuedEvents=[])},this.onClose=()=>{console.log("socket closed",this.reconnectTimeoutHandle),this.reconnectTimeoutHandle||(console.log("Socket connection interrupted"),this.fireListenersForChannel("disconnect"))},this.onMessage=e=>{try{const{channel:t,payload:n={}}=JSON.parse(e.data);this.fireListenersForChannel(t,n)}catch(t){console.log("Malformed response from server, ignoring",e.data,t)}},this.fireListenersForChannel=(e,t={})=>{const n=this.listeners[e];n&&(this.listeners[e]=n.filter(({once:e,callback:n})=>(n(t),!e)))},this.connect()}reconnect(){console.log("Attempting to reconnect");let e=0;clearTimeout(this.reconnectTimeoutHandle);const t=()=>{const n=100*Math.pow(2,e);e!==s?(console.log(`Retry connect after ${n}ms`),this.connect(),this.reconnectTimeoutHandle=setTimeout(()=>{e++,t()},n)):console.log(`${s} retry attempts failed. Giving up.`)};t()}connect(){const{protocol:e,host:t}=window.location,n=`${e.replace(/http/,"ws")}//${t}`;this.socket=new WebSocket(n),this.socket.addEventListener("open",this.onOpen),this.socket.addEventListener("message",this.onMessage),this.socket.addEventListener("close",this.onClose)}},window.photonBus=new o.a,window.projectBus={getAllProjects:()=>Promise.resolve([{id:"1",name:"Prisma Dev",path:"/tmp/",credentials:{}}]),getProject:()=>Promise.resolve({id:"1",name:"Prisma Dev",path:"/tmp/",credentials:{}})}}});
!function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=424)}({186:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const s="photon",o="photon-response";let r=0;class i{constructor(){this.requests={},this._onMessage=({requestId:e,data:t,error:n})=>{if(this.requests[e])return n?this.requests[e].reject(n):this.requests[e].resolve(t),void delete this.requests[e]},window.transportBus.on(o,this._onMessage)}connect(e){return this._execute("connect",{credentials:e})}disconnect(){return this._execute("disconnect")}getDMMF(){return this._execute("get-dmmf")}getPhotonTypings(){return this._execute("get-typings")}request(e){return this._execute("request",{query:e})}_execute(e,t={}){return new Promise(async(n,o)=>{this.requests[r]={resolve:n,reject:o},window.transportBus.send(s,{requestId:r,action:e,data:t}),r++})}}},424:function(e,t,n){"use strict";n.r(t);const s=15;var o=n(186);window.transportBus=new class{constructor(){this.type="websocket",this.listeners={},this.queuedEvents=[],this.once=(e,t)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({once:!0,callback:t})},this.on=(e,t)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({once:!1,callback:t})},this.send=(e,t)=>{if(this.socket.readyState!==WebSocket.OPEN)return console.log("Websocket not open. Queueing this event:",JSON.stringify(t)),void this.queuedEvents.push({channel:e,payload:t});this.socket.send(JSON.stringify({channel:e,payload:t}))},this.onOpen=()=>{console.log("Socket connection established"),this.fireListenersForChannel("connect"),this.reconnectTimeoutHandle&&(clearTimeout(this.reconnectTimeoutHandle),this.reconnectTimeoutHandle=void 0,this.fireListenersForChannel("reconnect")),this.queuedEvents.length>0&&(console.log("Replaying queued events"),this.queuedEvents.forEach(e=>this.send(e.channel,e.payload)),this.queuedEvents=[])},this.onClose=()=>{this.reconnectTimeoutHandle||(console.log("Socket connection interrupted"),this.fireListenersForChannel("disconnect"))},this.onMessage=e=>{try{const{channel:t,payload:n={}}=JSON.parse(e.data);this.fireListenersForChannel(t,n)}catch(t){console.log("Malformed response from server, ignoring",e.data,t)}},this.fireListenersForChannel=(e,t={})=>{const n=this.listeners[e];n&&(this.listeners[e]=n.filter(({once:e,callback:n})=>(n(t),!e)))},this.connect()}reconnect(){console.log("Attempting to reconnect");let e=0;clearTimeout(this.reconnectTimeoutHandle),this.reconnectTimeoutHandle=void 0;const t=()=>{const n=100*Math.pow(2,e);e!==s?(console.log(`Retry connect after ${n}ms`),this.connect(),this.reconnectTimeoutHandle=setTimeout(()=>{e++,t()},n)):console.log(`${s} retry attempts failed. Giving up.`)};t()}connect(){const{protocol:e,host:t}=window.location,n=`${e.replace(/http/,"ws")}//${t}`;this.socket=new WebSocket(n),this.socket.addEventListener("open",this.onOpen),this.socket.addEventListener("message",this.onMessage),this.socket.addEventListener("close",this.onClose)}},window.photonBus=new o.a,window.projectBus={getAllProjects:()=>Promise.resolve([{id:"1",name:"Prisma Dev",path:"/tmp/",credentials:{}}]),getProject:()=>Promise.resolve({id:"1",name:"Prisma Dev",path:"/tmp/",credentials:{}})}}});
{
"name": "@prisma/studio",
"version": "0.30.0",
"version": "0.31.0",
"private": false,

@@ -25,3 +25,3 @@ "scripts": {

"devDependencies": {
"@prisma/studio-transports": "^0.30.0",
"@prisma/studio-transports": "^0.31.0",
"@svgr/webpack": "^4.3.0",

@@ -28,0 +28,0 @@ "@types/classnames": "^2.2.8",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc