|
1 | NO CONTENT: new file 100644 |
@@ -0,0 +1,148 | |||
|
1 | import { stringify } from "yaml"; | |
|
2 | ||
|
3 | export interface TapWriter { | |
|
4 | version(): void; | |
|
5 | plan(n: number): void; | |
|
6 | fail(e: any): void; | |
|
7 | ok(msg: string): void; | |
|
8 | skip(msg: string): void; | |
|
9 | bailOut(msg: string): void; | |
|
10 | comment(msg: string): void; | |
|
11 | yaml(data: any): void; | |
|
12 | end(): void; | |
|
13 | } | |
|
14 | ||
|
15 | enum TapState { | |
|
16 | Init, | |
|
17 | VersionWritten, | |
|
18 | Ready, | |
|
19 | ReadyWithoutPlan, | |
|
20 | End | |
|
21 | } | |
|
22 | ||
|
23 | export abstract class AbstractTapWriter implements TapWriter { | |
|
24 | private _state = TapState.Init; | |
|
25 | private _version = 13; | |
|
26 | private _testIndex = 1; | |
|
27 | ||
|
28 | private _moveVersion() { | |
|
29 | switch (this._state) { | |
|
30 | case TapState.Init: | |
|
31 | this._state = TapState.VersionWritten; | |
|
32 | break; | |
|
33 | default: | |
|
34 | throw new Error("Invalid operation"); | |
|
35 | } | |
|
36 | ||
|
37 | } | |
|
38 | ||
|
39 | private _movePlan() { | |
|
40 | switch (this._state) { | |
|
41 | case TapState.Init: | |
|
42 | case TapState.VersionWritten: | |
|
43 | this._state = TapState.Ready; | |
|
44 | break; | |
|
45 | case TapState.ReadyWithoutPlan: | |
|
46 | this._state = TapState.End; | |
|
47 | break; | |
|
48 | default: | |
|
49 | throw new Error("Invalid operation"); | |
|
50 | } | |
|
51 | } | |
|
52 | ||
|
53 | private _moveTestResult() { | |
|
54 | switch (this._state) { | |
|
55 | case TapState.Init: | |
|
56 | case TapState.VersionWritten: | |
|
57 | this._state = TapState.ReadyWithoutPlan; | |
|
58 | break; | |
|
59 | case TapState.Ready: | |
|
60 | case TapState.ReadyWithoutPlan: | |
|
61 | break; | |
|
62 | default: | |
|
63 | throw new Error("Invalid operation"); | |
|
64 | } | |
|
65 | } | |
|
66 | ||
|
67 | private _moveEnd() { | |
|
68 | switch (this._state) { | |
|
69 | case TapState.End: | |
|
70 | throw new Error("Invalid operation"); | |
|
71 | default: | |
|
72 | this._state = TapState.End; | |
|
73 | } | |
|
74 | } | |
|
75 | ||
|
76 | private _moveDiag() { | |
|
77 | switch (this._state) { | |
|
78 | case TapState.Init: | |
|
79 | case TapState.VersionWritten: | |
|
80 | this._state = TapState.ReadyWithoutPlan; | |
|
81 | break; | |
|
82 | case TapState.Ready: | |
|
83 | case TapState.ReadyWithoutPlan: | |
|
84 | break; | |
|
85 | default: | |
|
86 | throw new Error("Invalid operation"); | |
|
87 | } | |
|
88 | } | |
|
89 | ||
|
90 | version() { | |
|
91 | this._moveVersion(); | |
|
92 | ||
|
93 | this._writeLine(`TAP version ${this._version}`); | |
|
94 | } | |
|
95 | ||
|
96 | plan(n: number) { | |
|
97 | this._movePlan(); | |
|
98 | ||
|
99 | this._writeLine(`1..${n}`); | |
|
100 | } | |
|
101 | ||
|
102 | fail(e: any) { | |
|
103 | this._moveTestResult(); | |
|
104 | ||
|
105 | this._writeText(`not ok ${this._testIndex} ${e}`); | |
|
106 | this._testIndex++; | |
|
107 | } | |
|
108 | ||
|
109 | ok(msg: string) { | |
|
110 | this._moveTestResult(); | |
|
111 | ||
|
112 | this._writeText(`ok ${this._testIndex} ${msg}`); | |
|
113 | this._testIndex++; | |
|
114 | } | |
|
115 | skip(msg: string) { | |
|
116 | this._moveTestResult(); | |
|
117 | ||
|
118 | this._writeText(`ok ${this._testIndex} # SKIPPED: ${msg}`); | |
|
119 | this._testIndex++; | |
|
120 | } | |
|
121 | bailOut(msg: string) { | |
|
122 | this._moveEnd(); | |
|
123 | ||
|
124 | this._writeText(`Bail out! ${msg}`); | |
|
125 | } | |
|
126 | comment(msg: string) { | |
|
127 | this._moveDiag(); | |
|
128 | ||
|
129 | this._writeText(`# ${msg}`); | |
|
130 | } | |
|
131 | yaml(data: any) { | |
|
132 | this._moveDiag(); | |
|
133 | ||
|
134 | this._writeLine(" ---"); | |
|
135 | stringify(data).split("\r\n?").forEach(line => this._writeLine(" " + line)); | |
|
136 | this._writeLine(" ..."); | |
|
137 | } | |
|
138 | end() { | |
|
139 | this._moveEnd(); | |
|
140 | } | |
|
141 | ||
|
142 | private _writeText(text: string) { | |
|
143 | text.split("\r\n?").forEach((line, i) => this._writeLine(i ? "# " + line : line)); | |
|
144 | } | |
|
145 | ||
|
146 | abstract _writeLine(text: string): void; | |
|
147 | ||
|
148 | } |
@@ -0,0 +1,18 | |||
|
1 | import { AbstractTapWriter } from "./Tap"; | |
|
2 | import { TextWriter } from "@implab/core-amd/interfaces"; | |
|
3 | ||
|
4 | export class TextTapWriter extends AbstractTapWriter { | |
|
5 | ||
|
6 | private readonly _writer: TextWriter; | |
|
7 | ||
|
8 | constructor(writer: TextWriter) { | |
|
9 | super(); | |
|
10 | ||
|
11 | this._writer = writer; | |
|
12 | } | |
|
13 | ||
|
14 | _writeLine(text: string) { | |
|
15 | this._writer.writeLine(text); | |
|
16 | } | |
|
17 | ||
|
18 | } No newline at end of file |
@@ -1,39 +1,40 | |||
|
1 | 1 | plugins { |
|
2 | 2 | id "org.implab.gradle-typescript" version "1.3.1" |
|
3 | 3 | id "ivy-publish" |
|
4 | 4 | } |
|
5 | 5 | |
|
6 | 6 | typescript { |
|
7 | 7 | compilerOptions { |
|
8 | 8 | lib = ["es5", "dom", "scripthost", "es2015.promise", "es2015.symbol", "es2015.iterable"] |
|
9 | 9 | listFiles = true |
|
10 | 10 | declaration = true |
|
11 | strict = true | |
|
11 | 12 | types = [] |
|
12 | 13 | module = "amd" |
|
13 | 14 | it.target = "es5" |
|
14 | 15 | experimentalDecorators = true |
|
15 | 16 | jsx = "react" |
|
16 | 17 | jsxFactory = "createElement" |
|
17 | 18 | moduleResolution = "node" |
|
18 | 19 | } |
|
19 | 20 | |
|
20 | 21 | tscCmd = "$projectDir/node_modules/.bin/tsc" |
|
21 | 22 | tsLintCmd = "$projectDir/node_modules/.bin/tslint" |
|
22 | 23 | esLintCmd = "$projectDir/node_modules/.bin/eslint" |
|
23 | 24 | } |
|
24 | 25 | |
|
25 | 26 | configureTsMain { |
|
26 | 27 | compilerOptions { |
|
27 | 28 | types = ["requirejs", "dojo-typings"] |
|
28 | 29 | } |
|
29 | 30 | } |
|
30 | 31 | |
|
31 | 32 | task printVersion { |
|
32 | 33 | doLast { |
|
33 | 34 | println "packageName: $packageName"; |
|
34 | 35 | println "version: $version"; |
|
35 | 36 | println "target: $typescript.compilerOptions.target"; |
|
36 | 37 | println "module: $typescript.compilerOptions.module"; |
|
37 | 38 | println "symbols: $symbols"; |
|
38 | 39 | } |
|
39 | 40 | } No newline at end of file |
This diff has been collapsed as it changes many lines, (511 lines changed) Show them Hide them | |||
@@ -1,1323 +1,1206 | |||
|
1 | 1 | { |
|
2 | 2 | "requires": true, |
|
3 | 3 | "lockfileVersion": 1, |
|
4 | 4 | "dependencies": { |
|
5 | 5 | "@babel/code-frame": { |
|
6 | 6 | "version": "7.8.3", |
|
7 | 7 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", |
|
8 | 8 | "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", |
|
9 | 9 | "dev": true, |
|
10 | 10 | "requires": { |
|
11 | 11 | "@babel/highlight": "^7.8.3" |
|
12 | 12 | } |
|
13 | 13 | }, |
|
14 | 14 | "@babel/highlight": { |
|
15 | 15 | "version": "7.8.3", |
|
16 | 16 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", |
|
17 | 17 | "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", |
|
18 | 18 | "dev": true, |
|
19 | 19 | "requires": { |
|
20 | 20 | "chalk": "^2.0.0", |
|
21 | 21 | "esutils": "^2.0.2", |
|
22 | 22 | "js-tokens": "^4.0.0" |
|
23 | 23 | } |
|
24 | 24 | }, |
|
25 | "@babel/runtime": { | |
|
26 | "version": "7.8.3", | |
|
27 | "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.8.3.tgz", | |
|
28 | "integrity": "sha512-fVHx1rzEmwB130VTkLnxR+HmxcTjGzH12LYQcFFoBwakMd3aOMD4OsRN7tGG/UOYE2ektgFrS8uACAoRk1CY0w==", | |
|
29 | "dev": true, | |
|
30 | "requires": { | |
|
31 | "regenerator-runtime": "^0.13.2" | |
|
32 | } | |
|
33 | }, | |
|
25 | 34 | "@implab/core-amd": { |
|
26 | 35 | "version": "1.3.2", |
|
27 | 36 | "resolved": "https://registry.npmjs.org/@implab/core-amd/-/core-amd-1.3.2.tgz", |
|
28 | 37 | "integrity": "sha512-OPx02obqz60FiOzDqEFuPfag/0ugl1tuQouI+52Op0k+fcmuBK4QACJy7o3fzOYvejdjF1DG4aRXuCm6+vgMYQ==", |
|
29 | 38 | "dev": true |
|
30 | 39 | }, |
|
31 | 40 | "@types/chai": { |
|
32 |
"version": "4. |
|
|
33 |
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-4. |
|
|
34 | "integrity": "sha512-luq8meHGYwvky0O7u0eQZdA7B4Wd9owUCqvbw2m3XCrCU8mplYOujMBbvyS547AxJkC+pGnd0Cm15eNxEUNU8g==", | |
|
35 | "dev": true | |
|
36 | }, | |
|
37 | "@types/node": { | |
|
38 | "version": "8.0.0", | |
|
39 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.0.tgz", | |
|
40 | "integrity": "sha512-j2tekvJCO7j22cs+LO6i0kRPhmQ9MXaPZ55TzOc1lzkN5b6BWqq4AFjl04s1oRRQ1v5rSe+KEvnLUSTonuls/A==", | |
|
41 | "version": "4.1.3", | |
|
42 | "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.1.3.tgz", | |
|
43 | "integrity": "sha512-f5dXGzOJycyzSMdaXVhiBhauL4dYydXwVpavfQ1mVCaGjR56a9QfklXObUxlIY9bGTmCPHEEZ04I16BZ/8w5ww==", | |
|
41 | 44 | "dev": true |
|
42 | 45 | }, |
|
43 | 46 | "@types/requirejs": { |
|
44 | 47 | "version": "2.1.31", |
|
45 | 48 | "resolved": "https://registry.npmjs.org/@types/requirejs/-/requirejs-2.1.31.tgz", |
|
46 | 49 | "integrity": "sha512-b2soeyuU76rMbcRJ4e0hEl0tbMhFwZeTC0VZnfuWlfGlk6BwWNsev6kFu/twKABPX29wkX84wU2o+cEJoXsiTw==", |
|
47 | 50 | "dev": true |
|
48 | 51 | }, |
|
49 |
"@types/ |
|
|
50 |
"version": " |
|
|
51 |
"resolved": "https://registry.npmjs.org/@types/ |
|
|
52 | "integrity": "sha512-ltfyuY5BIkYlGuQfwqzTDT8f0q8Z5DGppvUnWGs39oqDmMd6/UWhNpX3ZMh/VYvfxs3rFGHMrLC/eGRdLiDGuw==", | |
|
53 |
"dev": true |
|
|
54 | "requires": { | |
|
55 | "@types/node": "*" | |
|
56 | } | |
|
52 | "@types/yaml": { | |
|
53 | "version": "1.2.0", | |
|
54 | "resolved": "https://registry.npmjs.org/@types/yaml/-/yaml-1.2.0.tgz", | |
|
55 | "integrity": "sha512-GW8b9qM+ebgW3/zjzPm0I1NxMvLaz/YKT9Ph6tTb+Fkeyzd9yLTvQ6ciQ2MorTRmb/qXmfjMerRpG4LviixaqQ==", | |
|
56 | "dev": true | |
|
57 | 57 | }, |
|
58 | 58 | "acorn": { |
|
59 | 59 | "version": "7.1.0", |
|
60 | 60 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz", |
|
61 | 61 | "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==", |
|
62 | 62 | "dev": true |
|
63 | 63 | }, |
|
64 | 64 | "acorn-jsx": { |
|
65 | 65 | "version": "5.1.0", |
|
66 | 66 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.1.0.tgz", |
|
67 | 67 | "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==", |
|
68 | 68 | "dev": true |
|
69 | 69 | }, |
|
70 | 70 | "ajv": { |
|
71 | 71 | "version": "6.11.0", |
|
72 | 72 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz", |
|
73 | 73 | "integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==", |
|
74 | 74 | "dev": true, |
|
75 | 75 | "requires": { |
|
76 | 76 | "fast-deep-equal": "^3.1.1", |
|
77 | 77 | "fast-json-stable-stringify": "^2.0.0", |
|
78 | 78 | "json-schema-traverse": "^0.4.1", |
|
79 | 79 | "uri-js": "^4.2.2" |
|
80 | 80 | } |
|
81 | 81 | }, |
|
82 | 82 | "ansi-escapes": { |
|
83 |
"version": " |
|
|
84 |
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes- |
|
|
85 | "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", | |
|
86 | "dev": true | |
|
83 | "version": "4.3.0", | |
|
84 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.0.tgz", | |
|
85 | "integrity": "sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg==", | |
|
86 | "dev": true, | |
|
87 | "requires": { | |
|
88 | "type-fest": "^0.8.1" | |
|
89 | } | |
|
87 | 90 | }, |
|
88 | 91 | "ansi-regex": { |
|
89 |
"version": " |
|
|
90 |
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex- |
|
|
91 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", | |
|
92 | "version": "5.0.0", | |
|
93 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", | |
|
94 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", | |
|
92 | 95 | "dev": true |
|
93 | 96 | }, |
|
94 | 97 | "ansi-styles": { |
|
95 | 98 | "version": "3.2.1", |
|
96 | 99 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", |
|
97 | 100 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", |
|
98 | 101 | "dev": true, |
|
99 | 102 | "requires": { |
|
100 | 103 | "color-convert": "^1.9.0" |
|
101 | 104 | } |
|
102 | 105 | }, |
|
103 | 106 | "argparse": { |
|
104 | 107 | "version": "1.0.10", |
|
105 | 108 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", |
|
106 | 109 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", |
|
107 | 110 | "dev": true, |
|
108 | 111 | "requires": { |
|
109 | 112 | "sprintf-js": "~1.0.2" |
|
110 | 113 | } |
|
111 | 114 | }, |
|
115 | "assertion-error": { | |
|
116 | "version": "1.1.0", | |
|
117 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", | |
|
118 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", | |
|
119 | "dev": true | |
|
120 | }, | |
|
112 | 121 | "astral-regex": { |
|
113 | 122 | "version": "1.0.0", |
|
114 | 123 | "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", |
|
115 | 124 | "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", |
|
116 | 125 | "dev": true |
|
117 | 126 | }, |
|
118 | 127 | "balanced-match": { |
|
119 | 128 | "version": "1.0.0", |
|
120 | 129 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", |
|
121 | 130 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", |
|
122 | 131 | "dev": true |
|
123 | 132 | }, |
|
124 | 133 | "brace-expansion": { |
|
125 | 134 | "version": "1.1.11", |
|
126 | 135 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", |
|
127 | 136 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", |
|
128 | 137 | "dev": true, |
|
129 | 138 | "requires": { |
|
130 | 139 | "balanced-match": "^1.0.0", |
|
131 | 140 | "concat-map": "0.0.1" |
|
132 | 141 | } |
|
133 | 142 | }, |
|
134 | 143 | "builtin-modules": { |
|
135 | 144 | "version": "1.1.1", |
|
136 | 145 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", |
|
137 | 146 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", |
|
138 | 147 | "dev": true |
|
139 | 148 | }, |
|
140 | 149 | "callsites": { |
|
141 | 150 | "version": "3.1.0", |
|
142 | 151 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", |
|
143 | 152 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", |
|
144 | 153 | "dev": true |
|
145 | 154 | }, |
|
155 | "chai": { | |
|
156 | "version": "4.2.0", | |
|
157 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", | |
|
158 | "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", | |
|
159 | "dev": true, | |
|
160 | "requires": { | |
|
161 | "assertion-error": "^1.1.0", | |
|
162 | "check-error": "^1.0.2", | |
|
163 | "deep-eql": "^3.0.1", | |
|
164 | "get-func-name": "^2.0.0", | |
|
165 | "pathval": "^1.1.0", | |
|
166 | "type-detect": "^4.0.5" | |
|
167 | } | |
|
168 | }, | |
|
146 | 169 | "chalk": { |
|
147 | 170 | "version": "2.4.2", |
|
148 | 171 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", |
|
149 | 172 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", |
|
150 | 173 | "dev": true, |
|
151 | 174 | "requires": { |
|
152 | 175 | "ansi-styles": "^3.2.1", |
|
153 | 176 | "escape-string-regexp": "^1.0.5", |
|
154 | 177 | "supports-color": "^5.3.0" |
|
155 | 178 | } |
|
156 | 179 | }, |
|
157 | 180 | "chardet": { |
|
158 | 181 | "version": "0.7.0", |
|
159 | 182 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", |
|
160 | 183 | "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", |
|
161 | 184 | "dev": true |
|
162 | 185 | }, |
|
186 | "check-error": { | |
|
187 | "version": "1.0.2", | |
|
188 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", | |
|
189 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", | |
|
190 | "dev": true | |
|
191 | }, | |
|
163 | 192 | "cli-cursor": { |
|
164 |
"version": " |
|
|
165 |
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor- |
|
|
166 | "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", | |
|
193 | "version": "3.1.0", | |
|
194 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", | |
|
195 | "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", | |
|
167 | 196 | "dev": true, |
|
168 | 197 | "requires": { |
|
169 |
"restore-cursor": "^ |
|
|
198 | "restore-cursor": "^3.1.0" | |
|
170 | 199 | } |
|
171 | 200 | }, |
|
172 | 201 | "cli-width": { |
|
173 | 202 | "version": "2.2.0", |
|
174 | 203 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", |
|
175 | 204 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", |
|
176 | 205 | "dev": true |
|
177 | 206 | }, |
|
178 | 207 | "color-convert": { |
|
179 | 208 | "version": "1.9.3", |
|
180 | 209 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", |
|
181 | 210 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", |
|
182 | 211 | "dev": true, |
|
183 | 212 | "requires": { |
|
184 | 213 | "color-name": "1.1.3" |
|
185 | 214 | } |
|
186 | 215 | }, |
|
187 | 216 | "color-name": { |
|
188 | 217 | "version": "1.1.3", |
|
189 | 218 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", |
|
190 | 219 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", |
|
191 | 220 | "dev": true |
|
192 | 221 | }, |
|
193 | 222 | "commander": { |
|
194 | 223 | "version": "2.20.3", |
|
195 | 224 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", |
|
196 | 225 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", |
|
197 | 226 | "dev": true |
|
198 | 227 | }, |
|
199 | 228 | "concat-map": { |
|
200 | 229 | "version": "0.0.1", |
|
201 | 230 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", |
|
202 | 231 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", |
|
203 | 232 | "dev": true |
|
204 | 233 | }, |
|
205 | 234 | "cross-spawn": { |
|
206 | 235 | "version": "6.0.5", |
|
207 | 236 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", |
|
208 | 237 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", |
|
209 | 238 | "dev": true, |
|
210 | 239 | "requires": { |
|
211 | 240 | "nice-try": "^1.0.4", |
|
212 | 241 | "path-key": "^2.0.1", |
|
213 | 242 | "semver": "^5.5.0", |
|
214 | 243 | "shebang-command": "^1.2.0", |
|
215 | 244 | "which": "^1.2.9" |
|
216 | 245 | }, |
|
217 | 246 | "dependencies": { |
|
218 | 247 | "semver": { |
|
219 | 248 | "version": "5.7.1", |
|
220 | 249 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", |
|
221 | 250 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", |
|
222 | 251 | "dev": true |
|
223 | 252 | } |
|
224 | 253 | } |
|
225 | 254 | }, |
|
226 | 255 | "debug": { |
|
227 | 256 | "version": "4.1.1", |
|
228 | 257 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", |
|
229 | 258 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", |
|
230 | 259 | "dev": true, |
|
231 | 260 | "requires": { |
|
232 | 261 | "ms": "^2.1.1" |
|
233 | 262 | } |
|
234 | 263 | }, |
|
235 |
"deep-eq |
|
|
236 |
"version": " |
|
|
237 |
"resolved": "https://registry.npmjs.org/deep-eq |
|
|
238 | "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", | |
|
239 | "dev": true | |
|
264 | "deep-eql": { | |
|
265 | "version": "3.0.1", | |
|
266 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", | |
|
267 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", | |
|
268 | "dev": true, | |
|
269 | "requires": { | |
|
270 | "type-detect": "^4.0.0" | |
|
271 | } | |
|
240 | 272 | }, |
|
241 | 273 | "deep-is": { |
|
242 | 274 | "version": "0.1.3", |
|
243 | 275 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", |
|
244 | 276 | "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", |
|
245 | 277 | "dev": true |
|
246 | 278 | }, |
|
247 | "define-properties": { | |
|
248 | "version": "1.1.3", | |
|
249 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", | |
|
250 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", | |
|
251 | "dev": true, | |
|
252 | "requires": { | |
|
253 | "object-keys": "^1.0.12" | |
|
254 | } | |
|
255 | }, | |
|
256 | "defined": { | |
|
257 | "version": "1.0.0", | |
|
258 | "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", | |
|
259 | "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", | |
|
260 | "dev": true | |
|
261 | }, | |
|
262 | 279 | "diff": { |
|
263 |
"version": " |
|
|
264 |
"resolved": "https://registry.npmjs.org/diff/-/diff- |
|
|
265 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", | |
|
280 | "version": "4.0.2", | |
|
281 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", | |
|
282 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", | |
|
266 | 283 | "dev": true |
|
267 | 284 | }, |
|
268 | 285 | "doctrine": { |
|
269 | 286 | "version": "3.0.0", |
|
270 | 287 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", |
|
271 | 288 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", |
|
272 | 289 | "dev": true, |
|
273 | 290 | "requires": { |
|
274 | 291 | "esutils": "^2.0.2" |
|
275 | 292 | } |
|
276 | 293 | }, |
|
277 | 294 | "dojo": { |
|
278 |
"version": "1.1 |
|
|
279 |
"resolved": "https://registry.npmjs.org/dojo/-/dojo-1.1 |
|
|
280 | "integrity": "sha512-kg79C8Yyd317cG3MgXGMH4AeQ8TgNr8H/PpA3BRms7DTfl0CJCRAgGE/C6d9Nw55s1ID/fEsfS+P3bj1s7dWgA==", | |
|
295 | "version": "1.16.0", | |
|
296 | "resolved": "https://registry.npmjs.org/dojo/-/dojo-1.16.0.tgz", | |
|
297 | "integrity": "sha512-DUiXyoLK6vMF5BPr/qiMLTxDMfiM9qlzN1jxfDsVfuvB/CwhYpNxA/M4mbqKN8PCVGLmccXBJbfmFJPP5+zmzw==", | |
|
281 | 298 | "dev": true |
|
282 | 299 | }, |
|
283 | 300 | "dojo-typings": { |
|
284 | 301 | "version": "1.11.9", |
|
285 | 302 | "resolved": "https://registry.npmjs.org/dojo-typings/-/dojo-typings-1.11.9.tgz", |
|
286 | 303 | "integrity": "sha512-mh8w+Mau2Y1QfTEszEAdO7j6ycNhYxF/Ing6nAk1eUg6NxjeT0viVHjICMd9sU3U463vM2G+KfBBK5grk3/Mlw==", |
|
287 | 304 | "dev": true, |
|
288 | 305 | "requires": { |
|
289 | 306 | "@types/chai": "^4.0.4" |
|
290 | 307 | } |
|
291 | 308 | }, |
|
292 | 309 | "emoji-regex": { |
|
293 |
"version": " |
|
|
294 |
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex- |
|
|
295 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", | |
|
310 | "version": "8.0.0", | |
|
311 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", | |
|
312 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", | |
|
296 | 313 | "dev": true |
|
297 | 314 | }, |
|
298 | "es-abstract": { | |
|
299 | "version": "1.17.4", | |
|
300 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.4.tgz", | |
|
301 | "integrity": "sha512-Ae3um/gb8F0mui/jPL+QiqmglkUsaQf7FwBEHYIFkztkneosu9imhqHpBzQ3h1vit8t5iQ74t6PEVvphBZiuiQ==", | |
|
302 | "dev": true, | |
|
303 | "requires": { | |
|
304 | "es-to-primitive": "^1.2.1", | |
|
305 | "function-bind": "^1.1.1", | |
|
306 | "has": "^1.0.3", | |
|
307 | "has-symbols": "^1.0.1", | |
|
308 | "is-callable": "^1.1.5", | |
|
309 | "is-regex": "^1.0.5", | |
|
310 | "object-inspect": "^1.7.0", | |
|
311 | "object-keys": "^1.1.1", | |
|
312 | "object.assign": "^4.1.0", | |
|
313 | "string.prototype.trimleft": "^2.1.1", | |
|
314 | "string.prototype.trimright": "^2.1.1" | |
|
315 | }, | |
|
316 | "dependencies": { | |
|
317 | "object-inspect": { | |
|
318 | "version": "1.7.0", | |
|
319 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", | |
|
320 | "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", | |
|
321 | "dev": true | |
|
322 | } | |
|
323 | } | |
|
324 | }, | |
|
325 | "es-to-primitive": { | |
|
326 | "version": "1.2.1", | |
|
327 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", | |
|
328 | "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", | |
|
329 | "dev": true, | |
|
330 | "requires": { | |
|
331 | "is-callable": "^1.1.4", | |
|
332 | "is-date-object": "^1.0.1", | |
|
333 | "is-symbol": "^1.0.2" | |
|
334 | } | |
|
335 | }, | |
|
336 | 315 | "escape-string-regexp": { |
|
337 | 316 | "version": "1.0.5", |
|
338 | 317 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", |
|
339 | 318 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", |
|
340 | 319 | "dev": true |
|
341 | 320 | }, |
|
342 | 321 | "eslint": { |
|
343 |
"version": "6. |
|
|
344 |
"resolved": "https://registry.npmjs.org/eslint/-/eslint-6. |
|
|
345 | "integrity": "sha512-QhrbdRD7ofuV09IuE2ySWBz0FyXCq0rriLTZXZqaWSI79CVtHVRdkFuFTViiqzZhkCgfOh9USpriuGN2gIpZDQ==", | |
|
322 | "version": "6.8.0", | |
|
323 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", | |
|
324 | "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", | |
|
346 | 325 | "dev": true, |
|
347 | 326 | "requires": { |
|
348 | 327 | "@babel/code-frame": "^7.0.0", |
|
349 | 328 | "ajv": "^6.10.0", |
|
350 | 329 | "chalk": "^2.1.0", |
|
351 | 330 | "cross-spawn": "^6.0.5", |
|
352 | 331 | "debug": "^4.0.1", |
|
353 | 332 | "doctrine": "^3.0.0", |
|
354 | 333 | "eslint-scope": "^5.0.0", |
|
355 |
"eslint-utils": "^1. |
|
|
356 |
"eslint-visitor-keys": "^1. |
|
|
357 |
"espree": "^6. |
|
|
334 | "eslint-utils": "^1.4.3", | |
|
335 | "eslint-visitor-keys": "^1.1.0", | |
|
336 | "espree": "^6.1.2", | |
|
358 | 337 | "esquery": "^1.0.1", |
|
359 | 338 | "esutils": "^2.0.2", |
|
360 | 339 | "file-entry-cache": "^5.0.1", |
|
361 | 340 | "functional-red-black-tree": "^1.0.1", |
|
362 | 341 | "glob-parent": "^5.0.0", |
|
363 |
"globals": "^1 |
|
|
342 | "globals": "^12.1.0", | |
|
364 | 343 | "ignore": "^4.0.6", |
|
365 | 344 | "import-fresh": "^3.0.0", |
|
366 | 345 | "imurmurhash": "^0.1.4", |
|
367 |
"inquirer": "^ |
|
|
346 | "inquirer": "^7.0.0", | |
|
368 | 347 | "is-glob": "^4.0.0", |
|
369 | 348 | "js-yaml": "^3.13.1", |
|
370 | 349 | "json-stable-stringify-without-jsonify": "^1.0.1", |
|
371 | 350 | "levn": "^0.3.0", |
|
372 | 351 | "lodash": "^4.17.14", |
|
373 | 352 | "minimatch": "^3.0.4", |
|
374 | 353 | "mkdirp": "^0.5.1", |
|
375 | 354 | "natural-compare": "^1.4.0", |
|
376 |
"optionator": "^0.8. |
|
|
355 | "optionator": "^0.8.3", | |
|
377 | 356 | "progress": "^2.0.0", |
|
378 | 357 | "regexpp": "^2.0.1", |
|
379 | 358 | "semver": "^6.1.2", |
|
380 | 359 | "strip-ansi": "^5.2.0", |
|
381 | 360 | "strip-json-comments": "^3.0.1", |
|
382 | 361 | "table": "^5.2.3", |
|
383 | 362 | "text-table": "^0.2.0", |
|
384 | 363 | "v8-compile-cache": "^2.0.3" |
|
385 | 364 | } |
|
386 | 365 | }, |
|
387 | 366 | "eslint-scope": { |
|
388 | 367 | "version": "5.0.0", |
|
389 | 368 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz", |
|
390 | 369 | "integrity": "sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==", |
|
391 | 370 | "dev": true, |
|
392 | 371 | "requires": { |
|
393 | 372 | "esrecurse": "^4.1.0", |
|
394 | 373 | "estraverse": "^4.1.1" |
|
395 | 374 | } |
|
396 | 375 | }, |
|
397 | 376 | "eslint-utils": { |
|
398 | 377 | "version": "1.4.3", |
|
399 | 378 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", |
|
400 | 379 | "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", |
|
401 | 380 | "dev": true, |
|
402 | 381 | "requires": { |
|
403 | 382 | "eslint-visitor-keys": "^1.1.0" |
|
404 | 383 | } |
|
405 | 384 | }, |
|
406 | 385 | "eslint-visitor-keys": { |
|
407 | 386 | "version": "1.1.0", |
|
408 | 387 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz", |
|
409 | 388 | "integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==", |
|
410 | 389 | "dev": true |
|
411 | 390 | }, |
|
412 | 391 | "espree": { |
|
413 | 392 | "version": "6.1.2", |
|
414 | 393 | "resolved": "https://registry.npmjs.org/espree/-/espree-6.1.2.tgz", |
|
415 | 394 | "integrity": "sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==", |
|
416 | 395 | "dev": true, |
|
417 | 396 | "requires": { |
|
418 | 397 | "acorn": "^7.1.0", |
|
419 | 398 | "acorn-jsx": "^5.1.0", |
|
420 | 399 | "eslint-visitor-keys": "^1.1.0" |
|
421 | 400 | } |
|
422 | 401 | }, |
|
423 | 402 | "esprima": { |
|
424 | 403 | "version": "4.0.1", |
|
425 | 404 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", |
|
426 | 405 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", |
|
427 | 406 | "dev": true |
|
428 | 407 | }, |
|
429 | 408 | "esquery": { |
|
430 | 409 | "version": "1.0.1", |
|
431 | 410 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", |
|
432 | 411 | "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", |
|
433 | 412 | "dev": true, |
|
434 | 413 | "requires": { |
|
435 | 414 | "estraverse": "^4.0.0" |
|
436 | 415 | } |
|
437 | 416 | }, |
|
438 | 417 | "esrecurse": { |
|
439 | 418 | "version": "4.2.1", |
|
440 | 419 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", |
|
441 | 420 | "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", |
|
442 | 421 | "dev": true, |
|
443 | 422 | "requires": { |
|
444 | 423 | "estraverse": "^4.1.0" |
|
445 | 424 | } |
|
446 | 425 | }, |
|
447 | 426 | "estraverse": { |
|
448 | 427 | "version": "4.3.0", |
|
449 | 428 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", |
|
450 | 429 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", |
|
451 | 430 | "dev": true |
|
452 | 431 | }, |
|
453 | 432 | "esutils": { |
|
454 | 433 | "version": "2.0.3", |
|
455 | 434 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", |
|
456 | 435 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", |
|
457 | 436 | "dev": true |
|
458 | 437 | }, |
|
459 | 438 | "external-editor": { |
|
460 | 439 | "version": "3.1.0", |
|
461 | 440 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", |
|
462 | 441 | "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", |
|
463 | 442 | "dev": true, |
|
464 | 443 | "requires": { |
|
465 | 444 | "chardet": "^0.7.0", |
|
466 | 445 | "iconv-lite": "^0.4.24", |
|
467 | 446 | "tmp": "^0.0.33" |
|
468 | 447 | } |
|
469 | 448 | }, |
|
470 | 449 | "fast-deep-equal": { |
|
471 | 450 | "version": "3.1.1", |
|
472 | 451 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", |
|
473 | 452 | "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", |
|
474 | 453 | "dev": true |
|
475 | 454 | }, |
|
476 | 455 | "fast-json-stable-stringify": { |
|
477 | 456 | "version": "2.1.0", |
|
478 | 457 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", |
|
479 | 458 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", |
|
480 | 459 | "dev": true |
|
481 | 460 | }, |
|
482 | 461 | "fast-levenshtein": { |
|
483 | 462 | "version": "2.0.6", |
|
484 | 463 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", |
|
485 | 464 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", |
|
486 | 465 | "dev": true |
|
487 | 466 | }, |
|
488 | 467 | "figures": { |
|
489 |
"version": " |
|
|
490 |
"resolved": "https://registry.npmjs.org/figures/-/figures- |
|
|
491 | "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", | |
|
468 | "version": "3.1.0", | |
|
469 | "resolved": "https://registry.npmjs.org/figures/-/figures-3.1.0.tgz", | |
|
470 | "integrity": "sha512-ravh8VRXqHuMvZt/d8GblBeqDMkdJMBdv/2KntFH+ra5MXkO7nxNKpzQ3n6QD/2da1kH0aWmNISdvhM7gl2gVg==", | |
|
492 | 471 | "dev": true, |
|
493 | 472 | "requires": { |
|
494 | 473 | "escape-string-regexp": "^1.0.5" |
|
495 | 474 | } |
|
496 | 475 | }, |
|
497 | 476 | "file-entry-cache": { |
|
498 | 477 | "version": "5.0.1", |
|
499 | 478 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", |
|
500 | 479 | "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", |
|
501 | 480 | "dev": true, |
|
502 | 481 | "requires": { |
|
503 | 482 | "flat-cache": "^2.0.1" |
|
504 | 483 | } |
|
505 | 484 | }, |
|
506 | 485 | "flat-cache": { |
|
507 | 486 | "version": "2.0.1", |
|
508 | 487 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", |
|
509 | 488 | "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", |
|
510 | 489 | "dev": true, |
|
511 | 490 | "requires": { |
|
512 | 491 | "flatted": "^2.0.0", |
|
513 | 492 | "rimraf": "2.6.3", |
|
514 | 493 | "write": "1.0.3" |
|
515 | 494 | } |
|
516 | 495 | }, |
|
517 | 496 | "flatted": { |
|
518 | 497 | "version": "2.0.1", |
|
519 | 498 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", |
|
520 | 499 | "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", |
|
521 | 500 | "dev": true |
|
522 | 501 | }, |
|
523 | "for-each": { | |
|
524 | "version": "0.3.3", | |
|
525 | "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", | |
|
526 | "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", | |
|
527 | "dev": true, | |
|
528 | "requires": { | |
|
529 | "is-callable": "^1.1.3" | |
|
530 | } | |
|
531 | }, | |
|
532 | 502 | "fs.realpath": { |
|
533 | 503 | "version": "1.0.0", |
|
534 | 504 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", |
|
535 | 505 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", |
|
536 | 506 | "dev": true |
|
537 | 507 | }, |
|
538 | "function-bind": { | |
|
539 | "version": "1.1.1", | |
|
540 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", | |
|
541 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", | |
|
542 | "dev": true | |
|
543 | }, | |
|
544 | 508 | "functional-red-black-tree": { |
|
545 | 509 | "version": "1.0.1", |
|
546 | 510 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", |
|
547 | 511 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", |
|
548 | 512 | "dev": true |
|
549 | 513 | }, |
|
514 | "get-func-name": { | |
|
515 | "version": "2.0.0", | |
|
516 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", | |
|
517 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", | |
|
518 | "dev": true | |
|
519 | }, | |
|
550 | 520 | "glob": { |
|
551 | 521 | "version": "7.1.6", |
|
552 | 522 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", |
|
553 | 523 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", |
|
554 | 524 | "dev": true, |
|
555 | 525 | "requires": { |
|
556 | 526 | "fs.realpath": "^1.0.0", |
|
557 | 527 | "inflight": "^1.0.4", |
|
558 | 528 | "inherits": "2", |
|
559 | 529 | "minimatch": "^3.0.4", |
|
560 | 530 | "once": "^1.3.0", |
|
561 | 531 | "path-is-absolute": "^1.0.0" |
|
562 | 532 | } |
|
563 | 533 | }, |
|
564 | 534 | "glob-parent": { |
|
565 | 535 | "version": "5.1.0", |
|
566 | 536 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", |
|
567 | 537 | "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", |
|
568 | 538 | "dev": true, |
|
569 | 539 | "requires": { |
|
570 | 540 | "is-glob": "^4.0.1" |
|
571 | 541 | } |
|
572 | 542 | }, |
|
573 | 543 | "globals": { |
|
574 |
"version": "1 |
|
|
575 |
"resolved": "https://registry.npmjs.org/globals/-/globals-1 |
|
|
576 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", | |
|
577 | "dev": true | |
|
578 | }, | |
|
579 | "has": { | |
|
580 | "version": "1.0.3", | |
|
581 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", | |
|
582 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", | |
|
544 | "version": "12.3.0", | |
|
545 | "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", | |
|
546 | "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", | |
|
583 | 547 | "dev": true, |
|
584 | 548 | "requires": { |
|
585 |
" |
|
|
549 | "type-fest": "^0.8.1" | |
|
586 | 550 | } |
|
587 | 551 | }, |
|
588 | 552 | "has-flag": { |
|
589 | 553 | "version": "3.0.0", |
|
590 | 554 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", |
|
591 | 555 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", |
|
592 | 556 | "dev": true |
|
593 | 557 | }, |
|
594 | "has-symbols": { | |
|
595 | "version": "1.0.1", | |
|
596 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", | |
|
597 | "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", | |
|
598 | "dev": true | |
|
599 | }, | |
|
600 | 558 | "iconv-lite": { |
|
601 | 559 | "version": "0.4.24", |
|
602 | 560 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", |
|
603 | 561 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", |
|
604 | 562 | "dev": true, |
|
605 | 563 | "requires": { |
|
606 | 564 | "safer-buffer": ">= 2.1.2 < 3" |
|
607 | 565 | } |
|
608 | 566 | }, |
|
609 | 567 | "ignore": { |
|
610 | 568 | "version": "4.0.6", |
|
611 | 569 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", |
|
612 | 570 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", |
|
613 | 571 | "dev": true |
|
614 | 572 | }, |
|
615 | 573 | "import-fresh": { |
|
616 | 574 | "version": "3.2.1", |
|
617 | 575 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", |
|
618 | 576 | "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", |
|
619 | 577 | "dev": true, |
|
620 | 578 | "requires": { |
|
621 | 579 | "parent-module": "^1.0.0", |
|
622 | 580 | "resolve-from": "^4.0.0" |
|
623 | 581 | } |
|
624 | 582 | }, |
|
625 | 583 | "imurmurhash": { |
|
626 | 584 | "version": "0.1.4", |
|
627 | 585 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", |
|
628 | 586 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", |
|
629 | 587 | "dev": true |
|
630 | 588 | }, |
|
631 | 589 | "inflight": { |
|
632 | 590 | "version": "1.0.6", |
|
633 | 591 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", |
|
634 | 592 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", |
|
635 | 593 | "dev": true, |
|
636 | 594 | "requires": { |
|
637 | 595 | "once": "^1.3.0", |
|
638 | 596 | "wrappy": "1" |
|
639 | 597 | } |
|
640 | 598 | }, |
|
641 | 599 | "inherits": { |
|
642 | 600 | "version": "2.0.4", |
|
643 | 601 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", |
|
644 | 602 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", |
|
645 | 603 | "dev": true |
|
646 | 604 | }, |
|
647 | 605 | "inquirer": { |
|
648 |
"version": " |
|
|
649 |
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer- |
|
|
650 | "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", | |
|
606 | "version": "7.0.3", | |
|
607 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.3.tgz", | |
|
608 | "integrity": "sha512-+OiOVeVydu4hnCGLCSX+wedovR/Yzskv9BFqUNNKq9uU2qg7LCcCo3R86S2E7WLo0y/x2pnEZfZe1CoYnORUAw==", | |
|
651 | 609 | "dev": true, |
|
652 | 610 | "requires": { |
|
653 |
"ansi-escapes": "^ |
|
|
611 | "ansi-escapes": "^4.2.1", | |
|
654 | 612 | "chalk": "^2.4.2", |
|
655 |
"cli-cursor": "^ |
|
|
613 | "cli-cursor": "^3.1.0", | |
|
656 | 614 | "cli-width": "^2.0.0", |
|
657 | 615 | "external-editor": "^3.0.3", |
|
658 |
"figures": "^ |
|
|
659 |
"lodash": "^4.17.1 |
|
|
660 |
"mute-stream": "0.0. |
|
|
616 | "figures": "^3.0.0", | |
|
617 | "lodash": "^4.17.15", | |
|
618 | "mute-stream": "0.0.8", | |
|
661 | 619 | "run-async": "^2.2.0", |
|
662 |
"rxjs": "^6. |
|
|
663 |
"string-width": "^ |
|
|
620 | "rxjs": "^6.5.3", | |
|
621 | "string-width": "^4.1.0", | |
|
664 | 622 | "strip-ansi": "^5.1.0", |
|
665 | 623 | "through": "^2.3.6" |
|
666 | 624 | } |
|
667 | 625 | }, |
|
668 | "is-callable": { | |
|
669 | "version": "1.1.5", | |
|
670 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", | |
|
671 | "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", | |
|
672 | "dev": true | |
|
673 | }, | |
|
674 | "is-date-object": { | |
|
675 | "version": "1.0.2", | |
|
676 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", | |
|
677 | "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", | |
|
678 | "dev": true | |
|
679 | }, | |
|
680 | 626 | "is-extglob": { |
|
681 | 627 | "version": "2.1.1", |
|
682 | 628 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", |
|
683 | 629 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", |
|
684 | 630 | "dev": true |
|
685 | 631 | }, |
|
686 | 632 | "is-fullwidth-code-point": { |
|
687 |
"version": " |
|
|
688 |
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point- |
|
|
689 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", | |
|
633 | "version": "3.0.0", | |
|
634 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", | |
|
635 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", | |
|
690 | 636 | "dev": true |
|
691 | 637 | }, |
|
692 | 638 | "is-glob": { |
|
693 | 639 | "version": "4.0.1", |
|
694 | 640 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", |
|
695 | 641 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", |
|
696 | 642 | "dev": true, |
|
697 | 643 | "requires": { |
|
698 | 644 | "is-extglob": "^2.1.1" |
|
699 | 645 | } |
|
700 | 646 | }, |
|
701 | 647 | "is-promise": { |
|
702 | 648 | "version": "2.1.0", |
|
703 | 649 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", |
|
704 | 650 | "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", |
|
705 | 651 | "dev": true |
|
706 | 652 | }, |
|
707 | "is-regex": { | |
|
708 | "version": "1.0.5", | |
|
709 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", | |
|
710 | "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", | |
|
711 | "dev": true, | |
|
712 | "requires": { | |
|
713 | "has": "^1.0.3" | |
|
714 | } | |
|
715 | }, | |
|
716 | "is-symbol": { | |
|
717 | "version": "1.0.3", | |
|
718 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", | |
|
719 | "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", | |
|
720 | "dev": true, | |
|
721 | "requires": { | |
|
722 | "has-symbols": "^1.0.1" | |
|
723 | } | |
|
724 | }, | |
|
725 | 653 | "isexe": { |
|
726 | 654 | "version": "2.0.0", |
|
727 | 655 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", |
|
728 | 656 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", |
|
729 | 657 | "dev": true |
|
730 | 658 | }, |
|
731 | 659 | "js-tokens": { |
|
732 | 660 | "version": "4.0.0", |
|
733 | 661 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", |
|
734 | 662 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", |
|
735 | 663 | "dev": true |
|
736 | 664 | }, |
|
737 | 665 | "js-yaml": { |
|
738 | 666 | "version": "3.13.1", |
|
739 | 667 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", |
|
740 | 668 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", |
|
741 | 669 | "dev": true, |
|
742 | 670 | "requires": { |
|
743 | 671 | "argparse": "^1.0.7", |
|
744 | 672 | "esprima": "^4.0.0" |
|
745 | 673 | } |
|
746 | 674 | }, |
|
747 | 675 | "json-schema-traverse": { |
|
748 | 676 | "version": "0.4.1", |
|
749 | 677 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", |
|
750 | 678 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", |
|
751 | 679 | "dev": true |
|
752 | 680 | }, |
|
753 | 681 | "json-stable-stringify-without-jsonify": { |
|
754 | 682 | "version": "1.0.1", |
|
755 | 683 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", |
|
756 | 684 | "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", |
|
757 | 685 | "dev": true |
|
758 | 686 | }, |
|
759 | 687 | "levn": { |
|
760 | 688 | "version": "0.3.0", |
|
761 | 689 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", |
|
762 | 690 | "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", |
|
763 | 691 | "dev": true, |
|
764 | 692 | "requires": { |
|
765 | 693 | "prelude-ls": "~1.1.2", |
|
766 | 694 | "type-check": "~0.3.2" |
|
767 | 695 | } |
|
768 | 696 | }, |
|
769 | 697 | "lodash": { |
|
770 | 698 | "version": "4.17.15", |
|
771 | 699 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", |
|
772 | 700 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", |
|
773 | 701 | "dev": true |
|
774 | 702 | }, |
|
775 | 703 | "mimic-fn": { |
|
776 |
"version": " |
|
|
777 |
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn- |
|
|
778 | "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", | |
|
704 | "version": "2.1.0", | |
|
705 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", | |
|
706 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", | |
|
779 | 707 | "dev": true |
|
780 | 708 | }, |
|
781 | 709 | "minimatch": { |
|
782 | 710 | "version": "3.0.4", |
|
783 | 711 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", |
|
784 | 712 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", |
|
785 | 713 | "dev": true, |
|
786 | 714 | "requires": { |
|
787 | 715 | "brace-expansion": "^1.1.7" |
|
788 | 716 | } |
|
789 | 717 | }, |
|
790 | 718 | "minimist": { |
|
791 | 719 | "version": "0.0.8", |
|
792 | 720 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", |
|
793 | 721 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", |
|
794 | 722 | "dev": true |
|
795 | 723 | }, |
|
796 | 724 | "mkdirp": { |
|
797 | 725 | "version": "0.5.1", |
|
798 | 726 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", |
|
799 | 727 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", |
|
800 | 728 | "dev": true, |
|
801 | 729 | "requires": { |
|
802 | 730 | "minimist": "0.0.8" |
|
803 | 731 | } |
|
804 | 732 | }, |
|
805 | 733 | "ms": { |
|
806 | 734 | "version": "2.1.2", |
|
807 | 735 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", |
|
808 | 736 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", |
|
809 | 737 | "dev": true |
|
810 | 738 | }, |
|
811 | 739 | "mute-stream": { |
|
812 |
"version": "0.0. |
|
|
813 |
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0. |
|
|
814 | "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", | |
|
740 | "version": "0.0.8", | |
|
741 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", | |
|
742 | "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", | |
|
815 | 743 | "dev": true |
|
816 | 744 | }, |
|
817 | 745 | "natural-compare": { |
|
818 | 746 | "version": "1.4.0", |
|
819 | 747 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", |
|
820 | 748 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", |
|
821 | 749 | "dev": true |
|
822 | 750 | }, |
|
823 | 751 | "nice-try": { |
|
824 | 752 | "version": "1.0.5", |
|
825 | 753 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", |
|
826 | 754 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", |
|
827 | 755 | "dev": true |
|
828 | 756 | }, |
|
829 | "object-inspect": { | |
|
830 | "version": "1.6.0", | |
|
831 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", | |
|
832 | "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==", | |
|
833 | "dev": true | |
|
834 | }, | |
|
835 | "object-keys": { | |
|
836 | "version": "1.1.1", | |
|
837 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", | |
|
838 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", | |
|
839 | "dev": true | |
|
840 | }, | |
|
841 | "object.assign": { | |
|
842 | "version": "4.1.0", | |
|
843 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", | |
|
844 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", | |
|
845 | "dev": true, | |
|
846 | "requires": { | |
|
847 | "define-properties": "^1.1.2", | |
|
848 | "function-bind": "^1.1.1", | |
|
849 | "has-symbols": "^1.0.0", | |
|
850 | "object-keys": "^1.0.11" | |
|
851 | } | |
|
852 | }, | |
|
853 | 757 | "once": { |
|
854 | 758 | "version": "1.4.0", |
|
855 | 759 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", |
|
856 | 760 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", |
|
857 | 761 | "dev": true, |
|
858 | 762 | "requires": { |
|
859 | 763 | "wrappy": "1" |
|
860 | 764 | } |
|
861 | 765 | }, |
|
862 | 766 | "onetime": { |
|
863 |
"version": " |
|
|
864 |
"resolved": "https://registry.npmjs.org/onetime/-/onetime- |
|
|
865 | "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", | |
|
767 | "version": "5.1.0", | |
|
768 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", | |
|
769 | "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", | |
|
866 | 770 | "dev": true, |
|
867 | 771 | "requires": { |
|
868 |
"mimic-fn": "^ |
|
|
772 | "mimic-fn": "^2.1.0" | |
|
869 | 773 | } |
|
870 | 774 | }, |
|
871 | 775 | "optionator": { |
|
872 | 776 | "version": "0.8.3", |
|
873 | 777 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", |
|
874 | 778 | "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", |
|
875 | 779 | "dev": true, |
|
876 | 780 | "requires": { |
|
877 | 781 | "deep-is": "~0.1.3", |
|
878 | 782 | "fast-levenshtein": "~2.0.6", |
|
879 | 783 | "levn": "~0.3.0", |
|
880 | 784 | "prelude-ls": "~1.1.2", |
|
881 | 785 | "type-check": "~0.3.2", |
|
882 | 786 | "word-wrap": "~1.2.3" |
|
883 | 787 | } |
|
884 | 788 | }, |
|
885 | 789 | "os-tmpdir": { |
|
886 | 790 | "version": "1.0.2", |
|
887 | 791 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", |
|
888 | 792 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", |
|
889 | 793 | "dev": true |
|
890 | 794 | }, |
|
891 | 795 | "parent-module": { |
|
892 | 796 | "version": "1.0.1", |
|
893 | 797 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", |
|
894 | 798 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", |
|
895 | 799 | "dev": true, |
|
896 | 800 | "requires": { |
|
897 | 801 | "callsites": "^3.0.0" |
|
898 | 802 | } |
|
899 | 803 | }, |
|
900 | 804 | "path-is-absolute": { |
|
901 | 805 | "version": "1.0.1", |
|
902 | 806 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", |
|
903 | 807 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", |
|
904 | 808 | "dev": true |
|
905 | 809 | }, |
|
906 | 810 | "path-key": { |
|
907 | 811 | "version": "2.0.1", |
|
908 | 812 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", |
|
909 | 813 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", |
|
910 | 814 | "dev": true |
|
911 | 815 | }, |
|
912 | 816 | "path-parse": { |
|
913 | 817 | "version": "1.0.6", |
|
914 | 818 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", |
|
915 | 819 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", |
|
916 | 820 | "dev": true |
|
917 | 821 | }, |
|
822 | "pathval": { | |
|
823 | "version": "1.1.0", | |
|
824 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", | |
|
825 | "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", | |
|
826 | "dev": true | |
|
827 | }, | |
|
918 | 828 | "prelude-ls": { |
|
919 | 829 | "version": "1.1.2", |
|
920 | 830 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", |
|
921 | 831 | "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", |
|
922 | 832 | "dev": true |
|
923 | 833 | }, |
|
924 | 834 | "progress": { |
|
925 | 835 | "version": "2.0.3", |
|
926 | 836 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", |
|
927 | 837 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", |
|
928 | 838 | "dev": true |
|
929 | 839 | }, |
|
930 | 840 | "punycode": { |
|
931 | 841 | "version": "2.1.1", |
|
932 | 842 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", |
|
933 | 843 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", |
|
934 | 844 | "dev": true |
|
935 | 845 | }, |
|
846 | "regenerator-runtime": { | |
|
847 | "version": "0.13.3", | |
|
848 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", | |
|
849 | "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==", | |
|
850 | "dev": true | |
|
851 | }, | |
|
936 | 852 | "regexpp": { |
|
937 | 853 | "version": "2.0.1", |
|
938 | 854 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", |
|
939 | 855 | "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", |
|
940 | 856 | "dev": true |
|
941 | 857 | }, |
|
942 | "requirejs": { | |
|
943 | "version": "2.3.6", | |
|
944 | "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz", | |
|
945 | "integrity": "sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg==", | |
|
946 | "dev": true | |
|
947 | }, | |
|
948 | 858 | "resolve": { |
|
949 |
"version": "1.1 |
|
|
950 |
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1 |
|
|
951 | "integrity": "sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==", | |
|
859 | "version": "1.15.0", | |
|
860 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.0.tgz", | |
|
861 | "integrity": "sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw==", | |
|
952 | 862 | "dev": true, |
|
953 | 863 | "requires": { |
|
954 | 864 | "path-parse": "^1.0.6" |
|
955 | 865 | } |
|
956 | 866 | }, |
|
957 | 867 | "resolve-from": { |
|
958 | 868 | "version": "4.0.0", |
|
959 | 869 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", |
|
960 | 870 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", |
|
961 | 871 | "dev": true |
|
962 | 872 | }, |
|
963 | 873 | "restore-cursor": { |
|
964 |
"version": " |
|
|
965 |
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor- |
|
|
966 | "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", | |
|
874 | "version": "3.1.0", | |
|
875 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", | |
|
876 | "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", | |
|
967 | 877 | "dev": true, |
|
968 | 878 | "requires": { |
|
969 |
"onetime": "^ |
|
|
879 | "onetime": "^5.1.0", | |
|
970 | 880 | "signal-exit": "^3.0.2" |
|
971 | 881 | } |
|
972 | 882 | }, |
|
973 | "resumer": { | |
|
974 | "version": "0.0.0", | |
|
975 | "resolved": "https://registry.npmjs.org/resumer/-/resumer-0.0.0.tgz", | |
|
976 | "integrity": "sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k=", | |
|
977 | "dev": true, | |
|
978 | "requires": { | |
|
979 | "through": "~2.3.4" | |
|
980 | } | |
|
981 | }, | |
|
982 | 883 | "rimraf": { |
|
983 | 884 | "version": "2.6.3", |
|
984 | 885 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", |
|
985 | 886 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", |
|
986 | 887 | "dev": true, |
|
987 | 888 | "requires": { |
|
988 | 889 | "glob": "^7.1.3" |
|
989 | 890 | } |
|
990 | 891 | }, |
|
991 | 892 | "run-async": { |
|
992 | 893 | "version": "2.3.0", |
|
993 | 894 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", |
|
994 | 895 | "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", |
|
995 | 896 | "dev": true, |
|
996 | 897 | "requires": { |
|
997 | 898 | "is-promise": "^2.1.0" |
|
998 | 899 | } |
|
999 | 900 | }, |
|
1000 | 901 | "rxjs": { |
|
1001 | 902 | "version": "6.5.4", |
|
1002 | 903 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.4.tgz", |
|
1003 | 904 | "integrity": "sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==", |
|
1004 | 905 | "dev": true, |
|
1005 | 906 | "requires": { |
|
1006 | 907 | "tslib": "^1.9.0" |
|
1007 | 908 | } |
|
1008 | 909 | }, |
|
1009 | 910 | "safer-buffer": { |
|
1010 | 911 | "version": "2.1.2", |
|
1011 | 912 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", |
|
1012 | 913 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", |
|
1013 | 914 | "dev": true |
|
1014 | 915 | }, |
|
1015 | 916 | "semver": { |
|
1016 | 917 | "version": "6.3.0", |
|
1017 | 918 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", |
|
1018 | 919 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", |
|
1019 | 920 | "dev": true |
|
1020 | 921 | }, |
|
1021 | 922 | "shebang-command": { |
|
1022 | 923 | "version": "1.2.0", |
|
1023 | 924 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", |
|
1024 | 925 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", |
|
1025 | 926 | "dev": true, |
|
1026 | 927 | "requires": { |
|
1027 | 928 | "shebang-regex": "^1.0.0" |
|
1028 | 929 | } |
|
1029 | 930 | }, |
|
1030 | 931 | "shebang-regex": { |
|
1031 | 932 | "version": "1.0.0", |
|
1032 | 933 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", |
|
1033 | 934 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", |
|
1034 | 935 | "dev": true |
|
1035 | 936 | }, |
|
1036 | 937 | "signal-exit": { |
|
1037 | 938 | "version": "3.0.2", |
|
1038 | 939 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", |
|
1039 | 940 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", |
|
1040 | 941 | "dev": true |
|
1041 | 942 | }, |
|
1042 | 943 | "slice-ansi": { |
|
1043 | 944 | "version": "2.1.0", |
|
1044 | 945 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", |
|
1045 | 946 | "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", |
|
1046 | 947 | "dev": true, |
|
1047 | 948 | "requires": { |
|
1048 | 949 | "ansi-styles": "^3.2.0", |
|
1049 | 950 | "astral-regex": "^1.0.0", |
|
1050 | 951 | "is-fullwidth-code-point": "^2.0.0" |
|
952 | }, | |
|
953 | "dependencies": { | |
|
954 | "is-fullwidth-code-point": { | |
|
955 | "version": "2.0.0", | |
|
956 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", | |
|
957 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", | |
|
958 | "dev": true | |
|
959 | } | |
|
1051 | 960 | } |
|
1052 | 961 | }, |
|
1053 | 962 | "sprintf-js": { |
|
1054 | 963 | "version": "1.0.3", |
|
1055 | 964 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", |
|
1056 | 965 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", |
|
1057 | 966 | "dev": true |
|
1058 | 967 | }, |
|
1059 | 968 | "string-width": { |
|
1060 |
"version": " |
|
|
1061 |
"resolved": "https://registry.npmjs.org/string-width/-/string-width- |
|
|
1062 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", | |
|
969 | "version": "4.2.0", | |
|
970 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", | |
|
971 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", | |
|
1063 | 972 | "dev": true, |
|
1064 | 973 | "requires": { |
|
1065 |
" |
|
|
1066 |
" |
|
|
974 | "emoji-regex": "^8.0.0", | |
|
975 | "is-fullwidth-code-point": "^3.0.0", | |
|
976 | "strip-ansi": "^6.0.0" | |
|
1067 | 977 | }, |
|
1068 | 978 | "dependencies": { |
|
1069 | 979 | "strip-ansi": { |
|
1070 |
"version": " |
|
|
1071 |
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi- |
|
|
1072 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", | |
|
1073 | "dev": true, | |
|
1074 | "requires": { | |
|
1075 | "ansi-regex": "^3.0.0" | |
|
1076 | } | |
|
1077 | } | |
|
1078 | } | |
|
1079 | }, | |
|
1080 | "string.prototype.trim": { | |
|
1081 | "version": "1.1.2", | |
|
1082 | "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz", | |
|
1083 | "integrity": "sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo=", | |
|
980 | "version": "6.0.0", | |
|
981 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", | |
|
982 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", | |
|
1084 | 983 | "dev": true, |
|
1085 | 984 | "requires": { |
|
1086 | "define-properties": "^1.1.2", | |
|
1087 | "es-abstract": "^1.5.0", | |
|
1088 | "function-bind": "^1.0.2" | |
|
985 | "ansi-regex": "^5.0.0" | |
|
1089 | 986 | } |
|
1090 | }, | |
|
1091 | "string.prototype.trimleft": { | |
|
1092 | "version": "2.1.1", | |
|
1093 | "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz", | |
|
1094 | "integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==", | |
|
1095 | "dev": true, | |
|
1096 | "requires": { | |
|
1097 | "define-properties": "^1.1.3", | |
|
1098 | "function-bind": "^1.1.1" | |
|
1099 | 987 | } |
|
1100 | }, | |
|
1101 | "string.prototype.trimright": { | |
|
1102 | "version": "2.1.1", | |
|
1103 | "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz", | |
|
1104 | "integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==", | |
|
1105 | "dev": true, | |
|
1106 | "requires": { | |
|
1107 | "define-properties": "^1.1.3", | |
|
1108 | "function-bind": "^1.1.1" | |
|
1109 | 988 | } |
|
1110 | 989 | }, |
|
1111 | 990 | "strip-ansi": { |
|
1112 | 991 | "version": "5.2.0", |
|
1113 | 992 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", |
|
1114 | 993 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", |
|
1115 | 994 | "dev": true, |
|
1116 | 995 | "requires": { |
|
1117 | 996 | "ansi-regex": "^4.1.0" |
|
1118 | 997 | }, |
|
1119 | 998 | "dependencies": { |
|
1120 | 999 | "ansi-regex": { |
|
1121 | 1000 | "version": "4.1.0", |
|
1122 | 1001 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", |
|
1123 | 1002 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", |
|
1124 | 1003 | "dev": true |
|
1125 | 1004 | } |
|
1126 | 1005 | } |
|
1127 | 1006 | }, |
|
1128 | 1007 | "strip-json-comments": { |
|
1129 | 1008 | "version": "3.0.1", |
|
1130 | 1009 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", |
|
1131 | 1010 | "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", |
|
1132 | 1011 | "dev": true |
|
1133 | 1012 | }, |
|
1134 | 1013 | "supports-color": { |
|
1135 | 1014 | "version": "5.5.0", |
|
1136 | 1015 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", |
|
1137 | 1016 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", |
|
1138 | 1017 | "dev": true, |
|
1139 | 1018 | "requires": { |
|
1140 | 1019 | "has-flag": "^3.0.0" |
|
1141 | 1020 | } |
|
1142 | 1021 | }, |
|
1143 | 1022 | "table": { |
|
1144 | 1023 | "version": "5.4.6", |
|
1145 | 1024 | "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", |
|
1146 | 1025 | "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", |
|
1147 | 1026 | "dev": true, |
|
1148 | 1027 | "requires": { |
|
1149 | 1028 | "ajv": "^6.10.2", |
|
1150 | 1029 | "lodash": "^4.17.14", |
|
1151 | 1030 | "slice-ansi": "^2.1.0", |
|
1152 | 1031 | "string-width": "^3.0.0" |
|
1153 | 1032 | }, |
|
1154 | 1033 | "dependencies": { |
|
1034 | "emoji-regex": { | |
|
1035 | "version": "7.0.3", | |
|
1036 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", | |
|
1037 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", | |
|
1038 | "dev": true | |
|
1039 | }, | |
|
1040 | "is-fullwidth-code-point": { | |
|
1041 | "version": "2.0.0", | |
|
1042 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", | |
|
1043 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", | |
|
1044 | "dev": true | |
|
1045 | }, | |
|
1155 | 1046 | "string-width": { |
|
1156 | 1047 | "version": "3.1.0", |
|
1157 | 1048 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", |
|
1158 | 1049 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", |
|
1159 | 1050 | "dev": true, |
|
1160 | 1051 | "requires": { |
|
1161 | 1052 | "emoji-regex": "^7.0.1", |
|
1162 | 1053 | "is-fullwidth-code-point": "^2.0.0", |
|
1163 | 1054 | "strip-ansi": "^5.1.0" |
|
1164 | 1055 | } |
|
1165 | 1056 | } |
|
1166 | 1057 | } |
|
1167 | 1058 | }, |
|
1168 | "tape": { | |
|
1169 | "version": "4.11.0", | |
|
1170 | "resolved": "https://registry.npmjs.org/tape/-/tape-4.11.0.tgz", | |
|
1171 | "integrity": "sha512-yixvDMX7q7JIs/omJSzSZrqulOV51EC9dK8dM0TzImTIkHWfe2/kFyL5v+d9C+SrCMaICk59ujsqFAVidDqDaA==", | |
|
1172 | "dev": true, | |
|
1173 | "requires": { | |
|
1174 | "deep-equal": "~1.0.1", | |
|
1175 | "defined": "~1.0.0", | |
|
1176 | "for-each": "~0.3.3", | |
|
1177 | "function-bind": "~1.1.1", | |
|
1178 | "glob": "~7.1.4", | |
|
1179 | "has": "~1.0.3", | |
|
1180 | "inherits": "~2.0.4", | |
|
1181 | "minimist": "~1.2.0", | |
|
1182 | "object-inspect": "~1.6.0", | |
|
1183 | "resolve": "~1.11.1", | |
|
1184 | "resumer": "~0.0.0", | |
|
1185 | "string.prototype.trim": "~1.1.2", | |
|
1186 | "through": "~2.3.8" | |
|
1187 | }, | |
|
1188 | "dependencies": { | |
|
1189 | "minimist": { | |
|
1190 | "version": "1.2.0", | |
|
1191 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", | |
|
1192 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", | |
|
1193 | "dev": true | |
|
1194 | } | |
|
1195 | } | |
|
1196 | }, | |
|
1197 | 1059 | "text-table": { |
|
1198 | 1060 | "version": "0.2.0", |
|
1199 | 1061 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", |
|
1200 | 1062 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", |
|
1201 | 1063 | "dev": true |
|
1202 | 1064 | }, |
|
1203 | 1065 | "through": { |
|
1204 | 1066 | "version": "2.3.8", |
|
1205 | 1067 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", |
|
1206 | 1068 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", |
|
1207 | 1069 | "dev": true |
|
1208 | 1070 | }, |
|
1209 | 1071 | "tmp": { |
|
1210 | 1072 | "version": "0.0.33", |
|
1211 | 1073 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", |
|
1212 | 1074 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", |
|
1213 | 1075 | "dev": true, |
|
1214 | 1076 | "requires": { |
|
1215 | 1077 | "os-tmpdir": "~1.0.2" |
|
1216 | 1078 | } |
|
1217 | 1079 | }, |
|
1218 | 1080 | "tslib": { |
|
1219 | 1081 | "version": "1.10.0", |
|
1220 | 1082 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", |
|
1221 | 1083 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", |
|
1222 | 1084 | "dev": true |
|
1223 | 1085 | }, |
|
1224 | 1086 | "tslint": { |
|
1225 |
"version": " |
|
|
1226 |
"resolved": "https://registry.npmjs.org/tslint/-/tslint- |
|
|
1227 | "integrity": "sha512-Q3kXkuDEijQ37nXZZLKErssQVnwCV/+23gFEMROi8IlbaBG6tXqLPQJ5Wjcyt/yHPKBC+hD5SzuGaMora+ZS6w==", | |
|
1087 | "version": "6.0.0", | |
|
1088 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.0.0.tgz", | |
|
1089 | "integrity": "sha512-9nLya8GBtlFmmFMW7oXXwoXS1NkrccqTqAtwXzdPV9e2mqSEvCki6iHL/Fbzi5oqbugshzgGPk7KBb2qNP1DSA==", | |
|
1228 | 1090 | "dev": true, |
|
1229 | 1091 | "requires": { |
|
1230 | 1092 | "@babel/code-frame": "^7.0.0", |
|
1231 | 1093 | "builtin-modules": "^1.1.1", |
|
1232 | 1094 | "chalk": "^2.3.0", |
|
1233 | 1095 | "commander": "^2.12.1", |
|
1234 |
"diff": "^ |
|
|
1096 | "diff": "^4.0.1", | |
|
1235 | 1097 | "glob": "^7.1.1", |
|
1236 | 1098 | "js-yaml": "^3.13.1", |
|
1237 | 1099 | "minimatch": "^3.0.4", |
|
1238 | 1100 | "mkdirp": "^0.5.1", |
|
1239 | 1101 | "resolve": "^1.3.2", |
|
1240 | 1102 | "semver": "^5.3.0", |
|
1241 |
"tslib": "^1. |
|
|
1103 | "tslib": "^1.10.0", | |
|
1242 | 1104 | "tsutils": "^2.29.0" |
|
1243 | 1105 | }, |
|
1244 | 1106 | "dependencies": { |
|
1245 | 1107 | "semver": { |
|
1246 | 1108 | "version": "5.7.1", |
|
1247 | 1109 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", |
|
1248 | 1110 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", |
|
1249 | 1111 | "dev": true |
|
1250 | 1112 | } |
|
1251 | 1113 | } |
|
1252 | 1114 | }, |
|
1253 | 1115 | "tsutils": { |
|
1254 | 1116 | "version": "2.29.0", |
|
1255 | 1117 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", |
|
1256 | 1118 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", |
|
1257 | 1119 | "dev": true, |
|
1258 | 1120 | "requires": { |
|
1259 | 1121 | "tslib": "^1.8.1" |
|
1260 | 1122 | } |
|
1261 | 1123 | }, |
|
1262 | 1124 | "type-check": { |
|
1263 | 1125 | "version": "0.3.2", |
|
1264 | 1126 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", |
|
1265 | 1127 | "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", |
|
1266 | 1128 | "dev": true, |
|
1267 | 1129 | "requires": { |
|
1268 | 1130 | "prelude-ls": "~1.1.2" |
|
1269 | 1131 | } |
|
1270 | 1132 | }, |
|
1133 | "type-detect": { | |
|
1134 | "version": "4.0.8", | |
|
1135 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", | |
|
1136 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", | |
|
1137 | "dev": true | |
|
1138 | }, | |
|
1139 | "type-fest": { | |
|
1140 | "version": "0.8.1", | |
|
1141 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", | |
|
1142 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", | |
|
1143 | "dev": true | |
|
1144 | }, | |
|
1271 | 1145 | "typescript": { |
|
1272 |
"version": "3. |
|
|
1273 |
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3. |
|
|
1274 | "integrity": "sha512-BEjlc0Z06ORZKbtcxGrIvvwYs5hAnuo6TKdNFL55frVDlB+na3z5bsLhFaIxmT+dPWgBIjMo6aNnTOgHHmHgiQ==", | |
|
1146 | "version": "3.7.5", | |
|
1147 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz", | |
|
1148 | "integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==", | |
|
1275 | 1149 | "dev": true |
|
1276 | 1150 | }, |
|
1277 | 1151 | "uri-js": { |
|
1278 | 1152 | "version": "4.2.2", |
|
1279 | 1153 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", |
|
1280 | 1154 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", |
|
1281 | 1155 | "dev": true, |
|
1282 | 1156 | "requires": { |
|
1283 | 1157 | "punycode": "^2.1.0" |
|
1284 | 1158 | } |
|
1285 | 1159 | }, |
|
1286 | 1160 | "v8-compile-cache": { |
|
1287 | 1161 | "version": "2.1.0", |
|
1288 | 1162 | "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz", |
|
1289 | 1163 | "integrity": "sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g==", |
|
1290 | 1164 | "dev": true |
|
1291 | 1165 | }, |
|
1292 | 1166 | "which": { |
|
1293 | 1167 | "version": "1.3.1", |
|
1294 | 1168 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", |
|
1295 | 1169 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", |
|
1296 | 1170 | "dev": true, |
|
1297 | 1171 | "requires": { |
|
1298 | 1172 | "isexe": "^2.0.0" |
|
1299 | 1173 | } |
|
1300 | 1174 | }, |
|
1301 | 1175 | "word-wrap": { |
|
1302 | 1176 | "version": "1.2.3", |
|
1303 | 1177 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", |
|
1304 | 1178 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", |
|
1305 | 1179 | "dev": true |
|
1306 | 1180 | }, |
|
1307 | 1181 | "wrappy": { |
|
1308 | 1182 | "version": "1.0.2", |
|
1309 | 1183 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", |
|
1310 | 1184 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", |
|
1311 | 1185 | "dev": true |
|
1312 | 1186 | }, |
|
1313 | 1187 | "write": { |
|
1314 | 1188 | "version": "1.0.3", |
|
1315 | 1189 | "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", |
|
1316 | 1190 | "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", |
|
1317 | 1191 | "dev": true, |
|
1318 | 1192 | "requires": { |
|
1319 | 1193 | "mkdirp": "^0.5.1" |
|
1320 | 1194 | } |
|
1195 | }, | |
|
1196 | "yaml": { | |
|
1197 | "version": "1.7.2", | |
|
1198 | "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.7.2.tgz", | |
|
1199 | "integrity": "sha512-qXROVp90sb83XtAoqE8bP9RwAkTTZbugRUTm5YeFCBfNRPEp2YzTeqWiz7m5OORHzEvrA/qcGS8hp/E+MMROYw==", | |
|
1200 | "dev": true, | |
|
1201 | "requires": { | |
|
1202 | "@babel/runtime": "^7.6.3" | |
|
1321 | 1203 | } |
|
1322 | 1204 | } |
|
1323 | 1205 | } |
|
1206 | } |
@@ -1,14 +1,15 | |||
|
1 | 1 | { |
|
2 | 2 | "devDependencies": { |
|
3 | "@types/node": "8.0.0", | |
|
4 | "@types/tape": "~4.2.33", | |
|
5 | 3 | "@types/requirejs": "2.1.31", |
|
6 | 4 | "dojo": "1.16.0", |
|
7 | 5 | "dojo-typings": "1.11.9", |
|
8 | "tape": "~4.13.0", | |
|
9 | 6 | "typescript": "~3.7.5", |
|
10 | 7 | "eslint": "6.8.0", |
|
11 | 8 | "tslint": "6.0.0", |
|
12 | "@implab/core-amd": "^1.3.2" | |
|
9 | "@implab/core-amd": "^1.3.2", | |
|
10 | "yaml": "~1.7.2", | |
|
11 | "@types/yaml": "1.2.0", | |
|
12 | "chai": "4.2.0", | |
|
13 | "@types/chai": "4.1.3" | |
|
13 | 14 | } |
|
14 | 15 | } |
@@ -1,78 +1,81 | |||
|
1 | 1 | import { MapOf } from "@implab/core-amd/interfaces"; |
|
2 | 2 | import { isPromise, mixin } from "@implab/core-amd/safe"; |
|
3 | 3 | import { locale as sysLocale } from "dojo/_base/kernel"; |
|
4 | 4 | import { id as mid } from "module"; |
|
5 | 5 | import { TraceSource } from "@implab/core-amd/log/TraceSource"; |
|
6 | 6 | |
|
7 | 7 | const trace = TraceSource.get(mid); |
|
8 | 8 | |
|
9 | 9 | type PromiseOrValue<T> = PromiseLike<T> | T; |
|
10 | 10 | type ResolveCallback<T> = () => PromiseOrValue<T>; |
|
11 | 11 | |
|
12 | 12 | trace.debug("Current sysLocale: {0}", sysLocale); |
|
13 | 13 | |
|
14 | 14 | function when<T, T2>(value: PromiseOrValue<T>, cb: (v: T) => PromiseOrValue<T2>): PromiseOrValue<T2> { |
|
15 | 15 | return isPromise(value) ? |
|
16 | 16 | value.then(cb) : |
|
17 | 17 | cb(value); |
|
18 | 18 | } |
|
19 | 19 | |
|
20 | 20 | function isCallback<T>(v: ResolveCallback<T> | PromiseOrValue<T>): v is ResolveCallback<T> { |
|
21 | 21 | return typeof v === "function"; |
|
22 | 22 | } |
|
23 | 23 | |
|
24 | 24 | function chainObjects<T extends object>(o1: T, o2: T) { |
|
25 | 25 | if (!o1) |
|
26 | 26 | return o2; |
|
27 | 27 | if (!o2) |
|
28 | 28 | return o1; |
|
29 | 29 | |
|
30 | 30 | return mixin(Object.create(o1) as T, o2); |
|
31 | 31 | } |
|
32 | 32 | |
|
33 | 33 | export class NlsBundle<T extends object> { |
|
34 | 34 | _locales: MapOf<ResolveCallback<T> | PromiseOrValue<T>>; |
|
35 | 35 | default: T; |
|
36 | 36 | |
|
37 | 37 | _cache: MapOf<PromiseOrValue<T>>; |
|
38 | 38 | |
|
39 | constructor(defNls: T, locales: MapOf<any>) { | |
|
39 | constructor(defNls: T, locales?: MapOf<any>) { | |
|
40 | 40 | this.default = defNls; |
|
41 | 41 | this._locales = locales || {}; |
|
42 | 42 | this._cache = {}; |
|
43 | 43 | } |
|
44 | 44 | |
|
45 | 45 | getLocale(locale: string) { |
|
46 | 46 | const _loc = locale || sysLocale; |
|
47 | 47 | |
|
48 | 48 | const locales = new Array<string>(); |
|
49 | 49 | |
|
50 | 50 | _loc.split("-").reduce((a, x) => { |
|
51 | 51 | a.push(x); |
|
52 | 52 | locales.unshift(a.join("-")); |
|
53 | 53 | return a; |
|
54 | }, []); | |
|
54 | }, new Array<string>()); | |
|
55 | 55 | |
|
56 | 56 | return this._resolveLocale(locales); |
|
57 | 57 | } |
|
58 | 58 | |
|
59 | 59 | _resolveLocale(locales: string[]): PromiseOrValue<T> { |
|
60 | 60 | if (!locales.length) |
|
61 | return; | |
|
61 | return this.default; | |
|
62 | 62 | |
|
63 | 63 | const locale = locales.shift(); |
|
64 | 64 | |
|
65 | if (!locale) | |
|
66 | return this._resolveLocale(locales); | |
|
67 | ||
|
65 | 68 | if (this._cache[locale]) |
|
66 | 69 | return this._cache[locale]; |
|
67 | 70 | |
|
68 | 71 | let data = this._locales[locale]; |
|
69 | 72 | if (isCallback(data)) |
|
70 | 73 | data = data(); |
|
71 | 74 | |
|
72 |
const parent = |
|
|
75 | const parent = this._resolveLocale(locales); | |
|
73 | 76 | |
|
74 | 77 | return this._cache[locale] = when(data, x => { |
|
75 | 78 | return when(parent, y => this._cache[locale] = chainObjects(y, x)); |
|
76 | 79 | }); |
|
77 | 80 | } |
|
78 | 81 | } |
@@ -1,233 +1,233 | |||
|
1 | 1 | import declare = require("dojo/_base/declare"); |
|
2 | 2 | import { each } from "@implab/core-amd/safe"; |
|
3 | 3 | import { Constructor } from "@implab/core-amd/interfaces"; |
|
4 | 4 | |
|
5 | 5 | export interface AbstractConstructor<T = {}> { |
|
6 | 6 | prototype: T; |
|
7 | 7 | } |
|
8 | 8 | |
|
9 | 9 | interface DjMockConstructor<T = {}> { |
|
10 | 10 | new(...args: any[]): T; |
|
11 | 11 | mock: boolean; |
|
12 | 12 | base: AbstractConstructor; |
|
13 | 13 | } |
|
14 | 14 | |
|
15 | 15 | export function djbase<T>( |
|
16 | 16 | b0: AbstractConstructor<T> |
|
17 | 17 | ): dojo._base.DeclareConstructor<T>; |
|
18 | 18 | |
|
19 | 19 | export function djbase<T0, T1>( |
|
20 | 20 | b0: AbstractConstructor<T0>, |
|
21 | 21 | b1: AbstractConstructor<T1> |
|
22 | 22 | ): dojo._base.DeclareConstructor<T0 & T1>; |
|
23 | 23 | |
|
24 | 24 | export function djbase<T0, T1, T2>( |
|
25 | 25 | b0: AbstractConstructor<T0>, |
|
26 | 26 | b1: AbstractConstructor<T1>, |
|
27 | 27 | b2: AbstractConstructor<T2> |
|
28 | 28 | ): dojo._base.DeclareConstructor<T0 & T1 & T2>; |
|
29 | 29 | |
|
30 | 30 | export function djbase<T0, T1, T2, T3>( |
|
31 | 31 | b0: AbstractConstructor<T0>, |
|
32 | 32 | b1: AbstractConstructor<T1>, |
|
33 | 33 | b2: AbstractConstructor<T2>, |
|
34 | 34 | b3: AbstractConstructor<T3> |
|
35 | 35 | ): dojo._base.DeclareConstructor<T0 & T1 & T2 & T3>; |
|
36 | 36 | |
|
37 | 37 | export function djbase<T0, T1, T2, T3, T4>( |
|
38 | 38 | b0: AbstractConstructor<T0>, |
|
39 | 39 | b1: AbstractConstructor<T1>, |
|
40 | 40 | b2: AbstractConstructor<T2>, |
|
41 | 41 | b3: AbstractConstructor<T3>, |
|
42 | 42 | b4: AbstractConstructor<T4> |
|
43 | 43 | ): dojo._base.DeclareConstructor<T0 & T1 & T2 & T3 & T4>; |
|
44 | 44 | |
|
45 | 45 | export function djbase<T0, T1, T2, T3, T4, T5>( |
|
46 | 46 | b0: AbstractConstructor<T0>, |
|
47 | 47 | b1: AbstractConstructor<T1>, |
|
48 | 48 | b2: AbstractConstructor<T2>, |
|
49 | 49 | b3: AbstractConstructor<T3>, |
|
50 | 50 | b4: AbstractConstructor<T4>, |
|
51 | 51 | b5: AbstractConstructor<T5> |
|
52 | 52 | ): dojo._base.DeclareConstructor<T0 & T1 & T2 & T3 & T4 & T5>; |
|
53 | 53 | |
|
54 | 54 | export function djbase<T0, T1, T2, T3, T4, T5, T6>( |
|
55 | 55 | b0: AbstractConstructor<T0>, |
|
56 | 56 | b1: AbstractConstructor<T1>, |
|
57 | 57 | b2: AbstractConstructor<T2>, |
|
58 | 58 | b3: AbstractConstructor<T3>, |
|
59 | 59 | b4: AbstractConstructor<T4>, |
|
60 | 60 | b5: AbstractConstructor<T5>, |
|
61 | 61 | b6: AbstractConstructor<T6> |
|
62 | 62 | ): dojo._base.DeclareConstructor<T0 & T1 & T2 & T3 & T4 & T5 & T6>; |
|
63 | 63 | |
|
64 | 64 | export function djbase<T0, T1, T2, T3, T4, T5, T6, T7>( |
|
65 | 65 | b0: AbstractConstructor<T0>, |
|
66 | 66 | b1: AbstractConstructor<T1>, |
|
67 | 67 | b2: AbstractConstructor<T2>, |
|
68 | 68 | b3: AbstractConstructor<T3>, |
|
69 | 69 | b4: AbstractConstructor<T4>, |
|
70 | 70 | b5: AbstractConstructor<T5>, |
|
71 | 71 | b6: AbstractConstructor<T6>, |
|
72 | 72 | b7: AbstractConstructor<T7> |
|
73 | 73 | ): dojo._base.DeclareConstructor<T0 & T1 & T2 & T3 & T4 & T5 & T6 & T7>; |
|
74 | 74 | |
|
75 | 75 | /** Создает конструктор-заглушку из списка базовых классов, используется |
|
76 | 76 | * для объявления классов при помощи `dojo/_base/declare`. |
|
77 | 77 | * |
|
78 | 78 | * Создает пустой конструтор, с пустым стандартным прототипом, это нужно, |
|
79 | 79 | * поскольку в унаследованном классе конструктор обязательно должен вызвать |
|
80 | 80 | * `super(...)`, таким образом он вызовет пустую функцию. |
|
81 | 81 | * |
|
82 | 82 | * Созданный конструтор хранит в себе список базовых классов, который будет |
|
83 | 83 | * использован декоратором `djclass`, который вернет класс, объявленный при |
|
84 | 84 | * помощи `dojo/_base/declare`. |
|
85 | 85 | * |
|
86 | 86 | * @param bases список базовых классов, от которых требуется унаследовать |
|
87 | 87 | * новый класс. |
|
88 | 88 | * |
|
89 | 89 | */ |
|
90 | 90 | export function djbase(...bases: any[]): Constructor { |
|
91 | 91 | |
|
92 | 92 | const t = class { |
|
93 | 93 | static mock: boolean; |
|
94 | 94 | static base: AbstractConstructor; |
|
95 | 95 | }; |
|
96 | 96 | |
|
97 | 97 | t.mock = true; |
|
98 | 98 | t.base = declare(bases); |
|
99 | 99 | |
|
100 | 100 | return t as any; |
|
101 | 101 | } |
|
102 | 102 | |
|
103 | 103 | function isMockConstructor<T extends {}>(v: AbstractConstructor<T>): v is DjMockConstructor<T> { |
|
104 | 104 | return v && "mock" in v; |
|
105 | 105 | } |
|
106 | 106 | |
|
107 | 107 | /** Создает класс при помощи `dojo/_base/declare`. Для этого исходный класс |
|
108 | 108 | * должен быть унаследован от `djbase(...)`. |
|
109 | 109 | * |
|
110 | 110 | * @param target Класс, который нужно объявить при помощи `dojo/_base/declare` |
|
111 | 111 | */ |
|
112 | 112 | export function djclass<T extends AbstractConstructor>(target: T): T { |
|
113 | 113 | // получаем базовый конструктор и его прототип |
|
114 | 114 | let bp = target && target.prototype && Object.getPrototypeOf(target.prototype); |
|
115 | 115 | const bc = bp && bp.constructor; |
|
116 | 116 | |
|
117 | 117 | // проверка того, что класс унаследован от специальной заглушки |
|
118 | 118 | if (isMockConstructor(bc)) { |
|
119 | 119 | // t - базовый класс, объявленный при помощи dojo/_base/declare |
|
120 | 120 | const t = bc.base; |
|
121 | 121 | |
|
122 | 122 | // bc - базовый класс, bc.prototype используется как super |
|
123 | 123 | // при вызове базовых методов. Нужно создать bc.prototype |
|
124 | 124 | // таким образом, чтобы он вызывал this.inherited(). |
|
125 | 125 | |
|
126 | 126 | // создаем новый порототип, он не в цепочке прототипов у текущего |
|
127 | 127 | // класса, но super.some_method будет использовать именно его. |
|
128 | 128 | // в этом объекте будут размещены прокси для переопределенных |
|
129 | 129 | // методов. |
|
130 | 130 | bp = bc.prototype = Object.create(t.prototype); |
|
131 | 131 | bp.constructor = bc; |
|
132 | 132 | |
|
133 | 133 | // proxy - фабрика для создания прокси-методов, которые внутри |
|
134 | 134 | // себя вызовут this.inherited с правильными параметрами. |
|
135 | const proxy = (m: (...args: any[]) => any) => function () { | |
|
135 | const proxy = (m: (...args: any[]) => any) => function (this: any) { | |
|
136 | 136 | return this.inherited(m, arguments); |
|
137 | 137 | }; |
|
138 | 138 | |
|
139 | 139 | // у текущего класса прототип содержит методы, объявленные в этом |
|
140 | 140 | // классе и его конструктор. Нужно пройти по всем методам и |
|
141 | 141 | // создать для них прокси. |
|
142 | 142 | // При этом только те, методы, которые есть в базовых классах |
|
143 | 143 | // могут быть переопределены. |
|
144 | 144 | each(target.prototype, (m: any, p: string | number | symbol) => { |
|
145 | 145 | if (typeof m === "function" && |
|
146 | 146 | p !== "constructor" && |
|
147 | 147 | target.prototype.hasOwnProperty(p) && |
|
148 | 148 | p in t.prototype |
|
149 | 149 | ) { |
|
150 | 150 | bp[p] = proxy(m); |
|
151 | 151 | } |
|
152 | 152 | }); |
|
153 | 153 | |
|
154 | 154 | const cls = declare(t, target.prototype); |
|
155 | 155 | // TODO mixin static members |
|
156 | 156 | return cls as any; |
|
157 | 157 | } else { |
|
158 | 158 | return target as any; |
|
159 | 159 | } |
|
160 | 160 | } |
|
161 | 161 | |
|
162 | 162 | function makeSetterName(prop: string) { |
|
163 | 163 | return [ |
|
164 | 164 | "_set", |
|
165 | 165 | prop.replace(/^./, x => x.toUpperCase()), |
|
166 | 166 | "Attr" |
|
167 | 167 | ].join(""); |
|
168 | 168 | } |
|
169 | 169 | |
|
170 | 170 | function makeGetterName(prop: string) { |
|
171 | 171 | return [ |
|
172 | 172 | "_get", |
|
173 | 173 | prop.replace(/^./, x => x.toUpperCase()), |
|
174 | 174 | "Attr" |
|
175 | 175 | ].join(""); |
|
176 | 176 | } |
|
177 | 177 | |
|
178 | 178 | interface NodeBindSpec { |
|
179 | 179 | node: string; |
|
180 | 180 | type: string; |
|
181 | 181 | } |
|
182 | 182 | |
|
183 | 183 | /** |
|
184 | 184 | * Описание привязки свойства виджета к свойству внутреннего объекта. |
|
185 | 185 | */ |
|
186 | 186 | interface MemberBindSpec { |
|
187 | 187 | /** |
|
188 | 188 | * Имя свойства со ссылкой на объект, к которому . |
|
189 | 189 | */ |
|
190 | 190 | member: string; |
|
191 | 191 | /** |
|
192 | 192 | * Свойство объекта к которому нужно осуществить привязку. |
|
193 | 193 | */ |
|
194 | 194 | property: string; |
|
195 | 195 | |
|
196 | 196 | /** |
|
197 | 197 | * Привязка осуществляется не только на запись но и на чтение свойства. |
|
198 | 198 | */ |
|
199 | 199 | getter?: boolean; |
|
200 | 200 | } |
|
201 | 201 | |
|
202 | function isNodeBindSpec(v): v is NodeBindSpec { | |
|
202 | function isNodeBindSpec(v: any): v is NodeBindSpec { | |
|
203 | 203 | return "node" in v; |
|
204 | 204 | } |
|
205 | 205 | |
|
206 | function isMemberBindSpec(v): v is MemberBindSpec { | |
|
206 | function isMemberBindSpec(v: any): v is MemberBindSpec { | |
|
207 | 207 | return "member" in v; |
|
208 | 208 | } |
|
209 | 209 | |
|
210 | 210 | /** Декорирует свойства виджета для привязки их к внутренним членам, либо DOM |
|
211 | 211 | * элементам, либо свойству внутреннего объекта. |
|
212 | 212 | * |
|
213 | 213 | * @param {NodeBindSpec | MemberBindSpec} params Параметры связывания. |
|
214 | 214 | */ |
|
215 | 215 | export function bind(params: NodeBindSpec | MemberBindSpec) { |
|
216 | 216 | if (isNodeBindSpec(params)) |
|
217 | 217 | return (target: any, name: string) => { |
|
218 | 218 | target[makeSetterName(name)] = params; |
|
219 | 219 | }; |
|
220 | 220 | else if (isMemberBindSpec(params)) { |
|
221 | 221 | return (target: any, name: string) => { |
|
222 | 222 | target[name] = null; |
|
223 | target[makeSetterName(name)] = function (v) { | |
|
223 | target[makeSetterName(name)] = function (v: any) { | |
|
224 | 224 | this._set(name, v); |
|
225 | 225 | this[params.member].set(params.property, v); |
|
226 | 226 | }; |
|
227 | 227 | if (params.getter) |
|
228 | 228 | target[makeGetterName(name)] = function () { |
|
229 | 229 | return this[params.member].get(params.property); |
|
230 | 230 | }; |
|
231 | 231 | }; |
|
232 | 232 | } |
|
233 | 233 | } |
@@ -1,67 +1,64 | |||
|
1 | import { isNull, mixin } from "@implab/core-amd/safe"; | |
|
1 | import { isNull, mixin, argumentNotNull } from "@implab/core-amd/safe"; | |
|
2 | 2 | import { isPlainObject, isNode, isBuildContext } from "./traits"; |
|
3 | 3 | |
|
4 | 4 | export abstract class BuildContextBase { |
|
5 | 5 | _attrs = {}; |
|
6 | 6 | |
|
7 |
_children = |
|
|
7 | _children = new Array(); | |
|
8 | 8 | |
|
9 | _created: boolean; | |
|
9 | _created: boolean = false; | |
|
10 | 10 | |
|
11 | 11 | visitNext(v: any) { |
|
12 | 12 | if (isNull(v)) |
|
13 | 13 | return; |
|
14 | 14 | |
|
15 | 15 | if (isPlainObject(v)) { |
|
16 | 16 | |
|
17 | 17 | if (this._created) |
|
18 | 18 | this._setAttrs(v); |
|
19 | 19 | else |
|
20 | 20 | mixin(this._attrs, v); |
|
21 | 21 | |
|
22 | 22 | } else { |
|
23 | 23 | if (this._created) |
|
24 | 24 | this._addChild(v); |
|
25 | 25 | else |
|
26 | 26 | this._children.push(v); |
|
27 | 27 | } |
|
28 | 28 | } |
|
29 | 29 | |
|
30 | 30 | getChildDom(v: any) { |
|
31 | if (isNull(v)) | |
|
32 | return; | |
|
33 | ||
|
34 | 31 | const tv = typeof v; |
|
35 | 32 | if (tv === "string" || tv === "number" || tv === "boolean" || v instanceof RegExp || v instanceof Date) { |
|
36 | 33 | return document.createTextNode(v.toString()); |
|
37 | 34 | } else if (isNode(v)) { |
|
38 | 35 | return v; |
|
39 | 36 | } else if (isBuildContext(v)) { |
|
40 | 37 | return v.getDomElement(); |
|
41 | 38 | } else { |
|
42 | 39 | throw new Error("Invalid parameter"); |
|
43 | 40 | } |
|
44 | 41 | } |
|
45 | 42 | |
|
46 | 43 | abstract _getDomElement(): HTMLElement; |
|
47 | 44 | |
|
48 | 45 | ensureCreated() { |
|
49 | 46 | if (!this._created) { |
|
50 | 47 | this._create(this._attrs, this._children); |
|
51 |
this._children = |
|
|
52 |
this._attrs = |
|
|
48 | this._children = []; | |
|
49 | this._attrs = {}; | |
|
53 | 50 | this._created = true; |
|
54 | 51 | } |
|
55 | 52 | } |
|
56 | 53 | |
|
57 | 54 | getDomElement() { |
|
58 | 55 | this.ensureCreated(); |
|
59 | 56 | return this._getDomElement(); |
|
60 | 57 | } |
|
61 | 58 | |
|
62 | 59 | abstract _addChild(child: any): void; |
|
63 | 60 | |
|
64 | 61 | abstract _setAttrs(attrs: object): void; |
|
65 | 62 | |
|
66 | 63 | abstract _create(attrs: object, children: any[]): void; |
|
67 | 64 | } |
@@ -1,44 +1,49 | |||
|
1 | 1 | import { djbase, djclass } from "../declare"; |
|
2 | 2 | import _WidgetBase = require("dijit/_WidgetBase"); |
|
3 | 3 | import _AttachMixin = require("dijit/_AttachMixin"); |
|
4 | 4 | import { BuildContext, isNode } from "./traits"; |
|
5 | 5 | import registry = require("dijit/registry"); |
|
6 | 6 | |
|
7 | 7 | @djclass |
|
8 | 8 | export abstract class DjxWidgetBase extends djbase(_WidgetBase, _AttachMixin) { |
|
9 | 9 | |
|
10 | 10 | buildRendering() { |
|
11 | 11 | this.domNode = this.render().getDomElement(); |
|
12 | 12 | super.buildRendering(); |
|
13 | 13 | } |
|
14 | 14 | |
|
15 | 15 | abstract render(): BuildContext; |
|
16 | 16 | |
|
17 | 17 | _processTemplateNode<T extends (Element | Node | _WidgetBase)>( |
|
18 | 18 | baseNode: T, |
|
19 | 19 | getAttrFunc: (baseNode: T, attr: string) => string, |
|
20 | attachFunc: (node: T, type: string, func?: (...args: any[]) => any) => dojo.Handle | |
|
20 | // tslint:disable-next-line: ban-types | |
|
21 | attachFunc: (node: T, type: string, func?: Function) => dojo.Handle | |
|
21 | 22 | ): boolean { |
|
22 | 23 | if (isNode(baseNode)) { |
|
23 | 24 | const w = registry.byNode(baseNode); |
|
24 | 25 | if (w) { |
|
25 | 26 | // from dijit/_WidgetsInTemplateMixin |
|
26 | 27 | this._processTemplateNode(w, |
|
27 |
(n, p) => n |
|
|
28 | (n, p) => n.get(p), // callback to get a property of a widget | |
|
28 | 29 | (widget, type, callback) => { |
|
30 | if (!callback) | |
|
31 | throw new Error("The callback must be specified"); | |
|
32 | ||
|
29 | 33 | // callback to do data-dojo-attach-event to a widget |
|
30 | 34 | if (type in widget) { |
|
31 | 35 | // back-compat, remove for 2.0 |
|
32 | return widget.connect(widget, type, callback); | |
|
36 | return widget.connect(widget, type, callback as EventListener); | |
|
33 | 37 | } else { |
|
34 | 38 | // 1.x may never hit this branch, but it's the default for 2.0 |
|
35 | 39 | return widget.on(type, callback); |
|
36 | 40 | } |
|
41 | ||
|
37 | 42 | }); |
|
38 | 43 | // don't process widgets internals |
|
39 | 44 | return false; |
|
40 | 45 | } |
|
41 | 46 | } |
|
42 | 47 | return super._processTemplateNode(baseNode, getAttrFunc, attachFunc); |
|
43 | 48 | } |
|
44 | 49 | } |
@@ -1,37 +1,45 | |||
|
1 | 1 | import dom = require("dojo/dom-construct"); |
|
2 | 2 | import attr = require("dojo/dom-attr"); |
|
3 | 3 | import { argumentNotEmptyString } from "@implab/core-amd/safe"; |
|
4 | 4 | import { BuildContextBase } from "./BuildContextBase"; |
|
5 | 5 | |
|
6 | 6 | export class HtmlElementContext extends BuildContextBase { |
|
7 | 7 | elementType: string; |
|
8 | 8 | |
|
9 | _element: HTMLElement; | |
|
9 | _element: HTMLElement | undefined; | |
|
10 | 10 | |
|
11 | 11 | constructor(elementType: string) { |
|
12 | 12 | argumentNotEmptyString(elementType, "elementType"); |
|
13 | 13 | super(); |
|
14 | 14 | |
|
15 | 15 | this.elementType = elementType; |
|
16 | 16 | } |
|
17 | 17 | |
|
18 | 18 | _addChild(child: any): void { |
|
19 | if (!this._element) | |
|
20 | throw new Error("The HTML element isn't created"); | |
|
19 | 21 | dom.place(this.getChildDom(child), this._element); |
|
20 | 22 | } |
|
21 | 23 | |
|
22 | 24 | _setAttrs(attrs: object): void { |
|
25 | if (!this._element) | |
|
26 | throw new Error("The HTML element isn't created"); | |
|
27 | ||
|
23 | 28 | attr.set(this._element, attrs); |
|
24 | 29 | } |
|
25 | 30 | |
|
26 | 31 | _create(attrs: object, children: any[]) { |
|
27 | 32 | this._element = dom.create(this.elementType, attrs); |
|
28 | 33 | |
|
29 | 34 | if (children) |
|
30 | 35 | children.forEach(v => this._addChild(v)); |
|
31 | 36 | } |
|
32 | 37 | |
|
33 | 38 | _getDomElement() { |
|
39 | if (!this._element) | |
|
40 | throw new Error("The HTML element isn't created"); | |
|
41 | ||
|
34 | 42 | return this._element; |
|
35 | 43 | } |
|
36 | 44 | |
|
37 | 45 | } |
@@ -1,40 +1,42 | |||
|
1 | 1 | import dom = require("dojo/dom-construct"); |
|
2 | 2 | import { argumentNotNull, isNull, mixin } from "@implab/core-amd/safe"; |
|
3 | 3 | import _WidgetBase = require("dijit/_WidgetBase"); |
|
4 | 4 | import { _WidgetBaseConstructor, isNode } from "./traits"; |
|
5 | 5 | import { BuildContextBase } from "./BuildContextBase"; |
|
6 | 6 | |
|
7 | 7 | export class WidgetContext extends BuildContextBase { |
|
8 | 8 | widgetClass: _WidgetBaseConstructor; |
|
9 | 9 | |
|
10 | _instance: _WidgetBase; | |
|
10 | _instance: _WidgetBase | undefined; | |
|
11 | 11 | |
|
12 | 12 | constructor(widgetClass: _WidgetBaseConstructor) { |
|
13 | 13 | super(); |
|
14 | 14 | argumentNotNull(widgetClass, "widgetClass"); |
|
15 | 15 | |
|
16 | 16 | this.widgetClass = widgetClass; |
|
17 | 17 | } |
|
18 | 18 | |
|
19 | 19 | _addChild(child: any): void { |
|
20 | if (!this._instance.containerNode) | |
|
20 | if (!this._instance || !this._instance.containerNode) | |
|
21 | 21 | throw new Error("Widget doesn't support adding children"); |
|
22 | 22 | |
|
23 | 23 | dom.place(this.getChildDom(child), this._instance.containerNode); |
|
24 | 24 | } |
|
25 | 25 | |
|
26 | 26 | _setAttrs(attrs: object): void { |
|
27 | this._instance.set(attrs); | |
|
27 | this._instance?.set(attrs); | |
|
28 | 28 | } |
|
29 | 29 | |
|
30 | 30 | _create(attrs: object, children: any[]) { |
|
31 | 31 | this._instance = new this.widgetClass(this._attrs); |
|
32 | 32 | if (children) |
|
33 | 33 | children.forEach(x => this._addChild(x)); |
|
34 | 34 | } |
|
35 | 35 | |
|
36 | 36 | _getDomElement() { |
|
37 | if (!this._instance) | |
|
38 | throw new Error("The instance of the widget isn't created"); | |
|
37 | 39 | return this._instance.domNode; |
|
38 | 40 | } |
|
39 | 41 | |
|
40 | 42 | } |
@@ -1,74 +1,57 | |||
|
1 | 1 | import { IObservable, ICancellation, IDestroyable } from "@implab/core-amd/interfaces"; |
|
2 | 2 | import { Cancellation } from "@implab/core-amd/Cancellation"; |
|
3 | 3 | import { TraceEvent, LogLevel, WarnLevel, DebugLevel, TraceSource } from "@implab/core-amd/log/TraceSource"; |
|
4 | import * as tape from "tape"; | |
|
5 | 4 | import { argumentNotNull, destroy } from "@implab/core-amd/safe"; |
|
5 | import { TapWriter } from "./Tap"; | |
|
6 | ||
|
7 | ||
|
6 | 8 | |
|
7 | 9 | export class TapeWriter implements IDestroyable { |
|
8 | private readonly _tape: tape.Test; | |
|
10 | ||
|
11 | private readonly _t: TapWriter; | |
|
9 | 12 | |
|
10 | 13 | private readonly _subscriptions = new Array<IDestroyable>(); |
|
11 | 14 | private _destroyed; |
|
12 | 15 | |
|
13 |
constructor(t: |
|
|
14 |
argumentNotNull(t, "t |
|
|
15 | this._tape = t; | |
|
16 | constructor(t: TapWriter) { | |
|
17 | argumentNotNull(t, "test"); | |
|
18 | ||
|
16 | 19 | } |
|
17 | 20 | |
|
18 | 21 | writeEvents(source: IObservable<TraceEvent>, ct: ICancellation = Cancellation.none) { |
|
19 | 22 | if (!this._destroyed) { |
|
20 | 23 | const subscription = source.on(this.writeEvent.bind(this)); |
|
21 | 24 | if (ct.isSupported()) { |
|
22 | 25 | ct.register(subscription.destroy.bind(subscription)); |
|
23 | 26 | } |
|
24 | 27 | this._subscriptions.push(subscription); |
|
25 | 28 | } |
|
26 | 29 | } |
|
27 | 30 | |
|
28 | 31 | writeEvent(next: TraceEvent) { |
|
29 | 32 | if (next.level >= DebugLevel) { |
|
30 |
this._t |
|
|
33 | this._t.comment(`DEBUG ${next.source.id} ${next}`); | |
|
31 | 34 | } else if (next.level >= LogLevel) { |
|
32 |
this._t |
|
|
35 | this._t.comment(`LOG ${next.source.id} ${next}`); | |
|
33 | 36 | } else if (next.level >= WarnLevel) { |
|
34 |
this._t |
|
|
37 | this._t.comment(`WARN ${next.source.id} ${next}`); | |
|
35 | 38 | } else { |
|
36 |
this._t |
|
|
39 | this._t.comment(`ERROR ${next.source.id} ${next}`); | |
|
37 | 40 | } |
|
38 | 41 | } |
|
39 | 42 | |
|
40 | 43 | destroy() { |
|
41 | 44 | this._subscriptions.forEach(destroy); |
|
42 | 45 | } |
|
43 | 46 | } |
|
44 | 47 | |
|
45 | export function test(name: string, cb: (t: tape.Test, trace: TraceSource) => any) { | |
|
46 | tape(name, async t => { | |
|
47 | const writer = new TapeWriter(t); | |
|
48 | type TestCallback = (ok: (msg:string) => void, fail: (msg:string) => void, trace: TraceSource) => void; | |
|
49 | type AsyncTestCallback = (trace: TraceSource) => PromiseLike<void> | void; | |
|
48 | 50 | |
|
49 | // this trace is not announced through the TraceSource global registry | |
|
50 | const trace = new TraceSource(name); | |
|
51 | trace.level = DebugLevel; | |
|
52 | writer.writeEvents(trace.events); | |
|
53 | ||
|
54 | const h = TraceSource.on(ts => { | |
|
55 | ts.level = DebugLevel; | |
|
56 | writer.writeEvents(ts.events); | |
|
57 | }); | |
|
51 | export function test(name: string, cb: TestCallback | AsyncTestCallback) { | |
|
58 | 52 | |
|
59 | try { | |
|
60 | await cb(t, trace); | |
|
61 | } catch (e) { | |
|
53 | } | |
|
62 | 54 | |
|
63 | // verbose error information | |
|
64 | // tslint:disable-next-line | |
|
65 | console.error(e); | |
|
66 | t.fail(e); | |
|
55 | export function run() { | |
|
67 | 56 | |
|
68 | } finally { | |
|
69 | t.end(); | |
|
70 | destroy(writer); | |
|
71 | destroy(h); | |
|
72 | 57 | } |
|
73 | }); | |
|
74 | } |
@@ -1,10 +1,16 | |||
|
1 |
import |
|
|
1 | import { test } from "./TestTraits"; | |
|
2 | import { delay } from "@implab/core-amd/safe"; | |
|
3 | import { assert } from "chai"; | |
|
2 | 4 | |
|
3 |
t |
|
|
4 | t.pass("sync assert"); | |
|
5 | test("simple", (ok, fail, log) => { | |
|
5 | 6 | setTimeout(() => { |
|
6 | t.pass("async assert"); | |
|
7 | 7 | // end should be called after the last assertion |
|
8 | t.end(); | |
|
8 | ok("async assert"); | |
|
9 | 9 | }, 100); |
|
10 | 10 | }); |
|
11 | ||
|
12 | test("simple", async log => { | |
|
13 | await delay(0); | |
|
14 | ||
|
15 | assert.ok(true); // everything is fine | |
|
16 | }); |
@@ -1,11 +1,12 | |||
|
1 | 1 | { |
|
2 | 2 | "compilerOptions": { |
|
3 | 3 | "moduleResolution": "node", |
|
4 | 4 | "noEmitOnError": true, |
|
5 | "strict": true, | |
|
5 | 6 | "types": [], |
|
6 | 7 | "experimentalDecorators": true, |
|
7 | 8 | "jsxFactory": "createElement", |
|
8 | 9 | "jsx": "react", |
|
9 | 10 | "lib": ["es5", "es2015.promise", "es2015.symbol", "es2015.iterable", "dom", "scripthost"] |
|
10 | 11 | } |
|
11 | 12 | } No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now