@prisma/studio
Advanced tools
Comparing version 0.25.0 to 0.26.0
@@ -1,1 +0,1 @@ | ||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=419)}({419:function(e,t,n){"use strict";n.r(t);var r=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(u,s)}c((r=r.apply(e,t||[])).next())})},o=function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=function(){function e(){var e=this;this.listeners={},this._onSocketMessage=function(t){try{var n=JSON.parse(t.data),r=n.eventName,o=n.args,i=void 0===o?{}:o,u=e.listeners[r+"-response"];u&&(u.forEach(function(e){return e(i)}),e.listeners[r+"-response"]=[])}catch(e){console.log("Malformed response from server, ignoring",t.data,e)}}}return e.prototype._once=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype._send=function(e,t){this.socket.send(JSON.stringify({eventName:e,args:t}))},e.prototype._execute=function(e,t){var n=this;return new Promise(function(i,u){return r(n,void 0,void 0,function(){return o(this,function(n){return this._once("photon-response",function(e){var t=e.data,n=e.error;return n?u(n):i(t)}),this._send("photon",{action:e,data:t}),[2]})})})},e.prototype.connect=function(e){return r(this,void 0,void 0,function(){var t,n=this;return o(this,function(r){switch(r.label){case 0:return t=("https:"===window.location.protocol?"wss:":"ws:")+"//"+window.location.host,this.socket=new WebSocket(t),this.socket.addEventListener("message",this._onSocketMessage),[4,new Promise(function(e){n.socket.addEventListener("open",function(){console.log("Socket connection established"),e()})})];case 1:return r.sent(),[2,this._execute("connect",{credentials:e})]}})})},e.prototype.disconnect=function(){return this._execute("disconnect",{})},e.prototype.getDMMF=function(){return this._execute("get-dmmf",{})},e.prototype.getPhotonTypings=function(){return this._execute("get-typings",{})},e.prototype.request=function(e){return this._execute("request",{query:e})},e}();window.photonBus=new i,window.projectBus={getProject:function(){return Promise.resolve({})}}}}); | ||
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=419)}({419:function(e,t,n){"use strict";n.r(t);var o=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function c(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(s,c)}u((o=o.apply(e,t||[])).next())})},r=function(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},i=function(){function e(){var e=this;this.listeners={},this._onSocketMessage=function(t){try{var n=JSON.parse(t.data),o=n.eventName,r=n.args,i=void 0===r?{}:r,s=e.listeners[o+"-response"];s&&(e.listeners[o+"-response"]=s.filter(function(e){var t=e.once;return(0,e.callback)(i),!t}))}catch(e){console.log("Malformed response from server, ignoring",t.data,e)}}}return e.prototype._once=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({once:!0,callback:t})},e.prototype._on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({once:!1,callback:t})},e.prototype._send=function(e,t){this.socket.send(JSON.stringify({eventName:e,args:t}))},e.prototype._execute=function(e,t){var n=this;return new Promise(function(i,s){return o(n,void 0,void 0,function(){return r(this,function(n){return this._once("photon-response",function(e){var t=e.data,n=e.error;return n?s(n):i(t)}),this._send("photon",{action:e,data:t}),[2]})})})},e.prototype.connect=function(e){return o(this,void 0,void 0,function(){var t,n=this;return r(this,function(o){switch(o.label){case 0:return t=("https:"===window.location.protocol?"wss:":"ws:")+"//"+window.location.host,this.socket=new WebSocket(t),this.socket.addEventListener("message",this._onSocketMessage),[4,new Promise(function(e){n.socket.addEventListener("open",function(){console.log("Socket connection established"),e()})})];case 1:return o.sent(),[2,this._execute("connect",{credentials:e})]}})})},e.prototype.disconnect=function(){return this._execute("disconnect",{})},e.prototype.getDMMF=function(){return this._execute("get-dmmf",{})},e.prototype.getPhotonTypings=function(){return this._execute("get-typings",{})},e.prototype.request=function(e){return this._execute("request",{query:e})},e}(),s=5e3,c=function(){var e=this;this.listeners={},this.pingAcknowledged=!0,this.on=function(t,n){e.listeners[t]||(e.listeners[t]=[]),e.listeners[t].push({once:!1,callback:n})},window.photonBus._on("ping-response",function(){e.pingAcknowledged=!0}),this.pingInterval=setInterval(function(){e.pingAcknowledged?(e.pingAcknowledged=!1,window.photonBus._send("ping",{})):(console.log("Houston, we have a problem"),e.listeners["photon-disconnected"]&&(e.listeners["photon-disconnected"]=e.listeners["photon-disconnected"].filter(function(e){var t=e.once;return(0,e.callback)(),!t})),clearInterval(e.pingInterval))},s)};window.photonBus=new i,window.errorBus=new c,window.projectBus={getProject:function(){return Promise.resolve({})}}}}); |
{ | ||
"name": "@prisma/studio", | ||
"version": "0.25.0", | ||
"version": "0.26.0", | ||
"private": false, | ||
@@ -26,3 +26,3 @@ "scripts": { | ||
"devDependencies": { | ||
"@prisma/studio-transports": "^0.25.0", | ||
"@prisma/studio-transports": "^0.26.0", | ||
"@svgr/webpack": "^4.3.0", | ||
@@ -29,0 +29,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7652009
11507