alchemymvc 1.3.22 → 1.4.0-alpha.2

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.
Files changed (155) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/lib/app/behaviour/publishable_behaviour.js +5 -5
  4. package/lib/app/behaviour/revision_behaviour.js +96 -59
  5. package/lib/app/behaviour/sluggable_behaviour.js +14 -14
  6. package/lib/app/conduit/electron_conduit.js +9 -9
  7. package/lib/app/conduit/http_conduit.js +13 -13
  8. package/lib/app/conduit/loopback_conduit.js +15 -15
  9. package/lib/app/conduit/socket_conduit.js +43 -43
  10. package/lib/app/config/routes.js +26 -0
  11. package/lib/app/controller/00-default_app_controller.js +21 -0
  12. package/lib/app/controller/alchemy_info_controller.js +12 -12
  13. package/lib/app/datasource/mongo_datasource.js +27 -18
  14. package/lib/app/element/00-default_app_element.js +19 -0
  15. package/lib/app/element/time_ago.js +5 -5
  16. package/lib/app/helper/00-default_app_helper.js +11 -0
  17. package/lib/app/helper/alchemy_helper.js +22 -22
  18. package/lib/app/helper/backed_map.js +1 -1
  19. package/lib/app/helper/breadcrumb.js +10 -10
  20. package/lib/app/helper/client_collection.js +3 -3
  21. package/lib/app/helper/cron.js +29 -29
  22. package/lib/app/helper/enum_values.js +6 -6
  23. package/lib/app/helper/pagination_helper.js +36 -36
  24. package/lib/app/helper/router_helper.js +35 -35
  25. package/lib/app/helper/socket_helper.js +57 -57
  26. package/lib/app/helper/syncable.js +62 -62
  27. package/lib/app/helper_component/paginate_component.js +9 -9
  28. package/lib/app/helper_controller/component.js +1 -1
  29. package/lib/app/helper_controller/conduit.js +31 -31
  30. package/lib/app/helper_controller/controller.js +54 -39
  31. package/lib/app/helper_datasource/00-nosql_datasource.js +624 -70
  32. package/lib/app/helper_datasource/05-fallback_datasource.js +10 -10
  33. package/lib/app/helper_datasource/idb_datasource.js +6 -6
  34. package/lib/app/helper_datasource/indexed_db.js +22 -22
  35. package/lib/app/helper_datasource/remote_datasource.js +5 -5
  36. package/lib/app/helper_error/http_error.js +4 -4
  37. package/lib/app/helper_error/model_error.js +2 -2
  38. package/lib/app/helper_error/validation_error.js +12 -12
  39. package/lib/app/helper_field/00-objectid_field.js +7 -7
  40. package/lib/app/helper_field/05-string_field.js +16 -12
  41. package/lib/app/helper_field/06-text_field.js +2 -4
  42. package/lib/app/helper_field/10-number_field.js +9 -12
  43. package/lib/app/helper_field/11-date_field.js +15 -15
  44. package/lib/app/helper_field/15-local_temporal_field.js +10 -10
  45. package/lib/app/helper_field/20-decimal_field.js +8 -9
  46. package/lib/app/helper_field/belongsto_field.js +1 -1
  47. package/lib/app/helper_field/big_int_field.js +8 -8
  48. package/lib/app/helper_field/boolean_field.js +9 -11
  49. package/lib/app/helper_field/datetime_field.js +3 -3
  50. package/lib/app/helper_field/enum_field.js +13 -8
  51. package/lib/app/helper_field/fixed_decimal_field.js +6 -7
  52. package/lib/app/helper_field/geopoint_field.js +9 -10
  53. package/lib/app/helper_field/habtm_field.js +3 -3
  54. package/lib/app/helper_field/hasoneparent_field.js +1 -1
  55. package/lib/app/helper_field/html_field.js +2 -4
  56. package/lib/app/helper_field/integer_field.js +8 -11
  57. package/lib/app/helper_field/local_date_field.js +5 -5
  58. package/lib/app/helper_field/local_date_time_field.js +5 -5
  59. package/lib/app/helper_field/local_time_field.js +5 -5
  60. package/lib/app/helper_field/mixed_field.js +5 -5
  61. package/lib/app/helper_field/object_field.js +6 -6
  62. package/lib/app/helper_field/password_field.js +3 -3
  63. package/lib/app/helper_field/regexp_field.js +7 -9
  64. package/lib/app/helper_field/schema_field.js +91 -88
  65. package/lib/app/helper_field/settings_field.js +92 -0
  66. package/lib/app/helper_field/time_field.js +6 -6
  67. package/lib/app/helper_field/url_field.js +2 -4
  68. package/lib/app/helper_model/00-base_criteria.js +662 -0
  69. package/lib/app/helper_model/05-criteria_expressions.js +605 -0
  70. package/lib/app/helper_model/10-model_criteria.js +1182 -0
  71. package/lib/app/helper_model/data_provider.js +2 -2
  72. package/lib/app/helper_model/document.js +103 -92
  73. package/lib/app/helper_model/document_list.js +14 -14
  74. package/lib/app/helper_model/field_config.js +11 -11
  75. package/lib/app/helper_model/field_set.js +17 -17
  76. package/lib/app/helper_model/model.js +201 -123
  77. package/lib/app/helper_model/remote_data_provider.js +2 -2
  78. package/lib/app/helper_validator/00_validator.js +16 -16
  79. package/lib/app/helper_validator/not_empty_validator.js +9 -9
  80. package/lib/app/model/00-default_app_model.js +18 -0
  81. package/lib/app/model/05-system_model.js +27 -0
  82. package/lib/app/model/{alchemy_migration_model.js → system_migration_model.js} +4 -4
  83. package/lib/app/model/system_setting_model.js +154 -0
  84. package/lib/app/model/{alchemy_task_history_model.js → system_task_history_model.js} +7 -7
  85. package/lib/app/model/{alchemy_task_model.js → system_task_model.js} +11 -11
  86. package/lib/bootstrap.js +22 -312
  87. package/lib/class/accumulator.js +5 -5
  88. package/lib/class/behaviour.js +5 -5
  89. package/lib/class/component.js +3 -3
  90. package/lib/class/conduit.js +152 -150
  91. package/lib/class/controller.js +42 -42
  92. package/lib/class/datasource.js +74 -79
  93. package/lib/class/document.js +74 -95
  94. package/lib/class/document_list.js +5 -5
  95. package/lib/class/element.js +17 -17
  96. package/lib/class/error.js +3 -3
  97. package/lib/class/field.js +169 -91
  98. package/lib/class/field_value.js +6 -6
  99. package/lib/class/helper.js +3 -3
  100. package/lib/class/inode.js +17 -17
  101. package/lib/class/inode_dir.js +12 -12
  102. package/lib/class/inode_file.js +26 -26
  103. package/lib/class/inode_list.js +4 -4
  104. package/lib/class/migration.js +4 -4
  105. package/lib/class/model.js +146 -165
  106. package/lib/class/path_definition.js +22 -22
  107. package/lib/class/path_evaluator.js +5 -5
  108. package/lib/class/path_param_definition.js +7 -7
  109. package/lib/class/plugin.js +312 -0
  110. package/lib/class/postponement.js +29 -29
  111. package/lib/class/reciprocal.js +8 -8
  112. package/lib/class/route.js +33 -33
  113. package/lib/class/router.js +73 -73
  114. package/lib/class/schema.js +21 -21
  115. package/lib/class/schema_client.js +105 -82
  116. package/lib/class/session.js +63 -29
  117. package/lib/class/session_scene.js +4 -4
  118. package/lib/class/sitemap.js +16 -16
  119. package/lib/class/task.js +39 -39
  120. package/lib/class/task_service.js +43 -47
  121. package/lib/{init → core}/alchemy.js +411 -373
  122. package/lib/{init/functions.js → core/alchemy_functions.js} +113 -91
  123. package/lib/core/alchemy_load_functions.js +715 -0
  124. package/lib/core/base.js +50 -62
  125. package/lib/core/client_alchemy.js +144 -152
  126. package/lib/core/client_base.js +27 -50
  127. package/lib/core/discovery.js +16 -18
  128. package/lib/core/middleware.js +54 -43
  129. package/lib/core/{routing.js → prefix.js} +14 -16
  130. package/lib/core/setting.js +1684 -0
  131. package/lib/core/stage.js +758 -0
  132. package/lib/scripts/create_constants.js +119 -0
  133. package/lib/{init/languages.js → scripts/create_languages.js} +5 -5
  134. package/lib/scripts/create_settings.js +449 -0
  135. package/lib/scripts/create_shared_constants.js +95 -0
  136. package/lib/scripts/create_stages.js +55 -0
  137. package/lib/scripts/init_alchemy.js +51 -0
  138. package/lib/{init/requirements.js → scripts/preload_modules.js} +15 -2
  139. package/lib/scripts/setup_devwatch.js +238 -0
  140. package/lib/stages/00-load_core.js +342 -0
  141. package/lib/stages/05-load_app.js +57 -0
  142. package/lib/stages/10-datasource.js +61 -0
  143. package/lib/stages/15-tasks.js +27 -0
  144. package/lib/stages/20-settings.js +68 -0
  145. package/lib/stages/50-routes.js +218 -0
  146. package/lib/stages/90-server.js +347 -0
  147. package/package.json +5 -7
  148. package/lib/app/helper_model/criteria.js +0 -2294
  149. package/lib/app/helper_model/db_query.js +0 -1488
  150. package/lib/app/routes.js +0 -11
  151. package/lib/core/socket.js +0 -171
  152. package/lib/init/constants.js +0 -158
  153. package/lib/init/devwatch.js +0 -238
  154. package/lib/init/load_functions.js +0 -979
  155. package/lib/stages.js +0 -515
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The Alchemy helper
3
3
  *
