contensis-cli 1.5.1-beta.15 → 1.5.1-beta.17

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/README.md CHANGED
@@ -40,12 +40,27 @@ brew install contensis-cli-linux
40
40
  Install the package via [`npm`](https://www.npmjs.com/package/contensis-cli) as a global module (requires [Node.js](https://nodejs.org/en/download/))
41
41
 
42
42
  ```shell
43
- npm i --global contensis-cli@prerelease
43
+ npm i --global contensis-cli
44
44
  ```
45
45
 
46
46
  If you use `nvm` and are frequently switching your local `node` version it will also switch your global `node_modules` each time, it is recommended use one of the binary installations instead.
47
47
 
48
- ## Install from source
48
+ ## Try out a prerelease version
49
+
50
+ You can check the change logs for any upcoming release, there will be an [open pull request](https://github.com/contensis/cli/pulls)
51
+
52
+ ### Executable from build Artifacts
53
+
54
+ - Click on the latest build pipeline from the [Actions page](https://github.com/contensis/cli/actions)
55
+ - At the bottom there will be Artifacts - download and unzip the correct version for your platform.
56
+ - Run the unzipped executable, you will need to bypass any security warnings or prompts you might encounter.
57
+
58
+ ### Prerelease version from NPM
59
+
60
+ - `npx contensis-cli@prerelease`
61
+ - Note: your local Node.js version must be a compatible version, today we recommend Node.js v22
62
+
63
+ ## Run from source
49
64
 
50
65
  Clone the [repository](https://github.com/contensis/cli) and follow the instructions in the [`README`](https://github.com/contensis/cli#readme)
51
66
 
package/cli.js CHANGED
@@ -16,6 +16,26 @@ if (!globalThis.crypto) {
16
16
  globalThis.crypto = crypto.webcrypto;
17
17
  }
18
18
 
19
+ /** enterprise-fetch v2 uses the native node fetch if available which
20
+ * does not work with Management API file uploads correctly,
21
+ * so we force it to fallback to use the older `node-fetch` implementation
22
+ * which the Management API is deisgned to work with.
23
+ * Native fetch shows this when uploading an asset:
24
+
25
+ content-length: 17
26
+
27
+ [object FormData]
28
+ * where node-fetch show this
29
+ Content-Length: 53427
30
+
31
+ ----------------------------220769149404052112875897
32
+ Content-Disposition: form-data; name="file"; filename="default-meta1.jpg"
33
+ Content-Type: image/jpeg
34
+
35
+ ...binary data...
36
+ */
37
+ globalThis.fallbackFetch = true;
38
+
19
39
  /**
20
40
  * Run cli command or launch shell
21
41
  */
package/dist/version.js CHANGED
@@ -21,7 +21,7 @@ __export(version_exports, {
21
21
  LIB_VERSION: () => LIB_VERSION
22
22
  });
23
23
  module.exports = __toCommonJS(version_exports);
24
- const LIB_VERSION = "1.5.1-beta.15";
24
+ const LIB_VERSION = "1.5.1-beta.17";
25
25
  // Annotate the CommonJS export names for ESM import in node:
26
26
  0 && (module.exports = {
27
27
  LIB_VERSION
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/version.ts"],
4
- "sourcesContent": ["export const LIB_VERSION = \"1.5.1-beta.15\";\n"],
4
+ "sourcesContent": ["export const LIB_VERSION = \"1.5.1-beta.17\";\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAc;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contensis-cli",
3
- "version": "1.5.1-beta.15",
3
+ "version": "1.5.1-beta.17",
4
4
  "description": "A fully featured Contensis command line interface with a shell UI provides simple and intuitive ways to manage or profile your content in any NodeJS terminal.",
5
5
  "repository": "https://github.com/contensis/cli",
6
6
  "homepage": "https://github.com/contensis/cli/tree/main/packages/contensis-cli#readme",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "1.5.1-beta.15";
1
+ export const LIB_VERSION = "1.5.1-beta.17";