jgloo 1.9.4 → 2.0.0
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/CHANGELOG.md +267 -255
- package/LICENSE +21 -21
- package/README.md +242 -242
- package/cli.mjs +17 -0
- package/jgloo.d.ts +1 -1
- package/jgloo.mjs +28 -0
- package/package.json +4 -4
- package/rest.mjs +93 -0
- package/{server.js → server.mjs} +101 -99
- package/cli +0 -19
- package/jgloo.js +0 -30
- package/rest.js +0 -95
package/CHANGELOG.md
CHANGED
|
@@ -1,255 +1,267 @@
|
|
|
1
|
-
<a name="
|
|
2
|
-
|
|
3
|
-
## [
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
1
|
+
<a name="2.0.0"></a>
|
|
2
|
+
|
|
3
|
+
## [2.0.0](https://github.com/zosma180/jgloo/compare/1.9.4...2.0.0) (2024-12-11)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Converted the codebase to ES module style.
|
|
8
|
+
|
|
9
|
+
**WARNING**: starting from this version, the CommonJS api are nomore supported.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<a name="1.9.4"></a>
|
|
14
|
+
|
|
15
|
+
## [1.9.4](https://github.com/zosma180/jgloo/compare/1.9.3...1.9.4) (2024-03-30)
|
|
16
|
+
|
|
17
|
+
### Fixes
|
|
18
|
+
|
|
19
|
+
- Updated the package-lock to fix the security issues.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<a name="1.9.3"></a>
|
|
24
|
+
|
|
25
|
+
## [1.9.3](https://github.com/zosma180/jgloo/compare/1.9.1...1.9.3) (2024-09-14)
|
|
26
|
+
|
|
27
|
+
### Fixes
|
|
28
|
+
|
|
29
|
+
- fixed the api detection with "cjs" and "mjs" extensions.
|
|
30
|
+
- Updated the package-lock to fix the security issues.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
<a name="1.9.2"></a>
|
|
35
|
+
|
|
36
|
+
## 1.9.2 (Not Available)
|
|
37
|
+
|
|
38
|
+
Version skipped due to publishing issues.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
<a name="1.9.1"></a>
|
|
43
|
+
|
|
44
|
+
## [1.9.1](https://github.com/zosma180/jgloo/compare/1.9.0...1.9.1) (2024-03-30)
|
|
45
|
+
|
|
46
|
+
### Fixes
|
|
47
|
+
|
|
48
|
+
- Updated the package-lock to fix the security issues.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## [1.9.0](https://github.com/zosma180/jgloo/compare/1.8.2...1.9.0) (2023-08-15)
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
- Upgraded to nodemon v3.
|
|
57
|
+
- Minor code improvements.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
<a name="1.8.2"></a>
|
|
62
|
+
|
|
63
|
+
## [1.8.2](https://github.com/zosma180/jgloo/compare/1.8.1...1.8.2) (2022-12-08)
|
|
64
|
+
|
|
65
|
+
### Fixes
|
|
66
|
+
|
|
67
|
+
- Updated the package-lock to fix the security issues.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
<a name="1.8.1"></a>
|
|
72
|
+
|
|
73
|
+
## [1.8.1](https://github.com/zosma180/jgloo/compare/1.8.0...1.8.1) (2022-08-03)
|
|
74
|
+
|
|
75
|
+
### Fixes
|
|
76
|
+
|
|
77
|
+
- Fixed the "delay" option that was applied incorrectly.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
<a name="1.8.0"></a>
|
|
82
|
+
|
|
83
|
+
## [1.8.0](https://github.com/zosma180/jgloo/compare/1.7.0...1.8.0) (2022-07-29)
|
|
84
|
+
|
|
85
|
+
### Features
|
|
86
|
+
|
|
87
|
+
- Added the optional "priority" property to the configuration.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
<a name="1.7.0"></a>
|
|
92
|
+
|
|
93
|
+
## [1.7.0](https://github.com/zosma180/jgloo/compare/1.6.1...1.7.0) (2022-07-28)
|
|
94
|
+
|
|
95
|
+
### Features
|
|
96
|
+
|
|
97
|
+
- Added the support for the recursive folder loading (api and middlewares).
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
<a name="1.6.1"></a>
|
|
102
|
+
|
|
103
|
+
## [1.6.1](https://github.com/zosma180/jgloo/compare/1.6.0...1.6.1) (2022-07-22)
|
|
104
|
+
|
|
105
|
+
### Fixes
|
|
106
|
+
|
|
107
|
+
- Updated the package-lock to fix the security issues.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
<a name="1.6.0"></a>
|
|
112
|
+
|
|
113
|
+
## [1.6.0](https://github.com/zosma180/jgloo/compare/1.5.2...1.6.0) (2022-02-20)
|
|
114
|
+
|
|
115
|
+
### Features
|
|
116
|
+
|
|
117
|
+
- Added the optional "delay" property to the configuration.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
<a name="1.5.2"></a>
|
|
122
|
+
|
|
123
|
+
## [1.5.2](https://github.com/zosma180/jgloo/compare/1.5.1...1.5.2) (2021-02-21)
|
|
124
|
+
|
|
125
|
+
### Fixes
|
|
126
|
+
|
|
127
|
+
- Fixed the folder path with space characters.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
<a name="1.5.1"></a>
|
|
132
|
+
|
|
133
|
+
## [1.5.1](https://github.com/zosma180/jgloo/compare/1.5.0...1.5.1) (2021-02-17)
|
|
134
|
+
|
|
135
|
+
### Fixes
|
|
136
|
+
|
|
137
|
+
- Fixed the folder path for Windows environment.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
<a name="1.5.0"></a>
|
|
142
|
+
|
|
143
|
+
## [1.5.0](https://github.com/zosma180/jgloo/compare/1.4.0...1.5.0) (2021-01-25)
|
|
144
|
+
|
|
145
|
+
### Features
|
|
146
|
+
|
|
147
|
+
- Added the optional "not" property to the default ReST API configuration.
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
<a name="1.4.0"></a>
|
|
152
|
+
|
|
153
|
+
## [1.4.0](https://github.com/zosma180/jgloo/compare/1.3.0...1.4.0) (2020-06-30)
|
|
154
|
+
|
|
155
|
+
### Features
|
|
156
|
+
|
|
157
|
+
- Added the optional parameter to customize the static url.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
<a name="1.3.0"></a>
|
|
162
|
+
|
|
163
|
+
## [1.3.0](https://github.com/zosma180/jgloo/compare/1.2.3...1.3.0) (2020-06-19)
|
|
164
|
+
|
|
165
|
+
### Features
|
|
166
|
+
|
|
167
|
+
- Added the multipart/form-data support to apis.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
<a name="1.2.3"></a>
|
|
172
|
+
|
|
173
|
+
## [1.2.3](https://github.com/zosma180/jgloo/compare/1.2.2...1.2.3) (2020-05-30)
|
|
174
|
+
|
|
175
|
+
### Improvements
|
|
176
|
+
|
|
177
|
+
- Updated the README with the right installation command.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
<a name="1.2.2"></a>
|
|
182
|
+
|
|
183
|
+
## [1.2.2](https://github.com/zosma180/jgloo/compare/1.2.1...1.2.2) (2020-03-22)
|
|
184
|
+
|
|
185
|
+
### Improvements
|
|
186
|
+
|
|
187
|
+
- Rebuilded the project after the security patch of the dependencies.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
<a name="1.2.1"></a>
|
|
192
|
+
|
|
193
|
+
## [1.2.1](https://github.com/zosma180/jgloo/compare/1.2.0...1.2.1) (2020-03-18)
|
|
194
|
+
|
|
195
|
+
### Improvements
|
|
196
|
+
|
|
197
|
+
- Bumpeded minimist from 1.2.0 to 1.2.2 for a security patch.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
<a name="1.2.0"></a>
|
|
202
|
+
|
|
203
|
+
## [1.2.0](https://github.com/zosma180/jgloo/compare/1.1.1...1.2.0) (2020-02-20)
|
|
204
|
+
|
|
205
|
+
### Features
|
|
206
|
+
|
|
207
|
+
- Added the static folder feature.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
<a name="1.1.1"></a>
|
|
212
|
+
|
|
213
|
+
## [1.1.1](https://github.com/zosma180/jgloo/compare/1.1.0...1.1.1) (2020-01-17)
|
|
214
|
+
|
|
215
|
+
### Improvements
|
|
216
|
+
|
|
217
|
+
- Added the json DB to nodemon watch exclusion.
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
<a name="1.1.0"></a>
|
|
222
|
+
|
|
223
|
+
## [1.1.0](https://github.com/zosma180/jgloo/compare/1.0.3...1.1.0) (2019-12-19)
|
|
224
|
+
|
|
225
|
+
### Improvements
|
|
226
|
+
|
|
227
|
+
- Updated and improved CLI arguments.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
<a name="1.0.3"></a>
|
|
232
|
+
|
|
233
|
+
## [1.0.3](https://github.com/zosma180/jgloo/compare/1.0.2...1.0.3) (2019-12-18)
|
|
234
|
+
|
|
235
|
+
### Fixes
|
|
236
|
+
|
|
237
|
+
- Fixed child process remaining alive.
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
<a name="1.0.2"></a>
|
|
242
|
+
|
|
243
|
+
## [1.0.2](https://github.com/zosma180/jgloo/compare/1.0.1...1.0.2) (2019-12-17)
|
|
244
|
+
|
|
245
|
+
### Improvements
|
|
246
|
+
|
|
247
|
+
- Updated the docs on the README.
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
<a name="1.0.1"></a>
|
|
252
|
+
|
|
253
|
+
## [1.0.1](https://github.com/zosma180/jgloo/compare/1.0.0...1.0.1) (2019-12-16)
|
|
254
|
+
|
|
255
|
+
### Fixes
|
|
256
|
+
|
|
257
|
+
- Fixed nodemon path.
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
<a name="1.0.0"></a>
|
|
262
|
+
|
|
263
|
+
## 1.0.0 (2019-12-16)
|
|
264
|
+
|
|
265
|
+
### Features
|
|
266
|
+
|
|
267
|
+
- Released project.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Luca Morello
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Luca Morello
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|