@prismatic-io/prism 7.7.0 → 7.7.1
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/lib/index.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -63765,7 +63765,7 @@ ${String(e)}`)}catch(t){return t}},APt=(e)=>{if(typeof e!=="object"||e===null)th
|
|
|
63765
63765
|
}
|
|
63766
63766
|
}
|
|
63767
63767
|
}
|
|
63768
|
-
`,variables:{showAllVersions:e,after:p,filterQuery:JSON.stringify(["or",["in","key",t],["in","label",t]])}});o=[...o,...m],p=T.endCursor,c=T.hasNextPage}return o};var SM0=H3(YT(),1);var hze=H3(YT(),1),jGt=H3(ubt(),1),eXt=H3(RGt(),1);import{resolve as bba}from"path";import{extname as Oba}from"path";var oBn=H3(YT(),1);var I_n=async(e)=>{while(!await Er0("package.json")){let t=process.cwd();if(process.chdir("../"),process.cwd()===t)oBn.ux.error(`Failed to find 'package.json' file. Is the current path a ${e}?`,{exit:1})}if(!await Er0("./dist"))oBn.ux.error(`Failed to find 'dist' folder. Is the current path a ${e}?`,{exit:1});process.chdir("./dist")};var xze=async()=>{if(!await Er0("index.js"))await I_n("component");if(!await Er0("index.js"))hze.ux.error("Failed to find 'index.js' entrypoint file. Is the current path a component?",{exit:1});let e=process.cwd(),t=bba(e,"./index.js"),{default:o}=lc(t);return o},u9e=async()=>{let e=eXt.default("zip",{zlib:{level:9}}),t=jGt.default.write(e,{extension:"zip"});return e.directory(process.cwd(),!1,(o)=>({...o,date:new Date(0)})),await e.finalize(),t},s9e=async(e,t={})=>{let{display:{label:o,description:c,iconPath:p},codeNativeIntegrationYAML:m,connections:T}=e;if(m&&!t.forCodeNativeIntegration)hze.ux.error("You are running a component command on what appears to be a Code Native Integration. Please check the current path.",{exit:1});if(!o||!c)hze.ux.error("Missing required values `label` or `description`. Exiting.",{exit:1});if(!await uBn(p))hze.ux.error("Component icon does not exist or is not a png. Exiting.",{exit:1});if((await Promise.all((T??[]).map(({iconPath:L,avatarIconPath:z})=>[uBn(L),uBn(z)]))).some((L)=>!L))hze.ux.error("One or more connection icons do not exist or are not a png. Exiting.",{exit:1})},uBn=async(e)=>!e||Oba(e.trim().toLowerCase())===".png"&&await Er0(e);var sBn=H3(YT(),1),nXt=H3(VVe(),1);import{extname as kba}from"path";import Iba from"crypto";var Bba={actions:!0,authorization:!0,connections:!0,dataSources:!0,display:!0,documentationUrl:!0,key:!0,public:!0,triggers:!0},B_n=async({key:e,public:t},o)=>{let c=await o4({document:G3`
|
|
63768
|
+
`,variables:{showAllVersions:e,after:p,filterQuery:t?JSON.stringify(["or",["in","key",t],["in","label",t]]):void 0}});o=[...o,...m],p=T.endCursor,c=T.hasNextPage}return o};var SM0=H3(YT(),1);var hze=H3(YT(),1),jGt=H3(ubt(),1),eXt=H3(RGt(),1);import{resolve as bba}from"path";import{extname as Oba}from"path";var oBn=H3(YT(),1);var I_n=async(e)=>{while(!await Er0("package.json")){let t=process.cwd();if(process.chdir("../"),process.cwd()===t)oBn.ux.error(`Failed to find 'package.json' file. Is the current path a ${e}?`,{exit:1})}if(!await Er0("./dist"))oBn.ux.error(`Failed to find 'dist' folder. Is the current path a ${e}?`,{exit:1});process.chdir("./dist")};var xze=async()=>{if(!await Er0("index.js"))await I_n("component");if(!await Er0("index.js"))hze.ux.error("Failed to find 'index.js' entrypoint file. Is the current path a component?",{exit:1});let e=process.cwd(),t=bba(e,"./index.js"),{default:o}=lc(t);return o},u9e=async()=>{let e=eXt.default("zip",{zlib:{level:9}}),t=jGt.default.write(e,{extension:"zip"});return e.directory(process.cwd(),!1,(o)=>({...o,date:new Date(0)})),await e.finalize(),t},s9e=async(e,t={})=>{let{display:{label:o,description:c,iconPath:p},codeNativeIntegrationYAML:m,connections:T}=e;if(m&&!t.forCodeNativeIntegration)hze.ux.error("You are running a component command on what appears to be a Code Native Integration. Please check the current path.",{exit:1});if(!o||!c)hze.ux.error("Missing required values `label` or `description`. Exiting.",{exit:1});if(!await uBn(p))hze.ux.error("Component icon does not exist or is not a png. Exiting.",{exit:1});if((await Promise.all((T??[]).map(({iconPath:L,avatarIconPath:z})=>[uBn(L),uBn(z)]))).some((L)=>!L))hze.ux.error("One or more connection icons do not exist or are not a png. Exiting.",{exit:1})},uBn=async(e)=>!e||Oba(e.trim().toLowerCase())===".png"&&await Er0(e);var sBn=H3(YT(),1),nXt=H3(VVe(),1);import{extname as kba}from"path";import Iba from"crypto";var Bba={actions:!0,authorization:!0,connections:!0,dataSources:!0,display:!0,documentationUrl:!0,key:!0,public:!0,triggers:!0},B_n=async({key:e,public:t},o)=>{let c=await o4({document:G3`
|
|
63769
63769
|
query component($key: String!, $public: Boolean!) {
|
|
63770
63770
|
components(key: $key, public: $public) {
|
|
63771
63771
|
nodes {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED