@uniformdev/cli 20.35.0 → 20.35.1-alpha.87

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 +3 -0
  2. package/package.json +9 -9
package/dist/index.mjs CHANGED
@@ -213,6 +213,9 @@ var createClient = (baseUrl, authToken) => {
213
213
  );
214
214
  return result.id;
215
215
  } catch (err) {
216
+ if (err.message && /responded with (400|401|403)/.test(err.message)) {
217
+ throw new Error("Unable to create project. You need team admin permissions to use uniform new.");
218
+ }
216
219
  throw new Error(`Failed to create project:
217
220
  ${err.message}`);
218
221
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.35.0",
3
+ "version": "20.35.1-alpha.87+2cf616f622",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@thi.ng/mime": "^2.2.23",
30
- "@uniformdev/assets": "20.35.0",
31
- "@uniformdev/canvas": "20.35.0",
32
- "@uniformdev/context": "20.35.0",
33
- "@uniformdev/files": "20.35.0",
34
- "@uniformdev/project-map": "20.35.0",
35
- "@uniformdev/redirect": "20.35.0",
36
- "@uniformdev/richtext": "20.35.0",
30
+ "@uniformdev/assets": "20.35.1-alpha.87+2cf616f622",
31
+ "@uniformdev/canvas": "20.35.1-alpha.87+2cf616f622",
32
+ "@uniformdev/context": "20.35.1-alpha.87+2cf616f622",
33
+ "@uniformdev/files": "20.35.1-alpha.87+2cf616f622",
34
+ "@uniformdev/project-map": "20.35.1-alpha.87+2cf616f622",
35
+ "@uniformdev/redirect": "20.35.1-alpha.87+2cf616f622",
36
+ "@uniformdev/richtext": "20.35.1-alpha.87+2cf616f622",
37
37
  "call-bind": "^1.0.2",
38
38
  "colorette": "2.0.20",
39
39
  "cosmiconfig": "9.0.0",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "f228361828ef49a596ca3841e5b79768c64418cf"
84
+ "gitHead": "2cf616f622322e5322575c106742078b5e3d7992"
85
85
  }