4
- * @author Jelle De Loecker <jelle@develry.be>
4
+ * @author Jelle De Loecker <jelle@elevenways.be>
5
5
  * @since 0.0.1
6
6
  * @version 1.0.0
7
7
  *
@@ -14,7 +14,7 @@ var Alchemy = Function.inherits('Alchemy.Helper', function Alchemy(view) {
14
14
  /**
15
15
  * Function to execute on the client side, when the scene is made
16
16
  *
17
- * @author Jelle De Loecker <jelle@develry.be>
17
+ * @author Jelle De Loecker <jelle@elevenways.be>
18
18
  * @since 0.2.0
19
19
  * @version 1.0.7
20
20
  *
@@ -28,11 +28,11 @@ Alchemy.setStatic(function onScene(scene, options) {
28
28
  /**
29
29
  * Perform a resource request
30
30
  *
31
- * @author Jelle De Loecker <jelle@elevenways.be>
31
+ * @author Jelle De Loecker <jelle@elevenways.be>
32
32
  * @since 0.0.1
33
33
  * @version 1.3.21
34
34
  *
35
- * @param {String|Object} options
35
+ * @param {string|Object} options
36
36
  * @param {Object} data
37
37
  * @param {Function} callback
38
38
  *
@@ -163,13 +163,13 @@ Alchemy.setMethod(function getResource(options, data, callback) {
163
163
  /**
164
164
  * Register & recompile a callback
165
165
  *
166
- * @author Jelle De Loecker <jelle@develry.be>
167
- * @since 0.2.0
168
- * @version 0.2.0
166
+ * @author Jelle De Loecker <jelle@elevenways.be>
167
+ * @since 0.2.0
168
+ * @version 0.2.0
169
169
  *
170
- * @param {Function} callback
170
+ * @param {Function} callback
171
171
  *
172
- * @return {Function}
172
+ * @return {Function}
173
173
  */
174
174
  Alchemy.setMethod(function registerCallback(callback) {
175
175
 
@@ -201,9 +201,9 @@ Alchemy.setMethod(function registerCallback(callback) {
201
201
  /**
202
202
  * Register a group and possible id
203
203
  *
204
- * @author Jelle De Loecker <jelle@develry.be>
205
- * @since 0.2.0
206
- * @version 0.2.0
204
+ * @author Jelle De Loecker <jelle@elevenways.be>
205
+ * @since 0.2.0
206
+ * @version 0.2.0
207
207
  */
208
208
  Alchemy.setMethod(function registerGroup(name, id, callback) {
209
209
 
@@ -233,9 +233,9 @@ Alchemy.setMethod(function registerGroup(name, id, callback) {
233
233
  /**
234
234
  * Get the group data
235
235
  *
236
- * @author Jelle De Loecker <jelle@develry.be>
237
- * @since 0.2.0
238
- * @version 0.2.0
236
+ * @author Jelle De Loecker <jelle@elevenways.be>
237
+ * @since 0.2.0
238
+ * @version 0.2.0
239
239
  */
240
240
  Alchemy.setMethod(function getGroupData(name, callback) {
241
241
 
@@ -257,9 +257,9 @@ Alchemy.setMethod(function getGroupData(name, callback) {
257
257
  * Aggregate data.
258
258
  * The callback needs to be named and be unique per scope structure
259
259
  *
260
- * @author Jelle De Loecker <jelle@develry.be>
261
- * @since 0.2.0
262
- * @version 0.2.0
260
+ * @author Jelle De Loecker <jelle@elevenways.be>
261
+ * @since 0.2.0
262
+ * @version 0.2.0
263
263
  */
264
264
  Alchemy.setMethod(function group(name, id, callback) {
265
265
 
@@ -294,11 +294,11 @@ Alchemy.setMethod(function group(name, id, callback) {
294
294
  /**
295
295
  * Print a segment
296
296
  *
297
- * @author Jelle De Loecker <jelle@elevenways.be>
297
+ * @author Jelle De Loecker <jelle@elevenways.be>
298
298
  * @since 0.5.0
299
299
  * @version 1.3.17
300
300
  *
301
- * @param {String|Object} options
301
+ * @param {string|Object} options
302
302
  * @param {Object} data
303
303
  *
304
304
  * @return {HePlaceholder}
@@ -370,11 +370,11 @@ Alchemy.setMethod(function segment(options, data) {
370
370
  /**
371
371
  * Get the current locale
372
372
  *
373
- * @author Jelle De Loecker <jelle@develry.be>
373
+ * @author Jelle De Loecker <jelle@elevenways.be>
374
374
  * @since 1.1.0
375
375
  * @version 1.1.0
376
376
  *
377
- * @return {String}
377
+ * @return {string}
378
378
  */
379
379
  Alchemy.setMethod(function getLocale() {
380
380
 
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @constructor
5
5
  *
6
- * @author Jelle De Loecker <jelle@elevenways.be>
6
+ * @author Jelle De Loecker <jelle@elevenways.be>
7
7
  * @since 1.2.1
8
8
  * @version 1.3.5
9
9
  */
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * @constructor
5
5
  *
6
- * @author Jelle De Loecker <jelle@elevenways.be>
6
+ * @author Jelle De Loecker <jelle@elevenways.be>
7
7
  * @since 1.3.8
8
8
  * @version 1.3.8
9
9
  *
10
- * @param {String} input
10
+ * @param {string} input
11
11
  */
12
12
  const Breadcrumb = Function.inherits('Alchemy.Base', function Breadcrumb(input) {
13
13
 
@@ -21,11 +21,11 @@ const Breadcrumb = Function.inherits('Alchemy.Base', function Breadcrumb(input)
21
21
  /**
22
22
  * Get the number of trails
23
23
  *
24
- * @author Jelle De Loecker <jelle@elevenways.be>
24
+ * @author Jelle De Loecker <jelle@elevenways.be>
25
25
  * @since 1.3.8
26
26
  * @version 1.3.8
27
27
  *
28
- * @return {Number}
28
+ * @return {number}
29
29
  */
30
30
  Breadcrumb.setProperty(function length() {
31
31
  return this.trails.length;
@@ -34,11 +34,11 @@ Breadcrumb.setProperty(function length() {
34
34
  /**
35
35
  * Add a breadcrumb trail
36
36
  *
37
- * @author Jelle De Loecker <jelle@elevenways.be>
37
+ * @author Jelle De Loecker <jelle@elevenways.be>
38
38
  * @since 1.3.8
39
39
  * @version 1.3.8
40
40
  *
41
- * @param {String} input
41
+ * @param {string} input
42
42
  */
43
43
  Breadcrumb.setMethod(function addTrail(input) {
44
44
 
@@ -94,7 +94,7 @@ Breadcrumb.setMethod(function addTrail(input) {
94
94
  /**
95
95
  * Do these 2 breadcrumbs match loosely?
96
96
  *
97
- * @author Jelle De Loecker <jelle@elevenways.be>
97
+ * @author Jelle De Loecker <jelle@elevenways.be>
98
98
  * @since 1.3.8
99
99
  * @version 1.3.8
100
100
  *
@@ -107,13 +107,13 @@ Breadcrumb.setMethod(function matches(other) {
107
107
  /**
108
108
  * What leven of match is there between these 2 breadcrumbs?
109
109
  *
110
- * @author Jelle De Loecker <jelle@elevenways.be>
110
+ * @author Jelle De Loecker <jelle@elevenways.be>
111
111
  * @since 1.3.8
112
112
  * @version 1.3.8
113
113
  *
114
114
  * @param {Alchemy.Breadcrumb} other
115
115
  *
116
- * @return {Number} 1 for a strict match, 2 for a loose match
116
+ * @return {number} 1 for a strict match, 2 for a loose match
117
117
  */
118
118
  Breadcrumb.setMethod(function matchLevel(other) {
119
119
 
@@ -147,7 +147,7 @@ Breadcrumb.setMethod(function matchLevel(other) {
147
147
  /**
148
148
  * Turn it into a string
149
149
  *
150
- * @author Jelle De Loecker <jelle@elevenways.be>
150
+ * @author Jelle De Loecker <jelle@elevenways.be>
151
151
  * @since 1.3.8
152
152
  * @version 1.3.8
153
153
  */
@@ -6,11 +6,11 @@ if (Blast.isNode) {
6
6
  /**
7
7
  * The ClientCollection class
8
8
  *
9
- * @author Jelle De Loecker <jelle@develry.be>
9
+ * @author Jelle De Loecker <jelle@elevenways.be>
10
10
  * @since 1.0.0
11
11
  * @version 1.0.0
12
12
  *
13
- * @param {String} name
13
+ * @param {string} name
14
14
  */
15
15
  var ClientCollection = Blast.Bound.Function.inherits('Alchemy.Base', function ClientCollection(name) {
16
16
 
@@ -24,7 +24,7 @@ var ClientCollection = Blast.Bound.Function.inherits('Alchemy.Base', function Cl
24
24
  /**
25
25
  * Initialize the connection
26
26
  *
27
- * @author Jelle De Loecker <jelle@develry.be>
27
+ * @author Jelle De Loecker <jelle@elevenways.be>
28
28
  * @since 1.0.0
29
29
  * @version 1.0.0
30
30
  */
@@ -54,7 +54,7 @@ const FIELD_INFO = {
54
54
  * The Cron class:
55
55
  * Represents a Cron frequency
56
56
  *
57
- * @author Jelle De Loecker <jelle@elevenways.be>
57
+ * @author Jelle De Loecker <jelle@elevenways.be>
58
58
  * @since 1.3.17
59
59
  * @version 1.3.17
60
60
  */
@@ -95,13 +95,13 @@ Cron.setStatic('PREDEFINED_EXPRESSIONS', {
95
95
  /**
96
96
  * Undry this value
97
97
  *
98
- * @author Jelle De Loecker <jelle@elevenways.be>
98
+ * @author Jelle De Loecker <jelle@elevenways.be>
99
99
  * @since 1.3.17
100
100
  * @version 1.3.17
101
101
  *
102
- * @param {Object} data
102
+ * @param {Object} data
103
103
  *
104
- * @return {Cron}
104
+ * @return {Cron}
105
105
  */
106
106
  Cron.setStatic(function unDry(data) {
107
107
  let result = new Cron(data.input, data.options);
@@ -111,7 +111,7 @@ Cron.setStatic(function unDry(data) {
111
111
  /**
112
112
  * Serialize this cron instance
113
113
  *
114
- * @author Jelle De Loecker <jelle@elevenways.be>
114
+ * @author Jelle De Loecker <jelle@elevenways.be>
115
115
  * @since 1.3.17
116
116
  * @version 1.3.17
117
117
  */
@@ -151,7 +151,7 @@ Cron.setMethod(function parse(input) {
151
151
  * @since 1.3.17
152
152
  * @version 1.3.17
153
153
  *
154
- * @param {String} expression
154
+ * @param {string} expression
155
155
  *
156
156
  * @return {Cron.Expression}
157
157
  */
@@ -245,7 +245,7 @@ Cron.setMethod(function matches(date) {
245
245
  * The CronExpression:
246
246
  * This represents a single Cron frequency expression
247
247
  *
248
- * @author Jelle De Loecker <jelle@elevenways.be>
248
+ * @author Jelle De Loecker <jelle@elevenways.be>
249
249
  * @since 1.3.17
250
250
  * @version 1.3.17
251
251
  */
@@ -674,7 +674,7 @@ CronExpression.setMethod(function parseLastDays(field, value) {
674
674
  * @version 1.3.17
675
675
  *
676
676
  * @param {Date} current_date
677
- * @param {Boolean} add_one_second When false, the current date might be returned
677
+ * @param {boolean} add_one_second When false, the current date might be returned
678
678
  *
679
679
  * @return {Date}
680
680
  */
@@ -731,7 +731,7 @@ CronExpression.setMethod(function getNextDate(current_date, add_one_second = tru
731
731
  *
732
732
  * @param {Date} date
733
733
  * @param {Object} config
734
- * @param {String} unit
734
+ * @param {string} unit
735
735
  */
736
736
  CronExpression.setMethod(function _modifyDate(date) {
737
737
 
@@ -792,7 +792,7 @@ CronExpression.setMethod(function _modifyDate(date) {
792
792
  *
793
793
  * @param {Date} date
794
794
  * @param {Object} config
795
- * @param {String} unit
795
+ * @param {string} unit
796
796
  */
797
797
  CronExpression.setMethod(function modifyDate(date, config, unit) {
798
798
 
@@ -856,9 +856,9 @@ CronExpression.setMethod(function modifyDate(date, config, unit) {
856
856
  *
857
857
  * @param {Date} date The date to modify in-place
858
858
  * @param {Object} config The parsed Cron field expression
859
- * @param {String} unit The unit of time (day, month, second, hour, ...)
859
+ * @param {string} unit The unit of time (day, month, second, hour, ...)
860
860
  *
861
- * @return {Boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
861
+ * @return {boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
862
862
  */
863
863
  CronExpression.setMethod(function modifyDateUsingValues(date, config, unit) {
864
864
 
@@ -935,7 +935,7 @@ CronExpression.setMethod(function modifyDateUsingValues(date, config, unit) {
935
935
  *
936
936
  * @param {Date} date
937
937
  * @param {Object} config
938
- * @param {String} unit
938
+ * @param {string} unit
939
939
  */
940
940
  CronExpression.setMethod(function modifyDateUsingRanges(date, config, unit) {
941
941
 
@@ -1000,7 +1000,7 @@ CronExpression.setMethod(function modifyDateUsingRanges(date, config, unit) {
1000
1000
  *
1001
1001
  * @param {Date} date
1002
1002
  * @param {Object} config
1003
- * @param {String} unit
1003
+ * @param {string} unit
1004
1004
  */
1005
1005
  CronExpression.setMethod(function modifyDateUsingSteps(date, config, unit) {
1006
1006
 
@@ -1077,9 +1077,9 @@ CronExpression.setMethod(function modifyDateUsingSteps(date, config, unit) {
1077
1077
  *
1078
1078
  * @param {Date} date The date to modify in-place
1079
1079
  * @param {Object} config The parsed Cron field expression
1080
- * @param {String} unit The unit of time. Should always be day_of_week
1080
+ * @param {string} unit The unit of time. Should always be day_of_week
1081
1081
  *
1082
- * @return {Boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1082
+ * @return {boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1083
1083
  */
1084
1084
  CronExpression.setMethod(function modifyDateUsingNthDays(date, config, unit) {
1085
1085
 
@@ -1163,9 +1163,9 @@ CronExpression.setMethod(function modifyDateUsingNthDays(date, config, unit) {
1163
1163
  *
1164
1164
  * @param {Date} date The date to modify in-place
1165
1165
  * @param {Object} config The parsed Cron field expression
1166
- * @param {String} unit The unit of time. Should always be day_of_week
1166
+ * @param {string} unit The unit of time. Should always be day_of_week
1167
1167
  *
1168
- * @return {Boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1168
+ * @return {boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1169
1169
  */
1170
1170
  CronExpression.setMethod(function modifyDateUsingLastDays(date, config, unit) {
1171
1171
 
@@ -1212,9 +1212,9 @@ CronExpression.setMethod(function modifyDateUsingLastDays(date, config, unit) {
1212
1212
  *
1213
1213
  * @param {Date} date The date to modify in-place
1214
1214
  * @param {Object} config The parsed Cron field expression
1215
- * @param {String} unit The unit of time. Should always be day_of_week
1215
+ * @param {string} unit The unit of time. Should always be day_of_week
1216
1216
  *
1217
- * @return {Boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1217
+ * @return {boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1218
1218
  */
1219
1219
  CronExpression.setMethod(function modifyDateUsingLastWeekday(date, config, unit) {
1220
1220
 
@@ -1239,9 +1239,9 @@ CronExpression.setMethod(function modifyDateUsingLastWeekday(date, config, unit)
1239
1239
  *
1240
1240
  * @param {Date} date The date to modify in-place
1241
1241
  * @param {Object} config The parsed Cron field expression
1242
- * @param {String} unit The unit of time. Should always be day_of_week
1242
+ * @param {string} unit The unit of time. Should always be day_of_week
1243
1243
  *
1244
- * @return {Boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1244
+ * @return {boolean|null} True if the date was modified, false if it failed, null if it wasn't modified
1245
1245
  */
1246
1246
  CronExpression.setMethod(function modifyDateUsingLastDay(date, config, unit) {
1247
1247
 
@@ -1266,7 +1266,7 @@ CronExpression.setMethod(function modifyDateUsingLastDay(date, config, unit) {
1266
1266
  *
1267
1267
  * @param {Date} date
1268
1268
  * @param {Object} config
1269
- * @param {String} unit
1269
+ * @param {string} unit
1270
1270
  */
1271
1271
  CronExpression.setMethod(function addUnitToDate(date, unit, amount) {
1272
1272
 
@@ -1295,7 +1295,7 @@ CronExpression.setMethod(function addUnitToDate(date, unit, amount) {
1295
1295
  *
1296
1296
  * @param {Date} date
1297
1297
  *
1298
- * @return {Number} The date of the last weekday
1298
+ * @return {number} The date of the last weekday
1299
1299
  */
1300
1300
  CronExpression.setMethod(function getDayOfLastWeekday(date) {
1301
1301
 
@@ -1327,9 +1327,9 @@ CronExpression.setMethod(function getDayOfLastWeekday(date) {
1327
1327
  * @version 1.3.17
1328
1328
  *
1329
1329
  * @param {Date} date
1330
- * @param {Number} day_of_week
1330
+ * @param {number} day_of_week
1331
1331
  *
1332
- * @return {Number} The date of the last weekday
1332
+ * @return {number} The date of the last weekday
1333
1333
  */
1334
1334
  CronExpression.setMethod(function getDayOfLastWantedDayOfWeek(date, wanted_day_of_week) {
1335
1335
 
@@ -1362,7 +1362,7 @@ CronExpression.setMethod(function getDayOfLastWantedDayOfWeek(date, wanted_day_o
1362
1362
  * @version 1.3.17
1363
1363
  *
1364
1364
  * @param {Date} date
1365
- * @param {String} unit
1365
+ * @param {string} unit
1366
1366
  */
1367
1367
  CronExpression.setMethod(function getUnit(date, unit) {
1368
1368
 
@@ -1394,7 +1394,7 @@ CronExpression.setMethod(function getUnit(date, unit) {
1394
1394
  * @since 1.3.17
1395
1395
  * @version 1.3.17
1396
1396
  *
1397
- * @param {String} unit
1397
+ * @param {string} unit
1398
1398
  */
1399
1399
  CronExpression.setMethod(function getUnitMax(unit, of_date) {
1400
1400
 
@@ -1441,7 +1441,7 @@ CronExpression.setMethod(function getUnitMax(unit, of_date) {
1441
1441
  * @since 1.3.17
1442
1442
  * @version 1.3.17
1443
1443
  *
1444
- * @param {String} unit
1444
+ * @param {string} unit
1445
1445
  */
1446
1446
  CronExpression.setMethod(function getUnitMin(unit, of_date) {
1447
1447
  const info = FIELD_INFO[unit];
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @constructor
5
5
  *
6
- * @author Jelle De Loecker <jelle@elevenways.be>
6
+ * @author Jelle De Loecker <jelle@elevenways.be>
7
7
  * @since 1.2.1
8
8
  * @version 1.2.1
9
9
  */
@@ -12,11 +12,11 @@ const EnumMap = Function.inherits('Alchemy.Map.Backed', 'Enum');
12
12
  /**
13
13
  * Get a value by it's name
14
14
  *
15
- * @author Jelle De Loecker <jelle@elevenways.be>
15
+ * @author Jelle De Loecker <jelle@elevenways.be>
16
16
  * @since 1.2.1
17
17
  * @version 1.2.1
18
18
  *
19
- * @param {String} name
19
+ * @param {string} name
20
20
  *
21
21
  * @return {Mixed}
22
22
  */
@@ -38,11 +38,11 @@ EnumMap.setMethod(function get(name) {
38
38
  /**
39
39
  * Set a value
40
40
  *
41
- * @author Jelle De Loecker <jelle@elevenways.be>
41
+ * @author Jelle De Loecker <jelle@elevenways.be>
42
42
  * @since 1.2.1
43
43
  * @version 1.2.1
44
44
  *
45
- * @param {String} name
45
+ * @param {string} name
46
46
  * @param {*} value
47
47
  *
48
48
  * @return {*}
@@ -89,7 +89,7 @@ EnumMap.setMethod(function set(name, value) {
89
89
  /**
90
90
  * Simplify the object for Hawkejs
91
91
  *
92
- * @author Jelle De Loecker <jelle@elevenways.be>
92
+ * @author Jelle De Loecker <jelle@elevenways.be>
93
93
  * @since 1.2.1
94
94
  * @version 1.3.6
95
95
  *