clever-tools 3.5.0 → 3.5.2

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
@@ -158,3 +158,14 @@ clever deploy
158
158
 
159
159
  This project uses GitHub Actions to build binaries, package them and release them automatically on the various repositories.
160
160
  If you want to know more or if you need to release a new version, please read [RELEASE.md](./RELEASE.md) carefully.
161
+
162
+
163
+ ## License
164
+
165
+ This project is licensed under the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html).
166
+
167
+ We're using a CJS bundled version of a file from [curlconverter](https://github.com/curlconverter/curlconverter):
168
+
169
+ * The project is licensed with [MIT](https://github.com/curlconverter/curlconverter/blob/master/LICENSE)
170
+ * The copyright is at the top the file `vendors/curlconverter-parse`
171
+ * The details are explained in [README_VENDORS.md](vendors/README_VENDORS.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clever-tools",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "description": "Command Line Interface for Clever Cloud.",
5
5
  "main": "bin/clever.js",
6
6
  "keywords": [
@@ -70,6 +70,7 @@
70
70
  "mime-types": "^2.1.35",
71
71
  "mocha": "^8.4.0",
72
72
  "pkg": "^5.8.1",
73
+ "rollup": "^4.14.1",
73
74
  "semver": "^7.3.5",
74
75
  "text-table": "^0.2.0"
75
76
  },
@@ -77,6 +78,7 @@
77
78
  "pkg-fetch": "3.5.2"
78
79
  },
79
80
  "scripts": {
81
+ "bundle-curlconverter": "rollup -c rollup-curlconverter.config.js",
80
82
  "pretest": "npm run lint",
81
83
  "test": "grunt test",
82
84
  "lint": "eslint bin src scripts",
@@ -5,6 +5,7 @@ const { loadOAuthConf, conf } = require('../models/configuration.js');
5
5
  const { addOauthHeader } = require('@clevercloud/client/cjs/oauth.js');
6
6
  const Logger = require('../logger.js');
7
7
  const colors = require('colors/safe');
8
+ const curlParser = require('../../vendors/curlconverter-parse.js');
8
9
 
9
10
  async function loadTokens () {
10
11
  const tokens = await loadOAuthConf();
@@ -77,8 +78,6 @@ async function curl () {
77
78
 
78
79
  async function parseCurlCommand (curlCommand) {
79
80
 
80
- const curlParser = await import('curlconverter/dist/src/parse.js');
81
-
82
81
  const [request] = curlParser.parse(curlCommand);
83
82
  const url = request.urls[0];
84
83