@uniformdev/cli 19.8.0 → 19.10.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.
- package/dist/index.mjs +10 -7
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -81,6 +81,9 @@ var omit = (object, keys) => {
|
|
|
81
81
|
}, object);
|
|
82
82
|
return result;
|
|
83
83
|
};
|
|
84
|
+
var cleanFileName = (proposedFileName) => {
|
|
85
|
+
return proposedFileName.replace(/[/<>$+%>!`&*'|{}?"=:\\@]/g, "-");
|
|
86
|
+
};
|
|
84
87
|
|
|
85
88
|
// src/sync/util.ts
|
|
86
89
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -3095,7 +3098,7 @@ import { PostHog } from "posthog-node";
|
|
|
3095
3098
|
// package.json
|
|
3096
3099
|
var package_default = {
|
|
3097
3100
|
name: "@uniformdev/cli",
|
|
3098
|
-
version: "19.
|
|
3101
|
+
version: "19.10.0",
|
|
3099
3102
|
description: "Uniform command line interface tool",
|
|
3100
3103
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3101
3104
|
main: "./cli.js",
|
|
@@ -3142,7 +3145,7 @@ var package_default = {
|
|
|
3142
3145
|
"@types/js-yaml": "4.0.5",
|
|
3143
3146
|
"@types/jsonwebtoken": "9.0.2",
|
|
3144
3147
|
"@types/lodash.isequalwith": "4.4.7",
|
|
3145
|
-
"@types/node": "18.16.
|
|
3148
|
+
"@types/node": "18.16.8",
|
|
3146
3149
|
"@types/yargs": "17.0.24"
|
|
3147
3150
|
},
|
|
3148
3151
|
bin: {
|
|
@@ -4593,7 +4596,7 @@ var selectIdentifier10 = (source, projectId) => [
|
|
|
4593
4596
|
projectId + source.projectMapId + source.id,
|
|
4594
4597
|
projectId + source.projectMapId + source.path
|
|
4595
4598
|
];
|
|
4596
|
-
var selectFilename = (source) => `${source.pathSegment}_${source.id}
|
|
4599
|
+
var selectFilename = (source) => cleanFileName(`${source.pathSegment}_${source.id}`);
|
|
4597
4600
|
var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
|
|
4598
4601
|
|
|
4599
4602
|
// src/commands/project-map/ProjectMapNodeEngineDataSource.ts
|
|
@@ -4867,8 +4870,8 @@ var RedirectDefinitionGetModule = {
|
|
|
4867
4870
|
handler: async ({ apiHost, apiKey, proxy, id, format, project: projectId, filename }) => {
|
|
4868
4871
|
const fetch3 = nodeFetchProxy(proxy);
|
|
4869
4872
|
const client = new UncachedRedirectClient({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
4870
|
-
const res = await client.getRedirect(id);
|
|
4871
|
-
if (res) {
|
|
4873
|
+
const res = await client.getRedirect({ id });
|
|
4874
|
+
if (!res) {
|
|
4872
4875
|
console.error("Redirect does not exist");
|
|
4873
4876
|
process.exit(1);
|
|
4874
4877
|
} else {
|
|
@@ -4907,7 +4910,7 @@ function writeContextPackage3(filename, packageContents) {
|
|
|
4907
4910
|
var selectIdentifier11 = (source) => source.redirect.id;
|
|
4908
4911
|
var selectFilename2 = (source) => {
|
|
4909
4912
|
const index = source.redirect.sourceUrl.lastIndexOf("/");
|
|
4910
|
-
return source.redirect.sourceUrl.substring(index + 1)
|
|
4913
|
+
return cleanFileName(source.redirect.sourceUrl.substring(index + 1)) + `_${source.redirect.id}`;
|
|
4911
4914
|
};
|
|
4912
4915
|
var selectDisplayName11 = (source) => {
|
|
4913
4916
|
let pathName = source.redirect.sourceUrl;
|
|
@@ -5118,7 +5121,7 @@ var RedirectDefinitionUpdateModule = {
|
|
|
5118
5121
|
const fetch3 = nodeFetchProxy(proxy);
|
|
5119
5122
|
const client = new UncachedRedirectClient6({ apiKey, apiHost, fetch: fetch3, projectId });
|
|
5120
5123
|
const file = readFileToObject(filename);
|
|
5121
|
-
await client.upsertRedirect(file);
|
|
5124
|
+
await client.upsertRedirect(file.redirect);
|
|
5122
5125
|
}
|
|
5123
5126
|
};
|
|
5124
5127
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.10.0",
|
|
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.10.0",
|
|
20
|
+
"@uniformdev/context": "19.10.0",
|
|
21
|
+
"@uniformdev/project-map": "19.10.0",
|
|
22
|
+
"@uniformdev/redirect": "19.10.0",
|
|
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.8",
|
|
51
51
|
"@types/yargs": "17.0.24"
|
|
52
52
|
},
|
|
53
53
|
"bin": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "149f942da715ed802545850283f9b99291829a04"
|
|
63
63
|
}
|