@manticore-labs/nest 0.0.61 → 0.0.63
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/workspace.xml +176 -60
- package/build/main/index.d.ts +1 -0
- package/build/main/index.js +2 -1
- package/build/main/lib/auth0/seguridad-jwt-moviles/check-jwt.d.ts +2 -0
- package/build/main/lib/auth0/seguridad-jwt-moviles/check-jwt.js +8 -0
- package/build/main/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.js +13 -9
- package/build/module/index.d.ts +1 -0
- package/build/module/index.js +2 -1
- package/build/module/lib/auth0/seguridad-jwt-moviles/check-jwt.d.ts +2 -0
- package/build/module/lib/auth0/seguridad-jwt-moviles/check-jwt.js +5 -0
- package/build/module/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.js +13 -9
- package/package.json +3 -1
- package/.npmignore +0 -14
package/.idea/workspace.xml
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="
|
|
4
|
+
<list default="true" id="76b172f4-a20a-4127-86b7-f40ebfa40281" name="Default Changelist" comment="">
|
|
5
|
+
<change afterPath="$PROJECT_DIR$/src/lib/auth0/seguridad-jwt-moviles/check-jwt.ts" afterDir="false" />
|
|
5
6
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
6
7
|
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" />
|
|
7
8
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.ts" afterDir="false" />
|
|
9
10
|
</list>
|
|
10
11
|
<ignored path="$PROJECT_DIR$/.tmp/" />
|
|
11
12
|
<ignored path="$PROJECT_DIR$/temp/" />
|
|
@@ -17,75 +18,119 @@
|
|
|
17
18
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
18
19
|
</component>
|
|
19
20
|
<component name="FileEditorManager">
|
|
20
|
-
<leaf>
|
|
21
|
-
<file pinned="false" current-in-tab="
|
|
22
|
-
<entry file="file://$PROJECT_DIR$/src/lib/
|
|
21
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
|
22
|
+
<file pinned="false" current-in-tab="false">
|
|
23
|
+
<entry file="file://$PROJECT_DIR$/src/lib/seguridad/seguridad.decorator.ts">
|
|
24
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
25
|
+
</entry>
|
|
26
|
+
</file>
|
|
27
|
+
<file pinned="false" current-in-tab="false">
|
|
28
|
+
<entry file="file://$PROJECT_DIR$/src/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.ts">
|
|
29
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
30
|
+
<state relative-caret-position="92">
|
|
31
|
+
<caret line="5" selection-start-line="5" selection-end-line="5" />
|
|
32
|
+
</state>
|
|
33
|
+
</provider>
|
|
34
|
+
</entry>
|
|
35
|
+
</file>
|
|
36
|
+
<file pinned="false" current-in-tab="false">
|
|
37
|
+
<entry file="file://$PROJECT_DIR$/package.json">
|
|
23
38
|
<provider selected="true" editor-type-id="text-editor">
|
|
24
39
|
<state relative-caret-position="46">
|
|
25
|
-
<caret line="
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
|
41
|
+
</state>
|
|
42
|
+
</provider>
|
|
43
|
+
</entry>
|
|
44
|
+
</file>
|
|
45
|
+
<file pinned="false" current-in-tab="true">
|
|
46
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/seguridad-jwt-moviles/check-jwt.ts">
|
|
47
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
48
|
+
<state relative-caret-position="130">
|
|
49
|
+
<caret line="5" column="22" lean-forward="true" selection-start-line="5" selection-start-column="22" selection-end-line="5" selection-end-column="22" />
|
|
34
50
|
</state>
|
|
35
51
|
</provider>
|
|
36
52
|
</entry>
|
|
37
53
|
</file>
|
|
38
54
|
<file pinned="false" current-in-tab="false">
|
|
39
|
-
<entry file="file://$PROJECT_DIR
|
|
55
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
56
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
57
|
+
</entry>
|
|
58
|
+
</file>
|
|
59
|
+
<file pinned="false" current-in-tab="false">
|
|
60
|
+
<entry file="file://$PROJECT_DIR$/src/index.ts">
|
|
40
61
|
<provider selected="true" editor-type-id="text-editor">
|
|
41
|
-
<state relative-caret-position="
|
|
42
|
-
<caret line="
|
|
62
|
+
<state relative-caret-position="276">
|
|
63
|
+
<caret line="12" selection-start-line="12" selection-end-line="12" />
|
|
43
64
|
</state>
|
|
44
65
|
</provider>
|
|
45
66
|
</entry>
|
|
46
67
|
</file>
|
|
47
68
|
<file pinned="false" current-in-tab="false">
|
|
48
|
-
<entry file="file://$PROJECT_DIR$/
|
|
69
|
+
<entry file="file://$PROJECT_DIR$/node_modules/jwks-rsa/index.d.ts">
|
|
70
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
71
|
+
</entry>
|
|
72
|
+
</file>
|
|
73
|
+
<file pinned="false" current-in-tab="false">
|
|
74
|
+
<entry file="file://$PROJECT_DIR$/node_modules/@types/express-jwt/index.d.ts">
|
|
49
75
|
<provider selected="true" editor-type-id="text-editor">
|
|
50
|
-
<state>
|
|
51
|
-
<caret column="
|
|
76
|
+
<state relative-caret-position="168">
|
|
77
|
+
<caret line="25" column="21" selection-start-line="25" selection-start-column="21" selection-end-line="25" selection-end-column="21" />
|
|
78
|
+
<folding>
|
|
79
|
+
<element signature="n#!!doc" expanded="true" />
|
|
80
|
+
</folding>
|
|
52
81
|
</state>
|
|
53
82
|
</provider>
|
|
54
83
|
</entry>
|
|
55
84
|
</file>
|
|
56
85
|
<file pinned="false" current-in-tab="false">
|
|
57
|
-
<entry file="file://$PROJECT_DIR$/
|
|
86
|
+
<entry file="file://$PROJECT_DIR$/build/main/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.d.ts">
|
|
58
87
|
<provider selected="true" editor-type-id="text-editor">
|
|
59
|
-
<state
|
|
60
|
-
<
|
|
88
|
+
<state>
|
|
89
|
+
<folding>
|
|
90
|
+
<element signature="e#0#34#0" expanded="true" />
|
|
91
|
+
</folding>
|
|
61
92
|
</state>
|
|
62
93
|
</provider>
|
|
63
94
|
</entry>
|
|
64
95
|
</file>
|
|
96
|
+
<file pinned="false" current-in-tab="false">
|
|
97
|
+
<entry file="file://$PROJECT_DIR$/build/main/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.js">
|
|
98
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
99
|
+
</entry>
|
|
100
|
+
</file>
|
|
65
101
|
</leaf>
|
|
66
102
|
</component>
|
|
103
|
+
<component name="FileTemplateManagerImpl">
|
|
104
|
+
<option name="RECENT_TEMPLATES">
|
|
105
|
+
<list>
|
|
106
|
+
<option value="TypeScript File" />
|
|
107
|
+
</list>
|
|
108
|
+
</option>
|
|
109
|
+
</component>
|
|
67
110
|
<component name="Git.Settings">
|
|
68
111
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
69
112
|
</component>
|
|
70
113
|
<component name="IdeDocumentHistory">
|
|
71
114
|
<option name="CHANGED_PATHS">
|
|
72
115
|
<list>
|
|
116
|
+
<option value="$PROJECT_DIR$/src/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.ts" />
|
|
117
|
+
<option value="$PROJECT_DIR$/src/index.ts" />
|
|
73
118
|
<option value="$PROJECT_DIR$/package.json" />
|
|
74
|
-
<option value="$PROJECT_DIR$/src/lib/auth0/
|
|
119
|
+
<option value="$PROJECT_DIR$/src/lib/auth0/seguridad-jwt-moviles/check-jwt.ts" />
|
|
75
120
|
</list>
|
|
76
121
|
</option>
|
|
77
122
|
</component>
|
|
78
123
|
<component name="ProjectFrameBounds" extendedState="6">
|
|
79
|
-
<option name="
|
|
80
|
-
<option name="
|
|
81
|
-
<option name="
|
|
124
|
+
<option name="x" value="197" />
|
|
125
|
+
<option name="y" value="61" />
|
|
126
|
+
<option name="width" value="1440" />
|
|
127
|
+
<option name="height" value="745" />
|
|
82
128
|
</component>
|
|
83
129
|
<component name="ProjectView">
|
|
84
130
|
<navigator proportions="" version="1">
|
|
85
131
|
<foldersAlwaysOnTop value="true" />
|
|
86
132
|
</navigator>
|
|
87
133
|
<panes>
|
|
88
|
-
<pane id="Scope" />
|
|
89
134
|
<pane id="ProjectPane">
|
|
90
135
|
<subPane>
|
|
91
136
|
<expand>
|
|
@@ -93,22 +138,49 @@
|
|
|
93
138
|
<item name="manticore-labs-nest" type="b2602c69:ProjectViewProjectNode" />
|
|
94
139
|
<item name="manticore-labs-nest" type="462c0819:PsiDirectoryNode" />
|
|
95
140
|
</path>
|
|
141
|
+
<path>
|
|
142
|
+
<item name="manticore-labs-nest" type="b2602c69:ProjectViewProjectNode" />
|
|
143
|
+
<item name="manticore-labs-nest" type="462c0819:PsiDirectoryNode" />
|
|
144
|
+
<item name="src" type="462c0819:PsiDirectoryNode" />
|
|
145
|
+
</path>
|
|
146
|
+
<path>
|
|
147
|
+
<item name="manticore-labs-nest" type="b2602c69:ProjectViewProjectNode" />
|
|
148
|
+
<item name="manticore-labs-nest" type="462c0819:PsiDirectoryNode" />
|
|
149
|
+
<item name="src" type="462c0819:PsiDirectoryNode" />
|
|
150
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
151
|
+
</path>
|
|
152
|
+
<path>
|
|
153
|
+
<item name="manticore-labs-nest" type="b2602c69:ProjectViewProjectNode" />
|
|
154
|
+
<item name="manticore-labs-nest" type="462c0819:PsiDirectoryNode" />
|
|
155
|
+
<item name="src" type="462c0819:PsiDirectoryNode" />
|
|
156
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
157
|
+
<item name="auth0" type="462c0819:PsiDirectoryNode" />
|
|
158
|
+
</path>
|
|
159
|
+
<path>
|
|
160
|
+
<item name="manticore-labs-nest" type="b2602c69:ProjectViewProjectNode" />
|
|
161
|
+
<item name="manticore-labs-nest" type="462c0819:PsiDirectoryNode" />
|
|
162
|
+
<item name="src" type="462c0819:PsiDirectoryNode" />
|
|
163
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
164
|
+
<item name="auth0" type="462c0819:PsiDirectoryNode" />
|
|
165
|
+
<item name="seguridad-jwt-moviles" type="462c0819:PsiDirectoryNode" />
|
|
166
|
+
</path>
|
|
96
167
|
</expand>
|
|
97
168
|
<select />
|
|
98
169
|
</subPane>
|
|
99
170
|
</pane>
|
|
171
|
+
<pane id="Scope" />
|
|
100
172
|
</panes>
|
|
101
173
|
</component>
|
|
102
174
|
<component name="PropertiesComponent">
|
|
103
175
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
176
|
+
<property name="editor.config.ad.shown" value="true" />
|
|
104
177
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
105
178
|
<property name="node.js.detected.package.tslint" value="true" />
|
|
106
179
|
<property name="node.js.path.for.package.tslint" value="project" />
|
|
107
180
|
<property name="node.js.selected.package.tslint" value="$PROJECT_DIR$/node_modules/tslint" />
|
|
108
181
|
<property name="nodejs_package_manager_path" value="npm" />
|
|
109
182
|
<property name="prettierjs.PrettierConfiguration.Package" value="D:\Gitlab\npm\manticore-labs-nest\node_modules\prettier" />
|
|
110
|
-
<property name="
|
|
111
|
-
<property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
|
|
183
|
+
<property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
|
|
112
184
|
</component>
|
|
113
185
|
<component name="RunDashboard">
|
|
114
186
|
<option name="ruleStates">
|
|
@@ -127,31 +199,27 @@
|
|
|
127
199
|
</component>
|
|
128
200
|
<component name="TaskManager">
|
|
129
201
|
<task active="true" id="Default" summary="Default task">
|
|
130
|
-
<changelist id="
|
|
131
|
-
<created>
|
|
202
|
+
<changelist id="76b172f4-a20a-4127-86b7-f40ebfa40281" name="Default Changelist" comment="" />
|
|
203
|
+
<created>1549418755979</created>
|
|
132
204
|
<option name="number" value="Default" />
|
|
133
205
|
<option name="presentableId" value="Default" />
|
|
134
|
-
<updated>
|
|
135
|
-
<workItem from="
|
|
206
|
+
<updated>1549418755979</updated>
|
|
207
|
+
<workItem from="1549418757075" duration="2781000" />
|
|
208
|
+
<workItem from="1549456351059" duration="814000" />
|
|
136
209
|
</task>
|
|
137
210
|
<servers />
|
|
138
211
|
</component>
|
|
139
212
|
<component name="TimeTrackingManager">
|
|
140
|
-
<option name="totallyTimeSpent" value="
|
|
213
|
+
<option name="totallyTimeSpent" value="3595000" />
|
|
141
214
|
</component>
|
|
142
215
|
<component name="ToolWindowManager">
|
|
143
|
-
<frame x="0" y="25" width="
|
|
216
|
+
<frame x="0" y="25" width="1920" height="994" extended-state="6" />
|
|
144
217
|
<editor active="true" />
|
|
145
218
|
<layout>
|
|
146
|
-
<window_info id="
|
|
147
|
-
<window_info id="Favorites" side_tool="true" />
|
|
148
|
-
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24984147" />
|
|
219
|
+
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24986821" />
|
|
149
220
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
|
150
|
-
<window_info
|
|
151
|
-
<window_info
|
|
152
|
-
<window_info anchor="bottom" id="Version Control" />
|
|
153
|
-
<window_info active="true" anchor="bottom" id="Terminal" visible="true" weight="0.4745509" />
|
|
154
|
-
<window_info anchor="bottom" id="Event Log" side_tool="true" />
|
|
221
|
+
<window_info id="npm" order="2" side_tool="true" />
|
|
222
|
+
<window_info id="Favorites" order="3" side_tool="true" />
|
|
155
223
|
<window_info anchor="bottom" id="Message" order="0" />
|
|
156
224
|
<window_info anchor="bottom" id="Find" order="1" />
|
|
157
225
|
<window_info anchor="bottom" id="Run" order="2" />
|
|
@@ -159,6 +227,11 @@
|
|
|
159
227
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
|
160
228
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
|
161
229
|
<window_info anchor="bottom" id="TODO" order="6" />
|
|
230
|
+
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
|
231
|
+
<window_info anchor="bottom" id="Version Control" order="8" />
|
|
232
|
+
<window_info anchor="bottom" id="TypeScript" order="9" />
|
|
233
|
+
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
|
|
234
|
+
<window_info active="true" anchor="bottom" id="Terminal" order="11" visible="true" weight="0.32979977" />
|
|
162
235
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
|
163
236
|
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
|
164
237
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
|
@@ -168,41 +241,84 @@
|
|
|
168
241
|
<option name="version" value="1" />
|
|
169
242
|
</component>
|
|
170
243
|
<component name="editorHistoryManager">
|
|
171
|
-
<entry file="file://$PROJECT_DIR$/
|
|
244
|
+
<entry file="file://$PROJECT_DIR$/package-lock.json">
|
|
245
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
246
|
+
</entry>
|
|
247
|
+
<entry file="file://$PROJECT_DIR$/src/lib/seguridad/aplicar-politicas-de-seguridad.ts">
|
|
248
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
249
|
+
<state relative-caret-position="368">
|
|
250
|
+
<caret line="19" column="25" selection-start-line="19" selection-start-column="25" selection-end-line="19" selection-end-column="25" />
|
|
251
|
+
<folding>
|
|
252
|
+
<element signature="e#0#38#0" expanded="true" />
|
|
253
|
+
</folding>
|
|
254
|
+
</state>
|
|
255
|
+
</provider>
|
|
256
|
+
</entry>
|
|
257
|
+
<entry file="file://$PROJECT_DIR$/src/lib/seguridad/funciones/tiene-acceso-permitido.ts">
|
|
258
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
259
|
+
<state relative-caret-position="46">
|
|
260
|
+
<caret line="2" selection-start-line="2" selection-end-line="10" selection-end-column="1" />
|
|
261
|
+
</state>
|
|
262
|
+
</provider>
|
|
263
|
+
</entry>
|
|
264
|
+
<entry file="file://$PROJECT_DIR$/src/lib/seguridad/seguridad.decorator.ts">
|
|
265
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
266
|
+
</entry>
|
|
267
|
+
<entry file="file://$PROJECT_DIR$/build/main/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.d.ts">
|
|
172
268
|
<provider selected="true" editor-type-id="text-editor">
|
|
173
269
|
<state>
|
|
174
|
-
<
|
|
270
|
+
<folding>
|
|
271
|
+
<element signature="e#0#34#0" expanded="true" />
|
|
272
|
+
</folding>
|
|
175
273
|
</state>
|
|
176
274
|
</provider>
|
|
177
275
|
</entry>
|
|
178
|
-
<entry file="file://$PROJECT_DIR$/
|
|
276
|
+
<entry file="file://$PROJECT_DIR$/build/main/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.js">
|
|
277
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
278
|
+
</entry>
|
|
279
|
+
<entry file="file://$PROJECT_DIR$/node_modules/jwks-rsa/index.d.ts">
|
|
280
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
281
|
+
</entry>
|
|
282
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
283
|
+
<provider selected="true" editor-type-id="text-editor" />
|
|
284
|
+
</entry>
|
|
285
|
+
<entry file="file://$PROJECT_DIR$/src/index.ts">
|
|
179
286
|
<provider selected="true" editor-type-id="text-editor">
|
|
180
|
-
<state relative-caret-position="
|
|
181
|
-
<caret line="
|
|
287
|
+
<state relative-caret-position="276">
|
|
288
|
+
<caret line="12" selection-start-line="12" selection-end-line="12" />
|
|
182
289
|
</state>
|
|
183
290
|
</provider>
|
|
184
291
|
</entry>
|
|
185
292
|
<entry file="file://$PROJECT_DIR$/package.json">
|
|
186
293
|
<provider selected="true" editor-type-id="text-editor">
|
|
187
|
-
<state relative-caret-position="
|
|
188
|
-
<caret line="2" column="
|
|
294
|
+
<state relative-caret-position="46">
|
|
295
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
|
189
296
|
</state>
|
|
190
297
|
</provider>
|
|
191
298
|
</entry>
|
|
192
|
-
<entry file="file://$PROJECT_DIR$/src/lib/
|
|
299
|
+
<entry file="file://$PROJECT_DIR$/src/lib/seguridad/funciones/convertir-arreglo-en-arreglo-de-observables.ts">
|
|
193
300
|
<provider selected="true" editor-type-id="text-editor">
|
|
194
|
-
<state relative-caret-position="
|
|
195
|
-
<caret line="
|
|
301
|
+
<state relative-caret-position="92">
|
|
302
|
+
<caret line="5" selection-start-line="5" selection-end-line="5" />
|
|
303
|
+
</state>
|
|
304
|
+
</provider>
|
|
305
|
+
</entry>
|
|
306
|
+
<entry file="file://$PROJECT_DIR$/node_modules/@types/express-jwt/index.d.ts">
|
|
307
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
308
|
+
<state relative-caret-position="168">
|
|
309
|
+
<caret line="25" column="21" selection-start-line="25" selection-start-column="21" selection-end-line="25" selection-end-column="21" />
|
|
196
310
|
<folding>
|
|
197
|
-
<element signature="
|
|
198
|
-
<element signature="n#!!block;n#actualizarUsuarioPorPrimeraVez#0;n#PrincipalAuth0Controller#0" />
|
|
199
|
-
<element signature="n#!!block;n#actualizarUsuarioPorPrimeraVezAccion#0;n#PrincipalAuth0Controller#0" />
|
|
200
|
-
<element signature="n#!!block;n#actualizarCuentaAccion#0;n#PrincipalAuth0Controller#0" />
|
|
201
|
-
<element signature="n#!!block;n#generarUsuario#0;n#PrincipalAuth0Controller#0" />
|
|
202
|
-
<element signature="e#18151#18213#0" />
|
|
311
|
+
<element signature="n#!!doc" expanded="true" />
|
|
203
312
|
</folding>
|
|
204
313
|
</state>
|
|
205
314
|
</provider>
|
|
206
315
|
</entry>
|
|
316
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/seguridad-jwt-moviles/check-jwt.ts">
|
|
317
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
318
|
+
<state relative-caret-position="130">
|
|
319
|
+
<caret line="5" column="22" lean-forward="true" selection-start-line="5" selection-start-column="22" selection-end-line="5" selection-end-column="22" />
|
|
320
|
+
</state>
|
|
321
|
+
</provider>
|
|
322
|
+
</entry>
|
|
207
323
|
</component>
|
|
208
324
|
</project>
|
package/build/main/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './lib/auth0/crear-usuario-dto/crear-usuario-dto';
|
|
|
6
6
|
export * from './lib/auth0/interfaces/funciones-seguridad';
|
|
7
7
|
export * from './lib/auth0/interfaces/mensajes-controlador';
|
|
8
8
|
export * from './lib/auth0/interfaces/busqueda-nombre';
|
|
9
|
+
export * from './lib/auth0/seguridad-jwt-moviles/check-jwt';
|
|
9
10
|
export * from './lib/one-signal/one-signal.service';
|
|
10
11
|
export * from './lib/one-signal/one-signal.controller';
|
|
11
12
|
export * from './lib/one-signal/interfaces/funciones-seguridad';
|
package/build/main/index.js
CHANGED
|
@@ -8,6 +8,7 @@ __export(require("./lib/auth0/auth0.service"));
|
|
|
8
8
|
__export(require("./lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto"));
|
|
9
9
|
__export(require("./lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto"));
|
|
10
10
|
__export(require("./lib/auth0/crear-usuario-dto/crear-usuario-dto"));
|
|
11
|
+
__export(require("./lib/auth0/seguridad-jwt-moviles/check-jwt"));
|
|
11
12
|
__export(require("./lib/one-signal/one-signal.service"));
|
|
12
13
|
__export(require("./lib/one-signal/one-signal.controller"));
|
|
13
14
|
__export(require("./lib/principal.entity"));
|
|
@@ -20,4 +21,4 @@ __export(require("./lib/interfaces-util/campos-a-buscar"));
|
|
|
20
21
|
__export(require("./lib/funciones-util/typeorm/valor-esta-dentro-del-arreglo"));
|
|
21
22
|
__export(require("./lib/menu/entities/menu-entity"));
|
|
22
23
|
__export(require("./lib/expresiones-regulares/letras-espacios-tildes-enie"));
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxrREFBNkM7QUFDN0MsK0NBQTBDO0FBRTFDLDZGQUF3RjtBQUN4RiwrRUFBMEU7QUFDMUUscUVBQWdFO0FBTWhFLGlFQUE0RDtBQUU1RCx5REFBb0Q7QUFDcEQsNERBQXVEO0FBWXZELDRDQUF1QztBQUN2Qyw2Q0FBd0M7QUFDeEMseUNBQW9DO0FBQ3BDLGdEQUEyQztBQUMzQyw4Q0FBeUM7QUFDekMsNkNBQXdDO0FBS3hDLDJEQUFzRDtBQVN0RCxnRkFBMkU7QUFFM0UscURBQWdEO0FBRWhELDZFQUF3RSJ9
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jwt = require('express-jwt');
|
|
4
|
+
function checkJwt(options) {
|
|
5
|
+
return jwt(options);
|
|
6
|
+
}
|
|
7
|
+
exports.checkJwt = checkJwt;
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stand0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9hdXRoMC9zZWd1cmlkYWQtand0LW1vdmlsZXMvY2hlY2stand0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsTUFBTSxHQUFHLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0FBRW5DLGtCQUF5QixPQUFnQjtJQUN2QyxPQUFPLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUN0QixDQUFDO0FBRkQsNEJBRUMifQ==
|
|
@@ -6,22 +6,26 @@ function convertirArregloEnArregloDeObservables(arregloFunciones, tipoPoliticaSe
|
|
|
6
6
|
arregloFunciones.forEach((funcion) => {
|
|
7
7
|
const esFuncion = typeof funcion === 'function';
|
|
8
8
|
if (esFuncion) {
|
|
9
|
-
const
|
|
9
|
+
const funcionEjecutada = funcion(tipoPoliticaSeguridad, contexto);
|
|
10
|
+
const esPromesa = funcionEjecutada instanceof Promise;
|
|
10
11
|
if (esPromesa) {
|
|
11
|
-
|
|
12
|
-
arregloObservables.push(rxjs_1.from(promesa));
|
|
12
|
+
arregloObservables.push(rxjs_1.from(funcionEjecutada));
|
|
13
13
|
}
|
|
14
14
|
else {
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const esObservable = funcionEjecutada instanceof rxjs_1.Observable;
|
|
16
|
+
if (esObservable) {
|
|
17
|
+
arregloObservables.push(funcionEjecutada);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
arregloObservables.push(rxjs_1.of(funcionEjecutada));
|
|
21
|
+
}
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
arregloObservables.push(funcion);
|
|
24
|
+
else {
|
|
25
|
+
arregloObservables.push(rxjs_1.of(false));
|
|
22
26
|
}
|
|
23
27
|
});
|
|
24
28
|
return arregloObservables;
|
|
25
29
|
}
|
|
26
30
|
exports.convertirArregloEnArregloDeObservables = convertirArregloEnArregloDeObservables;
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGlyLWFycmVnbG8tZW4tYXJyZWdsby1kZS1vYnNlcnZhYmxlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvc2VndXJpZGFkL2Z1bmNpb25lcy9jb252ZXJ0aXItYXJyZWdsby1lbi1hcnJlZ2xvLWRlLW9ic2VydmFibGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0JBQTRDO0FBRzVDLGdEQUF1RCxnQkFBdUIsRUFBRSxxQkFBMkMsRUFBRSxRQUFhO0lBQ3RJLE1BQU0sa0JBQWtCLEdBQUcsRUFBRSxDQUFDO0lBRTlCLGdCQUFnQixDQUFDLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxFQUFFO1FBQ2pDLE1BQU0sU0FBUyxHQUFHLE9BQU8sT0FBTyxLQUFLLFVBQVUsQ0FBQztRQUNoRCxJQUFJLFNBQVMsRUFBRTtZQUNYLE1BQU0sZ0JBQWdCLEdBQUcsT0FBTyxDQUFDLHFCQUFxQixFQUFFLFFBQVEsQ0FBQyxDQUFDO1lBQ2xFLE1BQU0sU0FBUyxHQUFHLGdCQUFnQixZQUFZLE9BQU8sQ0FBQztZQUN0RCxJQUFJLFNBQVMsRUFBRTtnQkFDWCxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsV0FBSSxDQUFDLGdCQUFnQixDQUFDLENBQUMsQ0FBQTthQUNsRDtpQkFBTTtnQkFDSCxNQUFNLFlBQVksR0FBRyxnQkFBZ0IsWUFBWSxpQkFBVSxDQUFDO2dCQUM1RCxJQUFJLFlBQVksRUFBRTtvQkFDZCxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztpQkFDN0M7cUJBQU07b0JBQ0gsa0JBQWtCLENBQUMsSUFBSSxDQUFDLFNBQUUsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUE7aUJBQ2hEO2FBQ0o7U0FDSjthQUFNO1lBQ0gsa0JBQWtCLENBQUMsSUFBSSxDQUFDLFNBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFBO1NBQ3JDO0lBQ0wsQ0FBQyxDQUFDLENBQUM7SUFFSCxPQUFPLGtCQUFrQixDQUFDO0FBQzlCLENBQUM7QUF4QkQsd0ZBd0JDIn0=
|
package/build/module/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './lib/auth0/crear-usuario-dto/crear-usuario-dto';
|
|
|
6
6
|
export * from './lib/auth0/interfaces/funciones-seguridad';
|
|
7
7
|
export * from './lib/auth0/interfaces/mensajes-controlador';
|
|
8
8
|
export * from './lib/auth0/interfaces/busqueda-nombre';
|
|
9
|
+
export * from './lib/auth0/seguridad-jwt-moviles/check-jwt';
|
|
9
10
|
export * from './lib/one-signal/one-signal.service';
|
|
10
11
|
export * from './lib/one-signal/one-signal.controller';
|
|
11
12
|
export * from './lib/one-signal/interfaces/funciones-seguridad';
|
package/build/module/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './lib/auth0/auth0.service';
|
|
|
3
3
|
export * from './lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto';
|
|
4
4
|
export * from './lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto';
|
|
5
5
|
export * from './lib/auth0/crear-usuario-dto/crear-usuario-dto';
|
|
6
|
+
export * from './lib/auth0/seguridad-jwt-moviles/check-jwt';
|
|
6
7
|
export * from './lib/one-signal/one-signal.service';
|
|
7
8
|
export * from './lib/one-signal/one-signal.controller';
|
|
8
9
|
export * from './lib/principal.entity';
|
|
@@ -15,4 +16,4 @@ export * from './lib/interfaces-util/campos-a-buscar';
|
|
|
15
16
|
export * from './lib/funciones-util/typeorm/valor-esta-dentro-del-arreglo';
|
|
16
17
|
export * from './lib/menu/entities/menu-entity';
|
|
17
18
|
export * from './lib/expresiones-regulares/letras-espacios-tildes-enie';
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDJCQUEyQixDQUFDO0FBRTFDLGNBQWMseUVBQXlFLENBQUM7QUFDeEYsY0FBYywyREFBMkQsQ0FBQztBQUMxRSxjQUFjLGlEQUFpRCxDQUFDO0FBTWhFLGNBQWMsNkNBQTZDLENBQUM7QUFFNUQsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLHdDQUF3QyxDQUFDO0FBWXZELGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHlCQUF5QixDQUFDO0FBS3hDLGNBQWMsdUNBQXVDLENBQUM7QUFTdEQsY0FBYyw0REFBNEQsQ0FBQztBQUUzRSxjQUFjLGlDQUFpQyxDQUFDO0FBRWhELGNBQWMseURBQXlELENBQUMifQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const jwt = require('express-jwt');
|
|
2
|
+
export function checkJwt(options) {
|
|
3
|
+
return jwt(options);
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stand0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9hdXRoMC9zZWd1cmlkYWQtand0LW1vdmlsZXMvY2hlY2stand0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sR0FBRyxHQUFHLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQztBQUVuQyxNQUFNLG1CQUFtQixPQUFnQjtJQUN2QyxPQUFPLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUN0QixDQUFDIn0=
|
|
@@ -4,21 +4,25 @@ export function convertirArregloEnArregloDeObservables(arregloFunciones, tipoPol
|
|
|
4
4
|
arregloFunciones.forEach((funcion) => {
|
|
5
5
|
const esFuncion = typeof funcion === 'function';
|
|
6
6
|
if (esFuncion) {
|
|
7
|
-
const
|
|
7
|
+
const funcionEjecutada = funcion(tipoPoliticaSeguridad, contexto);
|
|
8
|
+
const esPromesa = funcionEjecutada instanceof Promise;
|
|
8
9
|
if (esPromesa) {
|
|
9
|
-
|
|
10
|
-
arregloObservables.push(from(promesa));
|
|
10
|
+
arregloObservables.push(from(funcionEjecutada));
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
const esObservable = funcionEjecutada instanceof Observable;
|
|
14
|
+
if (esObservable) {
|
|
15
|
+
arregloObservables.push(funcionEjecutada);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
arregloObservables.push(of(funcionEjecutada));
|
|
19
|
+
}
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
arregloObservables.push(funcion);
|
|
22
|
+
else {
|
|
23
|
+
arregloObservables.push(of(false));
|
|
20
24
|
}
|
|
21
25
|
});
|
|
22
26
|
return arregloObservables;
|
|
23
27
|
}
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGlyLWFycmVnbG8tZW4tYXJyZWdsby1kZS1vYnNlcnZhYmxlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvc2VndXJpZGFkL2Z1bmNpb25lcy9jb252ZXJ0aXItYXJyZWdsby1lbi1hcnJlZ2xvLWRlLW9ic2VydmFibGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFFLEVBQUUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUc1QyxNQUFNLGlEQUFpRCxnQkFBdUIsRUFBRSxxQkFBMkMsRUFBRSxRQUFhO0lBQ3RJLE1BQU0sa0JBQWtCLEdBQUcsRUFBRSxDQUFDO0lBRTlCLGdCQUFnQixDQUFDLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxFQUFFO1FBQ2pDLE1BQU0sU0FBUyxHQUFHLE9BQU8sT0FBTyxLQUFLLFVBQVUsQ0FBQztRQUNoRCxJQUFJLFNBQVMsRUFBRTtZQUNYLE1BQU0sZ0JBQWdCLEdBQUcsT0FBTyxDQUFDLHFCQUFxQixFQUFFLFFBQVEsQ0FBQyxDQUFDO1lBQ2xFLE1BQU0sU0FBUyxHQUFHLGdCQUFnQixZQUFZLE9BQU8sQ0FBQztZQUN0RCxJQUFJLFNBQVMsRUFBRTtnQkFDWCxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLENBQUMsQ0FBQTthQUNsRDtpQkFBTTtnQkFDSCxNQUFNLFlBQVksR0FBRyxnQkFBZ0IsWUFBWSxVQUFVLENBQUM7Z0JBQzVELElBQUksWUFBWSxFQUFFO29CQUNkLGtCQUFrQixDQUFDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO2lCQUM3QztxQkFBTTtvQkFDSCxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLGdCQUFnQixDQUFDLENBQUMsQ0FBQTtpQkFDaEQ7YUFDSjtTQUNKO2FBQU07WUFDSCxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUE7U0FDckM7SUFDTCxDQUFDLENBQUMsQ0FBQztJQUVILE9BQU8sa0JBQWtCLENBQUM7QUFDOUIsQ0FBQyJ9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manticore-labs/nest",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.63",
|
|
4
4
|
"description": "Manticore labs nestjs classes",
|
|
5
5
|
"main": "build/main/index.js",
|
|
6
6
|
"typings": "build/main/index.d.ts",
|
|
@@ -61,8 +61,10 @@
|
|
|
61
61
|
"axios": "^0.18.0",
|
|
62
62
|
"class-transformer": "^0.1.9",
|
|
63
63
|
"class-validator": "^0.9.1",
|
|
64
|
+
"express-jwt": "^5.3.1",
|
|
64
65
|
"graphql": "^14.0.2",
|
|
65
66
|
"graphql-tools": "^3.1.1",
|
|
67
|
+
"jwks-rsa": "^1.3.0",
|
|
66
68
|
"mysql": "^2.16.0",
|
|
67
69
|
"rxjs": "^6.2.1",
|
|
68
70
|
"sha.js": "^2.4.11",
|