UNPKG

@graphql-hive/cli

Version:

A CLI util to manage and control your GraphQL Hive

1 lines 8.25 kB
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../src/commands/schema/publish.ts"],"names":[],"mappings":";;;AAAA,qCAA8C;AAC9C,gDAAuE;AACvE,sCAAkD;AAClD,8EAAyC;AACzC,mCAAkD;AAElD,iDAAuD;AACvD,iDAa8B;AAC9B,2CAA4C;AAC5C,iDAA6F;AAC7F,gFAA0D;AAC1D,yDAAqD;AAErD,MAAM,qBAAqB,GAAG,IAAA,aAAO,EAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDnD,CAAC,CAAC;AAEH,MAAqB,aAAc,SAAQ,sBAA6B;IAAxE;;QAkFE,oBAAe,GAAG,CAAC,QAA4B,EAAsB,EAAE;YACrE,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,OAAO;YACT,CAAC;YAED,IAAI,CAAC;gBACH,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;gBACrB,6EAA6E;gBAE7E,OAAO,QAAQ,CAAC;YAClB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,sDAAsD;gBACtD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACjC,CAAC;QACH,CAAC,CAAC;IA8MJ,CAAC;IA5MC,KAAK,CAAC,GAAG;;QACP,IAAI,CAAC;YACH,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YAExD,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAE1B,IAAI,QAAgB,EAAE,WAAmB,CAAC;YAC1C,IAAI,CAAC;gBACH,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,mBAAmB;oBACxB,IAAI,EAAE,KAAK;oBACX,cAAc,EAAE,UAAU;o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