@uniformdev/cli 19.147.1-alpha.1 → 19.147.1-alpha.3

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 +4 -26
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -2053,7 +2053,6 @@ 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: "" },
2057
2056
  resolvePatterns: {
2058
2057
  type: "boolean",
2059
2058
  default: false,
@@ -2092,7 +2091,6 @@ var CompositionListModule = {
2092
2091
  proxy,
2093
2092
  limit,
2094
2093
  offset,
2095
- search,
2096
2094
  format,
2097
2095
  filename,
2098
2096
  onlyCompositions,
@@ -2108,7 +2106,6 @@ var CompositionListModule = {
2108
2106
  const res = await client.getCompositionList({
2109
2107
  limit,
2110
2108
  offset,
2111
- search: search.length > 0 ? search : void 0,
2112
2109
  pattern: onlyCompositions ? false : onlyPatterns ? true : void 0,
2113
2110
  state: convertStateOption(state),
2114
2111
  skipPatternResolution: !resolvePatterns,
@@ -3547,7 +3544,6 @@ var EntryGetModule = {
3547
3544
 
3548
3545
  // src/commands/canvas/commands/entry/list.ts
3549
3546
  import { ContentClient as ContentClient8 } from "@uniformdev/canvas";
3550
- var LEGACY_DEFAULT_LIMIT = 1e3;
3551
3547
  var EntryListModule = {
3552
3548
  command: "list",
3553
3549
  describe: "List entries",
@@ -3556,11 +3552,7 @@ var EntryListModule = {
3556
3552
  withApiOptions(
3557
3553
  withProjectOptions(
3558
3554
  withStateOptions(
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
- }),
3555
+ yargs33,
3564
3556
  // for backwards compatibility, we default to the "published" state, unlike compositions
3565
3557
  "published"
3566
3558
  )
@@ -3568,26 +3560,12 @@ var EntryListModule = {
3568
3560
  )
3569
3561
  )
3570
3562
  ),
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
- }) => {
3563
+ handler: async ({ apiHost, edgeApiHost, apiKey, proxy, format, filename, project: projectId, state }) => {
3584
3564
  const fetch3 = nodeFetchProxy(proxy);
3585
3565
  const client = new ContentClient8({ apiKey, apiHost, edgeApiHost, fetch: fetch3, projectId, bypassCache: true });
3586
3566
  const res = await client.getEntries({
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,
3567
+ offset: 0,
3568
+ limit: 1e3,
3591
3569
  state: convertStateOption(state),
3592
3570
  skipOverridesResolution: true,
3593
3571
  skipPatternResolution: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.147.1-alpha.1+3b71376893",
3
+ "version": "19.147.1-alpha.3+1af8304702",
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.1+3b71376893",
21
- "@uniformdev/canvas": "19.147.1-alpha.1+3b71376893",
22
- "@uniformdev/context": "19.147.1-alpha.1+3b71376893",
23
- "@uniformdev/files": "19.147.1-alpha.1+3b71376893",
24
- "@uniformdev/project-map": "19.147.1-alpha.1+3b71376893",
25
- "@uniformdev/redirect": "19.147.1-alpha.1+3b71376893",
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",
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": "3b71376893147a07f47c6118425304f96d099067"
71
+ "gitHead": "1af830470251c963f96bad096f543cfd3b612ffe"
72
72
  }