@biorate/migrations 0.29.1 → 0.30.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/27be8272-d54d-4ecc-8b88-856801fa6b0f.json +1 -0
- package/.nyc_output/processinfo/{5c56cd30-e43b-4828-be0a-b7218c12d650.json → 27be8272-d54d-4ecc-8b88-856801fa6b0f.json} +1 -1
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +35 -0
- package/coverage/lcov-report/file:/www/biorate/core/packages/@biorate/migrations/src/default.config.ts.html +118 -0
- package/coverage/lcov-report/file:/www/biorate/core/packages/@biorate/migrations/src/index.html +146 -0
- package/coverage/lcov-report/file:/www/biorate/core/packages/@biorate/migrations/src/index.ts.html +118 -0
- package/coverage/lcov-report/file:/www/biorate/core/packages/@biorate/migrations/src/root.ts.html +118 -0
- package/coverage/lcov-report/index.html +3 -3
- package/coverage/lcov-report/src/default.config.ts.html +130 -0
- package/coverage/lcov-report/src/index.html +146 -0
- package/coverage/lcov-report/src/index.ts.html +121 -0
- package/coverage/lcov-report/src/migrations/index.html +146 -0
- package/coverage/lcov-report/src/migrations/index.ts.html +88 -0
- package/coverage/lcov-report/src/migrations/migrations.ts.html +199 -0
- package/coverage/lcov-report/src/migrations/sequelize.ts.html +211 -0
- package/coverage/lcov-report/src/root.ts.html +130 -0
- package/coverage/lcov-report/src/types/index.html +146 -0
- package/coverage/lcov-report/src/types/index.ts.html +88 -0
- package/coverage/lcov-report/src/types/migration.ts.html +238 -0
- package/coverage/lcov-report/src/types/sequelize.ts.html +211 -0
- package/coverage/lcov-report/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.html +146 -0
- package/coverage/lcov-report/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.ts.html +118 -0
- package/coverage/lcov-report/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/migration.ts.html +118 -0
- package/coverage/lcov-report/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/sequelize.ts.html +118 -0
- package/coverage/lcov.info +6 -6
- package/dist/src/default.config.js +16 -0
- package/dist/src/default.config.js.map +1 -0
- package/dist/src/errors.js +3 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/index.js +26 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/interfaces.js +1 -0
- package/dist/src/interfaces.js.map +1 -0
- package/dist/src/root.js +39 -0
- package/dist/src/root.js.map +1 -0
- package/dist/src/types/index.js +18 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/types/migration.js +48 -0
- package/dist/src/types/migration.js.map +1 -0
- package/dist/src/types/sequelize.js +51 -0
- package/dist/src/types/sequelize.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/tests/__mocks__/index.ts +32 -0
- package/.nyc_output/5c56cd30-e43b-4828-be0a-b7218c12d650.json +0 -1
@@ -0,0 +1,118 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.ts</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../../../../../../../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../../../../../../../../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../../../../../../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../../../../../../../../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../../../../../../../../../index.html">All files</a> / <a href="index.html">types/file:/www/biorate/core/packages/@biorate/migrations/src/types</a> index.ts</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">100% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>1/1</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">100% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>0/0</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">100% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>1/1</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
<template id="filterTemplate">
|
58
|
+
<div class="quiet">
|
59
|
+
Filter:
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
61
|
+
</div>
|
62
|
+
</template>
|
63
|
+
</div>
|
64
|
+
<div class='status-line high'></div>
|
65
|
+
<pre><table class="coverage">
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
|
78
|
+
<span class="cline-any cline-no">0</span>
|
79
|
+
<span class="cline-any cline-no">0</span>
|
80
|
+
<span class="cline-any cline-no">0</span>
|
81
|
+
<span class="cline-any cline-no">0</span>
|
82
|
+
<span class="cline-any cline-no">0</span>
|
83
|
+
<span class="cline-any cline-no">0</span>
|
84
|
+
<span class="cline-any cline-no">0</span>
|
85
|
+
<span class="cline-any cline-no">0</span>
|
86
|
+
<span class="cline-any cline-no">0</span>
|
87
|
+
<span class="cline-any cline-no">0</span>
|
88
|
+
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.ts')
|
89
|
+
Error: Unable to lookup source: /www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.ts')
|
90
|
+
at Context.defaultSourceLookup [as sourceFinder] (/www/biorate/core/node_modules/istanbul-lib-report/lib/context.js:17:15)
|
91
|
+
at Context.getSource (/www/biorate/core/node_modules/istanbul-lib-report/lib/context.js:71:21)
|
92
|
+
at annotateSourceCode (/www/biorate/core/node_modules/istanbul-reports/lib/html/annotator.js:232:40)
|
93
|
+
at HtmlReport.onDetail (/www/biorate/core/node_modules/istanbul-reports/lib/html/index.js:414:33)
|
94
|
+
at LcovReport.<computed> [as onDetail] (/www/biorate/core/node_modules/istanbul-reports/lib/lcov/index.js:28:23)
|
95
|
+
at Visitor.value (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:38:38)
|
96
|
+
at ReportNode.visit (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:88:21)
|
97
|
+
at /www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:92:19
|
98
|
+
at Array.forEach (<anonymous>)
|
99
|
+
at ReportNode.visit (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:91:28)</pre></td></tr></table></pre>
|
100
|
+
|
101
|
+
<div class='push'></div><!-- for sticky footer -->
|
102
|
+
</div><!-- /wrapper -->
|
103
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
104
|
+
Code coverage generated by
|
105
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
106
|
+
at Thu Jun 23 2022 12:39:17 GMT+0300 (Москва, стандартное время)
|
107
|
+
</div>
|
108
|
+
<script src="../../../../../../../../../../prettify.js"></script>
|
109
|
+
<script>
|
110
|
+
window.onload = function () {
|
111
|
+
prettyPrint();
|
112
|
+
};
|
113
|
+
</script>
|
114
|
+
<script src="../../../../../../../../../../sorter.js"></script>
|
115
|
+
<script src="../../../../../../../../../../block-navigation.js"></script>
|
116
|
+
</body>
|
117
|
+
</html>
|
118
|
+
|
@@ -0,0 +1,118 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for types/file:/www/biorate/core/packages/@biorate/migrations/src/types/migration.ts</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../../../../../../../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../../../../../../../../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../../../../../../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../../../../../../../../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../../../../../../../../../index.html">All files</a> / <a href="index.html">types/file:/www/biorate/core/packages/@biorate/migrations/src/types</a> migration.ts</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">100% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>15/15</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">100% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>6/6</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">100% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>12/12</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
<template id="filterTemplate">
|
58
|
+
<div class="quiet">
|
59
|
+
Filter:
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
61
|
+
</div>
|
62
|
+
</template>
|
63
|
+
</div>
|
64
|
+
<div class='status-line high'></div>
|
65
|
+
<pre><table class="coverage">
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
|
78
|
+
<span class="cline-any cline-no">0</span>
|
79
|
+
<span class="cline-any cline-no">0</span>
|
80
|
+
<span class="cline-any cline-no">0</span>
|
81
|
+
<span class="cline-any cline-no">0</span>
|
82
|
+
<span class="cline-any cline-no">0</span>
|
83
|
+
<span class="cline-any cline-no">0</span>
|
84
|
+
<span class="cline-any cline-no">0</span>
|
85
|
+
<span class="cline-any cline-no">0</span>
|
86
|
+
<span class="cline-any cline-no">0</span>
|
87
|
+
<span class="cline-any cline-no">0</span>
|
88
|
+
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/migration.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/migration.ts')
|
89
|
+
Error: Unable to lookup source: /www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/migration.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/migration.ts')
|
90
|
+
at Context.defaultSourceLookup [as sourceFinder] (/www/biorate/core/node_modules/istanbul-lib-report/lib/context.js:17:15)
|
91
|
+
at Context.getSource (/www/biorate/core/node_modules/istanbul-lib-report/lib/context.js:71:21)
|
92
|
+
at annotateSourceCode (/www/biorate/core/node_modules/istanbul-reports/lib/html/annotator.js:232:40)
|
93
|
+
at HtmlReport.onDetail (/www/biorate/core/node_modules/istanbul-reports/lib/html/index.js:414:33)
|
94
|
+
at LcovReport.<computed> [as onDetail] (/www/biorate/core/node_modules/istanbul-reports/lib/lcov/index.js:28:23)
|
95
|
+
at Visitor.value (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:38:38)
|
96
|
+
at ReportNode.visit (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:88:21)
|
97
|
+
at /www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:92:19
|
98
|
+
at Array.forEach (<anonymous>)
|
99
|
+
at ReportNode.visit (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:91:28)</pre></td></tr></table></pre>
|
100
|
+
|
101
|
+
<div class='push'></div><!-- for sticky footer -->
|
102
|
+
</div><!-- /wrapper -->
|
103
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
104
|
+
Code coverage generated by
|
105
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
106
|
+
at Thu Jun 23 2022 12:39:17 GMT+0300 (Москва, стандартное время)
|
107
|
+
</div>
|
108
|
+
<script src="../../../../../../../../../../prettify.js"></script>
|
109
|
+
<script>
|
110
|
+
window.onload = function () {
|
111
|
+
prettyPrint();
|
112
|
+
};
|
113
|
+
</script>
|
114
|
+
<script src="../../../../../../../../../../sorter.js"></script>
|
115
|
+
<script src="../../../../../../../../../../block-navigation.js"></script>
|
116
|
+
</body>
|
117
|
+
</html>
|
118
|
+
|
@@ -0,0 +1,118 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for types/file:/www/biorate/core/packages/@biorate/migrations/src/types/sequelize.ts</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../../../../../../../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../../../../../../../../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../../../../../../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../../../../../../../../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../../../../../../../../../index.html">All files</a> / <a href="index.html">types/file:/www/biorate/core/packages/@biorate/migrations/src/types</a> sequelize.ts</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">91.3% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>21/23</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">50% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>2/4</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">100% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>2/2</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">100% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>21/21</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
<template id="filterTemplate">
|
58
|
+
<div class="quiet">
|
59
|
+
Filter:
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
61
|
+
</div>
|
62
|
+
</template>
|
63
|
+
</div>
|
64
|
+
<div class='status-line high'></div>
|
65
|
+
<pre><table class="coverage">
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
|
78
|
+
<span class="cline-any cline-no">0</span>
|
79
|
+
<span class="cline-any cline-no">0</span>
|
80
|
+
<span class="cline-any cline-no">0</span>
|
81
|
+
<span class="cline-any cline-no">0</span>
|
82
|
+
<span class="cline-any cline-no">0</span>
|
83
|
+
<span class="cline-any cline-no">0</span>
|
84
|
+
<span class="cline-any cline-no">0</span>
|
85
|
+
<span class="cline-any cline-no">0</span>
|
86
|
+
<span class="cline-any cline-no">0</span>
|
87
|
+
<span class="cline-any cline-no">0</span>
|
88
|
+
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/sequelize.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/sequelize.ts')
|
89
|
+
Error: Unable to lookup source: /www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/sequelize.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/migrations/src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/sequelize.ts')
|
90
|
+
at Context.defaultSourceLookup [as sourceFinder] (/www/biorate/core/node_modules/istanbul-lib-report/lib/context.js:17:15)
|
91
|
+
at Context.getSource (/www/biorate/core/node_modules/istanbul-lib-report/lib/context.js:71:21)
|
92
|
+
at annotateSourceCode (/www/biorate/core/node_modules/istanbul-reports/lib/html/annotator.js:232:40)
|
93
|
+
at HtmlReport.onDetail (/www/biorate/core/node_modules/istanbul-reports/lib/html/index.js:414:33)
|
94
|
+
at LcovReport.<computed> [as onDetail] (/www/biorate/core/node_modules/istanbul-reports/lib/lcov/index.js:28:23)
|
95
|
+
at Visitor.value (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:38:38)
|
96
|
+
at ReportNode.visit (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:88:21)
|
97
|
+
at /www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:92:19
|
98
|
+
at Array.forEach (<anonymous>)
|
99
|
+
at ReportNode.visit (/www/biorate/core/node_modules/istanbul-lib-report/lib/tree.js:91:28)</pre></td></tr></table></pre>
|
100
|
+
|
101
|
+
<div class='push'></div><!-- for sticky footer -->
|
102
|
+
</div><!-- /wrapper -->
|
103
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
104
|
+
Code coverage generated by
|
105
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
106
|
+
at Thu Jun 23 2022 12:39:17 GMT+0300 (Москва, стандартное время)
|
107
|
+
</div>
|
108
|
+
<script src="../../../../../../../../../../prettify.js"></script>
|
109
|
+
<script>
|
110
|
+
window.onload = function () {
|
111
|
+
prettyPrint();
|
112
|
+
};
|
113
|
+
</script>
|
114
|
+
<script src="../../../../../../../../../../sorter.js"></script>
|
115
|
+
<script src="../../../../../../../../../../block-navigation.js"></script>
|
116
|
+
</body>
|
117
|
+
</html>
|
118
|
+
|
package/coverage/lcov.info
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
TN:
|
2
|
-
SF:src/default.config.ts
|
2
|
+
SF:src/file:/www/biorate/core/packages/@biorate/migrations/src/default.config.ts
|
3
3
|
FNF:0
|
4
4
|
FNH:0
|
5
5
|
DA:1,1
|
@@ -18,7 +18,7 @@ BRF:0
|
|
18
18
|
BRH:0
|
19
19
|
end_of_record
|
20
20
|
TN:
|
21
|
-
SF:src/index.ts
|
21
|
+
SF:src/file:/www/biorate/core/packages/@biorate/migrations/src/index.ts
|
22
22
|
FNF:0
|
23
23
|
FNH:0
|
24
24
|
DA:3,1
|
@@ -36,7 +36,7 @@ BRF:4
|
|
36
36
|
BRH:2
|
37
37
|
end_of_record
|
38
38
|
TN:
|
39
|
-
SF:src/root.ts
|
39
|
+
SF:src/file:/www/biorate/core/packages/@biorate/migrations/src/root.ts
|
40
40
|
FN:10,(anonymous_2)
|
41
41
|
FNF:1
|
42
42
|
FNH:1
|
@@ -55,7 +55,7 @@ BRF:0
|
|
55
55
|
BRH:0
|
56
56
|
end_of_record
|
57
57
|
TN:
|
58
|
-
SF:src/types/index.ts
|
58
|
+
SF:src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/index.ts
|
59
59
|
FNF:0
|
60
60
|
FNH:0
|
61
61
|
DA:1,1
|
@@ -65,7 +65,7 @@ BRF:0
|
|
65
65
|
BRH:0
|
66
66
|
end_of_record
|
67
67
|
TN:
|
68
|
-
SF:src/types/migration.ts
|
68
|
+
SF:src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/migration.ts
|
69
69
|
FN:14,(anonymous_2)
|
70
70
|
FN:20,(anonymous_3)
|
71
71
|
FN:21,(anonymous_4)
|
@@ -98,7 +98,7 @@ BRF:0
|
|
98
98
|
BRH:0
|
99
99
|
end_of_record
|
100
100
|
TN:
|
101
|
-
SF:src/types/sequelize.ts
|
101
|
+
SF:src/types/file:/www/biorate/core/packages/@biorate/migrations/src/types/sequelize.ts
|
102
102
|
FN:14,(anonymous_2)
|
103
103
|
FN:32,(anonymous_3)
|
104
104
|
FNF:2
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const inversion_1 = require("@biorate/inversion");
|
4
|
+
const file_config_1 = require("@biorate/file-config");
|
5
|
+
const sequelize_1 = require("@biorate/sequelize");
|
6
|
+
const _1 = require("./");
|
7
|
+
const Migrations = require("./types");
|
8
|
+
inversion_1.container.bind(inversion_1.Types.Config).to(file_config_1.FileConfig).inSingletonScope();
|
9
|
+
inversion_1.container
|
10
|
+
.bind(inversion_1.Types.Sequelize)
|
11
|
+
.to(sequelize_1.SequelizeConnector)
|
12
|
+
.inSingletonScope();
|
13
|
+
inversion_1.container.bind(Migrations.Sequelize).toSelf().inSingletonScope();
|
14
|
+
inversion_1.container.bind(_1.Root).toSelf().inSingletonScope();
|
15
|
+
inversion_1.container.get(_1.Root).$run().catch(console.error);
|
16
|
+
//# sourceMappingURL=default.config.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"default.config.js","sourceRoot":"","sources":["../../src/default.config.ts"],"names":[],"mappings":";;AAAA,kDAAsD;AAEtD,sDAAkD;AAClD,kDAA8E;AAC9E,yBAA0B;AAC1B,sCAAsC;AAEtC,qBAAS,CAAC,IAAI,CAAU,iBAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,wBAAU,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACxE,qBAAS;KACN,IAAI,CAAuB,iBAAK,CAAC,SAAS,CAAC;KAC3C,EAAE,CAAC,8BAAkB,CAAC;KACtB,gBAAgB,EAAE,CAAC;AACtB,qBAAS,CAAC,IAAI,CAAuB,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;AACvF,qBAAS,CAAC,IAAI,CAAO,OAAI,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;AACvD,qBAAS,CAAC,GAAG,CAAO,OAAI,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./root"), exports);
|
18
|
+
__exportStar(require("./types/migration"), exports);
|
19
|
+
__exportStar(require("./types"), exports);
|
20
|
+
require(process.env.MIGRATIONS_CONFIG
|
21
|
+
? process.cwd() + process.env.MIGRATIONS_CONFIG
|
22
|
+
: './default.config');
|
23
|
+
require(process.env.MIGRATIONS_ROOT
|
24
|
+
? process.cwd() + process.env.MIGRATIONS_ROOT
|
25
|
+
: './root');
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,yCAAuB;AACvB,oDAAkC;AAClC,0CAAwB;AAExB,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB;IACnC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB;IAC/C,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACxB,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe;IACjC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe;IAC7C,CAAC,CAAC,QAAQ,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=interfaces.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/src/root.js
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Root = void 0;
|
13
|
+
const inversion_1 = require("@biorate/inversion");
|
14
|
+
const Migrations = require("./types");
|
15
|
+
let Root = class Root extends (0, inversion_1.Core)() {
|
16
|
+
async initialize() {
|
17
|
+
process.exit();
|
18
|
+
}
|
19
|
+
};
|
20
|
+
__decorate([
|
21
|
+
(0, inversion_1.inject)(inversion_1.Types.Config),
|
22
|
+
__metadata("design:type", Object)
|
23
|
+
], Root.prototype, "config", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, inversion_1.inject)(Migrations.Sequelize),
|
26
|
+
__metadata("design:type", Migrations.Sequelize)
|
27
|
+
], Root.prototype, "sequelize", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, inversion_1.init)(),
|
30
|
+
__metadata("design:type", Function),
|
31
|
+
__metadata("design:paramtypes", []),
|
32
|
+
__metadata("design:returntype", Promise)
|
33
|
+
], Root.prototype, "initialize", null);
|
34
|
+
Root = __decorate([
|
35
|
+
(0, inversion_1.injectable)()
|
36
|
+
], Root);
|
37
|
+
exports.Root = Root;
|
38
|
+
inversion_1.Core.log = null;
|
39
|
+
//# sourceMappingURL=root.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../src/root.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,kDAAsF;AACtF,sCAAsC;AAGtC,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,IAAA,gBAAI,GAAE;IAIZ,KAAK,CAAC,UAAU;QAChC,OAAO,CAAC,IAAI,EAAE,CAAC;IACjB,CAAC;CACF,CAAA;AANuB;IAArB,IAAA,kBAAM,EAAC,iBAAK,CAAC,MAAM,CAAC;;oCAAwB;AACf;IAA7B,IAAA,kBAAM,EAAC,UAAU,CAAC,SAAS,CAAC;8BAAmB,UAAU,CAAC,SAAS;uCAAC;AAE7D;IAAP,IAAA,gBAAI,GAAE;;;;sCAEN;AANU,IAAI;IADhB,IAAA,sBAAU,GAAE;GACA,IAAI,CAOhB;AAPY,oBAAI;AASjB,gBAAI,CAAC,GAAG,GAAG,IAAI,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./sequelize"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Migration = void 0;
|
13
|
+
const fs_1 = require("fs");
|
14
|
+
const tools_1 = require("@biorate/tools");
|
15
|
+
const inversion_1 = require("@biorate/inversion");
|
16
|
+
let Migration = class Migration {
|
17
|
+
get type() {
|
18
|
+
return this.constructor.name.toLowerCase();
|
19
|
+
}
|
20
|
+
async scan(...args) {
|
21
|
+
return (await fs_1.promises.readdir(this.path(...args))).map((item) => this.path(...args, item));
|
22
|
+
}
|
23
|
+
path(...args) {
|
24
|
+
return tools_1.path.create(process.cwd(), this.config.get('migrations.directory', 'migrations'), this.type, ...args);
|
25
|
+
}
|
26
|
+
log(...args) {
|
27
|
+
console.info(this.type, ...args, 'up!');
|
28
|
+
}
|
29
|
+
async initialize() {
|
30
|
+
console.log(this.constructor.name);
|
31
|
+
await this.process();
|
32
|
+
}
|
33
|
+
};
|
34
|
+
__decorate([
|
35
|
+
(0, inversion_1.inject)(inversion_1.Types.Config),
|
36
|
+
__metadata("design:type", Object)
|
37
|
+
], Migration.prototype, "config", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, inversion_1.init)(),
|
40
|
+
__metadata("design:type", Function),
|
41
|
+
__metadata("design:paramtypes", []),
|
42
|
+
__metadata("design:returntype", Promise)
|
43
|
+
], Migration.prototype, "initialize", null);
|
44
|
+
Migration = __decorate([
|
45
|
+
(0, inversion_1.injectable)()
|
46
|
+
], Migration);
|
47
|
+
exports.Migration = Migration;
|
48
|
+
//# sourceMappingURL=migration.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"migration.js","sourceRoot":"","sources":["../../../src/types/migration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAoC;AACpC,0CAAsC;AACtC,kDAAqE;AAMrE,IAAsB,SAAS,GAA/B,MAAsB,SAAS;IAK7B,IAAc,IAAI;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC7C,CAAC;IAIS,KAAK,CAAC,IAAI,CAAC,GAAG,IAAc;QACpC,OAAO,CAAC,MAAM,aAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IACxF,CAAC;IAIS,IAAI,CAAC,GAAG,IAAc;QAC9B,OAAO,YAAI,CAAC,MAAM,CAChB,OAAO,CAAC,GAAG,EAAE,EACb,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,sBAAsB,EAAE,YAAY,CAAC,EAC7D,IAAI,CAAC,IAAI,EACT,GAAG,IAAI,CACR,CAAC;IACJ,CAAC;IAIS,GAAG,CAAC,GAAG,IAAc;QAC7B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAIiB,KAAK,CAAC,UAAU;QAChC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACnC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;CAKF,CAAA;AAzCuB;IAArB,IAAA,kBAAM,EAAC,iBAAK,CAAC,MAAM,CAAC;;yCAA2B;AAiCxC;IAAP,IAAA,gBAAI,GAAE;;;;2CAGN;AArCmB,SAAS;IAD9B,IAAA,sBAAU,GAAE;GACS,SAAS,CA0C9B;AA1CqB,8BAAS"}
|