zenstack 0.3.6 → 0.3.7
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/bundle/cli/index.js +2 -2
- package/package.json +2 -2
- package/src/cli/index.ts +1 -1
package/bundle/cli/index.js
CHANGED
|
@@ -4262,7 +4262,7 @@ Node text: ${this._forgottenText}`),new S.errors.InvalidOperationError(r)}return
|
|
|
4262
4262
|
`;let A=bje.default(s);s.write(`${f}\r
|
|
4263
4263
|
`);let{statusCode:O,buffered:R}=yield A;if(O===200){if(r.once("socket",Sje),t.secureEndpoint){let b=t.servername||t.host;if(!b)throw new Error('Could not determine "servername"');return a2("Upgrading socket connection to TLS"),zye.default.connect(Object.assign(Object.assign({},Dje(t,"host","hostname","path","port")),{socket:s,servername:b}))}return s}s.destroy();let h=new Jye.default.Socket;return h.readable=!0,r.once("socket",b=>{a2("replaying proxy buffer for failed request"),vje.default(b.listenerCount("data")>0),b.push(R),b.push(null)}),h})}};s0.default=dJ;function Sje(e){e.resume()}function Tje(e,r){return Boolean(!r&&e===80||r&&e===443)}function xje(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function Dje(e,...r){let t={},i;for(i in e)r.includes(i)||(t[i]=e[i]);return t}});var Yye=pt((mJ,Xye)=>{"use strict";var Cje=mJ&&mJ.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},fJ=Cje($ye());function pJ(e){return new fJ.default(e)}(function(e){e.HttpsProxyAgent=fJ.default,e.prototype=fJ.default.prototype})(pJ||(pJ={}));Xye.exports=pJ});var Qye=pt((rtr,Aje)=>{Aje.exports={name:"mixpanel",description:"A simple server-side API for mixpanel",keywords:["mixpanel","analytics","api","stats"],version:"0.17.0",homepage:"https://github.com/mixpanel/mixpanel-node",author:"Carl Sverre",license:"MIT",main:"lib/mixpanel-node",directories:{lib:"lib"},repository:{type:"git",url:"http://github.com/mixpanel/mixpanel-node.git"},engines:{node:">=10.0"},scripts:{test:"nodeunit"},types:"./lib/mixpanel-node.d.ts",devDependencies:{nodeunit:"^0.11.3",proxyquire:"^1.7.11",sinon:"^7.1.1"},dependencies:{"https-proxy-agent":"5.0.0"}}});var gJ=pt(_J=>{_J.async_all=function(e,r,t){var i=e.length,a=null,s=[],u=function(m,_){m&&(a=a||[],a.push(m)),s.push(_),--i===0&&t(a,s)};if(i===0)t(a,s);else for(var p=0,f=e.length;p<f;p++)r(e[p],u)};_J.ensure_timestamp=function(e){if(!(e instanceof Date||typeof e=="number"))throw new Error("`time` property must be a Date or Unix timestamp and is only required for `import` endpoint");return e instanceof Date?e.getTime():e}});var vJ=pt(yJ=>{var XG=require("util"),{ensure_timestamp:Lje}=gJ();function pC(e,r){return r&&(r.$ignore_alias&&(e.$ignore_alias=r.$ignore_alias),r.$ignore_time&&(e.$ignore_time=r.$ignore_time),r.hasOwnProperty("$ip")&&(e.$ip=r.$ip),r.hasOwnProperty("$time")&&(e.$time=Lje(r.$time)),r.hasOwnProperty("$latitude")&&r.hasOwnProperty("$longitude")&&(e.$latitude=r.$latitude,e.$longitude=r.$longitude)),e}yJ.merge_modifiers=pC;yJ.ProfileHelpers=(e=Object)=>class extends e{get token(){return this.mixpanel.token}get config(){return this.mixpanel.config}_set(r,t,i,a,{identifiers:s,set_once:u=!1}){let p={};typeof r=="object"?(typeof t=="object"?(a=i,i=t):a=t,p=r):(p[r]=t,(typeof i=="function"||!i)&&(a=i));let f={$token:this.token,...s},m=u?"$set_once":"$set";f[m]=p,"ip"in p&&(f.$ip=p.ip,delete p.ip),p.$ignore_time&&(f.$ignore_time=p.$ignore_time,delete p.$ignore_time),f=pC(f,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(f)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:f},a)}_delete_profile({identifiers:r,modifiers:t,callback:i}){let a={$delete:"",$token:this.token,...r};typeof t=="function"&&(i=t),a=pC(a,t),this.config.debug&&console.log(`Deleting profile ${JSON.stringify(r)}`),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:a},i)}_remove({identifiers:r,data:t,modifiers:i,callback:a}){let s={};if(typeof t!="object"||XG.isArray(t)){this.config.debug&&console.error("Invalid value passed to #remove - data must be an object with scalar values");return}for(let[u,p]of Object.entries(t))if(typeof p=="string"||typeof p=="number")s[u]=p;else{this.config.debug&&(console.error("Invalid argument passed to #remove - values must be scalar"),console.error("Passed "+u+":",p));return}Object.keys(s).length!==0&&(t={$remove:s,$token:this.token,...r},typeof i=="function"&&(a=i),t=pC(t,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(t)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:t},a))}_union({identifiers:r,data:t,modifiers:i,callback:a}){let s={};if(typeof t!="object"||XG.isArray(t)){this.config.debug&&console.error("Invalid value passed to #union - data must be an object with scalar or array values");return}for(let[p,f]of Object.entries(t))if(XG.isArray(f)){var u=f.filter(function(m){return typeof m=="string"||typeof m=="number"});u.length>0&&(s[p]=u)}else typeof f=="string"||typeof f=="number"?s[p]=[f]:this.config.debug&&(console.error("Invalid argument passed to #union - values must be a scalar value or array"),console.error("Passed "+p+":",f));Object.keys(s).length!==0&&(t={$union:s,$token:this.token,...r},typeof i=="function"&&(a=i),t=pC(t,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(t)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:t},a))}_unset({identifiers:r,prop:t,modifiers:i,callback:a}){let s=[];if(XG.isArray(t))s=t;else if(typeof t=="string")s=[t];else{this.config.debug&&(console.error("Invalid argument passed to #unset - must be a string or array"),console.error("Passed: "+t));return}let u={$unset:s,$token:this.token,...r};typeof i=="function"&&(a=i),u=pC(u,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(u)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:u},a)}}});var eve=pt(Zye=>{var{ProfileHelpers:Nje}=vJ(),hJ=class extends Nje(){constructor(r){super(),this.mixpanel=r,this.endpoint="/groups"}set_once(r,t,i,a,s,u){let p={$group_key:r,$group_id:t};this._set(i,a,s,u,{identifiers:p,set_once:!0})}set(r,t,i,a,s,u){let p={$group_key:r,$group_id:t};this._set(i,a,s,u,{identifiers:p})}delete_group(r,t,i,a){let s={$group_key:r,$group_id:t};this._delete_profile({identifiers:s,modifiers:i,callback:a})}remove(r,t,i,a,s){let u={$group_key:r,$group_id:t};this._remove({identifiers:u,data:i,modifiers:a,callback:s})}union(r,t,i,a,s){let u={$group_key:r,$group_id:t};this._union({identifiers:u,data:i,modifiers:a,callback:s})}unset(r,t,i,a,s){let u={$group_key:r,$group_id:t};this._unset({identifiers:u,prop:i,modifiers:a,callback:s})}};Zye.MixpanelGroups=hJ});var tve=pt(rve=>{var{merge_modifiers:YG,ProfileHelpers:Ije}=vJ(),EJ=class extends Ije(){constructor(r){super(),this.mixpanel=r,this.endpoint="/engage"}set_once(r,t,i,a,s){let u={$distinct_id:r};this._set(t,i,a,s,{identifiers:u,set_once:!0})}set(r,t,i,a,s){let u={$distinct_id:r};this._set(t,i,a,s,{identifiers:u})}increment(r,t,i,a,s){var u={};if(typeof t=="object"){typeof i=="object"?(s=a,a=i):s=i;for(let[f,m]of Object.entries(t))isNaN(parseFloat(m))?this.mixpanel.config.debug&&(console.error("Invalid increment value passed to mixpanel.people.increment - must be a number"),console.error("Passed "+f+":"+m)):u[f]=m}else typeof i=="number"||!i?(i=i||1,u[t]=i,typeof a=="function"&&(s=a)):typeof i=="function"?(s=i,u[t]=1):(s=a,a=typeof i=="object"?i:{},u[t]=1);var p={$add:u,$token:this.mixpanel.token,$distinct_id:r};p=YG(p,a),this.mixpanel.config.debug&&(console.log("Sending the following data to Mixpanel (Engage):"),console.log(p)),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:p},s)}append(r,t,i,a,s){var u={};typeof t=="object"?(typeof i=="object"?(s=a,a=i):s=i,Object.keys(t).forEach(function(f){u[f]=t[f]})):(u[t]=i,typeof a=="function"&&(s=a));var p={$append:u,$token:this.mixpanel.token,$distinct_id:r};p=YG(p,a),this.mixpanel.config.debug&&(console.log("Sending the following data to Mixpanel (Engage):"),console.log(p)),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:p},s)}track_charge(r,t,i,a,s){if(typeof i=="function"||!i?(s=i||function(){},i={}):(typeof a=="function"||!a)&&(s=a||function(){},(i.$ignore_time||i.hasOwnProperty("$ip"))&&(a={},Object.keys(i).forEach(function(f){a[f]=i[f],delete i[f]}))),typeof t!="number"&&(t=parseFloat(t),isNaN(t))){console.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}if(i.$amount=t,i.hasOwnProperty("$time")){var u=i.$time;Object.prototype.toString.call(u)==="[object Date]"&&(i.$time=u.toISOString())}var p={$append:{$transactions:i},$token:this.mixpanel.token,$distinct_id:r};p=YG(p,a),this.mixpanel.config.debug&&(console.log("Sending the following data to Mixpanel (Engage):"),console.log(p)),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:p},s)}clear_charges(r,t,i){var a={$set:{$transactions:[]},$token:this.mixpanel.token,$distinct_id:r};typeof t=="function"&&(i=t),a=YG(a,t),this.mixpanel.config.debug&&console.log("Clearing this user's charges:",r),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:a},i)}delete_user(r,t,i){let a={$distinct_id:r};this._delete_profile({identifiers:a,modifiers:t,callback:i})}remove(r,t,i,a){let s={$distinct_id:r};this._remove({identifiers:s,data:t,modifiers:i,callback:a})}union(r,t,i,a){let s={$distinct_id:r};this._union({identifiers:s,data:t,modifiers:i,callback:a})}unset(r,t,i,a){let s={$distinct_id:r};this._unset({identifiers:s,prop:t,modifiers:i,callback:a})}};rve.MixpanelPeople=EJ});var ove=pt((str,ave)=>{var Pje=require("querystring"),bJ=require("buffer").Buffer,nve=require("http"),SJ=require("https"),Oje=Yye(),kje=require("url"),Rje=Qye(),{async_all:Mje,ensure_timestamp:TJ}=gJ(),{MixpanelGroups:wje}=eve(),{MixpanelPeople:Fje}=tve(),Gje={test:!1,debug:!1,verbose:!1,host:"api.mixpanel.com",protocol:"https",path:"",keepAlive:!0,geolocate:!1},ive=function(e,r){if(!e)throw new Error("The Mixpanel Client needs a Mixpanel token: `init(token)`");let t={token:e,config:{...Gje}},{keepAlive:i}=t.config,a=50,s={http:nve,https:SJ},u={http:new nve.Agent({keepAlive:i}),https:new SJ.Agent({keepAlive:i})},p=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,f=p?new Oje(Object.assign(kje.parse(p),{keepAlive:i})):null;t.send_request=function(x,A){A=A||function(){};let O=bJ.from(JSON.stringify(x.data)).toString("base64"),R=x.endpoint,h=(x.method||"GET").toUpperCase(),b={ip:t.config.geolocate?1:0,verbose:t.config.verbose?1:0},K=t.config.key,C=t.config.secret,F=s[t.config.protocol],N={host:t.config.host,port:t.config.port,headers:{},method:h},q;if(!F)throw new Error("Mixpanel Initialization Error: Unsupported protocol "+t.config.protocol+". Supported protocols are: "+Object.keys(s));if(h==="POST"?(O="data="+O,N.headers["Content-Type"]="application/x-www-form-urlencoded",N.headers["Content-Length"]=bJ.byteLength(O)):h==="GET"&&(b.data=O),C){if(F!==SJ)throw new Error("Must use HTTPS if authenticating with API Secret");let I=bJ.from(C+":").toString("base64");N.headers.Authorization="Basic "+I}else if(K)b.api_key=K;else if(R==="/import")throw new Error("The Mixpanel Client needs a Mixpanel API Secret when importing old events: `init(token, { secret: ... })`");N.agent=f||u[t.config.protocol],t.config.test&&(b.test=1),N.path=t.config.path+R+"?"+Pje.stringify(b),q=F.request(N,function(I){var le="";I.on("data",function(fe){le+=fe}),I.on("end",function(){var fe;if(t.config.verbose)try{var he=JSON.parse(le);he.status!=1&&(fe=new Error("Mixpanel Server Error: "+he.error))}catch{fe=new Error("Could not parse response from Mixpanel")}else fe=le!=="1"?new Error("Mixpanel Server Error: "+le):void 0;A(fe)})}),q.on("error",function(I){t.config.debug&&console.log("Got Error: "+I.message),A(I)}),h==="POST"&&q.write(O),q.end()},t.send_event_request=function(x,A,O,R){O.token=t.token,O.mp_lib="node",O.$lib_version=Rje.version;var h={event:A,properties:O};t.config.debug&&console.log(`Sending the following event to Mixpanel:
|
|
4264
4264
|
`,h),t.send_request({method:"GET",endpoint:x,data:h},R)};var m=function(x,A){for(var O=[],R=0,h=x.length;R<h;)O.push(x.slice(R,R+=A));return O},_=function(x,A){var O=x.event_list,R=x.endpoint,h=x.max_batch_size?Math.min(a,x.max_batch_size):a,b=x.max_concurrent_requests||x.max_batch_size>a&&Math.ceil(x.max_batch_size/a),K=m(O,h),C=b?m(K,b):[K],F=K.length,N=C.length;function q(le,fe){le.length>0&&(le=le.map(function(he){var re=he.properties;return(R==="/import"||he.properties.time)&&(he.properties.time=TJ(he.properties.time)),he.properties.token=he.properties.token||t.token,he}),t.send_request({method:"POST",endpoint:R,data:le},fe))}function I(le){var fe=C[le],he=function(re,G){le+=1,le===N?A&&A(re,G):I(le)};Mje(fe,q,he)}I(0),t.config.debug&&console.log("Sending "+O.length+" events to Mixpanel in "+F+" batches of events and "+N+" batches of requests")};return t.track=function(x,A,O){(!A||typeof A=="function")&&(O=A,A={}),A.time&&(A.time=TJ(A.time)),t.send_event_request("/track",x,A,O)},t.track_batch=function(x,A,O){A=A||{},typeof A=="function"&&(O=A,A={});var R={event_list:x,endpoint:"/track",max_concurrent_requests:A.max_concurrent_requests,max_batch_size:A.max_batch_size};_(R,O)},t.import=function(x,A,O,R){(!O||typeof O=="function")&&(R=O,O={}),O.time=TJ(A),t.send_event_request("/import",x,O,R)},t.import_batch=function(x,A,O){var R;(typeof A=="function"||!A)&&(O=A,A={}),R={event_list:x,endpoint:"/import",max_concurrent_requests:A.max_concurrent_requests,max_batch_size:A.max_batch_size},_(R,O)},t.alias=function(x,A,O){var R={distinct_id:x,alias:A};t.track("$create_alias",R,O)},t.groups=new wje(t),t.people=new Fje(t),t.set_config=function(x){if(Object.assign(t.config,x),x.host){let[A,O]=x.host.split(":");t.config.host=A,O&&(t.config.port=Number(O))}},r&&t.set_config(r),t};ave.exports={Client:function(e){return console.warn("The function `Client(token)` is deprecated. It is now called `init(token)`."),ive(e)},init:ive}});var lve=pt((o2,xJ)=>{(function(e,r){typeof o2=="object"&&typeof xJ=="object"?xJ.exports=r(require("child_process"),require("crypto")):typeof define=="function"&&define.amd?define(["child_process","crypto"],r):typeof o2=="object"?o2["electron-machine-id"]=r(require("child_process"),require("crypto")):e["electron-machine-id"]=r(e.child_process,e.crypto)})(o2,function(e,r){return function(t){function i(s){if(a[s])return a[s].exports;var u=a[s]={exports:{},id:s,loaded:!1};return t[s].call(u.exports,u,u.exports,i),u.loaded=!0,u.exports}var a={};return i.m=t,i.c=a,i.p="",i(0)}([function(t,i,a){t.exports=a(34)},function(t,i,a){var s=a(29)("wks"),u=a(33),p=a(2).Symbol,f=typeof p=="function",m=t.exports=function(_){return s[_]||(s[_]=f&&p[_]||(f?p:u)("Symbol."+_))};m.store=s},function(t,i){var a=t.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},function(t,i,a){var s=a(9);t.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(t,i,a){t.exports=!a(24)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(t,i,a){var s=a(12),u=a(17);t.exports=a(4)?function(p,f,m){return s.f(p,f,u(1,m))}:function(p,f,m){return p[f]=m,p}},function(t,i){var a=t.exports={version:"2.4.0"};typeof __e=="number"&&(__e=a)},function(t,i,a){var s=a(14);t.exports=function(u,p,f){if(s(u),p===void 0)return u;switch(f){case 1:return function(m){return u.call(p,m)};case 2:return function(m,_){return u.call(p,m,_)};case 3:return function(m,_,x){return u.call(p,m,_,x)}}return function(){return u.apply(p,arguments)}}},function(t,i){var a={}.hasOwnProperty;t.exports=function(s,u){return a.call(s,u)}},function(t,i){t.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(t,i){t.exports={}},function(t,i){var a={}.toString;t.exports=function(s){return a.call(s).slice(8,-1)}},function(t,i,a){var s=a(3),u=a(26),p=a(32),f=Object.defineProperty;i.f=a(4)?Object.defineProperty:function(m,_,x){if(s(m),_=p(_,!0),s(x),u)try{return f(m,_,x)}catch{}if("get"in x||"set"in x)throw TypeError("Accessors not supported!");return"value"in x&&(m[_]=x.value),m}},function(t,i,a){var s=a(42),u=a(15);t.exports=function(p){return s(u(p))}},function(t,i){t.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},function(t,i){t.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(t,i,a){var s=a(9),u=a(2).document,p=s(u)&&s(u.createElement);t.exports=function(f){return p?u.createElement(f):{}}},function(t,i){t.exports=function(a,s){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:s}}},function(t,i,a){var s=a(12).f,u=a(8),p=a(1)("toStringTag");t.exports=function(f,m,_){f&&!u(f=_?f:f.prototype,p)&&s(f,p,{configurable:!0,value:m})}},function(t,i,a){var s=a(29)("keys"),u=a(33);t.exports=function(p){return s[p]||(s[p]=u(p))}},function(t,i){var a=Math.ceil,s=Math.floor;t.exports=function(u){return isNaN(u=+u)?0:(u>0?s:a)(u)}},function(t,i,a){var s=a(11),u=a(1)("toStringTag"),p=s(function(){return arguments}())=="Arguments",f=function(m,_){try{return m[_]}catch{}};t.exports=function(m){var _,x,A;return m===void 0?"Undefined":m===null?"Null":typeof(x=f(_=Object(m),u))=="string"?x:p?s(_):(A=s(_))=="Object"&&typeof _.callee=="function"?"Arguments":A}},function(t,i){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,i,a){var s=a(2),u=a(6),p=a(7),f=a(5),m="prototype",_=function(x,A,O){var R,h,b,K=x&_.F,C=x&_.G,F=x&_.S,N=x&_.P,q=x&_.B,I=x&_.W,le=C?u:u[A]||(u[A]={}),fe=le[m],he=C?s:F?s[A]:(s[A]||{})[m];C&&(O=A);for(R in O)h=!K&&he&&he[R]!==void 0,h&&R in le||(b=h?he[R]:O[R],le[R]=C&&typeof he[R]!="function"?O[R]:q&&h?p(b,s):I&&he[R]==b?function(re){var G=function(Y,X,P){if(this instanceof re){switch(arguments.length){case 0:return new re;case 1:return new re(Y);case 2:return new re(Y,X)}return new re(Y,X,P)}return re.apply(this,arguments)};return G[m]=re[m],G}(b):N&&typeof b=="function"?p(Function.call,b):b,N&&((le.virtual||(le.virtual={}))[R]=b,x&_.R&&fe&&!fe[R]&&f(fe,R,b)))};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,t.exports=_},function(t,i){t.exports=function(a){try{return!!a()}catch{return!0}}},function(t,i,a){t.exports=a(2).document&&document.documentElement},function(t,i,a){t.exports=!a(4)&&!a(24)(function(){return Object.defineProperty(a(16)("div"),"a",{get:function(){return 7}}).a!=7})},function(t,i,a){"use strict";var s=a(28),u=a(23),p=a(57),f=a(5),m=a(8),_=a(10),x=a(45),A=a(18),O=a(52),R=a(1)("iterator"),h=!([].keys&&"next"in[].keys()),b="@@iterator",K="keys",C="values",F=function(){return this};t.exports=function(N,q,I,le,fe,he,re){x(I,q,le);var G,Y,X,P=function(ue){if(!h&&ue in V)return V[ue];switch(ue){case K:return function(){return new I(this,ue)};case C:return function(){return new I(this,ue)}}return function(){return new I(this,ue)}},B=q+" Iterator",ie=fe==C,$=!1,V=N.prototype,j=V[R]||V[b]||fe&&V[fe],ne=j||P(fe),Z=fe?ie?P("entries"):ne:void 0,se=q=="Array"&&V.entries||j;if(se&&(X=O(se.call(new N)),X!==Object.prototype&&(A(X,B,!0),s||m(X,R)||f(X,R,F))),ie&&j&&j.name!==C&&($=!0,ne=function(){return j.call(this)}),s&&!re||!h&&!$&&V[R]||f(V,R,ne),_[q]=ne,_[B]=F,fe)if(G={values:ie?ne:P(C),keys:he?ne:P(K),entries:Z},re)for(Y in G)Y in V||p(V,Y,G[Y]);else u(u.P+u.F*(h||$),q,G);return G}},function(t,i){t.exports=!0},function(t,i,a){var s=a(2),u="__core-js_shared__",p=s[u]||(s[u]={});t.exports=function(f){return p[f]||(p[f]={})}},function(t,i,a){var s,u,p,f=a(7),m=a(41),_=a(25),x=a(16),A=a(2),O=A.process,R=A.setImmediate,h=A.clearImmediate,b=A.MessageChannel,K=0,C={},F="onreadystatechange",N=function(){var I=+this;if(C.hasOwnProperty(I)){var le=C[I];delete C[I],le()}},q=function(I){N.call(I.data)};R&&h||(R=function(I){for(var le=[],fe=1;arguments.length>fe;)le.push(arguments[fe++]);return C[++K]=function(){m(typeof I=="function"?I:Function(I),le)},s(K),K},h=function(I){delete C[I]},a(11)(O)=="process"?s=function(I){O.nextTick(f(N,I,1))}:b?(u=new b,p=u.port2,u.port1.onmessage=q,s=f(p.postMessage,p,1)):A.addEventListener&&typeof postMessage=="function"&&!A.importScripts?(s=function(I){A.postMessage(I+"","*")},A.addEventListener("message",q,!1)):s=F in x("script")?function(I){_.appendChild(x("script"))[F]=function(){_.removeChild(this),N.call(I)}}:function(I){setTimeout(f(N,I,1),0)}),t.exports={set:R,clear:h}},function(t,i,a){var s=a(20),u=Math.min;t.exports=function(p){return p>0?u(s(p),9007199254740991):0}},function(t,i,a){var s=a(9);t.exports=function(u,p){if(!s(u))return u;var f,m;if(p&&typeof(f=u.toString)=="function"&&!s(m=f.call(u))||typeof(f=u.valueOf)=="function"&&!s(m=f.call(u))||!p&&typeof(f=u.toString)=="function"&&!s(m=f.call(u)))return m;throw TypeError("Can't convert object to primitive value")}},function(t,i){var a=0,s=Math.random();t.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++a+s).toString(36))}},function(t,i,a){"use strict";function s(F){return F&&F.__esModule?F:{default:F}}function u(){return process.platform!=="win32"?"":process.arch==="ia32"&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"}function p(F){return(0,R.createHash)("sha256").update(F).digest("hex")}function f(F){switch(b){case"darwin":return F.split("IOPlatformUUID")[1].split(`
|
|
4265
|
-
`)[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return F.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw new Error("Unsupported platform: "+process.platform)}}function m(F){var N=f((0,O.execSync)(C[b]).toString());return F?N:p(N)}function _(F){return new A.default(function(N,q){return(0,O.exec)(C[b],{},function(I,le,fe){if(I)return q(new Error("Error while obtaining machine id: "+I.stack));var he=f(le.toString());return N(F?he:p(he))})})}Object.defineProperty(i,"__esModule",{value:!0});var x=a(35),A=s(x);i.machineIdSync=m,i.machineId=_;var O=a(70),R=a(71),h=process,b=h.platform,K={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"},C={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:K[u()]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(t,i,a){t.exports={default:a(36),__esModule:!0}},function(t,i,a){a(66),a(68),a(69),a(67),t.exports=a(6).Promise},function(t,i){t.exports=function(){}},function(t,i){t.exports=function(a,s,u,p){if(!(a instanceof s)||p!==void 0&&p in a)throw TypeError(u+": incorrect invocation!");return a}},function(t,i,a){var s=a(13),u=a(31),p=a(62);t.exports=function(f){return function(m,_,x){var A,O=s(m),R=u(O.length),h=p(x,R);if(f&&_!=_){for(;R>h;)if(A=O[h++],A!=A)return!0}else for(;R>h;h++)if((f||h in O)&&O[h]===_)return f||h||0;return!f&&-1}}},function(t,O,a){var s=a(7),u=a(44),p=a(43),f=a(3),m=a(31),_=a(64),x={},A={},O=t.exports=function(R,h,b,K,C){var F,N,q,I,le=C?function(){return R}:_(R),fe=s(b,K,h?2:1),he=0;if(typeof le!="function")throw TypeError(R+" is not iterable!");if(p(le)){for(F=m(R.length);F>he;he++)if(I=h?fe(f(N=R[he])[0],N[1]):fe(R[he]),I===x||I===A)return I}else for(q=le.call(R);!(N=q.next()).done;)if(I=u(q,fe,N.value,h),I===x||I===A)return I};O.BREAK=x,O.RETURN=A},function(t,i){t.exports=function(a,s,u){var p=u===void 0;switch(s.length){case 0:return p?a():a.call(u);case 1:return p?a(s[0]):a.call(u,s[0]);case 2:return p?a(s[0],s[1]):a.call(u,s[0],s[1]);case 3:return p?a(s[0],s[1],s[2]):a.call(u,s[0],s[1],s[2]);case 4:return p?a(s[0],s[1],s[2],s[3]):a.call(u,s[0],s[1],s[2],s[3])}return a.apply(u,s)}},function(t,i,a){var s=a(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(t,i,a){var s=a(10),u=a(1)("iterator"),p=Array.prototype;t.exports=function(f){return f!==void 0&&(s.Array===f||p[u]===f)}},function(t,i,a){var s=a(3);t.exports=function(u,p,f,m){try{return m?p(s(f)[0],f[1]):p(f)}catch(x){var _=u.return;throw _!==void 0&&s(_.call(u)),x}}},function(t,i,a){"use strict";var s=a(49),u=a(17),p=a(18),f={};a(5)(f,a(1)("iterator"),function(){return this}),t.exports=function(m,_,x){m.prototype=s(f,{next:u(1,x)}),p(m,_+" Iterator")}},function(t,i,a){var s=a(1)("iterator"),u=!1;try{var p=[7][s]();p.return=function(){u=!0},Array.from(p,function(){throw 2})}catch{}t.exports=function(f,m){if(!m&&!u)return!1;var _=!1;try{var x=[7],A=x[s]();A.next=function(){return{done:_=!0}},x[s]=function(){return A},f(x)}catch{}return _}},function(t,i){t.exports=function(a,s){return{value:s,done:!!a}}},function(t,i,a){var s=a(2),u=a(30).set,p=s.MutationObserver||s.WebKitMutationObserver,f=s.process,m=s.Promise,_=a(11)(f)=="process";t.exports=function(){var x,A,O,R=function(){var C,F;for(_&&(C=f.domain)&&C.exit();x;){F=x.fn,x=x.next;try{F()}catch(N){throw x?O():A=void 0,N}}A=void 0,C&&C.enter()};if(_)O=function(){f.nextTick(R)};else if(p){var h=!0,b=document.createTextNode("");new p(R).observe(b,{characterData:!0}),O=function(){b.data=h=!h}}else if(m&&m.resolve){var K=m.resolve();O=function(){K.then(R)}}else O=function(){u.call(s,R)};return function(C){var F={fn:C,next:void 0};A&&(A.next=F),x||(x=F,O()),A=F}}},function(t,i,a){var s=a(3),u=a(50),p=a(22),f=a(19)("IE_PROTO"),m=function(){},_="prototype",x=function(){var A,O=a(16)("iframe"),R=p.length,h=">";for(O.style.display="none",a(25).appendChild(O),O.src="javascript:",A=O.contentWindow.document,A.open(),A.write("<script>document.F=Object<\/script"+h),A.close(),x=A.F;R--;)delete x[_][p[R]];return x()};t.exports=Object.create||function(A,O){var R;return A!==null?(m[_]=s(A),R=new m,m[_]=null,R[f]=A):R=x(),O===void 0?R:u(R,O)}},function(t,i,a){var s=a(12),u=a(3),p=a(54);t.exports=a(4)?Object.defineProperties:function(f,m){u(f);for(var _,x=p(m),A=x.length,O=0;A>O;)s.f(f,_=x[O++],m[_]);return f}},function(t,i,a){var s=a(55),u=a(17),p=a(13),f=a(32),m=a(8),_=a(26),x=Object.getOwnPropertyDescriptor;i.f=a(4)?x:function(A,O){if(A=p(A),O=f(O,!0),_)try{return x(A,O)}catch{}if(m(A,O))return u(!s.f.call(A,O),A[O])}},function(t,i,a){var s=a(8),u=a(63),p=a(19)("IE_PROTO"),f=Object.prototype;t.exports=Object.getPrototypeOf||function(m){return m=u(m),s(m,p)?m[p]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?f:null}},function(t,i,a){var s=a(8),u=a(13),p=a(39)(!1),f=a(19)("IE_PROTO");t.exports=function(m,_){var x,A=u(m),O=0,R=[];for(x in A)x!=f&&s(A,x)&&R.push(x);for(;_.length>O;)s(A,x=_[O++])&&(~p(R,x)||R.push(x));return R}},function(t,i,a){var s=a(53),u=a(22);t.exports=Object.keys||function(p){return s(p,u)}},function(t,i){i.f={}.propertyIsEnumerable},function(t,i,a){var s=a(5);t.exports=function(u,p,f){for(var m in p)f&&u[m]?u[m]=p[m]:s(u,m,p[m]);return u}},function(t,i,a){t.exports=a(5)},function(t,i,a){var s=a(9),u=a(3),p=function(f,m){if(u(f),!s(m)&&m!==null)throw TypeError(m+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(f,m,_){try{_=a(7)(Function.call,a(51).f(Object.prototype,"__proto__").set,2),_(f,[]),m=!(f instanceof Array)}catch{m=!0}return function(x,A){return p(x,A),m?x.__proto__=A:_(x,A),x}}({},!1):void 0),check:p}},function(t,i,a){"use strict";var s=a(2),u=a(6),p=a(12),f=a(4),m=a(1)("species");t.exports=function(_){var x=typeof u[_]=="function"?u[_]:s[_];f&&x&&!x[m]&&p.f(x,m,{configurable:!0,get:function(){return this}})}},function(t,i,a){var s=a(3),u=a(14),p=a(1)("species");t.exports=function(f,m){var _,x=s(f).constructor;return x===void 0||(_=s(x)[p])==null?m:u(_)}},function(t,i,a){var s=a(20),u=a(15);t.exports=function(p){return function(f,m){var _,x,A=String(u(f)),O=s(m),R=A.length;return O<0||O>=R?p?"":void 0:(_=A.charCodeAt(O),_<55296||_>56319||O+1===R||(x=A.charCodeAt(O+1))<56320||x>57343?p?A.charAt(O):_:p?A.slice(O,O+2):(_-55296<<10)+(x-56320)+65536)}}},function(t,i,a){var s=a(20),u=Math.max,p=Math.min;t.exports=function(f,m){return f=s(f),f<0?u(f+m,0):p(f,m)}},function(t,i,a){var s=a(15);t.exports=function(u){return Object(s(u))}},function(t,i,a){var s=a(21),u=a(1)("iterator"),p=a(10);t.exports=a(6).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||p[s(f)]}},function(t,i,a){"use strict";var s=a(37),u=a(47),p=a(10),f=a(13);t.exports=a(27)(Array,"Array",function(m,_){this._t=f(m),this._i=0,this._k=_},function(){var m=this._t,_=this._k,x=this._i++;return!m||x>=m.length?(this._t=void 0,u(1)):_=="keys"?u(0,x):_=="values"?u(0,m[x]):u(0,[x,m[x]])},"values"),p.Arguments=p.Array,s("keys"),s("values"),s("entries")},function(t,i){},function(t,i,a){"use strict";var s,u,p,f=a(28),m=a(2),_=a(7),x=a(21),A=a(23),O=a(9),R=(a(3),a(14)),h=a(38),b=a(40),K=(a(58).set,a(60)),C=a(30).set,F=a(48)(),N="Promise",q=m.TypeError,le=m.process,I=m[N],le=m.process,fe=x(le)=="process",he=function(){},re=!!function(){try{var se=I.resolve(1),ue=(se.constructor={})[a(1)("species")]=function(k){k(he,he)};return(fe||typeof PromiseRejectionEvent=="function")&&se.then(he)instanceof ue}catch{}}(),G=function(se,ue){return se===ue||se===I&&ue===p},Y=function(se){var ue;return!(!O(se)||typeof(ue=se.then)!="function")&&ue},X=function(se){return G(I,se)?new P(se):new u(se)},P=u=function(se){var ue,k;this.promise=new se(function(W,T){if(ue!==void 0||k!==void 0)throw q("Bad Promise constructor");ue=W,k=T}),this.resolve=R(ue),this.reject=R(k)},B=function(se){try{se()}catch(ue){return{error:ue}}},ie=function(se,ue){if(!se._n){se._n=!0;var k=se._c;F(function(){for(var W=se._v,T=se._s==1,L=0,J=function(v){var U,H,Q=T?v.ok:v.fail,te=v.resolve,be=v.reject,ye=v.domain;try{Q?(T||(se._h==2&&j(se),se._h=1),Q===!0?U=W:(ye&&ye.enter(),U=Q(W),ye&&ye.exit()),U===v.promise?be(q("Promise-chain cycle")):(H=Y(U))?H.call(U,te,be):te(U)):be(W)}catch(xe){be(xe)}};k.length>L;)J(k[L++]);se._c=[],se._n=!1,ue&&!se._h&&$(se)})}},$=function(se){C.call(m,function(){var ue,k,W,T=se._v;if(V(se)&&(ue=B(function(){fe?le.emit("unhandledRejection",T,se):(k=m.onunhandledrejection)?k({promise:se,reason:T}):(W=m.console)&&W.error&&W.error("Unhandled promise rejection",T)}),se._h=fe||V(se)?2:1),se._a=void 0,ue)throw ue.error})},V=function(se){if(se._h==1)return!1;for(var ue,k=se._a||se._c,W=0;k.length>W;)if(ue=k[W++],ue.fail||!V(ue.promise))return!1;return!0},j=function(se){C.call(m,function(){var ue;fe?le.emit("rejectionHandled",se):(ue=m.onrejectionhandled)&&ue({promise:se,reason:se._v})})},ne=function(se){var ue=this;ue._d||(ue._d=!0,ue=ue._w||ue,ue._v=se,ue._s=2,ue._a||(ue._a=ue._c.slice()),ie(ue,!0))},Z=function(se){var ue,k=this;if(!k._d){k._d=!0,k=k._w||k;try{if(k===se)throw q("Promise can't be resolved itself");(ue=Y(se))?F(function(){var W={_w:k,_d:!1};try{ue.call(se,_(Z,W,1),_(ne,W,1))}catch(T){ne.call(W,T)}}):(k._v=se,k._s=1,ie(k,!1))}catch(W){ne.call({_w:k,_d:!1},W)}}};re||(I=function(se){h(this,I,N,"_h"),R(se),s.call(this);try{se(_(Z,this,1),_(ne,this,1))}catch(ue){ne.call(this,ue)}},s=function(se){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},s.prototype=a(56)(I.prototype,{then:function(se,ue){var k=X(K(this,I));return k.ok=typeof se!="function"||se,k.fail=typeof ue=="function"&&ue,k.domain=fe?le.domain:void 0,this._c.push(k),this._a&&this._a.push(k),this._s&&ie(this,!1),k.promise},catch:function(se){return this.then(void 0,se)}}),P=function(){var se=new s;this.promise=se,this.resolve=_(Z,se,1),this.reject=_(ne,se,1)}),A(A.G+A.W+A.F*!re,{Promise:I}),a(18)(I,N),a(59)(N),p=a(6)[N],A(A.S+A.F*!re,N,{reject:function(se){var ue=X(this),k=ue.reject;return k(se),ue.promise}}),A(A.S+A.F*(f||!re),N,{resolve:function(se){if(se instanceof I&&G(se.constructor,this))return se;var ue=X(this),k=ue.resolve;return k(se),ue.promise}}),A(A.S+A.F*!(re&&a(46)(function(se){I.all(se).catch(he)})),N,{all:function(se){var ue=this,k=X(ue),W=k.resolve,T=k.reject,L=B(function(){var J=[],v=0,U=1;b(se,!1,function(H){var Q=v++,te=!1;J.push(void 0),U++,ue.resolve(H).then(function(be){te||(te=!0,J[Q]=be,--U||W(J))},T)}),--U||W(J)});return L&&T(L.error),k.promise},race:function(se){var ue=this,k=X(ue),W=k.reject,T=B(function(){b(se,!1,function(L){ue.resolve(L).then(k.resolve,W)})});return T&&W(T.error),k.promise}})},function(t,i,a){"use strict";var s=a(61)(!0);a(27)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,p=this._t,f=this._i;return f>=p.length?{value:void 0,done:!0}:(u=s(p,f),this._i+=u.length,{value:u,done:!1})})},function(t,i,a){a(65);for(var s=a(2),u=a(5),p=a(10),f=a(1)("toStringTag"),m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],_=0;_<5;_++){var x=m[_],A=s[x],O=A&&A.prototype;O&&!O[f]&&u(O,f,x),p[x]=p.Array}},function(t,i){t.exports=require("child_process")},function(t,i){t.exports=require("crypto")}])})});var DJ=pt((utr,uve)=>{uve.exports=function(r,t){var i="000000000"+r;return i.substr(i.length-t)}});var mve=pt((ctr,pve)=>{var cve=DJ(),Uje=require("os"),dve=2,Kje=cve(process.pid.toString(36),dve),fve=Uje.hostname(),Wje=fve.length,Vje=cve(fve.split("").reduce(function(e,r){return+e+r.charCodeAt(0)},+Wje+36).toString(36),dve);pve.exports=function(){return Kje+Vje}});var gve=pt((dtr,_ve)=>{var jje=require("crypto"),Hje=Math.pow(2,32)-1;_ve.exports=function(){return Math.abs(jje.randomBytes(4).readInt32BE()/Hje)}});var bve=pt((ftr,Eve)=>{var QG=mve(),yve=DJ(),qje=gve(),s2=0,AJ=4,ZG=36,vve=Math.pow(ZG,AJ);function CJ(){return yve((qje()*vve<<0).toString(ZG),AJ)}function hve(){return s2=s2<vve?s2:0,s2++,s2-1}function l2(){var e="c",r=new Date().getTime().toString(ZG),t=yve(hve().toString(ZG),AJ),i=QG(),a=CJ()+CJ();return e+r+t+i+a}l2.slug=function(){var r=new Date().getTime().toString(36),t=hve().toString(36).slice(-4),i=QG().slice(0,1)+QG().slice(-1),a=CJ().slice(-2);return r.slice(-2)+t+i+a};l2.isCuid=function(r){return typeof r!="string"?!1:!!r.startsWith("c")};l2.isSlug=function(r){if(typeof r!="string")return!1;var t=r.length;return t>=7&&t<=10};l2.fingerprint=QG;Eve.exports=l2});var Tve=pt((ptr,Sve)=>{"use strict";var Jje=setTimeout;function zje(e,r){var t=r.useCachedSetTimeout?Jje:setTimeout;return new Promise(function(i){t(i,e)})}Sve.exports=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.useCachedSetTimeout,i=zje(e,{useCachedSetTimeout:t});function a(s){return i.then(function(){return s})}return a.then=function(){return i.then.apply(i,arguments)},a.catch=Promise.resolve().catch,a}});var Ave=pt((mtr,Cve)=>{"use strict";var NJ=[],c2=[],xve=!1,LJ=0,Dve=1e4,mC={},u2={};function IJ(e,r,t){let i=!1;function a(){i||(i=!0,e===!0&&process.nextTick(process.exit.bind(null,r)))}function s(){process.nextTick(()=>{--LJ===0&&a()})}function u(p,f,m){return e&&m.length>p?(LJ++,f?m(f,s):m(s)):f?m(f):m()}xve||(xve=!0,t&&c2.map(u.bind(null,1,t)),NJ.map(u.bind(null,0,null)),LJ?setTimeout(()=>{a()},Dve):a())}function y_(e){NJ.push(e),NJ.length===1&&(y_.hookEvent("exit"),y_.hookEvent("beforeExit",0),y_.hookEvent("SIGHUP",128+1),y_.hookEvent("SIGINT",128+2),y_.hookEvent("SIGTERM",128+15),y_.hookEvent("SIGBREAK",128+21),y_.hookEvent("message",0,function(r){if(r!=="shutdown")return!0}))}y_.hookEvent=function(e,r,t){mC[e]=function(){let i=u2[e];for(let a=0;a<i.length;a++)if(i[a].apply(this,arguments))return;IJ(r!=null,r)},u2[e]||(u2[e]=[]),t&&u2[e].push(t),process.on(e,mC[e])};y_.unhookEvent=function(e){process.removeListener(e,mC[e]),delete mC[e],delete u2[e]};y_.hookedEvents=function(){let e=[];for(let r in mC)({}).hasOwnProperty.call(mC,r)&&e.push(r);return e};y_.uncaughtExceptionHandler=function(e){c2.push(e),c2.length===1&&process.once("uncaughtException",IJ.bind(null,!0,1))};y_.unhandledRejectionHandler=function(e){c2.push(e),c2.length===1&&process.once("unhandledRejection",IJ.bind(null,!0,1))};y_.forceExitTimeout=function(e){Dve=e};Cve.exports=y_});var e3=pt((_tr,$je)=>{$je.exports={name:"zenstack",publisher:"zenstack",displayName:"ZenStack Language Tools",description:"A toolkit for modeling data and access policies in full-stack development with Next.js and Typescript",version:"0.3.6",author:{name:"ZenStack Team"},license:"MIT",keywords:["fullstack","react","typescript","data modeling"],preview:!0,icon:"asset/logo-256-bg.png",repository:{type:"git",url:"https://github.com/zenstackhq/zenstack"},engines:{vscode:"^1.56.0"},categories:["Programming Languages"],contributes:{languages:[{id:"zmodel",aliases:["ZenStack Model","zmodel"],extensions:[".zmodel"],configuration:"./language-configuration.json",icon:{light:"./asset/logo-light-256.png",dark:"./asset/logo-dark-256.png"}}],grammars:[{language:"zmodel",scopeName:"source.zmodel",path:"./syntaxes/zmodel.tmLanguage.json"}]},activationEvents:["onLanguage:zmodel"],files:["bin","src","bundle"],bin:{zenstack:"./bin/cli"},main:"./bundle/extension.js",scripts:{"vscode:publish":"vsce publish --no-dependencies","vscode:prepublish":"cp ../../README.md ./ && pnpm lint && pnpm build","vscode:package":"vsce package --no-dependencies",clean:"rimraf bundle",build:"pnpm langium:generate && tsc --noEmit && pnpm bundle && cp -r src/res/* bundle/res/",bundle:"npm run clean && node build/bundle.js --minify","bundle-watch":"node build/bundle.js --watch","ts:watch":"tsc --watch --noEmit","tsc-alias:watch":"tsc-alias --watch",lint:"eslint src --ext ts","langium:generate":"langium generate","langium:watch":"langium generate --watch",watch:'concurrently --kill-others "npm:langium:watch" "npm:bundle-watch"',test:"jest",prepublishOnly:"cp ../../README.md ./ && pnpm build"},dependencies:{"@zenstackhq/internal":"workspace:*","async-exit-hook":"^2.0.1","change-case":"^4.1.2",chevrotain:"^9.1.0",colors:"1.4.0",commander:"^8.3.0",cuid:"^2.1.8",langium:"^0.5.0",mixpanel:"^0.17.0","node-machine-id":"^1.1.12",pluralize:"^8.0.0",prisma:"^4.5.0",promisify:"^0.0.3","sleep-promise":"^9.1.0","ts-morph":"^16.0.0",uuid:"^9.0.0","vscode-jsonrpc":"^8.0.2","vscode-languageclient":"^8.0.2","vscode-languageserver":"^8.0.2","vscode-languageserver-textdocument":"^1.0.7","vscode-uri":"^3.0.6"},devDependencies:{"@prisma/internals":"^4.5.0","@types/async-exit-hook":"^2.0.0","@types/jest":"^29.2.0","@types/node":"^14.18.32","@types/pluralize":"^0.0.29","@types/tmp":"^0.2.3","@types/uuid":"^8.3.4","@types/vscode":"^1.56.0","@typescript-eslint/eslint-plugin":"^5.42.0","@typescript-eslint/parser":"^5.42.0",concurrently:"^7.4.0",dotenv:"^16.0.3",esbuild:"^0.15.12",eslint:"^8.27.0",jest:"^29.2.1","langium-cli":"^0.5.0",rimraf:"^3.0.2",tmp:"^0.2.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tsc-alias":"^1.7.0","tsconfig-paths-jest":"^0.0.1",typescript:"^4.8.4",vsce:"^2.13.0"}}});var Qje={};xAe(Qje,{default:()=>Yje,generateAction:()=>Mve});module.exports=DAe(Qje);var n3=Xo(IZ());var Pse=Xo(PE()),Lse="AbstractDeclaration";var w3e="Expression";var Nse="ReferenceTarget";var vk="TypeDeclaration";var tD="ArrayExpr";function hk(e){return $g.isInstance(e,tD)}var KA="Attribute";function Ose(e){return $g.isInstance(e,KA)}var kse="AttributeArg";var VA="BinaryExpr";var Ek="DataModel";function Pd(e){return $g.isInstance(e,Ek)}var BK="DataModelField";function Hb(e){return $g.isInstance(e,BK)}var bk="DataSource";function Rse(e){return $g.isInstance(e,bk)}var Sk="Enum";function Mse(e){return $g.isInstance(e,Sk)}var Tk="EnumField";function nD(e){return $g.isInstance(e,Tk)}var Ise="Function";var F3e="FunctionParam";var iD="InvocationExpr";function jA(e){return $g.isInstance(e,iD)}var qb="LiteralExpr";function W_(e){return $g.isInstance(e,qb)}var Jb="MemberAccessExpr";function UK(e){return $g.isInstance(e,Jb)}var HA="NullExpr";var zb="ReferenceExpr";function $b(e){return $g.isInstance(e,zb)}var aD="ThisExpr";function IT(e){return $g.isInstance(e,aD)}var qA="UnaryExpr";var WA=class{getAllTypes(){return["AbstractDeclaration","Argument","ArrayExpr","Attribute","AttributeArg","AttributeAttribute","AttributeParam","AttributeParamType","BinaryExpr","DataModel","DataModelAttribute","DataModelField","DataModelFieldAttribute","DataModelFieldType","DataSource","DataSourceField","Enum","EnumField","Expression","Function","FunctionParam","FunctionParamType","InvocationExpr","LiteralExpr","MemberAccessExpr","Model","NullExpr","ReferenceArg","ReferenceExpr","ReferenceTarget","ThisExpr","TypeDeclaration","UnaryExpr"]}isInstance(r,t){return(0,Pse.isAstNode)(r)&&this.isSubtype(r.$type,t)}isSubtype(r,t){if(r===t)return!0;switch(r){case tD:case VA:case iD:case qb:case Jb:case HA:case zb:case aD:case qA:return this.isSubtype(w3e,t);case KA:case bk:case Ise:return this.isSubtype(Lse,t);case Ek:case Sk:return this.isSubtype(Lse,t)||this.isSubtype(vk,t);case BK:case Tk:case F3e:return this.isSubtype(Nse,t);default:return!1}}getReferenceType(r){let t=`${r.container.$type}:${r.property}`;switch(t){case"AttributeAttribute:decl":return KA;case"AttributeParamType:reference":return vk;case"DataModelAttribute:decl":return KA;case"DataModelFieldAttribute:decl":return KA;case"DataModelFieldType:reference":return vk;case"FunctionParamType:reference":return vk;case"InvocationExpr:function":return Ise;case"MemberAccessExpr:member":return BK;case"ReferenceExpr:target":return Nse;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(r){switch(r){case"ArrayExpr":return{name:"ArrayExpr",mandatory:[{name:"items",type:"array"}]};case"Attribute":return{name:"Attribute",mandatory:[{name:"attributes",type:"array"},{name:"params",type:"array"}]};case"AttributeAttribute":return{name:"AttributeAttribute",mandatory:[{name:"args",type:"array"}]};case"AttributeParam":return{name:"AttributeParam",mandatory:[{name:"default",type:"boolean"}]};case"AttributeParamType":return{name:"AttributeParamType",mandatory:[{name:"array",type:"boolean"},{name:"optional",type:"boolean"}]};case"DataModel":return{name:"DataModel",mandatory:[{name:"attributes",type:"array"},{name:"fields",type:"array"}]};case"DataModelAttribute":return{name:"DataModelAttribute",mandatory:[{name:"args",type:"array"}]};case"DataModelField":return{name:"DataModelField",mandatory:[{name:"attributes",type:"array"}]};case"DataModelFieldAttribute":return{name:"DataModelFieldAttribute",mandatory:[{name:"args",type:"array"}]};case"DataModelFieldType":return{name:"DataModelFieldType",mandatory:[{name:"array",type:"boolean"},{name:"optional",type:"boolean"}]};case"DataSource":return{name:"DataSource",mandatory:[{name:"fields",type:"array"}]};case"Enum":return{name:"Enum",mandatory:[{name:"fields",type:"array"}]};case"Function":return{name:"Function",mandatory:[{name:"params",type:"array"}]};case"FunctionParamType":return{name:"FunctionParamType",mandatory:[{name:"array",type:"boolean"}]};case"InvocationExpr":return{name:"InvocationExpr",mandatory:[{name:"args",type:"array"}]};case"Model":return{name:"Model",mandatory:[{name:"declarations",type:"array"}]};case"ReferenceExpr":return{name:"ReferenceExpr",mandatory:[{name:"args",type:"array"}]};default:return{name:r,mandatory:[]}}}},$g=new WA;var wse=Xo(PE()),xk,Fse=()=>xk!=null?xk:xk=(0,wse.loadGrammarFromJson)(`{
|
|
4265
|
+
`)[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return F.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw new Error("Unsupported platform: "+process.platform)}}function m(F){var N=f((0,O.execSync)(C[b]).toString());return F?N:p(N)}function _(F){return new A.default(function(N,q){return(0,O.exec)(C[b],{},function(I,le,fe){if(I)return q(new Error("Error while obtaining machine id: "+I.stack));var he=f(le.toString());return N(F?he:p(he))})})}Object.defineProperty(i,"__esModule",{value:!0});var x=a(35),A=s(x);i.machineIdSync=m,i.machineId=_;var O=a(70),R=a(71),h=process,b=h.platform,K={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"},C={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:K[u()]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(t,i,a){t.exports={default:a(36),__esModule:!0}},function(t,i,a){a(66),a(68),a(69),a(67),t.exports=a(6).Promise},function(t,i){t.exports=function(){}},function(t,i){t.exports=function(a,s,u,p){if(!(a instanceof s)||p!==void 0&&p in a)throw TypeError(u+": incorrect invocation!");return a}},function(t,i,a){var s=a(13),u=a(31),p=a(62);t.exports=function(f){return function(m,_,x){var A,O=s(m),R=u(O.length),h=p(x,R);if(f&&_!=_){for(;R>h;)if(A=O[h++],A!=A)return!0}else for(;R>h;h++)if((f||h in O)&&O[h]===_)return f||h||0;return!f&&-1}}},function(t,O,a){var s=a(7),u=a(44),p=a(43),f=a(3),m=a(31),_=a(64),x={},A={},O=t.exports=function(R,h,b,K,C){var F,N,q,I,le=C?function(){return R}:_(R),fe=s(b,K,h?2:1),he=0;if(typeof le!="function")throw TypeError(R+" is not iterable!");if(p(le)){for(F=m(R.length);F>he;he++)if(I=h?fe(f(N=R[he])[0],N[1]):fe(R[he]),I===x||I===A)return I}else for(q=le.call(R);!(N=q.next()).done;)if(I=u(q,fe,N.value,h),I===x||I===A)return I};O.BREAK=x,O.RETURN=A},function(t,i){t.exports=function(a,s,u){var p=u===void 0;switch(s.length){case 0:return p?a():a.call(u);case 1:return p?a(s[0]):a.call(u,s[0]);case 2:return p?a(s[0],s[1]):a.call(u,s[0],s[1]);case 3:return p?a(s[0],s[1],s[2]):a.call(u,s[0],s[1],s[2]);case 4:return p?a(s[0],s[1],s[2],s[3]):a.call(u,s[0],s[1],s[2],s[3])}return a.apply(u,s)}},function(t,i,a){var s=a(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(t,i,a){var s=a(10),u=a(1)("iterator"),p=Array.prototype;t.exports=function(f){return f!==void 0&&(s.Array===f||p[u]===f)}},function(t,i,a){var s=a(3);t.exports=function(u,p,f,m){try{return m?p(s(f)[0],f[1]):p(f)}catch(x){var _=u.return;throw _!==void 0&&s(_.call(u)),x}}},function(t,i,a){"use strict";var s=a(49),u=a(17),p=a(18),f={};a(5)(f,a(1)("iterator"),function(){return this}),t.exports=function(m,_,x){m.prototype=s(f,{next:u(1,x)}),p(m,_+" Iterator")}},function(t,i,a){var s=a(1)("iterator"),u=!1;try{var p=[7][s]();p.return=function(){u=!0},Array.from(p,function(){throw 2})}catch{}t.exports=function(f,m){if(!m&&!u)return!1;var _=!1;try{var x=[7],A=x[s]();A.next=function(){return{done:_=!0}},x[s]=function(){return A},f(x)}catch{}return _}},function(t,i){t.exports=function(a,s){return{value:s,done:!!a}}},function(t,i,a){var s=a(2),u=a(30).set,p=s.MutationObserver||s.WebKitMutationObserver,f=s.process,m=s.Promise,_=a(11)(f)=="process";t.exports=function(){var x,A,O,R=function(){var C,F;for(_&&(C=f.domain)&&C.exit();x;){F=x.fn,x=x.next;try{F()}catch(N){throw x?O():A=void 0,N}}A=void 0,C&&C.enter()};if(_)O=function(){f.nextTick(R)};else if(p){var h=!0,b=document.createTextNode("");new p(R).observe(b,{characterData:!0}),O=function(){b.data=h=!h}}else if(m&&m.resolve){var K=m.resolve();O=function(){K.then(R)}}else O=function(){u.call(s,R)};return function(C){var F={fn:C,next:void 0};A&&(A.next=F),x||(x=F,O()),A=F}}},function(t,i,a){var s=a(3),u=a(50),p=a(22),f=a(19)("IE_PROTO"),m=function(){},_="prototype",x=function(){var A,O=a(16)("iframe"),R=p.length,h=">";for(O.style.display="none",a(25).appendChild(O),O.src="javascript:",A=O.contentWindow.document,A.open(),A.write("<script>document.F=Object<\/script"+h),A.close(),x=A.F;R--;)delete x[_][p[R]];return x()};t.exports=Object.create||function(A,O){var R;return A!==null?(m[_]=s(A),R=new m,m[_]=null,R[f]=A):R=x(),O===void 0?R:u(R,O)}},function(t,i,a){var s=a(12),u=a(3),p=a(54);t.exports=a(4)?Object.defineProperties:function(f,m){u(f);for(var _,x=p(m),A=x.length,O=0;A>O;)s.f(f,_=x[O++],m[_]);return f}},function(t,i,a){var s=a(55),u=a(17),p=a(13),f=a(32),m=a(8),_=a(26),x=Object.getOwnPropertyDescriptor;i.f=a(4)?x:function(A,O){if(A=p(A),O=f(O,!0),_)try{return x(A,O)}catch{}if(m(A,O))return u(!s.f.call(A,O),A[O])}},function(t,i,a){var s=a(8),u=a(63),p=a(19)("IE_PROTO"),f=Object.prototype;t.exports=Object.getPrototypeOf||function(m){return m=u(m),s(m,p)?m[p]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?f:null}},function(t,i,a){var s=a(8),u=a(13),p=a(39)(!1),f=a(19)("IE_PROTO");t.exports=function(m,_){var x,A=u(m),O=0,R=[];for(x in A)x!=f&&s(A,x)&&R.push(x);for(;_.length>O;)s(A,x=_[O++])&&(~p(R,x)||R.push(x));return R}},function(t,i,a){var s=a(53),u=a(22);t.exports=Object.keys||function(p){return s(p,u)}},function(t,i){i.f={}.propertyIsEnumerable},function(t,i,a){var s=a(5);t.exports=function(u,p,f){for(var m in p)f&&u[m]?u[m]=p[m]:s(u,m,p[m]);return u}},function(t,i,a){t.exports=a(5)},function(t,i,a){var s=a(9),u=a(3),p=function(f,m){if(u(f),!s(m)&&m!==null)throw TypeError(m+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(f,m,_){try{_=a(7)(Function.call,a(51).f(Object.prototype,"__proto__").set,2),_(f,[]),m=!(f instanceof Array)}catch{m=!0}return function(x,A){return p(x,A),m?x.__proto__=A:_(x,A),x}}({},!1):void 0),check:p}},function(t,i,a){"use strict";var s=a(2),u=a(6),p=a(12),f=a(4),m=a(1)("species");t.exports=function(_){var x=typeof u[_]=="function"?u[_]:s[_];f&&x&&!x[m]&&p.f(x,m,{configurable:!0,get:function(){return this}})}},function(t,i,a){var s=a(3),u=a(14),p=a(1)("species");t.exports=function(f,m){var _,x=s(f).constructor;return x===void 0||(_=s(x)[p])==null?m:u(_)}},function(t,i,a){var s=a(20),u=a(15);t.exports=function(p){return function(f,m){var _,x,A=String(u(f)),O=s(m),R=A.length;return O<0||O>=R?p?"":void 0:(_=A.charCodeAt(O),_<55296||_>56319||O+1===R||(x=A.charCodeAt(O+1))<56320||x>57343?p?A.charAt(O):_:p?A.slice(O,O+2):(_-55296<<10)+(x-56320)+65536)}}},function(t,i,a){var s=a(20),u=Math.max,p=Math.min;t.exports=function(f,m){return f=s(f),f<0?u(f+m,0):p(f,m)}},function(t,i,a){var s=a(15);t.exports=function(u){return Object(s(u))}},function(t,i,a){var s=a(21),u=a(1)("iterator"),p=a(10);t.exports=a(6).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||p[s(f)]}},function(t,i,a){"use strict";var s=a(37),u=a(47),p=a(10),f=a(13);t.exports=a(27)(Array,"Array",function(m,_){this._t=f(m),this._i=0,this._k=_},function(){var m=this._t,_=this._k,x=this._i++;return!m||x>=m.length?(this._t=void 0,u(1)):_=="keys"?u(0,x):_=="values"?u(0,m[x]):u(0,[x,m[x]])},"values"),p.Arguments=p.Array,s("keys"),s("values"),s("entries")},function(t,i){},function(t,i,a){"use strict";var s,u,p,f=a(28),m=a(2),_=a(7),x=a(21),A=a(23),O=a(9),R=(a(3),a(14)),h=a(38),b=a(40),K=(a(58).set,a(60)),C=a(30).set,F=a(48)(),N="Promise",q=m.TypeError,le=m.process,I=m[N],le=m.process,fe=x(le)=="process",he=function(){},re=!!function(){try{var se=I.resolve(1),ue=(se.constructor={})[a(1)("species")]=function(k){k(he,he)};return(fe||typeof PromiseRejectionEvent=="function")&&se.then(he)instanceof ue}catch{}}(),G=function(se,ue){return se===ue||se===I&&ue===p},Y=function(se){var ue;return!(!O(se)||typeof(ue=se.then)!="function")&&ue},X=function(se){return G(I,se)?new P(se):new u(se)},P=u=function(se){var ue,k;this.promise=new se(function(W,T){if(ue!==void 0||k!==void 0)throw q("Bad Promise constructor");ue=W,k=T}),this.resolve=R(ue),this.reject=R(k)},B=function(se){try{se()}catch(ue){return{error:ue}}},ie=function(se,ue){if(!se._n){se._n=!0;var k=se._c;F(function(){for(var W=se._v,T=se._s==1,L=0,J=function(v){var U,H,Q=T?v.ok:v.fail,te=v.resolve,be=v.reject,ye=v.domain;try{Q?(T||(se._h==2&&j(se),se._h=1),Q===!0?U=W:(ye&&ye.enter(),U=Q(W),ye&&ye.exit()),U===v.promise?be(q("Promise-chain cycle")):(H=Y(U))?H.call(U,te,be):te(U)):be(W)}catch(xe){be(xe)}};k.length>L;)J(k[L++]);se._c=[],se._n=!1,ue&&!se._h&&$(se)})}},$=function(se){C.call(m,function(){var ue,k,W,T=se._v;if(V(se)&&(ue=B(function(){fe?le.emit("unhandledRejection",T,se):(k=m.onunhandledrejection)?k({promise:se,reason:T}):(W=m.console)&&W.error&&W.error("Unhandled promise rejection",T)}),se._h=fe||V(se)?2:1),se._a=void 0,ue)throw ue.error})},V=function(se){if(se._h==1)return!1;for(var ue,k=se._a||se._c,W=0;k.length>W;)if(ue=k[W++],ue.fail||!V(ue.promise))return!1;return!0},j=function(se){C.call(m,function(){var ue;fe?le.emit("rejectionHandled",se):(ue=m.onrejectionhandled)&&ue({promise:se,reason:se._v})})},ne=function(se){var ue=this;ue._d||(ue._d=!0,ue=ue._w||ue,ue._v=se,ue._s=2,ue._a||(ue._a=ue._c.slice()),ie(ue,!0))},Z=function(se){var ue,k=this;if(!k._d){k._d=!0,k=k._w||k;try{if(k===se)throw q("Promise can't be resolved itself");(ue=Y(se))?F(function(){var W={_w:k,_d:!1};try{ue.call(se,_(Z,W,1),_(ne,W,1))}catch(T){ne.call(W,T)}}):(k._v=se,k._s=1,ie(k,!1))}catch(W){ne.call({_w:k,_d:!1},W)}}};re||(I=function(se){h(this,I,N,"_h"),R(se),s.call(this);try{se(_(Z,this,1),_(ne,this,1))}catch(ue){ne.call(this,ue)}},s=function(se){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},s.prototype=a(56)(I.prototype,{then:function(se,ue){var k=X(K(this,I));return k.ok=typeof se!="function"||se,k.fail=typeof ue=="function"&&ue,k.domain=fe?le.domain:void 0,this._c.push(k),this._a&&this._a.push(k),this._s&&ie(this,!1),k.promise},catch:function(se){return this.then(void 0,se)}}),P=function(){var se=new s;this.promise=se,this.resolve=_(Z,se,1),this.reject=_(ne,se,1)}),A(A.G+A.W+A.F*!re,{Promise:I}),a(18)(I,N),a(59)(N),p=a(6)[N],A(A.S+A.F*!re,N,{reject:function(se){var ue=X(this),k=ue.reject;return k(se),ue.promise}}),A(A.S+A.F*(f||!re),N,{resolve:function(se){if(se instanceof I&&G(se.constructor,this))return se;var ue=X(this),k=ue.resolve;return k(se),ue.promise}}),A(A.S+A.F*!(re&&a(46)(function(se){I.all(se).catch(he)})),N,{all:function(se){var ue=this,k=X(ue),W=k.resolve,T=k.reject,L=B(function(){var J=[],v=0,U=1;b(se,!1,function(H){var Q=v++,te=!1;J.push(void 0),U++,ue.resolve(H).then(function(be){te||(te=!0,J[Q]=be,--U||W(J))},T)}),--U||W(J)});return L&&T(L.error),k.promise},race:function(se){var ue=this,k=X(ue),W=k.reject,T=B(function(){b(se,!1,function(L){ue.resolve(L).then(k.resolve,W)})});return T&&W(T.error),k.promise}})},function(t,i,a){"use strict";var s=a(61)(!0);a(27)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,p=this._t,f=this._i;return f>=p.length?{value:void 0,done:!0}:(u=s(p,f),this._i+=u.length,{value:u,done:!1})})},function(t,i,a){a(65);for(var s=a(2),u=a(5),p=a(10),f=a(1)("toStringTag"),m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],_=0;_<5;_++){var x=m[_],A=s[x],O=A&&A.prototype;O&&!O[f]&&u(O,f,x),p[x]=p.Array}},function(t,i){t.exports=require("child_process")},function(t,i){t.exports=require("crypto")}])})});var DJ=pt((utr,uve)=>{uve.exports=function(r,t){var i="000000000"+r;return i.substr(i.length-t)}});var mve=pt((ctr,pve)=>{var cve=DJ(),Uje=require("os"),dve=2,Kje=cve(process.pid.toString(36),dve),fve=Uje.hostname(),Wje=fve.length,Vje=cve(fve.split("").reduce(function(e,r){return+e+r.charCodeAt(0)},+Wje+36).toString(36),dve);pve.exports=function(){return Kje+Vje}});var gve=pt((dtr,_ve)=>{var jje=require("crypto"),Hje=Math.pow(2,32)-1;_ve.exports=function(){return Math.abs(jje.randomBytes(4).readInt32BE()/Hje)}});var bve=pt((ftr,Eve)=>{var QG=mve(),yve=DJ(),qje=gve(),s2=0,AJ=4,ZG=36,vve=Math.pow(ZG,AJ);function CJ(){return yve((qje()*vve<<0).toString(ZG),AJ)}function hve(){return s2=s2<vve?s2:0,s2++,s2-1}function l2(){var e="c",r=new Date().getTime().toString(ZG),t=yve(hve().toString(ZG),AJ),i=QG(),a=CJ()+CJ();return e+r+t+i+a}l2.slug=function(){var r=new Date().getTime().toString(36),t=hve().toString(36).slice(-4),i=QG().slice(0,1)+QG().slice(-1),a=CJ().slice(-2);return r.slice(-2)+t+i+a};l2.isCuid=function(r){return typeof r!="string"?!1:!!r.startsWith("c")};l2.isSlug=function(r){if(typeof r!="string")return!1;var t=r.length;return t>=7&&t<=10};l2.fingerprint=QG;Eve.exports=l2});var Tve=pt((ptr,Sve)=>{"use strict";var Jje=setTimeout;function zje(e,r){var t=r.useCachedSetTimeout?Jje:setTimeout;return new Promise(function(i){t(i,e)})}Sve.exports=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.useCachedSetTimeout,i=zje(e,{useCachedSetTimeout:t});function a(s){return i.then(function(){return s})}return a.then=function(){return i.then.apply(i,arguments)},a.catch=Promise.resolve().catch,a}});var Ave=pt((mtr,Cve)=>{"use strict";var NJ=[],c2=[],xve=!1,LJ=0,Dve=1e4,mC={},u2={};function IJ(e,r,t){let i=!1;function a(){i||(i=!0,e===!0&&process.nextTick(process.exit.bind(null,r)))}function s(){process.nextTick(()=>{--LJ===0&&a()})}function u(p,f,m){return e&&m.length>p?(LJ++,f?m(f,s):m(s)):f?m(f):m()}xve||(xve=!0,t&&c2.map(u.bind(null,1,t)),NJ.map(u.bind(null,0,null)),LJ?setTimeout(()=>{a()},Dve):a())}function y_(e){NJ.push(e),NJ.length===1&&(y_.hookEvent("exit"),y_.hookEvent("beforeExit",0),y_.hookEvent("SIGHUP",128+1),y_.hookEvent("SIGINT",128+2),y_.hookEvent("SIGTERM",128+15),y_.hookEvent("SIGBREAK",128+21),y_.hookEvent("message",0,function(r){if(r!=="shutdown")return!0}))}y_.hookEvent=function(e,r,t){mC[e]=function(){let i=u2[e];for(let a=0;a<i.length;a++)if(i[a].apply(this,arguments))return;IJ(r!=null,r)},u2[e]||(u2[e]=[]),t&&u2[e].push(t),process.on(e,mC[e])};y_.unhookEvent=function(e){process.removeListener(e,mC[e]),delete mC[e],delete u2[e]};y_.hookedEvents=function(){let e=[];for(let r in mC)({}).hasOwnProperty.call(mC,r)&&e.push(r);return e};y_.uncaughtExceptionHandler=function(e){c2.push(e),c2.length===1&&process.once("uncaughtException",IJ.bind(null,!0,1))};y_.unhandledRejectionHandler=function(e){c2.push(e),c2.length===1&&process.once("unhandledRejection",IJ.bind(null,!0,1))};y_.forceExitTimeout=function(e){Dve=e};Cve.exports=y_});var e3=pt((_tr,$je)=>{$je.exports={name:"zenstack",publisher:"zenstack",displayName:"ZenStack Language Tools",description:"A toolkit for modeling data and access policies in full-stack development with Next.js and Typescript",version:"0.3.7",author:{name:"ZenStack Team"},license:"MIT",keywords:["fullstack","react","typescript","data modeling"],preview:!0,icon:"asset/logo-256-bg.png",repository:{type:"git",url:"https://github.com/zenstackhq/zenstack"},engines:{vscode:"^1.56.0"},categories:["Programming Languages"],contributes:{languages:[{id:"zmodel",aliases:["ZenStack Model","zmodel"],extensions:[".zmodel"],configuration:"./language-configuration.json",icon:{light:"./asset/logo-light-256.png",dark:"./asset/logo-dark-256.png"}}],grammars:[{language:"zmodel",scopeName:"source.zmodel",path:"./syntaxes/zmodel.tmLanguage.json"}]},activationEvents:["onLanguage:zmodel"],files:["bin","src","bundle"],bin:{zenstack:"./bin/cli"},main:"./bundle/extension.js",scripts:{"vscode:publish":"vsce publish --no-dependencies","vscode:prepublish":"cp ../../README.md ./ && pnpm lint && pnpm build","vscode:package":"vsce package --no-dependencies",clean:"rimraf bundle",build:"pnpm langium:generate && tsc --noEmit && pnpm bundle && cp -r src/res/* bundle/res/",bundle:"npm run clean && node build/bundle.js --minify","bundle-watch":"node build/bundle.js --watch","ts:watch":"tsc --watch --noEmit","tsc-alias:watch":"tsc-alias --watch",lint:"eslint src --ext ts","langium:generate":"langium generate","langium:watch":"langium generate --watch",watch:'concurrently --kill-others "npm:langium:watch" "npm:bundle-watch"',test:"jest",prepublishOnly:"cp ../../README.md ./ && pnpm build"},dependencies:{"@zenstackhq/internal":"workspace:*","async-exit-hook":"^2.0.1","change-case":"^4.1.2",chevrotain:"^9.1.0",colors:"1.4.0",commander:"^8.3.0",cuid:"^2.1.8",langium:"^0.5.0",mixpanel:"^0.17.0","node-machine-id":"^1.1.12",pluralize:"^8.0.0",prisma:"^4.5.0",promisify:"^0.0.3","sleep-promise":"^9.1.0","ts-morph":"^16.0.0",uuid:"^9.0.0","vscode-jsonrpc":"^8.0.2","vscode-languageclient":"^8.0.2","vscode-languageserver":"^8.0.2","vscode-languageserver-textdocument":"^1.0.7","vscode-uri":"^3.0.6"},devDependencies:{"@prisma/internals":"^4.5.0","@types/async-exit-hook":"^2.0.0","@types/jest":"^29.2.0","@types/node":"^14.18.32","@types/pluralize":"^0.0.29","@types/tmp":"^0.2.3","@types/uuid":"^8.3.4","@types/vscode":"^1.56.0","@typescript-eslint/eslint-plugin":"^5.42.0","@typescript-eslint/parser":"^5.42.0",concurrently:"^7.4.0",dotenv:"^16.0.3",esbuild:"^0.15.12",eslint:"^8.27.0",jest:"^29.2.1","langium-cli":"^0.5.0",rimraf:"^3.0.2",tmp:"^0.2.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tsc-alias":"^1.7.0","tsconfig-paths-jest":"^0.0.1",typescript:"^4.8.4",vsce:"^2.13.0"}}});var Qje={};xAe(Qje,{default:()=>Yje,generateAction:()=>Mve});module.exports=DAe(Qje);var n3=Xo(IZ());var Pse=Xo(PE()),Lse="AbstractDeclaration";var w3e="Expression";var Nse="ReferenceTarget";var vk="TypeDeclaration";var tD="ArrayExpr";function hk(e){return $g.isInstance(e,tD)}var KA="Attribute";function Ose(e){return $g.isInstance(e,KA)}var kse="AttributeArg";var VA="BinaryExpr";var Ek="DataModel";function Pd(e){return $g.isInstance(e,Ek)}var BK="DataModelField";function Hb(e){return $g.isInstance(e,BK)}var bk="DataSource";function Rse(e){return $g.isInstance(e,bk)}var Sk="Enum";function Mse(e){return $g.isInstance(e,Sk)}var Tk="EnumField";function nD(e){return $g.isInstance(e,Tk)}var Ise="Function";var F3e="FunctionParam";var iD="InvocationExpr";function jA(e){return $g.isInstance(e,iD)}var qb="LiteralExpr";function W_(e){return $g.isInstance(e,qb)}var Jb="MemberAccessExpr";function UK(e){return $g.isInstance(e,Jb)}var HA="NullExpr";var zb="ReferenceExpr";function $b(e){return $g.isInstance(e,zb)}var aD="ThisExpr";function IT(e){return $g.isInstance(e,aD)}var qA="UnaryExpr";var WA=class{getAllTypes(){return["AbstractDeclaration","Argument","ArrayExpr","Attribute","AttributeArg","AttributeAttribute","AttributeParam","AttributeParamType","BinaryExpr","DataModel","DataModelAttribute","DataModelField","DataModelFieldAttribute","DataModelFieldType","DataSource","DataSourceField","Enum","EnumField","Expression","Function","FunctionParam","FunctionParamType","InvocationExpr","LiteralExpr","MemberAccessExpr","Model","NullExpr","ReferenceArg","ReferenceExpr","ReferenceTarget","ThisExpr","TypeDeclaration","UnaryExpr"]}isInstance(r,t){return(0,Pse.isAstNode)(r)&&this.isSubtype(r.$type,t)}isSubtype(r,t){if(r===t)return!0;switch(r){case tD:case VA:case iD:case qb:case Jb:case HA:case zb:case aD:case qA:return this.isSubtype(w3e,t);case KA:case bk:case Ise:return this.isSubtype(Lse,t);case Ek:case Sk:return this.isSubtype(Lse,t)||this.isSubtype(vk,t);case BK:case Tk:case F3e:return this.isSubtype(Nse,t);default:return!1}}getReferenceType(r){let t=`${r.container.$type}:${r.property}`;switch(t){case"AttributeAttribute:decl":return KA;case"AttributeParamType:reference":return vk;case"DataModelAttribute:decl":return KA;case"DataModelFieldAttribute:decl":return KA;case"DataModelFieldType:reference":return vk;case"FunctionParamType:reference":return vk;case"InvocationExpr:function":return Ise;case"MemberAccessExpr:member":return BK;case"ReferenceExpr:target":return Nse;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(r){switch(r){case"ArrayExpr":return{name:"ArrayExpr",mandatory:[{name:"items",type:"array"}]};case"Attribute":return{name:"Attribute",mandatory:[{name:"attributes",type:"array"},{name:"params",type:"array"}]};case"AttributeAttribute":return{name:"AttributeAttribute",mandatory:[{name:"args",type:"array"}]};case"AttributeParam":return{name:"AttributeParam",mandatory:[{name:"default",type:"boolean"}]};case"AttributeParamType":return{name:"AttributeParamType",mandatory:[{name:"array",type:"boolean"},{name:"optional",type:"boolean"}]};case"DataModel":return{name:"DataModel",mandatory:[{name:"attributes",type:"array"},{name:"fields",type:"array"}]};case"DataModelAttribute":return{name:"DataModelAttribute",mandatory:[{name:"args",type:"array"}]};case"DataModelField":return{name:"DataModelField",mandatory:[{name:"attributes",type:"array"}]};case"DataModelFieldAttribute":return{name:"DataModelFieldAttribute",mandatory:[{name:"args",type:"array"}]};case"DataModelFieldType":return{name:"DataModelFieldType",mandatory:[{name:"array",type:"boolean"},{name:"optional",type:"boolean"}]};case"DataSource":return{name:"DataSource",mandatory:[{name:"fields",type:"array"}]};case"Enum":return{name:"Enum",mandatory:[{name:"fields",type:"array"}]};case"Function":return{name:"Function",mandatory:[{name:"params",type:"array"}]};case"FunctionParamType":return{name:"FunctionParamType",mandatory:[{name:"array",type:"boolean"}]};case"InvocationExpr":return{name:"InvocationExpr",mandatory:[{name:"args",type:"array"}]};case"Model":return{name:"Model",mandatory:[{name:"declarations",type:"array"}]};case"ReferenceExpr":return{name:"ReferenceExpr",mandatory:[{name:"args",type:"array"}]};default:return{name:r,mandatory:[]}}}},$g=new WA;var wse=Xo(PE()),xk,Fse=()=>xk!=null?xk:xk=(0,wse.loadGrammarFromJson)(`{
|
|
4266
4266
|
"$type": "Grammar",
|
|
4267
4267
|
"isDeclared": true,
|
|
4268
4268
|
"name": "ZModel",
|
|
@@ -6964,7 +6964,7 @@ Please check errors above.`)}console.log(Aye.default.blue(" \u2714\uFE0F Typesc
|
|
|
6964
6964
|
`)}
|
|
6965
6965
|
}).partial());
|
|
6966
6966
|
`)}makeFieldValidator(r,t){var s,u;let i=this.makeZodSchema(r,t),a=i;for(let p of r.attributes)switch((s=p.decl.ref)==null?void 0:s.name){case"@length":{let f=this.getAttrLiteralArg(p,"min");f&&(a+=`.min(${f})`);let m=this.getAttrLiteralArg(p,"max");m&&(a+=`.max(${m})`);break}case"@regex":{let f=this.getAttrLiteralArg(p,"regex");f&&(a+=`.regex(/${f}/)`);break}case"@startsWith":{let f=this.getAttrLiteralArg(p,"text");f&&(a+=`.startsWith(${JSON.stringify(f)})`);break}case"@endsWith":{let f=this.getAttrLiteralArg(p,"text");f&&(a+=`.endsWith(${JSON.stringify(f)})`);break}case"@email":{a+=".email()";break}case"@url":{a+=".url()";break}case"@datetime":{a+=".datetime({ offset: true })";break}case"@gt":{let f=this.getAttrLiteralArg(p,"value");f!==void 0&&(a+=`.gt(${f})`);break}case"@gte":{let f=this.getAttrLiteralArg(p,"value");f!==void 0&&(a+=`.gte(${f})`);break}case"@lt":{let f=this.getAttrLiteralArg(p,"value");f!==void 0&&(a+=`.lt(${f})`);break}case"@lte":{let f=this.getAttrLiteralArg(p,"value");f!==void 0&&(a+=`.lte(${f})`);break}}if(!(!Pd((u=r.type.reference)==null?void 0:u.ref)&&a===i))return r.type.optional&&(a=this.optional(a)),a}getAttrLiteralArg(r,t){let i=r.args.find(a=>{var s;return((s=a.$resolvedParam)==null?void 0:s.name)===t});if(!(!i||!W_(i.value)))return i.value.value}makeZodSchema(r,t){let i=r.type,a="";if(i.reference&&Pd(i.reference.ref)){let s=i.reference.ref.name,u=this.validator(s,"create"),p=this.validator(s,"update"),f={create:this.optional(this.enumerable(u)),createMany:this.optional(this.enumerable(u)),connectOrCreate:this.optional(this.enumerable(this.object({create:u})))};t==="update"&&(f=gZ(ox({},f),{update:this.optional(this.enumerable(i.array?this.object({data:p}):p)),updateMany:this.optional(this.enumerable(this.object({data:p}))),upsert:this.optional(i.array?this.enumerable(this.object({create:u,update:p})):this.object({create:u,update:p}))})),a=this.optional(this.object(f))}else{switch(i.type){case"Int":case"Float":case"Decimal":a="z.number()";break;case"BigInt":a="z.bigint()";break;case"String":a="z.string()";break;case"Boolean":a="z.boolean()";break;case"DateTime":a="z.date()";break;default:a="z.any()";break}i.array&&(a=this.array(a))}return a}union(...r){return`z.union([${r.join(", ")}])`}optional(r){return`z.optional(${r})`}array(r){return`z.array(${r})`}enumerable(r){return this.union(r,this.array(r))}object(r){return`z.object({ ${Object.entries(r).map(([t,i])=>t+": "+i).join(`,
|
|
6967
|
-
`)} })`}validator(r,t){return`${r}_${t}_validator`}};var Lve=Xo(ove());var sve="74944eb779d7d3b4ce185be843fde9fc";var Nve=Xo(lve()),Ive=Xo(bve()),Pve=Xo(require("os")),PJ=Xo(Tve()),OJ=Xo(Ave());var kJ=class{constructor(){this.hostId=(0,Nve.machineIdSync)();this.sessionid=(0,Ive.default)();this.trackingToken=sve;this._os=Pve.platform();this.version=e3().version;this.exitWait=200;process.env.DO_NOT_TRACK!=="1"&&this.trackingToken&&(this.mixpanel=(0,Lve.init)(this.trackingToken,{geolocate:!0})),(0,OJ.default)(r=>Hs(this,null,function*(){this.mixpanel&&(yield(0,PJ.default)(this.exitWait)),r()})),OJ.default.uncaughtExceptionHandler(r=>Hs(this,null,function*(){this.track("cli:error",{message:r.message,stack:r.stack}),this.mixpanel&&(yield(0,PJ.default)(this.exitWait)),process.exit(1)}))}track(r,t={}){if(this.mixpanel){let i=ox({distinct_id:this.hostId,session:this.sessionid,time:new Date,$os:this._os,nodeVersion:process.version,version:this.version},t);this.mixpanel.track(r,i)}}trackSpan(r,t,i,a,s){return Hs(this,null,function*(){this.track(r,a);let u=Date.now(),p=!0;try{yield Promise.resolve(s())}catch(f){throw this.track(i,ox({message:f.message,stack:f.stack},a)),p=!1,f}finally{this.track(t,ox({duration:Date.now()-u,success:p},a))}})}},l0=new kJ;var t3=class{generate(r,t,i=!0){return Hs(this,null,function*(){CS.existsSync(r.outDir)||CS.mkdirSync(r.outDir),i&&(CS.existsSync(r.generatedCodeDir)&&CS.rmSync(r.generatedCodeDir,{force:!0,recursive:!0}),CS.mkdirSync(r.generatedCodeDir));let a=e3().version;console.log(r3.default.bold(`\u231B\uFE0F Running ZenStack generator v${a}`));let s=[new XL,new YL,new QL,new e2,new r2,new WG];for(let u of s)t&&!t.includes(u.name)||(yield l0.trackSpan("cli:generator:start","cli:generator:complete","cli:generator:error",{generator:u.name},()=>u.generate(r)));console.log(r3.default.green(r3.default.bold("\u{1F47B} All generators completed successfully!")))})}};var RJ=Xo(rv());var JE=class extends Error{};function Xje(e,r){return Hs(this,null,function*(){var u;let t=r.LanguageMetaData.fileExtensions;if(!t.includes(gC.default.extname(e)))throw console.error(_C.default.yellow(`Please choose a file with extension: ${t}.`)),new JE("invalid schema file");if(!Ove.default.existsSync(e))throw console.error(_C.default.red(`File ${e} does not exist.`)),new JE("schema file does not exist");let i=r.shared.workspace.LangiumDocuments.getOrCreateDocument(RJ.URI.file(gC.default.resolve(gC.default.join(__dirname,"../res",pD)))),a=r.shared.workspace.LangiumDocuments.getOrCreateDocument(RJ.URI.file(gC.default.resolve(e)));yield r.shared.workspace.DocumentBuilder.build([i,a],{validationChecks:"all"});let s=((u=a.diagnostics)!=null?u:[]).filter(p=>p.severity===1);if(s.length>0){console.error(_C.default.red("Validation errors:"));for(let p of s)console.error(_C.default.red(`line ${p.range.start.line+1}: ${p.message} [${a.textDocument.getText(p.range)}]`));throw new JE("schema validation errors")}return a.parseResult.value})}function MJ(e,r,t=!0){return Hs(this,null,function*(){let i=lue(kve.NodeFileSystem).ZModel,s={schema:yield Xje(e.schema,i),outDir:gC.default.dirname(e.schema),generatedCodeDir:mue};try{yield new t3().generate(s,r,t)}catch(u){if(u instanceof ru)throw console.error(_C.default.red(u.message)),new JE(u.message)}})}var Mve=e=>Hs(void 0,null,function*(){yield l0.trackSpan("cli:command:start","cli:command:complete","cli:command:error",{command:"generate"},()=>MJ(e))});function yC(e){return(r,t)=>Hs(this,null,function*(){yield l0.trackSpan("cli:command:start","cli:command:complete","cli:command:error",{command:e
|
|
6967
|
+
`)} })`}validator(r,t){return`${r}_${t}_validator`}};var Lve=Xo(ove());var sve="74944eb779d7d3b4ce185be843fde9fc";var Nve=Xo(lve()),Ive=Xo(bve()),Pve=Xo(require("os")),PJ=Xo(Tve()),OJ=Xo(Ave());var kJ=class{constructor(){this.hostId=(0,Nve.machineIdSync)();this.sessionid=(0,Ive.default)();this.trackingToken=sve;this._os=Pve.platform();this.version=e3().version;this.exitWait=200;process.env.DO_NOT_TRACK!=="1"&&this.trackingToken&&(this.mixpanel=(0,Lve.init)(this.trackingToken,{geolocate:!0})),(0,OJ.default)(r=>Hs(this,null,function*(){this.mixpanel&&(yield(0,PJ.default)(this.exitWait)),r()})),OJ.default.uncaughtExceptionHandler(r=>Hs(this,null,function*(){this.track("cli:error",{message:r.message,stack:r.stack}),this.mixpanel&&(yield(0,PJ.default)(this.exitWait)),process.exit(1)}))}track(r,t={}){if(this.mixpanel){let i=ox({distinct_id:this.hostId,session:this.sessionid,time:new Date,$os:this._os,nodeVersion:process.version,version:this.version},t);this.mixpanel.track(r,i)}}trackSpan(r,t,i,a,s){return Hs(this,null,function*(){this.track(r,a);let u=Date.now(),p=!0;try{yield Promise.resolve(s())}catch(f){throw this.track(i,ox({message:f.message,stack:f.stack},a)),p=!1,f}finally{this.track(t,ox({duration:Date.now()-u,success:p},a))}})}},l0=new kJ;var t3=class{generate(r,t,i=!0){return Hs(this,null,function*(){CS.existsSync(r.outDir)||CS.mkdirSync(r.outDir),i&&(CS.existsSync(r.generatedCodeDir)&&CS.rmSync(r.generatedCodeDir,{force:!0,recursive:!0}),CS.mkdirSync(r.generatedCodeDir));let a=e3().version;console.log(r3.default.bold(`\u231B\uFE0F Running ZenStack generator v${a}`));let s=[new XL,new YL,new QL,new e2,new r2,new WG];for(let u of s)t&&!t.includes(u.name)||(yield l0.trackSpan("cli:generator:start","cli:generator:complete","cli:generator:error",{generator:u.name},()=>u.generate(r)));console.log(r3.default.green(r3.default.bold("\u{1F47B} All generators completed successfully!")))})}};var RJ=Xo(rv());var JE=class extends Error{};function Xje(e,r){return Hs(this,null,function*(){var u;let t=r.LanguageMetaData.fileExtensions;if(!t.includes(gC.default.extname(e)))throw console.error(_C.default.yellow(`Please choose a file with extension: ${t}.`)),new JE("invalid schema file");if(!Ove.default.existsSync(e))throw console.error(_C.default.red(`File ${e} does not exist.`)),new JE("schema file does not exist");let i=r.shared.workspace.LangiumDocuments.getOrCreateDocument(RJ.URI.file(gC.default.resolve(gC.default.join(__dirname,"../res",pD)))),a=r.shared.workspace.LangiumDocuments.getOrCreateDocument(RJ.URI.file(gC.default.resolve(e)));yield r.shared.workspace.DocumentBuilder.build([i,a],{validationChecks:"all"});let s=((u=a.diagnostics)!=null?u:[]).filter(p=>p.severity===1);if(s.length>0){console.error(_C.default.red("Validation errors:"));for(let p of s)console.error(_C.default.red(`line ${p.range.start.line+1}: ${p.message} [${a.textDocument.getText(p.range)}]`));throw new JE("schema validation errors")}return a.parseResult.value})}function MJ(e,r,t=!0){return Hs(this,null,function*(){let i=lue(kve.NodeFileSystem).ZModel,s={schema:yield Xje(e.schema,i),outDir:gC.default.dirname(e.schema),generatedCodeDir:mue};try{yield new t3().generate(s,r,t)}catch(u){if(u instanceof ru)throw console.error(_C.default.red(u.message)),new JE(u.message)}})}var Mve=e=>Hs(void 0,null,function*(){yield l0.trackSpan("cli:command:start","cli:command:complete","cli:command:error",{command:"generate"},()=>MJ(e))});function yC(e){return(r,t)=>Hs(this,null,function*(){yield l0.trackSpan("cli:command:start","cli:command:complete","cli:command:error",{command:e?e+" "+t.name():t.name()},()=>Hs(this,null,function*(){let i=Array.from(Object.entries(r)).map(([s,u])=>{let p=u;return s==="schema"&&(p=wJ.default.join(wJ.default.dirname(u),"schema.prisma")),"--"+(0,Rve.paramCase)(s)+(typeof p=="string"?` ${p}`:"")}).join(" ");yield MJ(r,["prisma"],!1);let a=`npx prisma ${e} ${t.name()} ${i}`;console.log(a);try{sD(a)}catch(s){throw l0.track("cli:command:error",{command:e}),console.error(Tv.default.red("Prisma command failed to execute. See errors above.")),new JE("prisma command run error")}}))})}function Yje(){return Hs(this,null,function*(){yield l0.trackSpan("cli:start","cli:complete","cli:error",{args:process.argv},()=>Hs(this,null,function*(){let e=new n3.Command("zenstack");e.version(e3().version,"-v --version","display CLI version");let r=KK.fileExtensions.join(", ");e.description(`${Tv.default.bold.blue("\u03B6")} ZenStack simplifies fullstack development by generating backend services and Typescript clients from a data model.
|
|
6968
6968
|
|
|
6969
6969
|
Documentation: https://go.zenstack.dev/doc.`).showHelpAfterError().showSuggestionAfterError();let t=new n3.Option("--schema <file>",`schema file (with extension ${r})`).default("./zenstack/schema.zmodel");e.command("generate").description("generates RESTful API and Typescript client for your data model").addOption(t).action(Mve);let i=e.command("migrate").description(`wraps Prisma's ${Tv.default.cyan("migrate")} command`);i.command("dev").description(`alias for ${Tv.default.cyan("prisma migrate dev")}
|
|
6970
6970
|
Create a migration, apply it to the database, generate db client.`).addOption(t).option("--create-only","Create a migration without applying it").option("-n --name <name>","Name the migration").option("--skip-seed","Skip triggering seed").action(yC("migrate")),i.command("reset").description(`alias for ${Tv.default.cyan("prisma migrate reset")}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publisher": "zenstack",
|
|
4
4
|
"displayName": "ZenStack Language Tools",
|
|
5
5
|
"description": "A toolkit for modeling data and access policies in full-stack development with Next.js and Typescript",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.7",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "ZenStack Team"
|
|
9
9
|
},
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"main": "./bundle/extension.js",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@zenstackhq/internal": "0.3.
|
|
68
|
+
"@zenstackhq/internal": "0.3.7",
|
|
69
69
|
"async-exit-hook": "^2.0.1",
|
|
70
70
|
"change-case": "^4.1.2",
|
|
71
71
|
"chevrotain": "^9.1.0",
|
package/src/cli/index.ts
CHANGED