@uniformdev/cli 20.35.0 → 20.36.0

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 -1
  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
  }
@@ -1092,7 +1095,7 @@ import { PostHog } from "posthog-node";
1092
1095
  // package.json
1093
1096
  var package_default = {
1094
1097
  name: "@uniformdev/cli",
1095
- version: "20.35.0",
1098
+ version: "20.36.0",
1096
1099
  description: "Uniform command line interface tool",
1097
1100
  license: "SEE LICENSE IN LICENSE.txt",
1098
1101
  main: "./cli.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.35.0",
3
+ "version": "20.36.0",
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.36.0",
31
+ "@uniformdev/canvas": "20.36.0",
32
+ "@uniformdev/context": "20.36.0",
33
+ "@uniformdev/files": "20.36.0",
34
+ "@uniformdev/project-map": "20.36.0",
35
+ "@uniformdev/redirect": "20.36.0",
36
+ "@uniformdev/richtext": "20.36.0",
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": "3e8e0c88d24d2576b74b64a48f7d32851979bf40"
85
85
  }