@uniformdev/cli 20.50.2-alpha.9 → 20.50.2-alpha.96
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.
|
@@ -19,6 +19,94 @@ import { dump, load } from "js-yaml";
|
|
|
19
19
|
import { dirname, extname, isAbsolute, resolve, sep } from "path";
|
|
20
20
|
import { fetch as undiciFetch, ProxyAgent } from "undici";
|
|
21
21
|
|
|
22
|
+
// package.json
|
|
23
|
+
var package_default = {
|
|
24
|
+
name: "@uniformdev/cli",
|
|
25
|
+
version: "20.63.0",
|
|
26
|
+
description: "Uniform command line interface tool",
|
|
27
|
+
license: "SEE LICENSE IN LICENSE.txt",
|
|
28
|
+
main: "./cli.js",
|
|
29
|
+
exports: {
|
|
30
|
+
".": {
|
|
31
|
+
types: "./dist/index.d.mts",
|
|
32
|
+
default: "./cli.js"
|
|
33
|
+
},
|
|
34
|
+
"./config": {
|
|
35
|
+
types: "./dist/defaultConfig.d.mts",
|
|
36
|
+
default: "./dist/defaultConfig.mjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
types: "./dist/index.d.mts",
|
|
40
|
+
sideEffects: false,
|
|
41
|
+
scripts: {
|
|
42
|
+
uniform: "node ./cli.js",
|
|
43
|
+
build: "tsc --noEmit && tsup",
|
|
44
|
+
dev: "tsup --watch",
|
|
45
|
+
clean: "rimraf dist",
|
|
46
|
+
test: "vitest run",
|
|
47
|
+
format: 'prettier --write "src/**/*.{js,ts,tsx}"'
|
|
48
|
+
},
|
|
49
|
+
dependencies: {
|
|
50
|
+
"@inquirer/prompts": "^7.10.1",
|
|
51
|
+
"@thi.ng/mime": "^2.2.23",
|
|
52
|
+
"@uniformdev/assets": "workspace:*",
|
|
53
|
+
"@uniformdev/canvas": "workspace:*",
|
|
54
|
+
"@uniformdev/context": "workspace:*",
|
|
55
|
+
"@uniformdev/files": "workspace:*",
|
|
56
|
+
"@uniformdev/project-map": "workspace:*",
|
|
57
|
+
"@uniformdev/redirect": "workspace:*",
|
|
58
|
+
"@uniformdev/richtext": "workspace:*",
|
|
59
|
+
"call-bind": "^1.0.2",
|
|
60
|
+
colorette: "2.0.20",
|
|
61
|
+
cosmiconfig: "9.0.0",
|
|
62
|
+
"cosmiconfig-typescript-loader": "5.0.0",
|
|
63
|
+
diff: "^8.0.3",
|
|
64
|
+
dotenv: "^16.4.7",
|
|
65
|
+
esbuild: "0.25.0",
|
|
66
|
+
execa: "5.1.1",
|
|
67
|
+
"file-type": "^21.3.2",
|
|
68
|
+
"fs-jetpack": "5.1.0",
|
|
69
|
+
graphql: "16.9.0",
|
|
70
|
+
"graphql-request": "6.1.0",
|
|
71
|
+
"image-size": "^1.2.1",
|
|
72
|
+
"isomorphic-git": "1.35.0",
|
|
73
|
+
"js-yaml": "^4.1.0",
|
|
74
|
+
jsonwebtoken: "9.0.3",
|
|
75
|
+
mitt: "^3.0.1",
|
|
76
|
+
"normalize-newline": "^4.1.0",
|
|
77
|
+
open: "10.2.0",
|
|
78
|
+
ora: "8.0.1",
|
|
79
|
+
"p-queue": "7.3.4",
|
|
80
|
+
"posthog-node": "5.28.5",
|
|
81
|
+
"registry-auth-token": "^5.0.0",
|
|
82
|
+
"registry-url": "^6.0.0",
|
|
83
|
+
slugify: "1.6.6",
|
|
84
|
+
svix: "^1.71.0",
|
|
85
|
+
undici: "^7.24.0",
|
|
86
|
+
yargs: "^17.6.2",
|
|
87
|
+
zod: "4.3.6"
|
|
88
|
+
},
|
|
89
|
+
devDependencies: {
|
|
90
|
+
"@types/diff": "^8.0.0",
|
|
91
|
+
"@types/js-yaml": "4.0.9",
|
|
92
|
+
"@types/jsonwebtoken": "9.0.5",
|
|
93
|
+
"@types/node": "24.3.1",
|
|
94
|
+
"@types/yargs": "17.0.32"
|
|
95
|
+
},
|
|
96
|
+
bin: {
|
|
97
|
+
uniform: "./cli.js"
|
|
98
|
+
},
|
|
99
|
+
files: [
|
|
100
|
+
"/dist"
|
|
101
|
+
],
|
|
102
|
+
publishConfig: {
|
|
103
|
+
access: "public"
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// src/constants.ts
|
|
108
|
+
var CLI_USER_AGENT = `uniform-cli/${package_default.version}`;
|
|
109
|
+
|
|
22
110
|
// src/sync/windowsRetry.ts
|
|
23
111
|
var RETRIABLE_ERRORS = [
|
|
24
112
|
"ECONNRESET",
|
|
@@ -117,6 +205,11 @@ function nodeFetchProxy(proxy, verbose) {
|
|
|
117
205
|
console.log(`\u{1F991} Using proxy ${proxy}`);
|
|
118
206
|
}
|
|
119
207
|
const baseFetch = (input, init) => {
|
|
208
|
+
const initWithUserAgent = {
|
|
209
|
+
...init,
|
|
210
|
+
headers: { "User-Agent": CLI_USER_AGENT, ...init?.headers }
|
|
211
|
+
};
|
|
212
|
+
init = initWithUserAgent;
|
|
120
213
|
const handleFetchError = (e) => {
|
|
121
214
|
if (e instanceof Error) {
|
|
122
215
|
e.message = `Error fetching ${input.toString()}
|
|
@@ -370,6 +463,8 @@ var getDirectoryOrFilename = ({
|
|
|
370
463
|
|
|
371
464
|
export {
|
|
372
465
|
__require,
|
|
466
|
+
package_default,
|
|
467
|
+
CLI_USER_AGENT,
|
|
373
468
|
withConfiguration,
|
|
374
469
|
withApiOptions,
|
|
375
470
|
withDebugOptions,
|
package/dist/defaultConfig.d.mts
CHANGED
package/dist/defaultConfig.mjs
CHANGED
|
@@ -4,7 +4,7 @@ type StateArgs = {
|
|
|
4
4
|
};
|
|
5
5
|
|
|
6
6
|
type SyncMode = 'mirror' | 'createOrUpdate' | 'create';
|
|
7
|
-
type EntityTypes = 'aggregate' | 'asset' | 'category' | 'workflow' | 'webhook' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'entryPattern' | 'locale' | 'componentPattern' | 'compositionPattern' | 'policyDocument' | 'projectMapDefinition' | 'projectMapNode' | 'previewUrl' | 'previewViewport' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
|
|
7
|
+
type EntityTypes = 'aggregate' | 'asset' | 'category' | 'workflow' | 'webhook' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'entryPattern' | 'label' | 'locale' | 'componentPattern' | 'compositionPattern' | 'policyDocument' | 'projectMapDefinition' | 'projectMapNode' | 'previewUrl' | 'previewViewport' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
|
|
8
8
|
type SyncFileFormat = 'yaml' | 'json';
|
|
9
9
|
type EntityConfiguration = {
|
|
10
10
|
mode?: SyncMode;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { C as CLIConfiguration } from './index-
|
|
2
|
+
export { C as CLIConfiguration } from './index-BurxbjCD.mjs';
|