contensis-cli 1.0.0-beta.53 → 1.0.0-beta.55
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/.vscode/launch.json +15 -15
- package/README.md +1226 -1226
- package/dist/commands/connect.js.map +1 -1
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/diff.js.map +1 -1
- package/dist/commands/get.js.map +1 -1
- package/dist/commands/globalOptions.js.map +1 -1
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/release.js.map +1 -1
- package/dist/commands/remove.js.map +1 -1
- package/dist/commands/set.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/localisation/en-GB.js.map +1 -1
- package/dist/providers/CredentialProvider.js.map +1 -1
- package/dist/providers/SessionCacheProvider.js.map +1 -1
- package/dist/providers/file-provider.js.map +1 -1
- package/dist/services/ContensisAuthService.js.map +1 -1
- package/dist/services/ContensisCliService.js +4 -0
- package/dist/services/ContensisCliService.js.map +2 -2
- package/dist/shell.js.map +1 -1
- package/dist/util/console.printer.js +5 -5
- package/dist/util/console.printer.js.map +2 -2
- package/dist/util/csv.formatter.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/json.formatter.js.map +1 -1
- package/dist/util/logger.js.map +1 -1
- package/dist/util/xml.formatter.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/esbuild.config.js +49 -49
- package/headless-setup.sh +6 -6
- package/package.json +59 -59
- package/src/commands/connect.ts +24 -24
- package/src/commands/create.ts +70 -70
- package/src/commands/diff.ts +41 -41
- package/src/commands/get.ts +214 -214
- package/src/commands/globalOptions.ts +127 -127
- package/src/commands/import.ts +128 -128
- package/src/commands/index.ts +80 -80
- package/src/commands/list.ts +116 -116
- package/src/commands/login.ts +34 -34
- package/src/commands/push.ts +127 -127
- package/src/commands/release.ts +32 -32
- package/src/commands/remove.ts +85 -85
- package/src/commands/set.ts +96 -96
- package/src/index.ts +19 -19
- package/src/localisation/en-GB.ts +289 -289
- package/src/models/AppError.d.ts +40 -40
- package/src/models/Cache.d.ts +25 -25
- package/src/models/JsModules.d.ts +1 -1
- package/src/providers/CredentialProvider.ts +121 -121
- package/src/providers/SessionCacheProvider.ts +101 -101
- package/src/providers/file-provider.ts +76 -76
- package/src/services/ContensisAuthService.ts +70 -70
- package/src/services/ContensisCliService.ts +1749 -1745
- package/src/shell.ts +270 -270
- package/src/util/console.printer.ts +371 -371
- package/src/util/csv.formatter.ts +21 -21
- package/src/util/index.ts +73 -73
- package/src/util/json.formatter.ts +1 -1
- package/src/util/logger.ts +234 -234
- package/src/util/xml.formatter.ts +20 -20
- package/src/version.ts +1 -1
- package/tsconfig.json +22 -22
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import xml2js from 'xml2js';
|
|
2
|
-
import cleaner from 'deep-cleaner';
|
|
3
|
-
import { Logger } from './logger';
|
|
4
|
-
|
|
5
|
-
export const xmlFormatter = <T>(entries: T | T[]) => {
|
|
6
|
-
try {
|
|
7
|
-
const cleanedEntries = cleaner(cleaner(entries, ['workflow']));
|
|
8
|
-
|
|
9
|
-
const builder = new xml2js.Builder({
|
|
10
|
-
cdata: true,
|
|
11
|
-
rootName: 'Items',
|
|
12
|
-
});
|
|
13
|
-
const xml = builder.buildObject({ Entry: cleanedEntries });
|
|
14
|
-
|
|
15
|
-
return xml;
|
|
16
|
-
} catch (ex) {
|
|
17
|
-
Logger.error(`Problem building XML from entries`, ex);
|
|
18
|
-
return '';
|
|
19
|
-
}
|
|
20
|
-
};
|
|
1
|
+
import xml2js from 'xml2js';
|
|
2
|
+
import cleaner from 'deep-cleaner';
|
|
3
|
+
import { Logger } from './logger';
|
|
4
|
+
|
|
5
|
+
export const xmlFormatter = <T>(entries: T | T[]) => {
|
|
6
|
+
try {
|
|
7
|
+
const cleanedEntries = cleaner(cleaner(entries, ['workflow']));
|
|
8
|
+
|
|
9
|
+
const builder = new xml2js.Builder({
|
|
10
|
+
cdata: true,
|
|
11
|
+
rootName: 'Items',
|
|
12
|
+
});
|
|
13
|
+
const xml = builder.buildObject({ Entry: cleanedEntries });
|
|
14
|
+
|
|
15
|
+
return xml;
|
|
16
|
+
} catch (ex) {
|
|
17
|
+
Logger.error(`Problem building XML from entries`, ex);
|
|
18
|
+
return '';
|
|
19
|
+
}
|
|
20
|
+
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "1.0.0-beta.
|
|
1
|
+
export const LIB_VERSION = "1.0.0-beta.55";
|
package/tsconfig.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowJs": true,
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"target": "esnext",
|
|
7
|
-
"noImplicitAny": true,
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"strict": true,
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"outDir": "dist",
|
|
15
|
-
"baseUrl": ".",
|
|
16
|
-
"paths": {
|
|
17
|
-
"~/*": ["src/*", "dist/*"]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"include": ["src/**/*"],
|
|
21
|
-
"exclude": ["src/tests/**/*"]
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"target": "esnext",
|
|
7
|
+
"noImplicitAny": true,
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"outDir": "dist",
|
|
15
|
+
"baseUrl": ".",
|
|
16
|
+
"paths": {
|
|
17
|
+
"~/*": ["src/*", "dist/*"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"include": ["src/**/*"],
|
|
21
|
+
"exclude": ["src/tests/**/*"]
|
|
22
|
+
}
|