@uniformdev/cli 19.3.0 → 19.5.1-alpha.22
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/dist/index.mjs +7 -19
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -3233,7 +3233,7 @@ import { PostHog } from "posthog-node";
|
|
|
3233
3233
|
// package.json
|
|
3234
3234
|
var package_default = {
|
|
3235
3235
|
name: "@uniformdev/cli",
|
|
3236
|
-
version: "19.
|
|
3236
|
+
version: "19.5.0",
|
|
3237
3237
|
description: "Uniform command line interface tool",
|
|
3238
3238
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3239
3239
|
main: "./cli.js",
|
|
@@ -3280,7 +3280,7 @@ var package_default = {
|
|
|
3280
3280
|
"@types/js-yaml": "4.0.5",
|
|
3281
3281
|
"@types/jsonwebtoken": "9.0.2",
|
|
3282
3282
|
"@types/lodash.isequalwith": "4.4.7",
|
|
3283
|
-
"@types/node": "18.16.
|
|
3283
|
+
"@types/node": "18.16.3",
|
|
3284
3284
|
"@types/yargs": "17.0.24",
|
|
3285
3285
|
"p-limit": "4.0.0"
|
|
3286
3286
|
},
|
|
@@ -3504,13 +3504,13 @@ var createClient = (baseUrl, authToken) => {
|
|
|
3504
3504
|
const result = await requestJson(
|
|
3505
3505
|
"/api/v1/project",
|
|
3506
3506
|
{
|
|
3507
|
-
method: "
|
|
3507
|
+
method: "PUT",
|
|
3508
3508
|
body: JSON.stringify({
|
|
3509
|
-
|
|
3509
|
+
teamId,
|
|
3510
3510
|
name,
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3511
|
+
projectTypeId: projectTypeBelowLimit.id,
|
|
3512
|
+
uiVersion: 3,
|
|
3513
|
+
previewUrl
|
|
3514
3514
|
})
|
|
3515
3515
|
},
|
|
3516
3516
|
createTeamOrProjectSchema
|
|
@@ -3542,16 +3542,6 @@ var createClient = (baseUrl, authToken) => {
|
|
|
3542
3542
|
return { readApiKey, writeApiKey };
|
|
3543
3543
|
} catch (err) {
|
|
3544
3544
|
throw new Error(`Failed to create API key:
|
|
3545
|
-
${err.message}`);
|
|
3546
|
-
}
|
|
3547
|
-
},
|
|
3548
|
-
installCanvas: async (projectId) => {
|
|
3549
|
-
try {
|
|
3550
|
-
await request2(`/api/v1/integrations?integration=canvas&action=install&site=${projectId}`, {
|
|
3551
|
-
method: "POST"
|
|
3552
|
-
});
|
|
3553
|
-
} catch (err) {
|
|
3554
|
-
throw new Error(`Failed to install Canvas:
|
|
3555
3545
|
${err.message}`);
|
|
3556
3546
|
}
|
|
3557
3547
|
},
|
|
@@ -4024,8 +4014,6 @@ async function newHandler({
|
|
|
4024
4014
|
["UNIFORM_API_HOST", apiHost]
|
|
4025
4015
|
] : []
|
|
4026
4016
|
).map(([name, value]) => `${name}='${value}'`).join("\n") + "\n";
|
|
4027
|
-
done = await spin("Installing Canvas...");
|
|
4028
|
-
await uniformClient.installCanvas(projectId);
|
|
4029
4017
|
await done();
|
|
4030
4018
|
if (githubUri.endsWith("commerce-starter")) {
|
|
4031
4019
|
const stableFakecommerceId = "fakecommerce-d04dcf12-f811-401d-add8-1fb81cfdb8a5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.5.1-alpha.22+5b4a94102",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@uniformdev/canvas": "19.
|
|
20
|
-
"@uniformdev/context": "19.
|
|
21
|
-
"@uniformdev/project-map": "19.
|
|
22
|
-
"@uniformdev/redirect": "19.
|
|
19
|
+
"@uniformdev/canvas": "19.5.1-alpha.22+5b4a94102",
|
|
20
|
+
"@uniformdev/context": "19.5.1-alpha.22+5b4a94102",
|
|
21
|
+
"@uniformdev/project-map": "19.5.1-alpha.22+5b4a94102",
|
|
22
|
+
"@uniformdev/redirect": "19.5.1-alpha.22+5b4a94102",
|
|
23
23
|
"chalk": "^5.2.0",
|
|
24
24
|
"diff": "^5.0.0",
|
|
25
25
|
"dotenv": "^16.0.3",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@types/js-yaml": "4.0.5",
|
|
48
48
|
"@types/jsonwebtoken": "9.0.2",
|
|
49
49
|
"@types/lodash.isequalwith": "4.4.7",
|
|
50
|
-
"@types/node": "18.16.
|
|
50
|
+
"@types/node": "18.16.3",
|
|
51
51
|
"@types/yargs": "17.0.24",
|
|
52
52
|
"p-limit": "4.0.0"
|
|
53
53
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "5b4a94102c83a88c9fbf888a24d633e8abf96b76"
|
|
64
64
|
}
|