contensis-cli 1.5.1-beta.16 → 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/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.16";
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.16\";\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.16",
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.16";
1
+ export const LIB_VERSION = "1.5.1-beta.17";