shopify 3.94.3 → 4.0.0
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/bin/run.js +5 -1
- package/dist/analytics-6IHHYAV6.js +1 -0
- package/dist/analytics-KKVP5DT3.js +1 -0
- package/dist/bootstrap.d.ts +5 -0
- package/dist/bootstrap.js +3 -0
- package/dist/chunk-22PCRFG4.js +1 -0
- package/dist/chunk-26D72ZNV.js +1 -0
- package/dist/chunk-2APPXD5Z.js +2 -0
- package/dist/chunk-2I4PRX2I.js +1 -0
- package/dist/chunk-2VQJQ36C.js +103 -0
- package/dist/chunk-323UTVMM.js +1 -0
- package/dist/chunk-3DQIVE24.js +9 -0
- package/dist/chunk-3F6NZK7S.js +2 -0
- package/dist/chunk-3LVGAQB4.js +1 -0
- package/dist/chunk-3TNEIDOD.js +1 -0
- package/dist/chunk-3VZEETAV.js +1 -0
- package/dist/chunk-4G7J6HIV.js +1 -0
- package/dist/chunk-4HHXSMD7.js +10 -0
- package/dist/chunk-4LNCYIS3.js +1 -0
- package/dist/chunk-4ZGSSQC6.js +1 -0
- package/dist/chunk-52GC6XUT.js +1 -0
- package/dist/chunk-5CH3B62S.js +2 -0
- package/dist/chunk-5Y7GIF2W.js +1 -0
- package/dist/chunk-66RJ5T7A.js +102 -0
- package/dist/chunk-6B53BWJW.js +1 -0
- package/dist/chunk-6BMMB2UO.js +1 -0
- package/dist/chunk-6HBRBQAN.js +6 -0
- package/dist/chunk-6M3ZYNGO.js +451 -0
- package/dist/chunk-6TZAAS5H.js +1 -0
- package/dist/chunk-72F3YBNA.js +1 -0
- package/dist/chunk-74HYYXXE.js +17 -0
- package/dist/chunk-75VPUOC5.js +1 -0
- package/dist/chunk-7BGM2GAH.js +1 -0
- package/dist/chunk-7UYZQN4V.js +18 -0
- package/dist/chunk-A74GETYC.js +1 -0
- package/dist/chunk-AIV5RI3X.js +1 -0
- package/dist/chunk-ALKTLKQ6.js +5 -0
- package/dist/chunk-B2EHO7ZC.js +847 -0
- package/dist/chunk-B2IVY4V5.js +1 -0
- package/dist/chunk-BDVAE5MS.js +28 -0
- package/dist/chunk-CERXUPGC.js +14 -0
- package/dist/chunk-D3TSJA5S.js +1 -0
- package/dist/chunk-D6JARNEH.js +1 -0
- package/dist/chunk-DFMQWJQ3.js +3 -0
- package/dist/chunk-DJONKJSZ.js +1 -0
- package/dist/chunk-DJQVNH7P.js +567 -0
- package/dist/chunk-DU4WR4OP.js +1 -0
- package/dist/chunk-ELVFJ7BR.js +4 -0
- package/dist/chunk-ELYP4KFP.js +8 -0
- package/dist/chunk-FFQ5EWII.js +294 -0
- package/dist/chunk-FUOIGXI4.js +1 -0
- package/dist/chunk-GD7FWXJ5.js +2 -0
- package/dist/chunk-GFEAKSGV.js +374 -0
- package/dist/chunk-GFJ7UV74.js +1 -0
- package/dist/chunk-GNPS5SBU.js +1 -0
- package/dist/chunk-GOJ2QHSR.js +1 -0
- package/dist/chunk-HSK7YMRE.js +359 -0
- package/dist/chunk-HUZUORYM.js +19 -0
- package/dist/chunk-HZA6IAA4.js +1 -0
- package/dist/chunk-IASVAERO.js +1 -0
- package/dist/chunk-IIIVWD4R.js +1 -0
- package/dist/chunk-INEU4XKS.js +6 -0
- package/dist/chunk-IOLVEXM6.js +1 -0
- package/dist/chunk-IU2ZQ6TE.js +2 -0
- package/dist/chunk-IX5ICOBV.js +7 -0
- package/dist/chunk-J3KVONB3.js +6 -0
- package/dist/chunk-JGXWQULI.js +1 -0
- package/dist/chunk-JHPRFW5B.js +19 -0
- package/dist/chunk-JLBH7RCF.js +4 -0
- package/dist/chunk-JPGO36XP.js +1 -0
- package/dist/chunk-JUVAGMIH.js +1 -0
- package/dist/chunk-JVIKCGDY.js +1 -0
- package/dist/chunk-K2WUCOQJ.js +32 -0
- package/dist/chunk-K5YV6UVF.js +4 -0
- package/dist/chunk-KBQ4LGFB.js +1 -0
- package/dist/chunk-KGXQS7LS.js +1 -0
- package/dist/chunk-KL5Z3T6L.js +1 -0
- package/dist/chunk-KLMDWDT2.js +1 -0
- package/dist/chunk-KNVM7N3U.js +1 -0
- package/dist/chunk-KWJ562F2.js +12 -0
- package/dist/chunk-LALIKZPS.js +5 -0
- package/dist/chunk-LAZJ47DZ.js +6 -0
- package/dist/chunk-LDGAHMS7.js +159 -0
- package/dist/chunk-LNHLDRC5.js +1 -0
- package/dist/chunk-LW7U753G.js +1 -0
- package/dist/chunk-LX3ZOW52.js +12 -0
- package/dist/chunk-LXFJDCNG.js +1 -0
- package/dist/chunk-MBAFWQSZ.js +7 -0
- package/dist/chunk-MOA33ZFO.js +1 -0
- package/dist/chunk-MQNYGGAM.js +1 -0
- package/dist/chunk-N5YIPQ6J.js +1 -0
- package/dist/chunk-N7RBSKYT.js +1 -0
- package/dist/chunk-NF2ABOOU.js +1 -0
- package/dist/chunk-NRAFVIU3.js +1 -0
- package/dist/chunk-OCOY5MV2.js +1 -0
- package/dist/chunk-ODNGDO4H.js +50 -0
- package/dist/chunk-OHY4ZL3U.js +2 -0
- package/dist/chunk-OLZHWPZP.js +1 -0
- package/dist/chunk-OUOYKNMY.js +1 -0
- package/dist/chunk-OXPWCC7I.js +64 -0
- package/dist/chunk-P5VVOLGV.js +1 -0
- package/dist/chunk-P6XE4MH5.js +1 -0
- package/dist/chunk-P7R7FBY2.js +3 -0
- package/dist/chunk-PD5ZHJWI.js +1 -0
- package/dist/chunk-PIBY5DDZ.js +1 -0
- package/dist/chunk-Q7ING5F5.js +1 -0
- package/dist/chunk-QFWIDATO.js +1 -0
- package/dist/chunk-QRRNOVJ3.js +1 -0
- package/dist/chunk-QSTEVZFQ.js +1 -0
- package/dist/chunk-R466TU3N.js +2 -0
- package/dist/chunk-RF2DPBA6.js +1 -0
- package/dist/chunk-RFG5RMPL.js +1 -0
- package/dist/chunk-RM5SJJN6.js +559 -0
- package/dist/chunk-RVNMVBPM.js +1 -0
- package/dist/chunk-SBEZBZM7.js +144 -0
- package/dist/chunk-SGQ6D3LU.js +15 -0
- package/dist/chunk-SRCQVUMC.js +1 -0
- package/dist/chunk-TFSBQ4RY.js +5 -0
- package/dist/chunk-TQYMC7TH.js +1 -0
- package/dist/chunk-UGDBJTLP.js +6 -0
- package/dist/chunk-UGXYQ23Y.js +1411 -0
- package/dist/chunk-UWJ73J4B.js +1 -0
- package/dist/chunk-V2CNCPIE.js +2 -0
- package/dist/chunk-VBUZWRUL.js +1 -0
- package/dist/chunk-VS3T5YOG.js +264 -0
- package/dist/chunk-VWYM4OWK.js +1 -0
- package/dist/chunk-VY6SNDKW.js +3 -0
- package/dist/chunk-WDC3KIZT.js +2 -0
- package/dist/chunk-WFXRSKRK.js +1 -0
- package/dist/chunk-WXVZJJOR.js +16 -0
- package/dist/chunk-WZBSLU4Q.js +6 -0
- package/dist/chunk-XBXMPFXM.js +1 -0
- package/dist/chunk-XEFQQPL4.js +1 -0
- package/dist/chunk-XLELNRFF.js +3 -0
- package/dist/chunk-XNO6DZYP.js +1 -0
- package/dist/chunk-Y5JKV2AI.js +1 -0
- package/dist/chunk-YC6G4MHD.js +3 -0
- package/dist/chunk-YI232QLS.js +1 -0
- package/dist/chunk-YMWHHINU.js +1 -0
- package/dist/chunk-YOZNRLFC.js +1 -0
- package/dist/chunk-YZDDTYTU.js +11 -0
- package/dist/chunk-Z35BTAM6.js +2 -0
- package/dist/chunk-ZR76GGZ6.js +5 -0
- package/dist/chunk-ZTMSBSYD.js +1 -0
- package/dist/chunk-ZV6NCNI4.js +586 -0
- package/dist/chunk-ZVJVDCIM.js +1 -0
- package/dist/cli/commands/app/app-logs/sources.js +2 -0
- package/dist/cli/commands/app/build.js +1 -0
- package/dist/cli/commands/app/bulk/cancel.js +1 -0
- package/dist/cli/commands/app/bulk/execute.js +9 -0
- package/dist/cli/commands/app/bulk/status.js +5 -0
- package/dist/cli/commands/app/config/link.js +4 -0
- package/dist/cli/commands/app/config/pull.js +1 -0
- package/dist/cli/commands/app/config/use.js +1 -0
- package/dist/cli/commands/app/config/validate.js +3 -0
- package/dist/cli/commands/app/demo/watcher.js +1 -0
- package/dist/cli/commands/app/deploy.js +22 -0
- package/dist/cli/commands/app/dev/clean.js +5 -0
- package/dist/cli/commands/app/dev.js +320 -0
- package/dist/cli/commands/app/env/pull.js +11 -0
- package/dist/cli/commands/app/env/show.js +1 -0
- package/dist/cli/commands/app/execute.js +1 -0
- package/dist/cli/commands/app/function/build.js +1 -0
- package/dist/cli/commands/app/function/info.js +16 -0
- package/dist/cli/commands/app/function/replay.js +5 -0
- package/dist/cli/commands/app/function/run.js +1 -0
- package/dist/cli/commands/app/function/schema.js +1 -0
- package/dist/cli/commands/app/function/typegen.js +1 -0
- package/dist/cli/commands/app/generate/extension.js +5 -0
- package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
- package/dist/cli/commands/app/import-extensions.js +1 -0
- package/dist/cli/commands/app/info.js +11 -0
- package/dist/cli/commands/app/init.js +10 -0
- package/dist/cli/commands/app/logs.js +2 -0
- package/dist/cli/commands/app/release.js +4 -0
- package/dist/cli/commands/app/versions/list.js +1 -0
- package/dist/cli/commands/app/webhook/trigger.js +25 -0
- package/dist/cli/commands/auth/login.js +1 -20
- package/dist/cli/commands/auth/logout.js +1 -12
- package/dist/cli/commands/cache/clear.js +1 -11
- package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
- package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
- package/dist/cli/commands/config/autoupgrade/off.js +1 -22
- package/dist/cli/commands/config/autoupgrade/on.js +1 -22
- package/dist/cli/commands/config/autoupgrade/status.js +1 -30
- package/dist/cli/commands/debug/command-flags.js +1 -79
- package/dist/cli/commands/docs/generate.js +1 -157
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
- package/dist/cli/commands/doctor-release/theme/index.js +1 -56
- package/dist/cli/commands/help.js +1 -26
- package/dist/cli/commands/kitchen-sink/async.js +1 -16
- package/dist/cli/commands/kitchen-sink/index.js +1 -21
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
- package/dist/cli/commands/kitchen-sink/static.js +1 -16
- package/dist/cli/commands/notifications/generate.js +1 -11
- package/dist/cli/commands/notifications/list.js +1 -33
- package/dist/cli/commands/organization/list.js +1 -0
- package/dist/cli/commands/search.js +1 -27
- package/dist/cli/commands/theme/check.js +1 -0
- package/dist/cli/commands/theme/console.js +15 -0
- package/dist/cli/commands/theme/delete.js +7 -0
- package/dist/cli/commands/theme/dev.js +26 -0
- package/dist/cli/commands/theme/duplicate.js +32 -0
- package/dist/cli/commands/theme/info.js +1 -0
- package/dist/cli/commands/theme/init.js +8 -0
- package/dist/cli/commands/theme/language-server.js +1 -0
- package/dist/cli/commands/theme/list.js +1 -0
- package/dist/cli/commands/theme/metafields/pull.js +3 -0
- package/dist/cli/commands/theme/open.js +8 -0
- package/dist/cli/commands/theme/package.js +7 -0
- package/dist/cli/commands/theme/preview.js +1 -0
- package/dist/cli/commands/theme/profile.js +3 -0
- package/dist/cli/commands/theme/publish.js +7 -0
- package/dist/cli/commands/theme/pull.js +3 -0
- package/dist/cli/commands/theme/push.js +28 -0
- package/dist/cli/commands/theme/rename.js +6 -0
- package/dist/cli/commands/theme/share.js +3 -0
- package/dist/cli/commands/upgrade.js +1 -17
- package/dist/cli/commands/version.js +1 -10
- package/dist/command-registry.d.ts +8 -0
- package/dist/command-registry.js +1 -0
- package/dist/conf-store-U5ZITKJN.js +1 -0
- package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
- package/dist/deprecations-TU5UQJVV.js +1 -0
- package/dist/dist-2Z5TND4U.js +1 -0
- package/dist/dist-GYHFDHKP.js +1 -0
- package/dist/environments-Z5PR7DSI.js +1 -0
- package/dist/error-IJGNYKZ3.js +1 -0
- package/dist/error-handler-WSCGNS2P.js +1 -0
- package/dist/fs-5BDEA2KD.js +1 -0
- package/dist/hooks/app-init.d.ts +9 -0
- package/dist/hooks/app-init.js +1 -0
- package/dist/hooks/did-you-mean.d.ts +1 -0
- package/dist/hooks/did-you-mean.js +1 -0
- package/dist/hooks/hydrogen-init.d.ts +7 -0
- package/dist/hooks/hydrogen-init.js +1 -0
- package/dist/hooks/plugin-plugins.d.ts +1 -0
- package/dist/hooks/plugin-plugins.js +1 -0
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.d.ts +1 -0
- package/dist/hooks/public-metadata.js +1 -0
- package/dist/hooks/sensitive-metadata.d.ts +1 -0
- package/dist/hooks/sensitive-metadata.js +1 -0
- package/dist/hooks/tunnel-provider.d.ts +1 -0
- package/dist/hooks/tunnel-provider.js +1 -0
- package/dist/hooks/tunnel-start.d.ts +1 -0
- package/dist/hooks/tunnel-start.js +1 -0
- package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
- package/dist/index.js +254 -3668
- package/dist/is-global-V4ZRHQG2.js +1 -0
- package/dist/latest-version-EFWBOTWM.js +49 -0
- package/dist/lib-5L7UKDEK.js +1 -0
- package/dist/lib-C3VO2BQW.js +1 -0
- package/dist/lib-QB6I6CTC.js +1 -0
- package/dist/local-6QPX4GCJ.js +1 -0
- package/dist/local-storage-JLXBZVWO.js +1 -0
- package/dist/metadata-UDMOTRS7.js +1 -0
- package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
- package/dist/node-package-manager-HAFRYGUM.js +1 -0
- package/dist/notifications-system-MP7WDOCS.js +1 -0
- package/dist/npa-ICFSA3NL.js +1 -0
- package/dist/output-YGMHXEIS.js +1 -0
- package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
- package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
- package/dist/system-KLXD4FXF.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-K5CWIA4V.js +1 -0
- package/dist/ui-GHG3UGB3.js +1 -0
- package/dist/upgrade-OPZGPM5J.js +1 -0
- package/dist/version-D5PJZIRW.js +1 -0
- package/dist/version-KRQBMYCH.js +1 -0
- package/dist/workerd-L2EJKIAQ.js +18 -0
- package/oclif.manifest.json +5247 -6056
- package/package.json +17 -41
- package/dist/chunk-45T5XUIM.js +0 -1
- package/dist/chunk-52KHWFYF.js +0 -1
- package/dist/chunk-66TIGB4U.js +0 -415
- package/dist/chunk-675GKVCB.js +0 -3
- package/dist/chunk-7ES6PV7M.js +0 -847
- package/dist/chunk-BF7JM4FH.js +0 -396
- package/dist/chunk-FU2Y2M3M.js +0 -5
- package/dist/chunk-IDQ4X47Z.js +0 -3
- package/dist/chunk-JBSYWYIP.js +0 -2
- package/dist/chunk-PBKIXB7L.js +0 -63
- package/dist/chunk-SVA22NZQ.js +0 -607
- package/dist/error-handler-LC7FITE7.js +0 -1
- package/dist/http-proxy-node16-TTURN6MD.js +0 -38
- package/dist/lib-3WHF5XD3.js +0 -1
- package/dist/local-TWIGLQ7X.js +0 -1
- package/dist/node-package-manager-3UCLJPGW.js +0 -1
- package/dist/npa-OKDXXRCU.js +0 -1
- package/dist/ui-UYE67X4Y.js +0 -1
- package/dist/workerd-37BZZEVW.js +0 -18
- /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{c as S,d as D}from"./chunk-LXFJDCNG.js";import{b}from"./chunk-TQYMC7TH.js";import{R as g}from"./chunk-B2EHO7ZC.js";import{C as E,u as m,v as w,x as k}from"./chunk-BDVAE5MS.js";import{g as v}from"./chunk-JPGO36XP.js";import{Gb as i,Ib as n,Sb as B,ca as N,ha as O,tb as y}from"./chunk-GFEAKSGV.js";import{g as l}from"./chunk-VPRTJUIN.js";l();l();function A(e){switch(e.status){case"RUNNING":return n`Bulk operation in progress${e.objectCount>0?i.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return n`Starting`;case"COMPLETED":return n`Bulk operation succeeded: ${i.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return n`Bulk operation failed. ${i.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return n`Bulk operation canceling...`;case"CANCELED":return n`Bulk operation canceled.`;case"EXPIRED":return n`Bulk operation expired.`;default:return n`Bulk operation status: ${e.status}`}}function q(e,a){let t=e.map(o=>n`${o.field?.join(".")??"unknown"}: ${o.message}`.value).join(`
|
|
2
|
+
`);k({headline:a,body:t})}function K(e){let a=A(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",body:[`This may take a few moments. Check the status with:
|
|
3
|
+
`,{command:`shopify app bulk status --id=${T(e.id)}`}],renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let t=[n`ID: ${i.cyan(e.id)}`.value,n`Status: ${i.yellow(e.status)}`.value,n`Created at: ${i.gray(String(e.createdAt))}`.value,...e.completedAt?[n`Completed at: ${i.gray(String(e.completedAt))}`.value]:[]];return{headline:n`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:n`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:t}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:a,renderType:"info"}}}l();var I="2026-01";l();var C={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};function ke(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function T(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}async function ce(e){let{organization:a,storeFqdn:t,operationId:o,remoteApp:s}=e;m({headline:"Checking bulk operation status.",body:[{list:{items:D({organization:a,remoteApp:s,storeFqdn:t})}}]});let u=s.apiSecretKeys[0]?.secret;if(!u)throw new v("No API secret keys found for app");let d=await g(t,s.apiKey,u),p=await b({query:C,session:d,variables:{id:o},version:await S({adminSession:d,minimumDefaultVersion:I})});p.bulkOperation?F(p.bulkOperation):k({headline:"Bulk operation not found.",body:n`ID: ${i.yellow(o)}`.value})}async function ye(e){let{organization:a,storeFqdn:t,remoteApp:o}=e;m({headline:"Listing bulk operations.",body:[{list:{items:D({organization:a,remoteApp:o,storeFqdn:t})}}]});let s=o.apiSecretKeys[0]?.secret;if(!s)throw new v("No API secret keys found for app");let u=await g(t,o.apiKey,s),d=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],c=(await b({query:h,session:u,variables:{query:`created_at:>=${d}`,first:100,sortKey:"CREATED_AT"},version:await S({adminSession:u,minimumDefaultVersion:I})})).bulkOperations.nodes.map(r=>({id:T(r.id),status:$(r.status),count:V(r.objectCount),dateCreated:N(new Date(String(r.createdAt))),dateFinished:r.completedAt?N(new Date(String(r.completedAt))):"",results:x(r.url??r.partialDataUrl)}));B(),c.length===0?m({body:"No bulk operations found in the last 7 days."}):E({rows:c,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),B()}function F(e){let{id:a,status:t,createdAt:o,completedAt:s,url:u,partialDataUrl:d}=e,p=A(e).value,c=L(o,s),r=n`ID: ${i.yellow(a)}\n${c}`.value;if(t==="COMPLETED"){let f=u?i.link("Download results",u):"";w({headline:p,body:n`${r}\n${f}`.value})}else if(t==="FAILED"){let f=d?i.link("Download partial results",d):"";k({headline:p,body:n`${r}\n${f}`.value})}else m({headline:p,body:r})}function L(e,a){let t=new Date;return a?`Finished ${O(new Date(String(a)),t)}`:`Started ${O(new Date(String(e)),t)}`}function $(e){return e==="COMPLETED"?y.green(e):e==="FAILED"?y.red(e):y.dim(e)}function V(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function x(e){return e?n`${i.link("download",e)}`.value:""}export{I as a,C as b,ke as c,T as d,ce as e,ye as f,A as g,q as h,K as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g as W}from"./chunk-VPRTJUIN.js";W();function v(){}v.prototype={diff:function(e,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=o.callback;typeof o=="function"&&(t=o,o={}),this.options=o;var l=this;function f(u){return t?(setTimeout(function(){t(void 0,u)},0),!0):u}e=this.castInput(e),r=this.castInput(r),e=this.removeEmpty(this.tokenize(e)),r=this.removeEmpty(this.tokenize(r));var s=r.length,d=e.length,p=1,a=s+d;o.maxEditLength&&(a=Math.min(a,o.maxEditLength));var m=(i=o.timeout)!==null&&i!==void 0?i:1/0,N=Date.now()+m,c=[{oldPos:-1,lastComponent:void 0}],w=this.extractCommon(c[0],r,e,0);if(c[0].oldPos+1>=d&&w+1>=s)return f([{value:this.join(r),count:r.length}]);var L=-1/0,g=1/0;function E(){for(var u=Math.max(L,-p);u<=Math.min(g,p);u+=2){var h=void 0,y=c[u-1],x=c[u+1];y&&(c[u-1]=void 0);var O=!1;if(x){var A=x.oldPos-u;O=x&&0<=A&&A<s}var z=y&&y.oldPos+1<d;if(!O&&!z){c[u]=void 0;continue}if(!z||O&&y.oldPos+1<x.oldPos?h=l.addToPath(x,!0,void 0,0):h=l.addToPath(y,void 0,!0,1),w=l.extractCommon(h,r,e,u),h.oldPos+1>=d&&w+1>=s)return f(D(l,h.lastComponent,r,e,l.useLongestToken));c[u]=h,h.oldPos+1>=d&&(g=Math.min(g,u-1)),w+1>=s&&(L=Math.max(L,u+1))}p++}if(t)(function u(){setTimeout(function(){if(p>a||Date.now()>N)return t();E()||u()},0)})();else for(;p<=a&&Date.now()<=N;){var T=E();if(T)return T}},addToPath:function(e,r,i,o){var t=e.lastComponent;return t&&t.added===r&&t.removed===i?{oldPos:e.oldPos+o,lastComponent:{count:t.count+1,added:r,removed:i,previousComponent:t.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:r,removed:i,previousComponent:t}}},extractCommon:function(e,r,i,o){for(var t=r.length,l=i.length,f=e.oldPos,s=f-o,d=0;s+1<t&&f+1<l&&this.equals(r[s+1],i[f+1]);)s++,f++,d++;return d&&(e.lastComponent={count:d,previousComponent:e.lastComponent}),e.oldPos=f,s},equals:function(e,r){return this.options.comparator?this.options.comparator(e,r):e===r||this.options.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],i=0;i<e.length;i++)e[i]&&r.push(e[i]);return r},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function D(n,e,r,i,o){for(var t=[],l;e;)t.push(e),l=e.previousComponent,delete e.previousComponent,e=l;t.reverse();for(var f=0,s=t.length,d=0,p=0;f<s;f++){var a=t[f];if(a.removed){if(a.value=n.join(i.slice(p,p+a.count)),p+=a.count,f&&t[f-1].added){var N=t[f-1];t[f-1]=t[f],t[f]=N}}else{if(!a.added&&o){var m=r.slice(d,d+a.count);m=m.map(function(w,L){var g=i[p+L];return g.length>w.length?g:w}),a.value=n.join(m)}else a.value=n.join(r.slice(d,d+a.count));d+=a.count,a.added||(p+=a.count)}}var c=t[s-1];return s>1&&typeof c.value=="string"&&(c.added||c.removed)&&n.equals("",c.value)&&(t[s-2].value+=c.value,t.pop()),t}var P=new v;var C=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,M=/\S/,q=new v;q.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!M.test(n)&&!M.test(e)};q.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<e.length-1;r++)!e[r+1]&&e[r+2]&&C.test(e[r])&&C.test(e[r+2])&&(e[r]+=e[r+2],e.splice(r+1,2),r--);return e};var I=new v;I.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
|
|
2
|
+
`));var e=[],r=n.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var i=0;i<r.length;i++){var o=r[i];i%2&&!this.options.newlineIsToken?e[e.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),e.push(o))}return e};function j(n,e,r){return I.diff(n,e,r)}var R=new v;R.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var $=new v;$.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function H(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(e){return typeof e}:H=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(n)}var J=Object.prototype.toString,F=new v;F.useLongestToken=!0;F.tokenize=I.tokenize;F.castInput=function(n){var e=this.options,r=e.undefinedReplacement,i=e.stringifyReplacer,o=i===void 0?function(t,l){return typeof l>"u"?r:l}:i;return typeof n=="string"?n:JSON.stringify(b(n,null,null,o),o," ")};F.equals=function(n,e){return v.prototype.equals.call(F,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function b(n,e,r,i,o){e=e||[],r=r||[],i&&(n=i(o,n));var t;for(t=0;t<e.length;t+=1)if(e[t]===n)return r[t];var l;if(J.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),r.push(l),t=0;t<n.length;t+=1)l[t]=b(n[t],e,r,i,o);return e.pop(),r.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),H(n)==="object"&&n!==null){e.push(n),l={},r.push(l);var f=[],s;for(s in n)n.hasOwnProperty(s)&&f.push(s);for(f.sort(),t=0;t<f.length;t+=1)s=f[t],l[s]=b(n[s],e,r,i,s);e.pop(),r.pop()}else l=n;return l}var S=new v;S.tokenize=function(n){return n.slice()};S.join=S.removeEmpty=function(n){return n};export{j as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./chunk-VPRTJUIN.js";t();function n(){return process.hrtime()}function i(r){let e=process.hrtime(r);return(e[0]*1e3+e[1]/1e6).toFixed(2)}export{n as a,i as b};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{b as C}from"./chunk-4HHXSMD7.js";import{b as f}from"./chunk-YZDDTYTU.js";import{A as S,u as i,y as x}from"./chunk-BDVAE5MS.js";import{d as v}from"./chunk-JPGO36XP.js";import{Qb as I}from"./chunk-GFEAKSGV.js";import{g as a}from"./chunk-VPRTJUIN.js";a();a();a();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};a();function p(o=W()){return!!o.get("autocorrectEnabled")}function y(o,n=W()){n.set("autocorrectEnabled",o)}function W(){return b??(b=new C({projectName:"did-you-mean"})),b}var b;var A,s=class extends f{async run(){y(!0),i({body:m.on})}};A=s;s.summary="Enable autocorrect. Off by default.";s.descriptionWithMarkdown=`Enable autocorrect. Off by default.
|
|
2
|
+
|
|
3
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
4
|
+
|
|
5
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
6
|
+
`;s.description=A.descriptionWithoutMarkdown();var E=s;a();var k,u=class extends f{async run(){y(!1),i({body:m.off})}};k=u;u.summary="Disable autocorrect. Off by default.";u.descriptionWithMarkdown=`Disable autocorrect. Off by default.
|
|
7
|
+
|
|
8
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
9
|
+
|
|
10
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
11
|
+
`;u.description=k.descriptionWithoutMarkdown();var D=u;a();var M,d=class extends f{async run(){p()?i({body:m.on}):i({body:m.off})}};M=d;d.summary="Check whether autocorrect is enabled or disabled. On by default.";d.descriptionWithMarkdown=`Check whether autocorrect is enabled or disabled. On by default.
|
|
12
|
+
|
|
13
|
+
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
14
|
+
|
|
15
|
+
When autocorrection is disabled, you need to confirm that you want to run corrections for mistyped commands.
|
|
16
|
+
`;d.description=M.descriptionWithoutMarkdown();var N=d;a();var g=O(2),ao=O(3);function O(o){if(typeof o!="number"||Number.isNaN(o)||o<1||o===Number.POSITIVE_INFINITY)throw new Error("`"+o+"` is not a valid argument for `n-gram`");return n;function n(t){let c=[];if(t==null)return c;let e=typeof t.slice=="function"?t:String(t),r=e.length-o+1;if(r<1)return c;for(;r--;)c[r]=e.slice(r,r+o);return c}}function h(o){return o.replace(/:/g," ")}function F(o,n){let t={};o.forEach(e=>{t[e]=t[e]?t[e]+1:1});let c=[];for(let e of n)e in t&&t[e]>0&&(c.push(e),t[e]=t[e]-1);return c.length}function L(o){if(o.id.length<2)return;let n=new Set(o.config.commands.filter(r=>r.hidden).map(r=>r.id)),t=Array.from(new Set([...o.config.commandIDs,...o.config.commands.flatMap(r=>r.aliases)].filter(r=>!n.has(r)))),c=g(o.id),e=t.map(r=>{let l=g(r);return{score:F(l,c),cmd:r}}).filter(({score:r})=>r>=2).sort((r,l)=>{let w=l.score-r.score;return w!==0?w:r.cmd.length-l.cmd.length});if(I(`'Did you mean' options: ${JSON.stringify(e)}`),e.length>0){let{cmd:r}=e[0];return r}}async function Y(o,n){return p()?(i({body:["Autocorrecting",{command:h(n)},"to",{command:h(o)},{char:"."}]}),!0):S({message:["Command",{command:n},"not found. Did you mean",{command:h(o)},{char:"?"}]})}var bo={"config:autocorrect:off":D,"config:autocorrect:status":N,"config:autocorrect:on":E},go=async function(o){let n=L(o),t=h(o.id);if(o.argv&&(o.argv.includes("-f")||o.argv.includes("--force"))||!n){x(new v(`Command '${t}' not found.`));return}await Y(n,t)&&await this.config.runCommand(n,o.argv)};export{L as a,Y as b,bo as c,go as d};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as i}from"./chunk-OCOY5MV2.js";import{r as t}from"./chunk-GOJ2QHSR.js";import{b as r}from"./chunk-YZDDTYTU.js";import{u as e}from"./chunk-BDVAE5MS.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var o=class extends r{static{this.summary="Enable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Enable automatic upgrades for Shopify CLI.
|
|
2
|
+
|
|
3
|
+
When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version once per day. Major version upgrades are skipped and must be done manually.
|
|
4
|
+
|
|
5
|
+
To disable auto-upgrade, run \`shopify config autoupgrade off\`.
|
|
6
|
+
`}static{this.description=this.descriptionWithoutMarkdown()}async run(){t(!0),e({body:i.on})}};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as l,ga as o,ha as h,ia as c,v as s,w as q,z as f}from"./chunk-B2EHO7ZC.js";import{b as g}from"./chunk-4LNCYIS3.js";import{b as m}from"./chunk-GOJ2QHSR.js";import{e as i,g as a}from"./chunk-VPRTJUIN.js";a();var y=i(c()),x=new y.default({minTime:150,maxConcurrent:10});async function v(e){let n="App Management",r=`https://${await s()}/app_management/unstable/graphql.json`;return{token:e,api:n,url:r,responseOptions:{onResponse:d}}}var A=e=>l(e),T=async(e,n,t)=>{let u=`https://${await s()}/app_management/unstable/organizations/${e}/app_logs/poll`;return h(u,n,t)};async function U(e){let n=e.cacheOptions?.cacheExtraKey??"",t=e.cacheOptions?{...e.cacheOptions,cacheExtraKey:n}:void 0;return x.schedule(async()=>o({...await v(e.token),query:e.query,variables:e.variables,cacheOptions:t,preferredBehaviour:e.requestOptions?.requestMode,unauthorizedHandler:e.unauthorizedHandler}))}function d(e){if(!e.extensions)return;let n=[];for(let t of e.extensions.deprecations)t.supportedUntilDate&&n.push(new Date(t.supportedUntilDate));g(n)}a();var D=i(c()),z=new D.default({minTime:150,maxConcurrent:10});async function L(e){let n="App Dev",t=f(e.shopFqdn),u=`https://${await q(t)}/app_dev/unstable/graphql.json`,p=m()==="local"?{"x-forwarded-host":t}:void 0;return z.schedule(()=>o({query:e.query,api:n,url:u,token:e.token,addedHeaders:p,variables:e.variables,unauthorizedHandler:e.unauthorizedHandler,preferredBehaviour:e.requestOptions?.requestMode}))}a();var b=i(c()),k=new b.default({minTime:150,maxConcurrent:10});async function R(e,n,t){let r="Functions",p=`https://${await s()}/functions/unstable/organizations/${e}/${t}/graphql`;return{token:n,api:r,url:p,responseOptions:{onResponse:d}}}async function P(e){return await k.schedule(async()=>o({...await R(e.organizationId,e.token,e.appId),query:e.query,variables:e.variables,unauthorizedHandler:e.unauthorizedHandler}))}a();var w=i(c()),H=new w.default({minTime:150,maxConcurrent:10});async function Z(e){let n="Webhooks",r=`https://${await s()}/webhooks/unstable/organizations/${e.organizationId}/graphql.json`;return H.schedule(()=>o({query:e.query,api:n,url:r,token:e.token,variables:e.variables,unauthorizedHandler:e.unauthorizedHandler}))}export{A as a,T as b,U as c,L as d,P as e,Z as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as r}from"./chunk-VPRTJUIN.js";r();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{d as w,n as y,r as n}from"./chunk-B2EHO7ZC.js";import{w as l}from"./chunk-LAZJ47DZ.js";import{k as u,l as m}from"./chunk-GOJ2QHSR.js";import{a as h}from"./chunk-7BGM2GAH.js";import{a as x}from"./chunk-MOA33ZFO.js";import{O as S,u as d,w as g,x as N}from"./chunk-BDVAE5MS.js";import{f as _}from"./chunk-JPGO36XP.js";import{Qb as a}from"./chunk-GFEAKSGV.js";import{a as f}from"./chunk-N7RBSKYT.js";import{g as p}from"./chunk-VPRTJUIN.js";p();var $="https://cdn.shopify.com/static/cli/notifications.json",D="Cache is empty",C=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear"];function c(){return process.env.SHOPIFY_CLI_NOTIFICATIONS_URL??$}var E=n.object({id:n.string(),message:n.string(),type:n.enum(["info","warning","error"]),frequency:n.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:n.string(),cta:n.object({label:n.string(),url:n.string().url()}).optional(),title:n.string().optional(),minVersion:n.string().optional(),maxVersion:n.string().optional(),minDate:n.string().optional(),maxDate:n.string().optional(),commands:n.array(n.string()).optional(),surface:n.string().optional()}),I=n.object({notifications:n.array(E)});async function Q(e,t=process.env){try{let r=x();if(b(r,t)||w(t))return;let o=await k(),s=v(o.notifications,r,e);a(`Notifications to show: ${s.length}`),await V(s)}catch(r){if(r.message===D){a("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new _;let o=`Error showing notifications: ${r.message}`;a(o);let{sendErrorToBugsnag:s}=await import("./error-handler-WSCGNS2P.js");await s(o,"unexpected_error")}}function b(e,t=process.env){return f(t.CI)||f(t.SHOPIFY_UNIT_TEST)||C.includes(e)}async function V(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replace(/\\n/g,`
|
|
2
|
+
`),link:t.cta};switch(t.type){case"info":{d(r);break}case"warning":{g(r);break}case"error":throw N(r),new Error("abort")}u(`notification-${t.id}`,new Date().getTime().toString())})}async function k(){let e=`notifications-${c()}`,t=m(e)?.value;if(!t)throw new Error(D);let r=JSON.parse(t);return I.parse(r)}async function X(){a("Fetching notifications...");let e=await y(c(),void 0,{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:3*1e3});if(e.status!==200)throw new Error(`Failed to fetch notifications: ${e.statusText}`);let t=await e.text(),r=JSON.parse(t),o=I.parse(r);return await O(t),o}async function O(e){u(`notifications-${c()}`,e),a(`Notifications from ${c()} stored in the cache`)}function Z(e,t=process.argv,r=process.env){if(b(e,r)||!t[0]||!t[1])return;let o=t[0],i=[t[1],"notifications","list","--ignore-errors"];S(o,i,{background:!0,env:{...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},externalErrorHandler:async T=>{a(`Failed to fetch notifications in background: ${T.message}`)}})}function v(e,t,r,o=new Date(new Date().setUTCHours(0,0,0,0)),s=h){return e.filter(i=>B(i,s)).filter(i=>F(i,o)).filter(i=>A(i,t)).filter(i=>j(i,t,r)).filter(i=>q(i))}function B(e,t){let r=!e.minVersion||l(t,`>=${e.minVersion}`),o=!e.maxVersion||l(t,`<=${e.maxVersion}`);return r&&o}function F(e,t){let r=!e.minDate||new Date(e.minDate)<=t,o=!e.maxDate||new Date(e.maxDate)>=t;return r&&o}function A(e,t){return t===""?!0:!e.commands||e.commands.includes(t)}function j(e,t,r){let o=t.split(":")[0]??"all",s=e.surface??"all";return r?r.includes(s):s===o||s==="all"}function q(e){if(!e.frequency)return!0;let t=`notification-${e.id}`,r=m(t)?.value;if(!r)return!0;switch(e.frequency){case"always":return!0;case"once":return!1;case"once_a_day":return new Date().getTime()-Number(r)>24*3600*1e3;case"once_a_week":return new Date().getTime()-Number(r)>168*3600*1e3}}function ee(e){let t=[];return e.minDate&&t.push(`from ${e.minDate}`),e.maxDate&&t.push(`to ${e.maxDate}`),e.minVersion&&t.push(`from v${e.minVersion}`),e.maxVersion&&t.push(`to v${e.maxVersion}`),e.frequency==="once"&&t.push("show only once"),e.frequency==="once_a_day"&&t.push("show once a day"),e.frequency==="once_a_week"&&t.push("show once a week"),e.surface&&t.push(`surface = ${e.surface}`),e.commands&&t.push(`commands = ${e.commands.join(", ")}`),t.join(`
|
|
3
|
+
`)}export{Q as a,k as b,X as c,Z as d,v as e,ee as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as u,d as t,l as h}from"./chunk-JPGO36XP.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var o=e=>new a(e),s=e=>new n(e),a=class{constructor(r){this.value=r}isErr(){return!1}doOnOk(r){return r(this.value),o(this.value)}valueOrBug(){return this.value}valueOrAbort(){return this.value}map(r){return o(r(this.value))}mapError(r){return o(this.value)}},n=class{constructor(r){this.error=r}isErr(){return!0}doOnOk(r){return s(this.error)}valueOrBug(){throw this.error}valueOrAbort(){if(this.error instanceof u)throw this.error;if(this.error instanceof h.ExtendableError||this.error instanceof Error){let r=new t(this.error.message);throw r.stack=this.error.stack,r}else throw new t(`${this.error}`)}map(r){return s(this.error)}mapError(r){return s(r(this.error))}};export{o as a,s as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-7BGM2GAH.js";import{b as e}from"./chunk-YZDDTYTU.js";import{Mb as t}from"./chunk-GFEAKSGV.js";import{g as o}from"./chunk-VPRTJUIN.js";o();o();async function s(){t(i)}var r=class extends e{static{this.description="Shopify CLI version currently installed."}async run(){await s()}};export{r as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as l,c as a,d as B,f as C}from"./chunk-N7RBSKYT.js";import{a as I,c as d,e as Y,g as u}from"./chunk-VPRTJUIN.js";var b=d((ge,R)=>{"use strict";u();var g={},J=process.nextTick||global.setImmediate||global.setTimeout;g.nextTick=function(e){J(e)};g.parallel=function(e,r){var n=[],t=[],i=0,o=0;function c(s,f,m){f?t[s]=f:n[s]=m,o+=1,o>=i&&r((t.length>0,t),n)}Object.keys(e).forEach(function(s){i+=1;var f=e[s];g.nextTick(function(){f(c.bind(null,s),1)})})};g.promisify=function(e){return new Promise(function(r,n){e(function(t,i){if(t){!t instanceof Error&&(t=new Error(t)),n(t);return}r(i)})})};g.iterate=function(e,r,n){var t=[],i=function(){if(e.length===0){g.nextTick(n.bind(null,t));return}var o=e.shift();if(typeof o=="function"){o(function(c,s){if(c)t.push(c);else for(;s.length>0;)e.unshift(s.pop());i()});return}r(o,function(c,s){c?(t.push(c),i()):g.nextTick(n.bind(null,null,s))})};g.nextTick(i)};R.exports=g});var L=d((Ee,y)=>{u();var Q=I("child_process").execFile,X=/[-\/\\^$*+?.()|[\]{}]/g;function Z(e){return e.replace(X,"\\$&")}y.exports=function(e,r){Q("ipconfig",["/all"],function(n,t){if(n){r(n,null);return}var i=new RegExp(Z(e)).exec(t);if(!i){r("did not find interface in `ipconfig /all`",null);return}if(t=t.substring(i.index+e.length),i=/[A-Fa-f0-9]{2}(\-[A-Fa-f0-9]{2}){5}/.exec(t),!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase().replace(/\-/g,":"))})}});var A=d((Te,w)=>{u();var ee=I("child_process").execFile;w.exports=function(e,r){ee("/bin/cat",["/sys/class/net/"+e+"/address"],function(n,t){if(n){r(n,null);return}r(null,t.trim().toLowerCase())})}});var U=d((ve,M)=>{u();var re=I("child_process").execFile;M.exports=function(e,r){re("ifconfig",[e],function(n,t){if(n){r(n,null);return}var i=/[a-f0-9]{2}(:[a-f0-9]{2}){5}/.exec(t.toLowerCase());if(!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase())})}});var S=d((Ce,O)=>{u();var te=I("os"),E,N="^[a-z0-9]+$";switch(te.platform()){case"win32":N="^[a-z0-9 -]+$",E=L();break;case"linux":E=A();break;case"darwin":case"sunos":case"freebsd":E=U();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),E=U();break}var D=new RegExp(N,"i");O.exports=function(e,r){if(!D.test(e)){r(new Error(["invalid iface: '",e,"' (must conform to reg exp /",D,"/)"].join("")),null);return}E(e,r)}});var q=d((be,k)=>{"use strict";u();var ne=I("child_process").execFile;k.exports=function(e){ne("wmic",["nic","get","NetConnectionID"],function(r,n){if(r){e(r,null);return}for(var t=n.trim().replace(/\s{2,}/g,`
|
|
2
|
+
`).split(`
|
|
3
|
+
`).slice(1),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var K=d((Le,F)=>{u();var ie=I("child_process").execFile;F.exports=function(e){ie("/bin/ls",["/sys/class/net"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t\n]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var v=d((Ae,G)=>{"use strict";u();var oe=I("child_process").execFile;G.exports=function(e){oe("/sbin/ifconfig",["-l"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var P=d((De,H)=>{u();var se=I("os"),_;switch(se.platform()){case"win32":_=q();break;case"linux":_=K();break;case"darwin":case"sunos":case"freebsd":_=v();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),_=v();break}H.exports=_});var j=d((Oe,$)=>{u();var ue=I("os");$.exports=function(){var e={};try{var r=ue.networkInterfaces()}catch(n){if(n.syscall==="uv_interface_addresses")return e;throw n}return Object.keys(r).forEach(function(n){var t={},i=!1;r[n].forEach(function(o){if(!o.internal){var c=typeof o.family=="number"?"ipv"+o.family:(o.family||"").toLowerCase();t[c]=o.address,i=!0,o.mac&&o.mac!=="00:00:00:00:00:00"&&(t.mac=o.mac)}}),i&&(e[n]=t)}),e}});var V=d((ke,z)=>{"use strict";u();var h=b(),p={};p.getMacAddress=S();p.getAllInterfaces=P();p.networkInterfaces=j();var ae=new RegExp("^((en|eth)[0-9]+|ethernet)$","i"),ce=new RegExp("^(vboxnet[0-9]+)$","i");p.one=function(){var e=null,r=null;if(arguments.length>=1&&(typeof arguments[0]=="function"?r=arguments[0]:typeof arguments[0]=="string"&&(e=arguments[0]),arguments.length>=2&&typeof arguments[1]=="function"&&(r=arguments[1])),!r)return h.promisify(function(s){p.one(e,s)});if(e){p.getMacAddress(e,r);return}var n=p.networkInterfaces(),t={},i=[],o=[];if(Object.keys(n).forEach(function(s){o.push(s);var f=0,m=n[s];typeof m.mac=="string"&&m.mac!=="00:00:00:00:00:00"&&(t[s]=m.mac,m.ipv4&&(f+=1),m.ipv6&&(f+=1),ae.test(s)&&(f+=2),ce.test(s)&&(f-=3),i.push({name:s,score:f,mac:m.mac}))}),i.length>0){i.sort(function(s,f){var m=f.score-s.score;return m!==0?m:s.name<f.name?-1:s.name>f.name?1:0}),h.nextTick(r.bind(null,null,i[0].mac));return}o.push(p.getAllInterfaces);var c=function(s,f){if(t[s]){f(null,t[s]);return}p.getMacAddress(s,f)};h.iterate(o,c,r)};p.all=function(e){if(typeof e!="function")return h.promisify(p.all);var r=p.networkInterfaces(),n={};return Object.keys(r).forEach(function(t){r[t].mac||(n[t]=p.getMacAddress.bind(null,t))}),Object.keys(n).length===0?(typeof e=="function"&&h.nextTick(e.bind(null,null,r)),r):(h.parallel(n,function(t,i){Object.keys(i).forEach(function(o){r[o].mac=i[o]}),typeof e=="function"&&e(null,r)}),null)};z.exports=p});u();u();function x(e){return!(e===void 0||e.trim()==="")}function T(e,r){switch(e){case"bitbucket":return{branch:r.BITBUCKET_BRANCH,build:r.BITBUCKET_BUILD_NUMBER,commitSha:r.BITBUCKET_COMMIT,run:r.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${r.BITBUCKET_WORKSPACE}/${r.BITBUCKET_REPO_SLUG}/pipelines/results/${r.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:r.CIRCLE_USERNAME,branch:r.CIRCLE_BRANCH,build:r.CIRCLE_BUILD_NUM,commitSha:r.CIRCLE_SHA1,run:r.CIRCLE_WORKFLOW_ID,url:r.CIRCLE_BUILD_URL};case"github":return{actor:r.GITHUB_ACTOR,attempt:r.GITHUB_RUN_ATTEMPT,branch:r.GITHUB_REF_NAME,build:r.GITHUB_RUN_ID,commitSha:r.GITHUB_SHA,run:r.GITHUB_RUN_ID,runNumber:r.GITHUB_RUN_NUMBER,url:`${r.GITHUB_SERVER_URL}/${r.GITHUB_REPOSITORY}/actions/runs/${r.GITHUB_RUN_ID}`};case"gitlab":return{actor:r.GITLAB_USER_LOGIN,branch:r.CI_COMMIT_REF_NAME,build:r.CI_PIPELINE_ID,commitSha:r.CI_COMMIT_SHA,commitMessage:r.CI_COMMIT_MESSAGE,run:r.CI_RUNNER_ID,url:r.CI_PIPELINE_URL};case"buildkite":return{branch:r.BUILDKITE_BRANCH,build:r.BUILDKITE_BUILD_NUMBER,commitSha:r.BUILDKITE_COMMIT,commitMessage:r.BUILDKITE_MESSAGE,run:r.BUILDKITE_BUILD_NUMBER,url:r.BUILDKITE_BUILD_URL};default:return{}}}var W=Y(V());import{homedir as fe}from"os";async function le(e){let{fileExists:r}=await import("./fs-5BDEA2KD.js");return r(e)}async function pe(e,r){let{exec:n}=await import("./system-KLXD4FXF.js");await n(e,r)}function Pe(){return!!(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function $e(){return fe()}function me(e=process.env){return e[a.env]==="development"}function je(e=process.env){return l(e[a.verbose])||process.argv.includes("--verbose")}async function ze(e=process.env){return Object.prototype.hasOwnProperty.call(e,a.runAsUser)?!l(e[a.runAsUser]):await le(C.executables.dev)}function Ve(e=process.env){return l(e[a.unitTest])}function We(e=process.env){return l(e[a.hostedApps])}function Ye(e=process.env){return l(e[a.noAnalytics])||l(e[a.optOutInstrumentation])||me(e)}function Je(e=process.env){return l(e[a.alwaysLogAnalytics])}function Qe(e=process.env){return l(e[a.alwaysLogMetrics])}function Xe(e=process.env){return l(e[a.firstPartyDev])}function Ze(e=process.env){return l(e[a.doctor])}function er(e=process.env){return e[a.gitpod]}function rr(e=process.env){return e[a.codespaceName]}function tr(e=process.env){return e[a.codespacePortForwardingDomain]}function nr(e=process.env){return de(e).platform!=="localhost"}function ir(e=process.env){return e[a.themeToken]}function de(e=process.env){return x(e[a.codespaces])?{platform:"codespaces",editor:!0}:x(e[a.gitpod])?{platform:"gitpod",editor:!0}:x(e[a.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function or(){try{return await pe("git",["--version"]),!0}catch{return!1}}function sr(e=process.env){if(l(e.CI)){let r="unknown";return x(e.BITBUCKET_BUILD_NUMBER)?r="bitbucket":l(e.CIRCLECI)?r="circleci":x(e.GITHUB_ACTION)?r="github":l(e.GITLAB_CI)?r="gitlab":x(e.BUILDKITE)&&(r="buildkite"),{isCI:!0,name:r,metadata:T(r,e)}}else if(l(e.TF_BUILD))return{isCI:!0,name:"azure",metadata:T("azure",e)};return{isCI:!1}}function ur(){return W.default.one()}function ar(e=process.env){let r=e[a.themeKitAccessDomain];return x(r)?r:B}function cr(e=process.env){let r=e[a.otelURL];return x(r)?r:"https://otlp-http-production-cli.shopifysvc.com"}export{Pe as a,$e as b,me as c,je as d,ze as e,Ve as f,We as g,Ye as h,Je as i,Qe as j,Xe as k,Ze as l,er as m,rr as n,tr as o,nr as p,ir as q,de as r,or as s,sr as t,ur as u,ar as v,cr as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as c,e as s}from"./chunk-SBEZBZM7.js";import{O as o}from"./chunk-BDVAE5MS.js";import{d as a}from"./chunk-IU2ZQ6TE.js";import{g as u}from"./chunk-VPRTJUIN.js";u();async function h(n){if(n.features.includes("function")&&n.isJavaScript){let i=await s(n);return r(i.functionRunner)}return r()}function p(n){return n.configuration.build?.path?a(n.directory,n.configuration.build.path):n.outputPath}async function P(n){let i=n.functionExtension,e=await h(i);await c(e);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let f=p(i);return o(e.path,["-f",f,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{P as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a,g as c,i as p,j as f}from"./chunk-RFG5RMPL.js";import{g as h}from"./chunk-JPGO36XP.js";import{g as i}from"./chunk-VPRTJUIN.js";i();i();i();function d(n){let e=/[^\p{Letter}\p{Number}\p{Mark}-]/gu;return n.replace(e,"-")}import{randomBytes as l}from"crypto";import{hostname as g}from"os";var T=50;function m(n){let e=g().split(".")[0],r=l(3).toString("hex"),t=`${n} ()`,s=T-t.length-r.length-1,o=d(`${r}-${e.substring(0,s)}`);return`${n} (${o})`}var u=class{constructor(e){this.adminSession=e}async findOrCreate(e,r){let t=await this.fetch(e,r);return t?this.setTheme(t.id.toString()):t=await this.create(r,e),t}async fetch(e,r){if(!this.themeId&&!e)return;let t=e&&r===a?await p(e,this.adminSession):await c(parseInt(this.themeId,10),this.adminSession);return t||this.removeTheme(),t}generateThemeName(e){return m(e)}async create(e,r){let t=r??m(this.context),s=e??a,o=await f({name:t,role:s},this.adminSession);if(!o)throw new h(`Could not create theme with name "${t}" and role "${s}"`);return this.setTheme(o.id.toString()),o}};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./chunk-VPRTJUIN.js";e();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{b as $}from"./chunk-MOA33ZFO.js";import{a as F}from"./chunk-JUVAGMIH.js";import{R as _}from"./chunk-BDVAE5MS.js";import{d as T}from"./chunk-IASVAERO.js";import{d}from"./chunk-JPGO36XP.js";import{r as I}from"./chunk-LDGAHMS7.js";import{Gb as h,Ib as g,Mb as P,aa as E}from"./chunk-GFEAKSGV.js";import{c as O}from"./chunk-YC6G4MHD.js";import{a as b}from"./chunk-N7RBSKYT.js";import{e as S,g as w}from"./chunk-VPRTJUIN.js";w();var u=S(I()),p=class extends u.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(n){n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-WSCGNS2P.js");return await r(n,this.config),u.Errors.handle(n)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),$(this.id??""),!O()){let{registerCleanBugsnagErrorsFromWithinPlugins:r}=await import("./error-handler-WSCGNS2P.js");await r(this.config)}await x(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-MP7WDOCS.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${E(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-GHG3UGB3.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){b(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(P(`
|
|
2
|
+
SHOPIFY_CLI_TIMESTAMP_START
|
|
3
|
+
{ "timestamp": ${Date.now()} }
|
|
4
|
+
SHOPIFY_CLI_TIMESTAMP_END
|
|
5
|
+
`),process.exit(0))}async parse(n,r){let e=await super.parse(n,r);return e=await this.resultWithEnvironment(e,n,r),await j(e.flags),{...e,argv:e.argv}}environmentsFilename(){}failMissingNonTTYFlags(n,r){_()||r.forEach(e=>{if(!(e in n))throw new d(g`Flag not specified:
|
|
6
|
+
|
|
7
|
+
${h.cyan(e)}
|
|
8
|
+
|
|
9
|
+
This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-Z5PR7DSI.js"),s=await o(i,{from:t.path}),m=[];t.environment&&(m=Array.isArray(t.environment)?t.environment:[t.environment]);let c=m.length>0;if(!s&&!c||c&&m.length>1)return n;let{environment:l,isDefaultEnvironment:f}=await this.loadEnvironmentForCommand(t.path,i,m[0]);if(!l||f&&!C(r?.flags,"environment"))return n;let v=await super.parse(N(r),e),y=await super.parse(r,[...e??this.argv,...W(l,r,v),...f?["--environment","default"]:[]]);return A(v.flags,y.flags,f?"default":m[0],l),y}async loadEnvironmentForCommand(n,r,e){let{loadEnvironment:t}=await import("./environments-Z5PR7DSI.js");return e?{environment:await t(e,r,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",r,{from:n,silent:!0}),isDefaultEnvironment:!0}}};p.baseFlags={};async function j(a){await T(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:F(a.path)}))}function A(a,n,r,e){let t={};for(let[o,s]of Object.entries(n)){let m=Object.prototype.hasOwnProperty.call(a,o),c=Object.prototype.hasOwnProperty.call(e,o);if(!m&&c){let l=o==="password"?`********${s.substr(-4)}`:s;t[o]=l}}if(Object.keys(t).length===0)return;let i=Object.entries(t).map(([o,s])=>`${o}: ${s}`);import("./ui-GHG3UGB3.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:i}}]})})}function N(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,r])=>{let e={...r};return delete e.default,[n,e]}))}:a}function W(a,n,r){let e=[];for(let[t,i]of Object.entries(a)){let o=C(n?.flags,t),s=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,t);if(o&&!s)if(typeof i=="boolean")if(i)e.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(i)?i.forEach(m=>e.push(`--${t}`,`${m}`)):e.push(`--${t}`,`${i}`)}return e}function C(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}async function x(a){let n=Array.from(a.plugins.values()),r=["@shopify/app","@shopify/plugin-cloudflare"],e=n.filter(i=>r.includes(i.name));if(e.length>0){let i=e.map(s=>` - shopify plugins remove ${s.name}`).join(`
|
|
10
|
+
`),{renderWarning:o}=await import("./ui-GHG3UGB3.js");o({headline:`Unsupported plugins detected: ${e.map(s=>s.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
|
|
11
|
+
${i}`]})}let t=n.filter(i=>!r.includes(i.name));a.plugins=new Map(t.map(i=>[i.name,i]))}var q=p;export{N as a,q as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g as h}from"./chunk-VPRTJUIN.js";h();h();var o=(i,e)=>{if(!i)throw new Error(e)};var b=i=>{let e={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:n=>["boolean","string","number"].includes(typeof n)?n:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...i};return o(Object.keys(e).length===9,"Unexpected Option(s) provided"),o(typeof e.joined=="boolean",'Option "joined" has invalid format'),o(typeof e.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),o(typeof e.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),o(typeof e.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),o(typeof e.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),o(typeof e.separator=="string",'Option "separator" has invalid format'),o(typeof e.renderFn=="function",'Option "renderFn" has invalid format'),o(typeof e.sortFn=="function"||e.sortFn===null,'Option "sortFn" has invalid format'),o(typeof e.breakCircularWith=="string"||e.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),e},m=(i,e={})=>{let n=b(e),s=[],g=n.renderFn(i);g!==void 0&&s.push(String(g));let d=r=>n.sortFn===null?r.reverse():r.sort((t,l)=>n.sortFn(l,t)),u=[],a=d(Object.keys(i)).map(r=>[r]),c=[i];for(;a.length!==0;){let r=a.pop(),t=c[r.length-1][r[r.length-1]],l=n.breakCircularWith!==null&&c.includes(t);u[r.length-1]=a.length!==0&&a[a.length-1].length===r.length;let f=n.renderFn(t);s.push([u.slice(0,r.length-1).map(p=>p?n.spacerNeighbour:n.spacerNoNeighbour).join(""),u[r.length-1]?n.keyNeighbour:n.keyNoNeighbour,r[r.length-1],f===void 0?"":`${n.separator}${t}`,l?n.breakCircularWith:""].join("")),t instanceof Object&&!Array.isArray(t)&&!l&&(a.push(...d(Object.keys(t)).map(p=>r.concat(p))),c[r.length]=t)}return n.joined===!0?s.join(`
|
|
2
|
+
`):s};export{m as a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as X}from"./chunk-PIBY5DDZ.js";import{a as x,c as O,g as p}from"./chunk-VPRTJUIN.js";var q=O((Re,j)=>{p();var w=1e3,v=w*60,E=v*60,y=E*24,ee=y*7,re=y*365.25;j.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return te(e);if(r==="number"&&isFinite(e))return t.long?se(e):ne(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function te(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*re;case"weeks":case"week":case"w":return r*ee;case"days":case"day":case"d":return r*y;case"hours":case"hour":case"hrs":case"hr":case"h":return r*E;case"minutes":case"minute":case"mins":case"min":case"m":return r*v;case"seconds":case"second":case"secs":case"sec":case"s":return r*w;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ne(e){var t=Math.abs(e);return t>=y?Math.round(e/y)+"d":t>=E?Math.round(e/E)+"h":t>=v?Math.round(e/v)+"m":t>=w?Math.round(e/w)+"s":e+"ms"}function se(e){var t=Math.abs(e);return t>=y?T(e,t,y,"day"):t>=E?T(e,t,E,"hour"):t>=v?T(e,t,v,"minute"):t>=w?T(e,t,w,"second"):e+" ms"}function T(e,t,r,o){var l=t>=r*1.5;return Math.round(e/r)+" "+o+(l?"s":"")}});var k=O((Te,G)=>{p();function oe(e){r.debug=r,r.default=r,r.coerce=W,r.disable=F,r.enable=l,r.enabled=J,r.humanize=q(),r.destroy=Z,Object.keys(e).forEach(n=>{r[n]=e[n]}),r.names=[],r.skips=[],r.formatters={};function t(n){let s=0;for(let i=0;i<n.length;i++)s=(s<<5)-s+n.charCodeAt(i),s|=0;return r.colors[Math.abs(s)%r.colors.length]}r.selectColor=t;function r(n){let s,i=null,a,b;function f(...d){if(!f.enabled)return;let g=f,I=Number(new Date),H=I-(s||I);g.diff=H,g.prev=s,g.curr=I,s=I,d[0]=r.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let R=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(N,K)=>{if(N==="%%")return"%";R++;let D=r.formatters[K];if(typeof D=="function"){let Q=d[R];N=D.call(g,Q),d.splice(R,1),R--}return N}),r.formatArgs.call(g,d),(g.log||r.log).apply(g,d)}return f.namespace=n,f.useColors=r.useColors(),f.color=r.selectColor(n),f.extend=o,f.destroy=r.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>i!==null?i:(a!==r.namespaces&&(a=r.namespaces,b=r.enabled(n)),b),set:d=>{i=d}}),typeof r.init=="function"&&r.init(f),f}function o(n,s){let i=r(this.namespace+(typeof s>"u"?":":s)+n);return i.log=this.log,i}function l(n){r.save(n),r.namespaces=n,r.names=[],r.skips=[];let s=(typeof n=="string"?n:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let i of s)i[0]==="-"?r.skips.push(i.slice(1)):r.names.push(i)}function m(n,s){let i=0,a=0,b=-1,f=0;for(;i<n.length;)if(a<s.length&&(s[a]===n[i]||s[a]==="*"))s[a]==="*"?(b=a,f=i,a++):(i++,a++);else if(b!==-1)a=b+1,f++,i=f;else return!1;for(;a<s.length&&s[a]==="*";)a++;return a===s.length}function F(){let n=[...r.names,...r.skips.map(s=>"-"+s)].join(",");return r.enable(""),n}function J(n){for(let s of r.skips)if(m(n,s))return!1;for(let s of r.names)if(m(n,s))return!0;return!1}function W(n){return n instanceof Error?n.stack||n.message:n}function Z(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}G.exports=oe});var U=O((C,A)=>{p();C.formatArgs=ce;C.save=ue;C.load=ae;C.useColors=ie;C.storage=le();C.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();C.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ie(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ce(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+A.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,l=>{l!=="%%"&&(r++,l==="%c"&&(o=r))}),e.splice(o,0,t)}C.log=console.debug||console.log||(()=>{});function ue(e){try{e?C.storage.setItem("debug",e):C.storage.removeItem("debug")}catch{}}function ae(){let e;try{e=C.storage.getItem("debug")||C.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function le(){try{return localStorage}catch{}}A.exports=k()(C);var{formatters:fe}=A.exports;fe.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var z=O((_e,Y)=>{"use strict";p();var Ce=x("os"),P=x("tty"),h=X(),{env:c}=process,M;h("no-color")||h("no-colors")||h("color=false")||h("color=never")?M=0:(h("color")||h("colors")||h("color=true")||h("color=always"))&&(M=1);function de(){if("FORCE_COLOR"in c)return c.FORCE_COLOR==="true"?1:c.FORCE_COLOR==="false"?0:c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}function pe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function he(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let o=de();o!==void 0&&(M=o);let l=r?M:o;if(l===0)return 0;if(r){if(h("color=16m")||h("color=full")||h("color=truecolor"))return 3;if(h("color=256"))return 2}if(e&&!t&&l===void 0)return 0;let m=l||0;if(c.TERM==="dumb")return m;if(process.platform==="win32"){let F=Ce.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(F=>F in c)||c.CI_NAME==="codeship"?1:m;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let F=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:m}function B(e,t={}){let r=he(e,{streamIsTTY:e&&e.isTTY,...t});return pe(r)}Y.exports={supportsColor:B,stdout:B({isTTY:P.isatty(1)}),stderr:B({isTTY:P.isatty(2)})}});var V=O((u,L)=>{p();var me=x("tty"),_=x("util");u.init=ve;u.log=be;u.formatArgs=ge;u.save=Oe;u.load=we;u.useColors=Fe;u.destroy=_.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");u.colors=[6,2,3,4,5,1];try{let e=z();e&&(e.stderr||e).level>=2&&(u.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}u.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(l,m)=>m.toUpperCase()),o=process.env[t];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),e[r]=o,e},{});function Fe(){return"colors"in u.inspectOpts?!!u.inspectOpts.colors:me.isatty(process.stderr.fd)}function ge(e){let{namespace:t,useColors:r}=this;if(r){let o=this.color,l="\x1B[3"+(o<8?o:"8;5;"+o),m=` ${l};1m${t} \x1B[0m`;e[0]=m+e[0].split(`
|
|
2
|
+
`).join(`
|
|
3
|
+
`+m),e.push(l+"m+"+L.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ye()+t+" "+e[0]}function ye(){return u.inspectOpts.hideDate?"":new Date().toISOString()+" "}function be(...e){return process.stderr.write(_.formatWithOptions(u.inspectOpts,...e)+`
|
|
4
|
+
`)}function Oe(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function we(){return process.env.DEBUG}function ve(e){e.inspectOpts={};let t=Object.keys(u.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=u.inspectOpts[t[r]]}L.exports=k()(u);var{formatters:$}=L.exports;$.o=function(e){return this.inspectOpts.colors=this.useColors,_.inspect(e,this.inspectOpts).split(`
|
|
5
|
+
`).map(t=>t.trim()).join(" ")};$.O=function(e){return this.inspectOpts.colors=this.useColors,_.inspect(e,this.inspectOpts)}});var Ee=O((ke,S)=>{p();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?S.exports=U():S.exports=V()});export{q as a,z as b,Ee as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as r}from"./chunk-VPRTJUIN.js";r();function t(e){try{return new URL(e)}catch{return}}export{t as a};
|