@fgv/ts-extras 5.1.0-12 → 5.1.0-14
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/packlets/crypto-utils/nodeCryptoProvider.js +12 -0
- package/dist/packlets/yaml/index.js +1 -0
- package/dist/packlets/yaml/serializers.js +48 -0
- package/dist/ts-extras.d.ts +60 -1
- package/lib/packlets/crypto-utils/model.d.ts +6 -0
- package/lib/packlets/crypto-utils/nodeCryptoProvider.d.ts +6 -0
- package/lib/packlets/crypto-utils/nodeCryptoProvider.js +12 -0
- package/lib/packlets/yaml/index.d.ts +1 -0
- package/lib/packlets/yaml/index.js +1 -0
- package/lib/packlets/yaml/serializers.d.ts +45 -0
- package/lib/packlets/yaml/serializers.js +84 -0
- package/package.json +7 -7
|
@@ -116,6 +116,18 @@ export class NodeCryptoProvider {
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Computes a SHA-256 hash of the given data.
|
|
121
|
+
* @param data - UTF-8 string to hash
|
|
122
|
+
* @returns `Success` with hex-encoded hash string, or `Failure` with an error.
|
|
123
|
+
*/
|
|
124
|
+
async sha256(data) {
|
|
125
|
+
return captureResult(() => {
|
|
126
|
+
const hash = crypto.createHash('sha256');
|
|
127
|
+
hash.update(data, 'utf8');
|
|
128
|
+
return hash.digest('hex');
|
|
129
|
+
});
|
|
130
|
+
}
|
|
119
131
|
// ============================================================================
|
|
120
132
|
// Platform Utility Methods
|
|
121
133
|
// ============================================================================
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2024 Erik Fortune
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
* in the Software without restriction, including without limitation the rights
|
|
7
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
* furnished to do so, subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
* SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
import { captureResult, fail } from '@fgv/ts-utils';
|
|
23
|
+
import * as yaml from 'js-yaml';
|
|
24
|
+
/**
|
|
25
|
+
* Serializes a value to a YAML string.
|
|
26
|
+
* @param value - The value to serialize (must be an object or array)
|
|
27
|
+
* @param options - Optional serialization options
|
|
28
|
+
* @returns `Success` with YAML string, or `Failure` with error
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export function yamlStringify(value, options) {
|
|
32
|
+
if (value === null || value === undefined) {
|
|
33
|
+
return fail('Cannot serialize null or undefined to YAML');
|
|
34
|
+
}
|
|
35
|
+
if (typeof value !== 'object') {
|
|
36
|
+
return fail('YAML serialization requires an object or array');
|
|
37
|
+
}
|
|
38
|
+
return captureResult(() => yaml.dump(value, {
|
|
39
|
+
indent: options === null || options === void 0 ? void 0 : options.indent,
|
|
40
|
+
flowLevel: options === null || options === void 0 ? void 0 : options.flowLevel,
|
|
41
|
+
sortKeys: options === null || options === void 0 ? void 0 : options.sortKeys,
|
|
42
|
+
lineWidth: options === null || options === void 0 ? void 0 : options.lineWidth,
|
|
43
|
+
noRefs: options === null || options === void 0 ? void 0 : options.noRefs,
|
|
44
|
+
noArrayIndent: options === null || options === void 0 ? void 0 : options.noArrayIndent,
|
|
45
|
+
forceQuotes: options === null || options === void 0 ? void 0 : options.forceQuotes
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=serializers.js.map
|
package/dist/ts-extras.d.ts
CHANGED
|
@@ -939,6 +939,12 @@ declare interface ICryptoProvider {
|
|
|
939
939
|
* @returns Success with derived 32-byte key, or Failure with error
|
|
940
940
|
*/
|
|
941
941
|
deriveKey(password: string, salt: Uint8Array, iterations: number): Promise<Result<Uint8Array>>;
|
|
942
|
+
/**
|
|
943
|
+
* Computes a SHA-256 hash of the given data.
|
|
944
|
+
* @param data - UTF-8 string to hash
|
|
945
|
+
* @returns Success with hex-encoded hash string, or Failure with error
|
|
946
|
+
*/
|
|
947
|
+
sha256(data: string): Promise<Result<string>>;
|
|
942
948
|
/**
|
|
943
949
|
* Generates cryptographically secure random bytes.
|
|
944
950
|
* @param length - Number of bytes to generate
|
|
@@ -1445,6 +1451,42 @@ declare interface IVariableRef {
|
|
|
1445
1451
|
readonly isSection: boolean;
|
|
1446
1452
|
}
|
|
1447
1453
|
|
|
1454
|
+
/**
|
|
1455
|
+
* Options for YAML serialization, mirroring commonly-used `js-yaml` `DumpOptions`.
|
|
1456
|
+
* @public
|
|
1457
|
+
*/
|
|
1458
|
+
declare interface IYamlSerializeOptions {
|
|
1459
|
+
/**
|
|
1460
|
+
* Indentation width in spaces (default: 2).
|
|
1461
|
+
*/
|
|
1462
|
+
readonly indent?: number;
|
|
1463
|
+
/**
|
|
1464
|
+
* Nesting level at which to switch from block to flow style.
|
|
1465
|
+
* -1 means block style everywhere (default: -1).
|
|
1466
|
+
*/
|
|
1467
|
+
readonly flowLevel?: number;
|
|
1468
|
+
/**
|
|
1469
|
+
* If true, sort keys when dumping (default: false).
|
|
1470
|
+
*/
|
|
1471
|
+
readonly sortKeys?: boolean;
|
|
1472
|
+
/**
|
|
1473
|
+
* Maximum line width (default: 80).
|
|
1474
|
+
*/
|
|
1475
|
+
readonly lineWidth?: number;
|
|
1476
|
+
/**
|
|
1477
|
+
* If true, don't convert duplicate objects into references (default: false).
|
|
1478
|
+
*/
|
|
1479
|
+
readonly noRefs?: boolean;
|
|
1480
|
+
/**
|
|
1481
|
+
* If true, don't add an indentation level to array elements (default: false).
|
|
1482
|
+
*/
|
|
1483
|
+
readonly noArrayIndent?: boolean;
|
|
1484
|
+
/**
|
|
1485
|
+
* If true, all non-key strings will be quoted (default: false).
|
|
1486
|
+
*/
|
|
1487
|
+
readonly forceQuotes?: boolean;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1448
1490
|
/**
|
|
1449
1491
|
* Simple interface for a file to be added to a zip file.
|
|
1450
1492
|
* @public
|
|
@@ -2000,6 +2042,12 @@ declare class NodeCryptoProvider implements ICryptoProvider {
|
|
|
2000
2042
|
* @returns `Success` with derived 32-byte key, or `Failure` with an error.
|
|
2001
2043
|
*/
|
|
2002
2044
|
deriveKey(password: string, salt: Uint8Array, iterations: number): Promise<Result<Uint8Array>>;
|
|
2045
|
+
/**
|
|
2046
|
+
* Computes a SHA-256 hash of the given data.
|
|
2047
|
+
* @param data - UTF-8 string to hash
|
|
2048
|
+
* @returns `Success` with hex-encoded hash string, or `Failure` with an error.
|
|
2049
|
+
*/
|
|
2050
|
+
sha256(data: string): Promise<Result<string>>;
|
|
2003
2051
|
/**
|
|
2004
2052
|
* Generates cryptographically secure random bytes.
|
|
2005
2053
|
* @param length - Number of bytes to generate
|
|
@@ -2312,7 +2360,9 @@ declare const uint8ArrayFromBase64: Converter<Uint8Array>;
|
|
|
2312
2360
|
|
|
2313
2361
|
declare namespace Yaml {
|
|
2314
2362
|
export {
|
|
2315
|
-
yamlConverter
|
|
2363
|
+
yamlConverter,
|
|
2364
|
+
yamlStringify,
|
|
2365
|
+
IYamlSerializeOptions
|
|
2316
2366
|
}
|
|
2317
2367
|
}
|
|
2318
2368
|
export { Yaml }
|
|
@@ -2325,6 +2375,15 @@ export { Yaml }
|
|
|
2325
2375
|
*/
|
|
2326
2376
|
declare function yamlConverter<T>(converter: Converter<T>): Converter<T>;
|
|
2327
2377
|
|
|
2378
|
+
/**
|
|
2379
|
+
* Serializes a value to a YAML string.
|
|
2380
|
+
* @param value - The value to serialize (must be an object or array)
|
|
2381
|
+
* @param options - Optional serialization options
|
|
2382
|
+
* @returns `Success` with YAML string, or `Failure` with error
|
|
2383
|
+
* @public
|
|
2384
|
+
*/
|
|
2385
|
+
declare function yamlStringify(value: unknown, options?: IYamlSerializeOptions): Result<string>;
|
|
2386
|
+
|
|
2328
2387
|
/**
|
|
2329
2388
|
* Supported compression levels for zip files.
|
|
2330
2389
|
* @public
|
|
@@ -145,6 +145,12 @@ export interface ICryptoProvider {
|
|
|
145
145
|
* @returns Success with derived 32-byte key, or Failure with error
|
|
146
146
|
*/
|
|
147
147
|
deriveKey(password: string, salt: Uint8Array, iterations: number): Promise<Result<Uint8Array>>;
|
|
148
|
+
/**
|
|
149
|
+
* Computes a SHA-256 hash of the given data.
|
|
150
|
+
* @param data - UTF-8 string to hash
|
|
151
|
+
* @returns Success with hex-encoded hash string, or Failure with error
|
|
152
|
+
*/
|
|
153
|
+
sha256(data: string): Promise<Result<string>>;
|
|
148
154
|
/**
|
|
149
155
|
* Generates cryptographically secure random bytes.
|
|
150
156
|
* @param length - Number of bytes to generate
|
|
@@ -35,6 +35,12 @@ export declare class NodeCryptoProvider implements ICryptoProvider {
|
|
|
35
35
|
* @returns `Success` with derived 32-byte key, or `Failure` with an error.
|
|
36
36
|
*/
|
|
37
37
|
deriveKey(password: string, salt: Uint8Array, iterations: number): Promise<Result<Uint8Array>>;
|
|
38
|
+
/**
|
|
39
|
+
* Computes a SHA-256 hash of the given data.
|
|
40
|
+
* @param data - UTF-8 string to hash
|
|
41
|
+
* @returns `Success` with hex-encoded hash string, or `Failure` with an error.
|
|
42
|
+
*/
|
|
43
|
+
sha256(data: string): Promise<Result<string>>;
|
|
38
44
|
/**
|
|
39
45
|
* Generates cryptographically secure random bytes.
|
|
40
46
|
* @param length - Number of bytes to generate
|
|
@@ -152,6 +152,18 @@ class NodeCryptoProvider {
|
|
|
152
152
|
});
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Computes a SHA-256 hash of the given data.
|
|
157
|
+
* @param data - UTF-8 string to hash
|
|
158
|
+
* @returns `Success` with hex-encoded hash string, or `Failure` with an error.
|
|
159
|
+
*/
|
|
160
|
+
async sha256(data) {
|
|
161
|
+
return (0, ts_utils_1.captureResult)(() => {
|
|
162
|
+
const hash = crypto.createHash('sha256');
|
|
163
|
+
hash.update(data, 'utf8');
|
|
164
|
+
return hash.digest('hex');
|
|
165
|
+
});
|
|
166
|
+
}
|
|
155
167
|
// ============================================================================
|
|
156
168
|
// Platform Utility Methods
|
|
157
169
|
// ============================================================================
|
|
@@ -36,4 +36,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
__exportStar(require("./converters"), exports);
|
|
39
|
+
__exportStar(require("./serializers"), exports);
|
|
39
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Result } from '@fgv/ts-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Options for YAML serialization, mirroring commonly-used `js-yaml` `DumpOptions`.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface IYamlSerializeOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Indentation width in spaces (default: 2).
|
|
9
|
+
*/
|
|
10
|
+
readonly indent?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Nesting level at which to switch from block to flow style.
|
|
13
|
+
* -1 means block style everywhere (default: -1).
|
|
14
|
+
*/
|
|
15
|
+
readonly flowLevel?: number;
|
|
16
|
+
/**
|
|
17
|
+
* If true, sort keys when dumping (default: false).
|
|
18
|
+
*/
|
|
19
|
+
readonly sortKeys?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum line width (default: 80).
|
|
22
|
+
*/
|
|
23
|
+
readonly lineWidth?: number;
|
|
24
|
+
/**
|
|
25
|
+
* If true, don't convert duplicate objects into references (default: false).
|
|
26
|
+
*/
|
|
27
|
+
readonly noRefs?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* If true, don't add an indentation level to array elements (default: false).
|
|
30
|
+
*/
|
|
31
|
+
readonly noArrayIndent?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If true, all non-key strings will be quoted (default: false).
|
|
34
|
+
*/
|
|
35
|
+
readonly forceQuotes?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Serializes a value to a YAML string.
|
|
39
|
+
* @param value - The value to serialize (must be an object or array)
|
|
40
|
+
* @param options - Optional serialization options
|
|
41
|
+
* @returns `Success` with YAML string, or `Failure` with error
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare function yamlStringify(value: unknown, options?: IYamlSerializeOptions): Result<string>;
|
|
45
|
+
//# sourceMappingURL=serializers.d.ts.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Erik Fortune
|
|
4
|
+
*
|
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
* furnished to do so, subject to the following conditions:
|
|
11
|
+
*
|
|
12
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
* copies or substantial portions of the Software.
|
|
14
|
+
*
|
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
* SOFTWARE.
|
|
22
|
+
*/
|
|
23
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
26
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
27
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(o, k2, desc);
|
|
30
|
+
}) : (function(o, m, k, k2) {
|
|
31
|
+
if (k2 === undefined) k2 = k;
|
|
32
|
+
o[k2] = m[k];
|
|
33
|
+
}));
|
|
34
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
35
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
36
|
+
}) : function(o, v) {
|
|
37
|
+
o["default"] = v;
|
|
38
|
+
});
|
|
39
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
40
|
+
var ownKeys = function(o) {
|
|
41
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
42
|
+
var ar = [];
|
|
43
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
44
|
+
return ar;
|
|
45
|
+
};
|
|
46
|
+
return ownKeys(o);
|
|
47
|
+
};
|
|
48
|
+
return function (mod) {
|
|
49
|
+
if (mod && mod.__esModule) return mod;
|
|
50
|
+
var result = {};
|
|
51
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
52
|
+
__setModuleDefault(result, mod);
|
|
53
|
+
return result;
|
|
54
|
+
};
|
|
55
|
+
})();
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.yamlStringify = yamlStringify;
|
|
58
|
+
const ts_utils_1 = require("@fgv/ts-utils");
|
|
59
|
+
const yaml = __importStar(require("js-yaml"));
|
|
60
|
+
/**
|
|
61
|
+
* Serializes a value to a YAML string.
|
|
62
|
+
* @param value - The value to serialize (must be an object or array)
|
|
63
|
+
* @param options - Optional serialization options
|
|
64
|
+
* @returns `Success` with YAML string, or `Failure` with error
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
function yamlStringify(value, options) {
|
|
68
|
+
if (value === null || value === undefined) {
|
|
69
|
+
return (0, ts_utils_1.fail)('Cannot serialize null or undefined to YAML');
|
|
70
|
+
}
|
|
71
|
+
if (typeof value !== 'object') {
|
|
72
|
+
return (0, ts_utils_1.fail)('YAML serialization requires an object or array');
|
|
73
|
+
}
|
|
74
|
+
return (0, ts_utils_1.captureResult)(() => yaml.dump(value, {
|
|
75
|
+
indent: options === null || options === void 0 ? void 0 : options.indent,
|
|
76
|
+
flowLevel: options === null || options === void 0 ? void 0 : options.flowLevel,
|
|
77
|
+
sortKeys: options === null || options === void 0 ? void 0 : options.sortKeys,
|
|
78
|
+
lineWidth: options === null || options === void 0 ? void 0 : options.lineWidth,
|
|
79
|
+
noRefs: options === null || options === void 0 ? void 0 : options.noRefs,
|
|
80
|
+
noArrayIndent: options === null || options === void 0 ? void 0 : options.noArrayIndent,
|
|
81
|
+
forceQuotes: options === null || options === void 0 ? void 0 : options.forceQuotes
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=serializers.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fgv/ts-extras",
|
|
3
|
-
"version": "5.1.0-
|
|
3
|
+
"version": "5.1.0-14",
|
|
4
4
|
"description": "Assorted Typescript Utilities",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "dist/ts-extras.d.ts",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"@types/js-yaml": "~4.0.9",
|
|
87
87
|
"typedoc": "~0.28.16",
|
|
88
88
|
"typedoc-plugin-markdown": "~4.9.0",
|
|
89
|
-
"@fgv/heft-dual-rig": "5.1.0-
|
|
90
|
-
"@fgv/
|
|
91
|
-
"@fgv/ts-utils": "5.1.0-
|
|
92
|
-
"@fgv/
|
|
89
|
+
"@fgv/heft-dual-rig": "5.1.0-14",
|
|
90
|
+
"@fgv/typedoc-compact-theme": "5.1.0-14",
|
|
91
|
+
"@fgv/ts-utils-jest": "5.1.0-14",
|
|
92
|
+
"@fgv/ts-utils": "5.1.0-14"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"luxon": "^3.7.2",
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
"papaparse": "^5.4.1",
|
|
98
98
|
"fflate": "~0.8.2",
|
|
99
99
|
"js-yaml": "~4.1.1",
|
|
100
|
-
"@fgv/ts-json-base": "5.1.0-
|
|
100
|
+
"@fgv/ts-json-base": "5.1.0-14"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
|
-
"@fgv/ts-utils": "5.1.0-
|
|
103
|
+
"@fgv/ts-utils": "5.1.0-14"
|
|
104
104
|
},
|
|
105
105
|
"repository": {
|
|
106
106
|
"type": "git",
|