@ellipticltd/aml-utils 0.1.0 → 0.1.1-ts.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/aml-utils.iml +12 -0
- package/.idea/codeStyles/Project.xml +52 -0
- package/.idea/dbnavigator.xml +456 -0
- package/.idea/encodings.xml +4 -0
- package/.idea/markdown-navigator/profiles_settings.xml +3 -0
- package/.idea/markdown-navigator.xml +86 -0
- package/.idea/misc.xml +46 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +523 -0
- package/dist/errors.d.ts +9 -0
- package/dist/errors.js +32 -0
- package/dist/formatting.d.ts +1 -0
- package/dist/formatting.js +25 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +9 -0
- package/dist/middleware.d.ts +1 -0
- package/dist/middleware.js +23 -0
- package/dist/ormHelpers.d.ts +1 -0
- package/dist/ormHelpers.js +25 -0
- package/dist/test.d.ts +1 -0
- package/dist/test.js +2 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +207 -0
- package/dist/validations.d.ts +49 -0
- package/dist/validations.js +238 -0
- package/package.json +15 -5
- package/tsconfig.json +80 -0
- package/tslint.json +18 -0
- package/index.js +0 -8
- package/lib/errors.js +0 -53
- package/lib/formatting.js +0 -18
- package/lib/middleware.js +0 -25
- package/lib/ormHelpers.js +0 -19
- package/lib/types.js +0 -211
- package/lib/validations.js +0 -236
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="JavaScriptSettings">
|
|
4
|
+
<option name="languageLevel" value="ES6" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectInspectionProfilesVisibleTreeState">
|
|
7
|
+
<entry key="Project Default">
|
|
8
|
+
<profile-state>
|
|
9
|
+
<expanded-state>
|
|
10
|
+
<State>
|
|
11
|
+
<id />
|
|
12
|
+
</State>
|
|
13
|
+
<State>
|
|
14
|
+
<id>BashSupport</id>
|
|
15
|
+
</State>
|
|
16
|
+
<State>
|
|
17
|
+
<id>CSS</id>
|
|
18
|
+
</State>
|
|
19
|
+
<State>
|
|
20
|
+
<id>Code style issuesJavaScript</id>
|
|
21
|
+
</State>
|
|
22
|
+
<State>
|
|
23
|
+
<id>General</id>
|
|
24
|
+
</State>
|
|
25
|
+
<State>
|
|
26
|
+
<id>Haml</id>
|
|
27
|
+
</State>
|
|
28
|
+
<State>
|
|
29
|
+
<id>JavaScript</id>
|
|
30
|
+
</State>
|
|
31
|
+
<State>
|
|
32
|
+
<id>Probable bugsCSS</id>
|
|
33
|
+
</State>
|
|
34
|
+
<State>
|
|
35
|
+
<id>Probable bugsJavaScript</id>
|
|
36
|
+
</State>
|
|
37
|
+
</expanded-state>
|
|
38
|
+
<selected-state>
|
|
39
|
+
<State>
|
|
40
|
+
<id>AngularJS</id>
|
|
41
|
+
</State>
|
|
42
|
+
</selected-state>
|
|
43
|
+
</profile-state>
|
|
44
|
+
</entry>
|
|
45
|
+
</component>
|
|
46
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/aml-utils.iml" filepath="$PROJECT_DIR$/.idea/aml-utils.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="b172b68c-254f-482b-bab3-c5c7f6dba7a7" name="Default Changelist" comment="">
|
|
5
|
+
<change beforePath="$PROJECT_DIR$/.npmignore" beforeDir="false" afterPath="$PROJECT_DIR$/.npmignore" afterDir="false" />
|
|
6
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
7
|
+
</list>
|
|
8
|
+
<ignored path="$PROJECT_DIR$/.tmp/" />
|
|
9
|
+
<ignored path="$PROJECT_DIR$/temp/" />
|
|
10
|
+
<ignored path="$PROJECT_DIR$/tmp/" />
|
|
11
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
|
12
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
13
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
14
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
15
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
16
|
+
</component>
|
|
17
|
+
<component name="FileEditorManager">
|
|
18
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
|
19
|
+
<file pinned="false" current-in-tab="true">
|
|
20
|
+
<entry file="file://$PROJECT_DIR$/package.json">
|
|
21
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
22
|
+
<state relative-caret-position="52">
|
|
23
|
+
<caret line="2" column="24" selection-start-line="2" selection-start-column="24" selection-end-line="2" selection-end-column="24" />
|
|
24
|
+
</state>
|
|
25
|
+
</provider>
|
|
26
|
+
</entry>
|
|
27
|
+
</file>
|
|
28
|
+
<file pinned="false" current-in-tab="false">
|
|
29
|
+
<entry file="file://$PROJECT_DIR$/dist/index.js">
|
|
30
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
31
|
+
<state relative-caret-position="208">
|
|
32
|
+
<caret line="8" column="2" lean-forward="true" selection-start-line="8" selection-start-column="2" selection-end-line="8" selection-end-column="2" />
|
|
33
|
+
</state>
|
|
34
|
+
</provider>
|
|
35
|
+
</entry>
|
|
36
|
+
</file>
|
|
37
|
+
<file pinned="false" current-in-tab="false">
|
|
38
|
+
<entry file="file://$PROJECT_DIR$/.npmignore">
|
|
39
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
40
|
+
<state relative-caret-position="104">
|
|
41
|
+
<caret line="4" column="4" lean-forward="true" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="4" />
|
|
42
|
+
</state>
|
|
43
|
+
</provider>
|
|
44
|
+
</entry>
|
|
45
|
+
</file>
|
|
46
|
+
<file pinned="false" current-in-tab="false">
|
|
47
|
+
<entry file="file://$PROJECT_DIR$/tsconfig.json">
|
|
48
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
49
|
+
<state relative-caret-position="312">
|
|
50
|
+
<caret line="12" column="22" selection-start-line="12" selection-start-column="22" selection-end-line="12" selection-end-column="22" />
|
|
51
|
+
</state>
|
|
52
|
+
</provider>
|
|
53
|
+
</entry>
|
|
54
|
+
</file>
|
|
55
|
+
<file pinned="false" current-in-tab="false">
|
|
56
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
57
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
58
|
+
<state relative-caret-position="78">
|
|
59
|
+
<caret line="3" column="4" lean-forward="true" selection-start-line="3" selection-start-column="4" selection-end-line="3" selection-end-column="4" />
|
|
60
|
+
</state>
|
|
61
|
+
</provider>
|
|
62
|
+
</entry>
|
|
63
|
+
</file>
|
|
64
|
+
<file pinned="false" current-in-tab="false">
|
|
65
|
+
<entry file="file://$PROJECT_DIR$/test/errors.spec.coffee">
|
|
66
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
67
|
+
<state relative-caret-position="182">
|
|
68
|
+
<caret line="7" column="23" lean-forward="true" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
|
69
|
+
</state>
|
|
70
|
+
</provider>
|
|
71
|
+
</entry>
|
|
72
|
+
</file>
|
|
73
|
+
<file pinned="false" current-in-tab="false">
|
|
74
|
+
<entry file="file://$PROJECT_DIR$/lib/errors.ts">
|
|
75
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
76
|
+
<state relative-caret-position="104">
|
|
77
|
+
<caret line="4" column="7" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
|
|
78
|
+
</state>
|
|
79
|
+
</provider>
|
|
80
|
+
</entry>
|
|
81
|
+
</file>
|
|
82
|
+
<file pinned="false" current-in-tab="false">
|
|
83
|
+
<entry file="file://$PROJECT_DIR$/test/formatting.spec.coffee">
|
|
84
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
85
|
+
<state>
|
|
86
|
+
<caret column="29" selection-start-column="29" selection-end-column="29" />
|
|
87
|
+
</state>
|
|
88
|
+
</provider>
|
|
89
|
+
</entry>
|
|
90
|
+
</file>
|
|
91
|
+
<file pinned="false" current-in-tab="false">
|
|
92
|
+
<entry file="file://$PROJECT_DIR$/test/index.coffee">
|
|
93
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
94
|
+
</entry>
|
|
95
|
+
</file>
|
|
96
|
+
</leaf>
|
|
97
|
+
</component>
|
|
98
|
+
<component name="FindInProjectRecents">
|
|
99
|
+
<findStrings>
|
|
100
|
+
<find>.trim</find>
|
|
101
|
+
<find>_tryCheck</find>
|
|
102
|
+
<find>isDate</find>
|
|
103
|
+
<find>exclude</find>
|
|
104
|
+
</findStrings>
|
|
105
|
+
</component>
|
|
106
|
+
<component name="Git.Settings">
|
|
107
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
108
|
+
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
109
|
+
<map>
|
|
110
|
+
<entry key="$PROJECT_DIR$" value="EN-831-bech32-addresses" />
|
|
111
|
+
</map>
|
|
112
|
+
</option>
|
|
113
|
+
</component>
|
|
114
|
+
<component name="IdeDocumentHistory">
|
|
115
|
+
<option name="CHANGED_PATHS">
|
|
116
|
+
<list>
|
|
117
|
+
<option value="$PROJECT_DIR$/lib/validations.js" />
|
|
118
|
+
<option value="$PROJECT_DIR$/lib/index.js" />
|
|
119
|
+
<option value="$PROJECT_DIR$/lib/formatting.ts" />
|
|
120
|
+
<option value="$PROJECT_DIR$/lib/middleware.ts" />
|
|
121
|
+
<option value="$PROJECT_DIR$/lib/ormHelpers.ts" />
|
|
122
|
+
<option value="$PROJECT_DIR$/lib/types.d.ts" />
|
|
123
|
+
<option value="$PROJECT_DIR$/lib/validations.ts" />
|
|
124
|
+
<option value="$PROJECT_DIR$/lib/types.ts" />
|
|
125
|
+
<option value="$PROJECT_DIR$/lib/test.ts" />
|
|
126
|
+
<option value="$PROJECT_DIR$/tsconfig.json" />
|
|
127
|
+
<option value="$PROJECT_DIR$/test/errors.spec.coffee" />
|
|
128
|
+
<option value="$PROJECT_DIR$/test/formatting.spec.coffee" />
|
|
129
|
+
<option value="$PROJECT_DIR$/test/ormHelpers.spec.coffee" />
|
|
130
|
+
<option value="$PROJECT_DIR$/lib/errors.ts" />
|
|
131
|
+
<option value="$PROJECT_DIR$/.gitignore" />
|
|
132
|
+
<option value="$PROJECT_DIR$/.npmignore" />
|
|
133
|
+
<option value="$PROJECT_DIR$/package.json" />
|
|
134
|
+
</list>
|
|
135
|
+
</option>
|
|
136
|
+
</component>
|
|
137
|
+
<component name="JsFlowSettings">
|
|
138
|
+
<service-enabled>true</service-enabled>
|
|
139
|
+
<exe-path />
|
|
140
|
+
<other-services-enabled>true</other-services-enabled>
|
|
141
|
+
<auto-save>true</auto-save>
|
|
142
|
+
</component>
|
|
143
|
+
<component name="ProjectFrameBounds" extendedState="6" fullScreen="true">
|
|
144
|
+
<option name="x" value="714" />
|
|
145
|
+
<option name="y" value="-1440" />
|
|
146
|
+
<option name="width" value="2560" />
|
|
147
|
+
<option name="height" value="1440" />
|
|
148
|
+
</component>
|
|
149
|
+
<component name="ProjectView">
|
|
150
|
+
<navigator proportions="" version="1">
|
|
151
|
+
<foldersAlwaysOnTop value="true" />
|
|
152
|
+
</navigator>
|
|
153
|
+
<panes>
|
|
154
|
+
<pane id="Scope" />
|
|
155
|
+
<pane id="ProjectPane">
|
|
156
|
+
<subPane>
|
|
157
|
+
<expand>
|
|
158
|
+
<path>
|
|
159
|
+
<item name="aml-utils" type="b2602c69:ProjectViewProjectNode" />
|
|
160
|
+
<item name="aml-utils" type="462c0819:PsiDirectoryNode" />
|
|
161
|
+
</path>
|
|
162
|
+
<path>
|
|
163
|
+
<item name="aml-utils" type="b2602c69:ProjectViewProjectNode" />
|
|
164
|
+
<item name="aml-utils" type="462c0819:PsiDirectoryNode" />
|
|
165
|
+
<item name="dist" type="462c0819:PsiDirectoryNode" />
|
|
166
|
+
</path>
|
|
167
|
+
</expand>
|
|
168
|
+
<select />
|
|
169
|
+
</subPane>
|
|
170
|
+
</pane>
|
|
171
|
+
</panes>
|
|
172
|
+
</component>
|
|
173
|
+
<component name="PropertiesComponent">
|
|
174
|
+
<property name="JavaScriptWeakerCompletionTypeGuess" value="true" />
|
|
175
|
+
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
|
176
|
+
<property name="TF_FMT" value="false" />
|
|
177
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
178
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
179
|
+
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
|
180
|
+
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
|
181
|
+
<property name="nodejs_package_manager_path" value="npm" />
|
|
182
|
+
<property name="settings.editor.selected.configurable" value="preferences.keymap" />
|
|
183
|
+
<property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
|
|
184
|
+
</component>
|
|
185
|
+
<component name="RecentsManager">
|
|
186
|
+
<key name="MoveFile.RECENT_KEYS">
|
|
187
|
+
<recent name="$PROJECT_DIR$" />
|
|
188
|
+
<recent name="$PROJECT_DIR$/lib" />
|
|
189
|
+
</key>
|
|
190
|
+
<key name="CopyFile.RECENT_KEYS">
|
|
191
|
+
<recent name="$PROJECT_DIR$" />
|
|
192
|
+
</key>
|
|
193
|
+
</component>
|
|
194
|
+
<component name="RunDashboard">
|
|
195
|
+
<option name="ruleStates">
|
|
196
|
+
<list>
|
|
197
|
+
<RuleState>
|
|
198
|
+
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
|
199
|
+
</RuleState>
|
|
200
|
+
<RuleState>
|
|
201
|
+
<option name="name" value="StatusDashboardGroupingRule" />
|
|
202
|
+
</RuleState>
|
|
203
|
+
</list>
|
|
204
|
+
</option>
|
|
205
|
+
</component>
|
|
206
|
+
<component name="SvnConfiguration">
|
|
207
|
+
<configuration />
|
|
208
|
+
</component>
|
|
209
|
+
<component name="TaskManager">
|
|
210
|
+
<task active="true" id="Default" summary="Default task">
|
|
211
|
+
<changelist id="b172b68c-254f-482b-bab3-c5c7f6dba7a7" name="Default Changelist" comment="" />
|
|
212
|
+
<created>1547477589134</created>
|
|
213
|
+
<option name="number" value="Default" />
|
|
214
|
+
<option name="presentableId" value="Default" />
|
|
215
|
+
<updated>1547477589134</updated>
|
|
216
|
+
<workItem from="1547477590990" duration="2447000" />
|
|
217
|
+
<workItem from="1547656804173" duration="300000" />
|
|
218
|
+
<workItem from="1561655695968" duration="9467000" />
|
|
219
|
+
</task>
|
|
220
|
+
<task id="LOCAL-00001" summary="Check string type">
|
|
221
|
+
<created>1547480318226</created>
|
|
222
|
+
<option name="number" value="00001" />
|
|
223
|
+
<option name="presentableId" value="LOCAL-00001" />
|
|
224
|
+
<option name="project" value="LOCAL" />
|
|
225
|
+
<updated>1547480318226</updated>
|
|
226
|
+
</task>
|
|
227
|
+
<option name="localTasksCounter" value="2" />
|
|
228
|
+
<servers />
|
|
229
|
+
</component>
|
|
230
|
+
<component name="TimeTrackingManager">
|
|
231
|
+
<option name="totallyTimeSpent" value="12214000" />
|
|
232
|
+
</component>
|
|
233
|
+
<component name="ToolWindowManager">
|
|
234
|
+
<frame x="714" y="-1440" width="2560" height="1440" extended-state="6" />
|
|
235
|
+
<editor active="true" />
|
|
236
|
+
<layout>
|
|
237
|
+
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24970461" />
|
|
238
|
+
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
|
239
|
+
<window_info id="npm" order="2" side_tool="true" />
|
|
240
|
+
<window_info id="DB Browser" order="3" />
|
|
241
|
+
<window_info id="Favorites" order="4" side_tool="true" />
|
|
242
|
+
<window_info anchor="bottom" id="TypeScript" />
|
|
243
|
+
<window_info anchor="bottom" id="Message" order="0" />
|
|
244
|
+
<window_info anchor="bottom" id="Find" order="1" />
|
|
245
|
+
<window_info anchor="bottom" id="Run" order="2" weight="0.32958803" />
|
|
246
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
|
247
|
+
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
|
248
|
+
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
|
249
|
+
<window_info anchor="bottom" id="TODO" order="6" />
|
|
250
|
+
<window_info anchor="bottom" id="Docker" order="7" />
|
|
251
|
+
<window_info anchor="bottom" id="Version Control" order="8" />
|
|
252
|
+
<window_info anchor="bottom" id="DB Execution Console" order="9" />
|
|
253
|
+
<window_info active="true" anchor="bottom" id="Terminal" order="10" sideWeight="0.49980307" visible="true" weight="0.32883894" />
|
|
254
|
+
<window_info anchor="bottom" id="Event Log" order="11" sideWeight="0.50019693" side_tool="true" weight="0.32883894" />
|
|
255
|
+
<window_info anchor="right" id="Commander" order="0" weight="0.4" />
|
|
256
|
+
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
|
257
|
+
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
|
258
|
+
</layout>
|
|
259
|
+
<layout-to-restore>
|
|
260
|
+
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24970461" />
|
|
261
|
+
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
|
262
|
+
<window_info id="npm" order="2" side_tool="true" />
|
|
263
|
+
<window_info id="DB Browser" order="3" />
|
|
264
|
+
<window_info id="Favorites" order="4" side_tool="true" />
|
|
265
|
+
<window_info anchor="bottom" id="TypeScript" order="0" />
|
|
266
|
+
<window_info anchor="bottom" id="Message" order="1" />
|
|
267
|
+
<window_info anchor="bottom" id="Find" order="2" />
|
|
268
|
+
<window_info anchor="bottom" id="Run" order="3" weight="0.32958803" />
|
|
269
|
+
<window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
|
|
270
|
+
<window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
|
|
271
|
+
<window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
|
|
272
|
+
<window_info anchor="bottom" id="TODO" order="7" />
|
|
273
|
+
<window_info anchor="bottom" id="Docker" order="8" />
|
|
274
|
+
<window_info anchor="bottom" id="Version Control" order="9" />
|
|
275
|
+
<window_info anchor="bottom" id="DB Execution Console" order="10" />
|
|
276
|
+
<window_info active="true" anchor="bottom" id="Terminal" order="11" sideWeight="0.49980307" visible="true" weight="0.32883894" />
|
|
277
|
+
<window_info anchor="bottom" id="Event Log" order="12" sideWeight="0.50019693" side_tool="true" visible="true" weight="0.32883894" />
|
|
278
|
+
<window_info anchor="right" id="Commander" order="0" weight="0.4" />
|
|
279
|
+
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
|
280
|
+
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
|
281
|
+
</layout-to-restore>
|
|
282
|
+
</component>
|
|
283
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
284
|
+
<option name="version" value="1" />
|
|
285
|
+
<option name="exactExcludedFiles">
|
|
286
|
+
<list>
|
|
287
|
+
<option value="$PROJECT_DIR$/lib/types.d.ts" />
|
|
288
|
+
</list>
|
|
289
|
+
</option>
|
|
290
|
+
</component>
|
|
291
|
+
<component name="VcsManagerConfiguration">
|
|
292
|
+
<MESSAGE value="Check string type" />
|
|
293
|
+
<option name="LAST_COMMIT_MESSAGE" value="Check string type" />
|
|
294
|
+
</component>
|
|
295
|
+
<component name="editorHistoryManager">
|
|
296
|
+
<entry file="file://$PROJECT_DIR$/node_modules/bitcore-lib/index.js">
|
|
297
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
298
|
+
<state relative-caret-position="884">
|
|
299
|
+
<caret line="34" column="38" selection-start-line="34" selection-start-column="38" selection-end-line="34" selection-end-column="38" />
|
|
300
|
+
</state>
|
|
301
|
+
</provider>
|
|
302
|
+
</entry>
|
|
303
|
+
<entry file="file://$PROJECT_DIR$/node_modules/bitcore-lib/lib/address.js">
|
|
304
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
305
|
+
<state relative-caret-position="286">
|
|
306
|
+
<caret line="11" column="3" selection-start-line="11" selection-start-column="3" selection-end-line="11" selection-end-column="3" />
|
|
307
|
+
</state>
|
|
308
|
+
</provider>
|
|
309
|
+
</entry>
|
|
310
|
+
<entry file="file://$PROJECT_DIR$/lib/index.ts">
|
|
311
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
312
|
+
<state relative-caret-position="208">
|
|
313
|
+
<caret line="8" selection-start-line="8" selection-end-line="8" />
|
|
314
|
+
</state>
|
|
315
|
+
</provider>
|
|
316
|
+
</entry>
|
|
317
|
+
<entry file="file://$PROJECT_DIR$/lib/formatting.ts">
|
|
318
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
319
|
+
<state>
|
|
320
|
+
<caret selection-end-column="28" />
|
|
321
|
+
</state>
|
|
322
|
+
</provider>
|
|
323
|
+
</entry>
|
|
324
|
+
<entry file="file://$PROJECT_DIR$/dist/validations.js">
|
|
325
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
326
|
+
<state relative-caret-position="442">
|
|
327
|
+
<caret line="17" column="4" selection-start-line="17" selection-start-column="4" selection-end-line="17" selection-end-column="4" />
|
|
328
|
+
</state>
|
|
329
|
+
</provider>
|
|
330
|
+
</entry>
|
|
331
|
+
<entry file="file://$PROJECT_DIR$/lib/ormHelpers.ts">
|
|
332
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
333
|
+
<state relative-caret-position="52">
|
|
334
|
+
<caret line="2" column="19" selection-start-line="2" selection-start-column="6" selection-end-line="2" selection-end-column="19" />
|
|
335
|
+
</state>
|
|
336
|
+
</provider>
|
|
337
|
+
</entry>
|
|
338
|
+
<entry file="file://$PROJECT_DIR$/node_modules/@types/lodash/common/collection.d.ts">
|
|
339
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
340
|
+
<state relative-caret-position="260">
|
|
341
|
+
<caret line="154" column="11" lean-forward="true" selection-start-line="154" selection-start-column="11" selection-end-line="154" selection-end-column="11" />
|
|
342
|
+
</state>
|
|
343
|
+
</provider>
|
|
344
|
+
</entry>
|
|
345
|
+
<entry file="file://$PROJECT_DIR$/node_modules/@types/type-check/index.d.ts">
|
|
346
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
347
|
+
<state relative-caret-position="494">
|
|
348
|
+
<caret line="25" column="3" selection-start-line="25" selection-start-column="3" selection-end-line="25" selection-end-column="3" />
|
|
349
|
+
</state>
|
|
350
|
+
</provider>
|
|
351
|
+
</entry>
|
|
352
|
+
<entry file="file://$PROJECT_DIR$/node_modules/type-check/lib/index.js">
|
|
353
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
354
|
+
</entry>
|
|
355
|
+
<entry file="file://$PROJECT_DIR$/node_modules/type-check/lib/check.js">
|
|
356
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
357
|
+
<state relative-caret-position="601">
|
|
358
|
+
<caret line="123" column="44" selection-start-line="123" selection-start-column="44" selection-end-line="123" selection-end-column="44" />
|
|
359
|
+
</state>
|
|
360
|
+
</provider>
|
|
361
|
+
</entry>
|
|
362
|
+
<entry file="file://$PROJECT_DIR$/dist/validations.d.ts">
|
|
363
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
364
|
+
</entry>
|
|
365
|
+
<entry file="file://$PROJECT_DIR$/dist/types.d.ts">
|
|
366
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
367
|
+
</entry>
|
|
368
|
+
<entry file="file://$PROJECT_DIR$/dist/middleware.d.ts">
|
|
369
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
370
|
+
</entry>
|
|
371
|
+
<entry file="file://$PROJECT_DIR$/dist/formatting.d.ts">
|
|
372
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
373
|
+
</entry>
|
|
374
|
+
<entry file="file://$PROJECT_DIR$/dist/ormHelpers.d.ts">
|
|
375
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
376
|
+
</entry>
|
|
377
|
+
<entry file="file://$PROJECT_DIR$/lib/middleware.ts">
|
|
378
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
379
|
+
<state relative-caret-position="394">
|
|
380
|
+
<caret line="16" selection-start-line="16" selection-end-line="16" />
|
|
381
|
+
</state>
|
|
382
|
+
</provider>
|
|
383
|
+
</entry>
|
|
384
|
+
<entry file="file://$PROJECT_DIR$/node_modules/@types/validator/index.d.ts">
|
|
385
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
386
|
+
<state relative-caret-position="340">
|
|
387
|
+
<caret line="74" column="9" selection-start-line="74" selection-start-column="9" selection-end-line="74" selection-end-column="9" />
|
|
388
|
+
</state>
|
|
389
|
+
</provider>
|
|
390
|
+
</entry>
|
|
391
|
+
<entry file="file://$PROJECT_DIR$/lib/validations.ts">
|
|
392
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
393
|
+
<state relative-caret-position="576">
|
|
394
|
+
<caret line="298" column="58" selection-start-line="298" selection-start-column="58" selection-end-line="298" selection-end-column="58" />
|
|
395
|
+
<folding>
|
|
396
|
+
<element signature="e#0#28#0" expanded="true" />
|
|
397
|
+
</folding>
|
|
398
|
+
</state>
|
|
399
|
+
</provider>
|
|
400
|
+
</entry>
|
|
401
|
+
<entry file="file://$PROJECT_DIR$/types.d.ts">
|
|
402
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
403
|
+
<state>
|
|
404
|
+
<caret column="28" lean-forward="true" selection-start-column="28" selection-end-column="28" />
|
|
405
|
+
</state>
|
|
406
|
+
</provider>
|
|
407
|
+
</entry>
|
|
408
|
+
<entry file="file://$PROJECT_DIR$/lib/test.ts">
|
|
409
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
410
|
+
<state relative-caret-position="52">
|
|
411
|
+
<caret line="2" lean-forward="true" selection-start-line="2" selection-end-line="2" />
|
|
412
|
+
</state>
|
|
413
|
+
</provider>
|
|
414
|
+
</entry>
|
|
415
|
+
<entry file="file://$PROJECT_DIR$/lib/types.ts">
|
|
416
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
417
|
+
<state relative-caret-position="-3402">
|
|
418
|
+
<caret line="55" column="4" selection-start-line="55" selection-start-column="4" selection-end-line="55" selection-end-column="4" />
|
|
419
|
+
<folding>
|
|
420
|
+
<element signature="e#0#33#0" expanded="true" />
|
|
421
|
+
</folding>
|
|
422
|
+
</state>
|
|
423
|
+
</provider>
|
|
424
|
+
</entry>
|
|
425
|
+
<entry file="file://$PROJECT_DIR$/test/ormHelpers.spec.coffee">
|
|
426
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
427
|
+
<state>
|
|
428
|
+
<caret column="34" selection-start-column="34" selection-end-column="34" />
|
|
429
|
+
</state>
|
|
430
|
+
</provider>
|
|
431
|
+
</entry>
|
|
432
|
+
<entry file="file://$PROJECT_DIR$/test/index.coffee">
|
|
433
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
434
|
+
</entry>
|
|
435
|
+
<entry file="file://$PROJECT_DIR$/test/errors.spec.js">
|
|
436
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
437
|
+
</entry>
|
|
438
|
+
<entry file="file://$PROJECT_DIR$/test/formatting.spec.coffee">
|
|
439
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
440
|
+
<state>
|
|
441
|
+
<caret column="29" selection-start-column="29" selection-end-column="29" />
|
|
442
|
+
</state>
|
|
443
|
+
</provider>
|
|
444
|
+
</entry>
|
|
445
|
+
<entry file="file://$PROJECT_DIR$/test/errors.spec.coffee">
|
|
446
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
447
|
+
<state relative-caret-position="182">
|
|
448
|
+
<caret line="7" column="23" lean-forward="true" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
|
449
|
+
</state>
|
|
450
|
+
</provider>
|
|
451
|
+
</entry>
|
|
452
|
+
<entry file="file://$PROJECT_DIR$/dist/errors.js">
|
|
453
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
454
|
+
<state relative-caret-position="182">
|
|
455
|
+
<caret line="7" column="2" lean-forward="true" selection-start-line="7" selection-start-column="2" selection-end-line="7" selection-end-column="2" />
|
|
456
|
+
</state>
|
|
457
|
+
</provider>
|
|
458
|
+
</entry>
|
|
459
|
+
<entry file="file://$PROJECT_DIR$/dist/errors.d.ts">
|
|
460
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
461
|
+
</entry>
|
|
462
|
+
<entry file="file://$PROJECT_DIR$/lib/errors.ts">
|
|
463
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
464
|
+
<state relative-caret-position="104">
|
|
465
|
+
<caret line="4" column="7" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
|
|
466
|
+
</state>
|
|
467
|
+
</provider>
|
|
468
|
+
</entry>
|
|
469
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
470
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
471
|
+
<state relative-caret-position="78">
|
|
472
|
+
<caret line="3" column="4" lean-forward="true" selection-start-line="3" selection-start-column="4" selection-end-line="3" selection-end-column="4" />
|
|
473
|
+
</state>
|
|
474
|
+
</provider>
|
|
475
|
+
</entry>
|
|
476
|
+
<entry file="file://$PROJECT_DIR$/.npmignore">
|
|
477
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
478
|
+
<state relative-caret-position="104">
|
|
479
|
+
<caret line="4" column="4" lean-forward="true" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="4" />
|
|
480
|
+
</state>
|
|
481
|
+
</provider>
|
|
482
|
+
</entry>
|
|
483
|
+
<entry file="file://$PROJECT_DIR$/tsconfig.json">
|
|
484
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
485
|
+
<state relative-caret-position="312">
|
|
486
|
+
<caret line="12" column="22" selection-start-line="12" selection-start-column="22" selection-end-line="12" selection-end-column="22" />
|
|
487
|
+
</state>
|
|
488
|
+
</provider>
|
|
489
|
+
</entry>
|
|
490
|
+
<entry file="file://$PROJECT_DIR$/dist/index.d.ts">
|
|
491
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
492
|
+
</entry>
|
|
493
|
+
<entry file="file://$PROJECT_DIR$/dist/index.js">
|
|
494
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
495
|
+
<state relative-caret-position="208">
|
|
496
|
+
<caret line="8" column="2" lean-forward="true" selection-start-line="8" selection-start-column="2" selection-end-line="8" selection-end-column="2" />
|
|
497
|
+
</state>
|
|
498
|
+
</provider>
|
|
499
|
+
</entry>
|
|
500
|
+
<entry file="file://$PROJECT_DIR$/package.json">
|
|
501
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
502
|
+
<state relative-caret-position="52">
|
|
503
|
+
<caret line="2" column="24" selection-start-line="2" selection-start-column="24" selection-end-line="2" selection-end-column="24" />
|
|
504
|
+
</state>
|
|
505
|
+
</provider>
|
|
506
|
+
</entry>
|
|
507
|
+
</component>
|
|
508
|
+
<component name="masterDetails">
|
|
509
|
+
<states>
|
|
510
|
+
<state key="ScopeChooserConfigurable.UI">
|
|
511
|
+
<settings>
|
|
512
|
+
<splitter-proportions>
|
|
513
|
+
<option name="proportions">
|
|
514
|
+
<list>
|
|
515
|
+
<option value="0.2" />
|
|
516
|
+
</list>
|
|
517
|
+
</option>
|
|
518
|
+
</splitter-proportions>
|
|
519
|
+
</settings>
|
|
520
|
+
</state>
|
|
521
|
+
</states>
|
|
522
|
+
</component>
|
|
523
|
+
</project>
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RequestError: any;
|
|
2
|
+
export declare const Forbidden: any;
|
|
3
|
+
export declare const Unauthorized: any;
|
|
4
|
+
export declare const BadRequest: any;
|
|
5
|
+
export declare const NotFound: any;
|
|
6
|
+
export declare const ConflictError: any;
|
|
7
|
+
export declare const ServerError: any;
|
|
8
|
+
export declare const InvalidArguments: any;
|
|
9
|
+
export declare const ServerTimeout: any;
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const create = require('create-error');
|
|
4
|
+
const AppError = create('AppError');
|
|
5
|
+
exports.RequestError = create(AppError, 'RequestError');
|
|
6
|
+
exports.RequestError.toJSON = function () {
|
|
7
|
+
return { message: this.message };
|
|
8
|
+
};
|
|
9
|
+
exports.Forbidden = create(exports.RequestError, 'ForbiddenError', {
|
|
10
|
+
status: 403,
|
|
11
|
+
});
|
|
12
|
+
exports.Unauthorized = create(exports.RequestError, 'UnauthorizedError', {
|
|
13
|
+
status: 401,
|
|
14
|
+
});
|
|
15
|
+
exports.BadRequest = create(exports.RequestError, 'BadRequestError', {
|
|
16
|
+
status: 400,
|
|
17
|
+
});
|
|
18
|
+
exports.NotFound = create(exports.RequestError, 'NotFoundError', {
|
|
19
|
+
status: 404,
|
|
20
|
+
});
|
|
21
|
+
exports.ConflictError = create(exports.RequestError, 'ConflictError', {
|
|
22
|
+
status: 409,
|
|
23
|
+
});
|
|
24
|
+
exports.ServerError = create(exports.RequestError, 'ServerError', {
|
|
25
|
+
status: 500,
|
|
26
|
+
});
|
|
27
|
+
exports.InvalidArguments = create(exports.RequestError, 'InvalidArgumentsError', {
|
|
28
|
+
status: 500,
|
|
29
|
+
});
|
|
30
|
+
exports.ServerTimeout = create(exports.RequestError, 'ServerTimeoutError', {
|
|
31
|
+
status: 503,
|
|
32
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|