@uniformdev/cli 19.147.1-alpha.3 → 19.149.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.
Files changed (2) hide show
  1. package/dist/index.mjs +27 -5
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -2053,6 +2053,7 @@ var CompositionListModule = {
2053
2053
  yargs33.options({
2054
2054
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2055
2055
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2056
+ search: { describe: "Search query", type: "string", default: "" },
2056
2057
  resolvePatterns: {
2057
2058
  type: "boolean",
2058
2059
  default: false,
@@ -2091,6 +2092,7 @@ var CompositionListModule = {
2091
2092
  proxy,
2092
2093
  limit,
2093
2094
  offset,
2095
+ search,
2094
2096
  format,
2095
2097
  filename,
2096
2098
  onlyCompositions,
@@ -2106,6 +2108,7 @@ var CompositionListModule = {
2106
2108
  const res = await client.getCompositionList({
2107
2109
  limit,
2108
2110
  offset,
2111
+ search: search.length > 0 ? search : void 0,
2109
2112
  pattern: onlyCompositions ? false : onlyPatterns ? true : void 0,
2110
2113
  state: convertStateOption(state),
2111
2114
  skipPatternResolution: !resolvePatterns,
@@ -3544,6 +3547,7 @@ var EntryGetModule = {
3544
3547
 
3545
3548
  // src/commands/canvas/commands/entry/list.ts
3546
3549
  import { ContentClient as ContentClient8 } from "@uniformdev/canvas";
3550
+ var LEGACY_DEFAULT_LIMIT = 1e3;
3547
3551
  var EntryListModule = {
3548
3552
  command: "list",
3549
3553
  describe: "List entries",
@@ -3552,7 +3556,11 @@ var EntryListModule = {
3552
3556
  withApiOptions(
3553
3557
  withProjectOptions(
3554
3558
  withStateOptions(
3555
- yargs33,
3559
+ yargs33.options({
3560
+ offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
3561
+ limit: { describe: "Number of rows to fetch", type: "number", default: LEGACY_DEFAULT_LIMIT },
3562
+ search: { describe: "Search query", type: "string", default: "" }
3563
+ }),
3556
3564
  // for backwards compatibility, we default to the "published" state, unlike compositions
3557
3565
  "published"
3558
3566
  )
@@ -3560,12 +3568,26 @@ var EntryListModule = {
3560
3568
  )
3561
3569
  )
3562
3570
  ),
3563
- handler: async ({ apiHost, edgeApiHost, apiKey, proxy, format, filename, project: projectId, state }) => {
3571
+ handler: async ({
3572
+ apiHost,
3573
+ edgeApiHost,
3574
+ apiKey,
3575
+ proxy,
3576
+ format,
3577
+ filename,
3578
+ project: projectId,
3579
+ state,
3580
+ limit,
3581
+ offset,
3582
+ search
3583
+ }) => {
3564
3584
  const fetch3 = nodeFetchProxy(proxy);
3565
3585
  const client = new ContentClient8({ apiKey, apiHost, edgeApiHost, fetch: fetch3, projectId, bypassCache: true });
3566
3586
  const res = await client.getEntries({
3567
- offset: 0,
3568
- limit: 1e3,
3587
+ offset,
3588
+ limit: search.length > 0 && limit === LEGACY_DEFAULT_LIMIT ? 100 : limit,
3589
+ // Search API requires a lower default limit (100)
3590
+ search: search.length > 0 ? search : void 0,
3569
3591
  state: convertStateOption(state),
3570
3592
  skipOverridesResolution: true,
3571
3593
  skipPatternResolution: true,
@@ -6874,7 +6896,7 @@ import { PostHog } from "posthog-node";
6874
6896
  // package.json
6875
6897
  var package_default = {
6876
6898
  name: "@uniformdev/cli",
6877
- version: "19.147.0",
6899
+ version: "19.149.0",
6878
6900
  description: "Uniform command line interface tool",
6879
6901
  license: "SEE LICENSE IN LICENSE.txt",
6880
6902
  main: "./cli.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.147.1-alpha.3+1af8304702",
3
+ "version": "19.149.0",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -17,12 +17,12 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@thi.ng/mime": "^2.2.23",
20
- "@uniformdev/assets": "19.147.1-alpha.3+1af8304702",
21
- "@uniformdev/canvas": "19.147.1-alpha.3+1af8304702",
22
- "@uniformdev/context": "19.147.1-alpha.3+1af8304702",
23
- "@uniformdev/files": "19.147.1-alpha.3+1af8304702",
24
- "@uniformdev/project-map": "19.147.1-alpha.3+1af8304702",
25
- "@uniformdev/redirect": "19.147.1-alpha.3+1af8304702",
20
+ "@uniformdev/assets": "19.149.0",
21
+ "@uniformdev/canvas": "19.149.0",
22
+ "@uniformdev/context": "19.149.0",
23
+ "@uniformdev/files": "19.149.0",
24
+ "@uniformdev/project-map": "19.149.0",
25
+ "@uniformdev/redirect": "19.149.0",
26
26
  "call-bind": "^1.0.2",
27
27
  "colorette": "2.0.20",
28
28
  "cosmiconfig": "8.3.6",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "1af830470251c963f96bad096f543cfd3b612ffe"
71
+ "gitHead": "fb8b8ed8fe0f1872070ef3ece9961f2970f7f17a"
72
72
  }