git-stack-cli 0.8.2 → 0.8.4
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/__fixtures__/metadata.json +186 -0
- package/dist/app/App copy.js +30 -0
- package/dist/app/ArgCheck.js +21 -0
- package/dist/app/Brackets copy.js +10 -0
- package/dist/app/Counter.js +19 -0
- package/dist/app/GatherMetadata copy.js +91 -0
- package/dist/app/GatherMetadata.js +9 -0
- package/dist/app/InitMetadata.js +14 -0
- package/dist/app/Input.js +15 -0
- package/dist/app/KeepAlive.js +11 -0
- package/dist/app/LocalMergeRebase.js +19 -1
- package/dist/app/Main copy.js +200 -0
- package/dist/app/ManualRebase copy.js +127 -0
- package/dist/app/ManualRebase.js +19 -1
- package/dist/app/MultiSelect copy.js +76 -0
- package/dist/app/NPMAutoUpdate.js +34 -0
- package/dist/app/Parens copy.js +9 -0
- package/dist/app/PostRebaseStatus copy.js +23 -0
- package/dist/app/PreSelectCommitRanges copy.js +21 -0
- package/dist/app/SelectCommitRange.js +1 -0
- package/dist/app/Status copy.js +46 -0
- package/dist/app/Store.js +1 -0
- package/dist/app/Url copy.js +6 -0
- package/dist/app/YesNoPrompt copy.js +24 -0
- package/dist/cli.js +9 -0
- package/dist/core/Metadata copy.js +37 -0
- package/dist/core/StackTable.js +38 -0
- package/dist/core/SummaryTable.js +38 -0
- package/dist/core/ZustandStore.js +23 -0
- package/dist/core/cli copy.js +44 -0
- package/dist/core/color.js +83 -0
- package/dist/core/dependency_check.js +27 -0
- package/dist/core/exit.js +4 -0
- package/dist/core/get_commit_metadata.js +61 -0
- package/dist/core/id.js +61 -0
- package/dist/core/invariant copy.js +5 -0
- package/dist/core/isFiniteValue.js +3 -0
- package/dist/core/is_dev.js +1 -0
- package/dist/core/readJson.js +3 -0
- package/dist/core/serialize_json.js +17 -0
- package/dist/core/sleep copy.js +3 -0
- package/dist/main copy.js +266 -0
- package/dist/main.backup.js +266 -0
- package/dist/main.js +265 -0
- package/package.json +6 -4
- /package/dist/app/{Main.js → main.js} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { invariant } from "../core/invariant.js";
|
|
2
|
+
import { safe_quote } from "../core/safe_quote.js";
|
|
3
|
+
export function write(message, branch_id) {
|
|
4
|
+
let result = message;
|
|
5
|
+
// escape double-quote for cli
|
|
6
|
+
result = safe_quote(result);
|
|
7
|
+
// remove any previous metadata lines
|
|
8
|
+
result = remove(result);
|
|
9
|
+
const line_list = [result, "", TEMPLATE.branch_id(branch_id)];
|
|
10
|
+
const new_message = line_list.join("\n");
|
|
11
|
+
return new_message;
|
|
12
|
+
}
|
|
13
|
+
export function read(message) {
|
|
14
|
+
const match = message.match(RE.branch_id);
|
|
15
|
+
if (!match?.groups) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const id = match.groups["id"];
|
|
19
|
+
invariant(id, "id must exist");
|
|
20
|
+
return id;
|
|
21
|
+
}
|
|
22
|
+
export function remove(message) {
|
|
23
|
+
let result = message;
|
|
24
|
+
// remove metadata
|
|
25
|
+
result = result.replace(new RegExp(RE.branch_id, "g"), "");
|
|
26
|
+
result = result.trimEnd();
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
const TEMPLATE = {
|
|
30
|
+
branch_id(id) {
|
|
31
|
+
return `git-stack-id: ${id}`;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
const RE = {
|
|
35
|
+
all_double_quote: /"/g,
|
|
36
|
+
branch_id: new RegExp(TEMPLATE.branch_id("(?<id>[a-z0-9-+]+)"), "i"),
|
|
37
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { invariant } from "./invariant.js";
|
|
2
|
+
import { safe_quote } from "./safe_quote.js";
|
|
3
|
+
export function write(message, branch_id) {
|
|
4
|
+
let result = message;
|
|
5
|
+
// escape double-quote for cli
|
|
6
|
+
result = safe_quote(result);
|
|
7
|
+
// remove any previous metadata lines
|
|
8
|
+
result = remove(result);
|
|
9
|
+
const line_list = [result, "", TEMPLATE.branch_id(branch_id)];
|
|
10
|
+
const new_message = line_list.join("\n");
|
|
11
|
+
return new_message;
|
|
12
|
+
}
|
|
13
|
+
export function read(message) {
|
|
14
|
+
const match = message.match(RE.branch_id);
|
|
15
|
+
if (!match?.groups) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const id = match.groups["id"];
|
|
19
|
+
invariant(id, "id must exist");
|
|
20
|
+
return id;
|
|
21
|
+
}
|
|
22
|
+
export function remove(message) {
|
|
23
|
+
let result = message;
|
|
24
|
+
// remove metadata
|
|
25
|
+
result = result.replace(new RegExp(RE.branch_id, "g"), "");
|
|
26
|
+
result = result.trimEnd();
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
const TEMPLATE = {
|
|
30
|
+
stack_table(rows) {
|
|
31
|
+
return `"#### git stack\n${rows}"`;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
const RE = {
|
|
35
|
+
all_double_quote: /"/g,
|
|
36
|
+
// https://regex101.com/r/kqB9Ft/1
|
|
37
|
+
stack_table: new RegExp(TEMPLATE.branch_id("(?<id>[a-z0-9-+]+)"), "i"),
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { invariant } from "./invariant.js";
|
|
2
|
+
import { safe_quote } from "./safe_quote.js";
|
|
3
|
+
export function write(message, branch_id) {
|
|
4
|
+
let result = message;
|
|
5
|
+
// escape double-quote for cli
|
|
6
|
+
result = safe_quote(result);
|
|
7
|
+
// remove any previous metadata lines
|
|
8
|
+
result = remove(result);
|
|
9
|
+
const line_list = [result, "", TEMPLATE.branch_id(branch_id)];
|
|
10
|
+
const new_message = line_list.join("\n");
|
|
11
|
+
return new_message;
|
|
12
|
+
}
|
|
13
|
+
export function read(message) {
|
|
14
|
+
const match = message.match(RE.branch_id);
|
|
15
|
+
if (!match?.groups) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const id = match.groups["id"];
|
|
19
|
+
invariant(id, "id must exist");
|
|
20
|
+
return id;
|
|
21
|
+
}
|
|
22
|
+
export function remove(message) {
|
|
23
|
+
let result = message;
|
|
24
|
+
// remove metadata
|
|
25
|
+
result = result.replace(new RegExp(RE.branch_id, "g"), "");
|
|
26
|
+
result = result.trimEnd();
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
const TEMPLATE = {
|
|
30
|
+
stack_table(rows) {
|
|
31
|
+
return `"#### git stack\n${rows}"`;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
const RE = {
|
|
35
|
+
all_double_quote: /"/g,
|
|
36
|
+
// https://regex101.com/r/kqB9Ft/1
|
|
37
|
+
stack_table: new RegExp(TEMPLATE.branch_id("(?<id>[a-z0-9-+]+)"), "i"),
|
|
38
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createStore, useStore } from "zustand";
|
|
2
|
+
import { immer } from "zustand/middleware/immer";
|
|
3
|
+
function ZustandStore() {
|
|
4
|
+
const BaseStore = createStore()(immer((set, get) => ({
|
|
5
|
+
actions: {
|
|
6
|
+
set(setter) {
|
|
7
|
+
set((state) => {
|
|
8
|
+
setter(state);
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
})));
|
|
13
|
+
function useState(selector) {
|
|
14
|
+
return useStore(BaseStore, selector);
|
|
15
|
+
}
|
|
16
|
+
function useActions() {
|
|
17
|
+
return useState((state) => state.actions);
|
|
18
|
+
}
|
|
19
|
+
const getState = BaseStore.getState;
|
|
20
|
+
const setState = BaseStore.setState;
|
|
21
|
+
const subscribe = BaseStore.subscribe;
|
|
22
|
+
return { useActions, useState, getState, setState, subscribe };
|
|
23
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as child from "node:child_process";
|
|
2
|
+
export async function cli(command, unsafe_options) {
|
|
3
|
+
const options = Object.assign({}, unsafe_options);
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
const childProcess = child.spawn("sh", ["-c", command], options);
|
|
6
|
+
let stdout = "";
|
|
7
|
+
let stderr = "";
|
|
8
|
+
let output = "";
|
|
9
|
+
childProcess.stdout?.on("data", (data) => {
|
|
10
|
+
stdout += data.toString();
|
|
11
|
+
output += data.toString();
|
|
12
|
+
});
|
|
13
|
+
childProcess.stderr?.on("data", (data) => {
|
|
14
|
+
stderr += data.toString();
|
|
15
|
+
output += data.toString();
|
|
16
|
+
});
|
|
17
|
+
childProcess.on("close", (code) => {
|
|
18
|
+
if (!options.ignoreExitCode && code !== 0) {
|
|
19
|
+
reject(new Error(`[${command}] (${code})`));
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const result = {
|
|
23
|
+
code: code || 0,
|
|
24
|
+
stdout: stdout.trimEnd(),
|
|
25
|
+
stderr: stderr.trimEnd(),
|
|
26
|
+
output: output.trimEnd(),
|
|
27
|
+
};
|
|
28
|
+
resolve(result);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
childProcess.on("error", (err) => {
|
|
32
|
+
reject(err);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
cli.sync = function cli_sync(command, unsafe_options) {
|
|
37
|
+
const options = Object.assign({}, unsafe_options);
|
|
38
|
+
const spawn_return = child.spawnSync("sh", ["-c", command], options);
|
|
39
|
+
const stdout = String(spawn_return.stdout);
|
|
40
|
+
const stderr = String(spawn_return.stderr);
|
|
41
|
+
const output = String(spawn_return.output);
|
|
42
|
+
const code = spawn_return.status || 0;
|
|
43
|
+
return { code, stdout, stderr, output };
|
|
44
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import chalk from "chalk";
|
|
2
|
+
function create_color_proxy(base) {
|
|
3
|
+
return new Proxy(base, {
|
|
4
|
+
get(target, prop) {
|
|
5
|
+
switch (prop) {
|
|
6
|
+
case "test":
|
|
7
|
+
return test;
|
|
8
|
+
case "bracket":
|
|
9
|
+
return (str) => [
|
|
10
|
+
target.bold.whiteBright("["),
|
|
11
|
+
str,
|
|
12
|
+
target.bold.whiteBright("]"),
|
|
13
|
+
].join("");
|
|
14
|
+
case "url":
|
|
15
|
+
return target.bold.underline.blueBright;
|
|
16
|
+
case "cmd":
|
|
17
|
+
return target.bold.yellow;
|
|
18
|
+
case "branch":
|
|
19
|
+
return target.bold.green;
|
|
20
|
+
}
|
|
21
|
+
const target_prop = target[prop];
|
|
22
|
+
return target_prop;
|
|
23
|
+
},
|
|
24
|
+
apply(target, _this_arg, arguments_list) {
|
|
25
|
+
return target(...arguments_list);
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export const color = create_color_proxy(chalk);
|
|
30
|
+
function test() {
|
|
31
|
+
const PROP_LIST = [
|
|
32
|
+
"reset",
|
|
33
|
+
"bold",
|
|
34
|
+
"dim",
|
|
35
|
+
"italic",
|
|
36
|
+
"underline",
|
|
37
|
+
"overline",
|
|
38
|
+
"inverse",
|
|
39
|
+
"hidden",
|
|
40
|
+
"strikethrough",
|
|
41
|
+
"visible",
|
|
42
|
+
"black",
|
|
43
|
+
"red",
|
|
44
|
+
"green",
|
|
45
|
+
"yellow",
|
|
46
|
+
"blue",
|
|
47
|
+
"magenta",
|
|
48
|
+
"cyan",
|
|
49
|
+
"white",
|
|
50
|
+
"blackBright",
|
|
51
|
+
"gray",
|
|
52
|
+
"grey",
|
|
53
|
+
"redBright",
|
|
54
|
+
"greenBright",
|
|
55
|
+
"yellowBright",
|
|
56
|
+
"blueBright",
|
|
57
|
+
"magentaBright",
|
|
58
|
+
"cyanBright",
|
|
59
|
+
"whiteBright",
|
|
60
|
+
"bgBlack",
|
|
61
|
+
"bgRed",
|
|
62
|
+
"bgGreen",
|
|
63
|
+
"bgYellow",
|
|
64
|
+
"bgBlue",
|
|
65
|
+
"bgMagenta",
|
|
66
|
+
"bgCyan",
|
|
67
|
+
"bgWhite",
|
|
68
|
+
"bgBlackBright",
|
|
69
|
+
"bgGray",
|
|
70
|
+
"bgGrey",
|
|
71
|
+
"bgRedBright",
|
|
72
|
+
"bgGreenBright",
|
|
73
|
+
"bgYellowBright",
|
|
74
|
+
"bgBlueBright",
|
|
75
|
+
"bgMagentaBright",
|
|
76
|
+
"bgCyanBright",
|
|
77
|
+
"bgWhiteBright",
|
|
78
|
+
];
|
|
79
|
+
for (const prop of PROP_LIST) {
|
|
80
|
+
// eslint-disable-next-line no-console
|
|
81
|
+
console.debug(chalk[prop](prop));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cli } from "./cli.js";
|
|
2
|
+
import { color } from "./color.js";
|
|
3
|
+
import { is_command_available } from "./is_command_available.js";
|
|
4
|
+
export async function dependency_check() {
|
|
5
|
+
if (!is_command_available("git")) {
|
|
6
|
+
console.error(`${color.cmd("git")} must be installed.`);
|
|
7
|
+
process.exitCode = 2;
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
if (!is_command_available("gh")) {
|
|
11
|
+
console.error(`${color.cmd("gh")} must be installed.`);
|
|
12
|
+
// prettier-ignore
|
|
13
|
+
console.error(`Visit ${color.url("https://cli.github.com/")} to install the github cli (${color.cmd("gh")})`);
|
|
14
|
+
process.exitCode = 3;
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
const gh_auth_status_cli = await cli(`gh auth status`, {
|
|
18
|
+
ignoreExitCode: true,
|
|
19
|
+
});
|
|
20
|
+
if (gh_auth_status_cli.code !== 0) {
|
|
21
|
+
// prettier-ignore
|
|
22
|
+
console.error(`${color.cmd('gh')} requires login, please run \`${color.cmd('gh auth login')}\`.`);
|
|
23
|
+
process.exitCode = 4;
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as github from "../core/github.js";
|
|
2
|
+
import * as Metadata from "./Metadata.js";
|
|
3
|
+
import { cli } from "./cli.js";
|
|
4
|
+
async function all() {
|
|
5
|
+
const log_result = await cli(`git log master..HEAD --oneline --format=%H --color=never`);
|
|
6
|
+
const sha_list = lines(log_result.stdout).reverse();
|
|
7
|
+
const commit_metadata_list = [];
|
|
8
|
+
for (let i = 0; i < sha_list.length; i++) {
|
|
9
|
+
const sha = sha_list[i];
|
|
10
|
+
let base;
|
|
11
|
+
if (i === 0) {
|
|
12
|
+
base = "master";
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
base = commit_metadata_list[i - 1].metadata.id;
|
|
16
|
+
}
|
|
17
|
+
const commit_metadata = await commit(sha, base);
|
|
18
|
+
commit_metadata_list.push(commit_metadata);
|
|
19
|
+
}
|
|
20
|
+
return commit_metadata_list;
|
|
21
|
+
}
|
|
22
|
+
export async function commit(sha, base) {
|
|
23
|
+
const raw_message = (await cli(`git show -s --format=%B ${sha}`)).stdout;
|
|
24
|
+
const metadata = await Metadata.read(raw_message);
|
|
25
|
+
const message = display_message(raw_message);
|
|
26
|
+
let pr = null;
|
|
27
|
+
let pr_exists = false;
|
|
28
|
+
let pr_dirty = false;
|
|
29
|
+
if (metadata.id) {
|
|
30
|
+
const pr_branch = metadata.id;
|
|
31
|
+
pr = await github.pr_status(pr_branch);
|
|
32
|
+
if (pr && pr.state === "OPEN") {
|
|
33
|
+
pr_exists = true;
|
|
34
|
+
const last_commit = pr.commits[pr.commits.length - 1];
|
|
35
|
+
pr_dirty = last_commit.oid !== sha;
|
|
36
|
+
if (pr.baseRefName !== base) {
|
|
37
|
+
// requires base update
|
|
38
|
+
pr_dirty = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
sha,
|
|
44
|
+
base,
|
|
45
|
+
message,
|
|
46
|
+
pr,
|
|
47
|
+
pr_exists,
|
|
48
|
+
pr_dirty,
|
|
49
|
+
metadata,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function display_message(message) {
|
|
53
|
+
// remove metadata
|
|
54
|
+
let result = message;
|
|
55
|
+
result = result.replace(Metadata.id_regex(), "");
|
|
56
|
+
result = result.trimEnd();
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
function lines(value) {
|
|
60
|
+
return value.split("\n");
|
|
61
|
+
}
|
package/dist/core/id.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import crypto from "node:crypto";
|
|
2
|
+
// console.log(id());
|
|
3
|
+
export function id() {
|
|
4
|
+
const timestamp = Date.now();
|
|
5
|
+
// 9 223 372 036 854 775 808
|
|
6
|
+
// 9 trillion possible values
|
|
7
|
+
// (2^53) * (2^10) = 2^63 = 9,223,372,036,854,775,808
|
|
8
|
+
const js_max_bits = 53;
|
|
9
|
+
const timestamp_bits = Math.floor(Math.log2(timestamp)) + 1;
|
|
10
|
+
// padding needed to reach 53 bits
|
|
11
|
+
const padding_bits = js_max_bits - timestamp_bits;
|
|
12
|
+
// random between 0 and 2^padding_bits - 1
|
|
13
|
+
const random = crypto.randomInt(0, Math.pow(2, padding_bits));
|
|
14
|
+
// combine timestamp and random value
|
|
15
|
+
const combined = interleave_bits(timestamp, random);
|
|
16
|
+
// console.debug({ combined, timestamp, random, padding_bits, timestamp_bits });
|
|
17
|
+
return encode(combined);
|
|
18
|
+
}
|
|
19
|
+
function binary(value) {
|
|
20
|
+
return BigInt(value).toString(2);
|
|
21
|
+
}
|
|
22
|
+
function rand_index(list) {
|
|
23
|
+
return Math.floor(Math.random() * list.length);
|
|
24
|
+
}
|
|
25
|
+
function interleave_bits(a, b) {
|
|
26
|
+
const a_binary = binary(a).split("");
|
|
27
|
+
const b_binary = binary(b).split("");
|
|
28
|
+
while (b_binary.length) {
|
|
29
|
+
// pull random bit out of b_binary
|
|
30
|
+
const b_index = rand_index(b_binary);
|
|
31
|
+
const [selected] = b_binary.splice(b_index, 1);
|
|
32
|
+
// insert random bit into a_binary
|
|
33
|
+
const a_index = rand_index(a_binary);
|
|
34
|
+
a_binary.splice(a_index, 0, selected);
|
|
35
|
+
}
|
|
36
|
+
// convert binary list back to integer
|
|
37
|
+
const a_value = parseInt(a_binary.join(""), 2);
|
|
38
|
+
return a_value;
|
|
39
|
+
}
|
|
40
|
+
function encode(value) {
|
|
41
|
+
// base64 encode (64 characters)
|
|
42
|
+
// max character necessary to encode is equal to maximum number
|
|
43
|
+
// of bits in value divided by bits per character in encoding
|
|
44
|
+
//
|
|
45
|
+
// Example
|
|
46
|
+
// in base64 each characters can represent 6 bits (2^6 = 64)
|
|
47
|
+
// 53 bits / 6 bits = 8.833333333333334 characters (9 characters)
|
|
48
|
+
//
|
|
49
|
+
// prettier-ignore
|
|
50
|
+
const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-+";
|
|
51
|
+
const bits_per_char = Math.log2(chars.length);
|
|
52
|
+
const max_value_bits = 53;
|
|
53
|
+
const max_char_size = Math.ceil(max_value_bits / bits_per_char);
|
|
54
|
+
let result = "";
|
|
55
|
+
while (value > 0) {
|
|
56
|
+
result = chars[value % chars.length] + result;
|
|
57
|
+
value = Math.floor(value / chars.length);
|
|
58
|
+
}
|
|
59
|
+
// pad the result to necessary characters
|
|
60
|
+
return result.padStart(max_char_size, "=");
|
|
61
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function deserializeMaps(obj) {
|
|
2
|
+
if (obj && obj._type === "Map") {
|
|
3
|
+
return new Map(obj._value.map(([k, v]) => [k, deserializeMaps(v)]));
|
|
4
|
+
}
|
|
5
|
+
else if (Array.isArray(obj)) {
|
|
6
|
+
return obj.map(deserializeMaps);
|
|
7
|
+
}
|
|
8
|
+
else if (obj !== null && typeof obj === "object") {
|
|
9
|
+
const deserializedObj = {};
|
|
10
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
11
|
+
deserializedObj[key] = deserializeMaps(value);
|
|
12
|
+
}
|
|
13
|
+
return deserializedObj;
|
|
14
|
+
}
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
export {};
|