5htp-core 0.6.2-3 → 0.6.2-4
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp-core",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.6.2-
|
|
4
|
+
"version": "0.6.2-4",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,6 +44,8 @@ export default class Facet<
|
|
|
44
44
|
const { withStats, ...subset } = this.subset(...args);
|
|
45
45
|
|
|
46
46
|
const results = await this.delegate.findMany(subset);
|
|
47
|
+
if (results.length === 0)
|
|
48
|
+
return [];
|
|
47
49
|
|
|
48
50
|
// Load stats
|
|
49
51
|
const stats = withStats
|
|
@@ -60,12 +62,14 @@ export default class Facet<
|
|
|
60
62
|
const { withStats, ...subset } = this.subset(...args);
|
|
61
63
|
|
|
62
64
|
const result = await this.delegate.findFirst(subset);
|
|
65
|
+
if (!result)
|
|
66
|
+
return null;
|
|
63
67
|
|
|
64
68
|
const stats = withStats
|
|
65
69
|
? await this.fetchStats( withStats, [result] )
|
|
66
70
|
: [];
|
|
67
71
|
|
|
68
|
-
return
|
|
72
|
+
return this.transformResult(result, stats, withStats);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
private async fetchStats(
|
|
@@ -81,11 +81,16 @@ export const traiterMultipart = (...canaux: any[]) => {
|
|
|
81
81
|
&&
|
|
82
82
|
donnee.data instanceof Buffer
|
|
83
83
|
){
|
|
84
|
+
const md5 = donnee.md5;
|
|
85
|
+
const data = donnee.data;
|
|
84
86
|
donnee = new File(donnee.data, donnee.name, {
|
|
85
87
|
type: donnee.mimetype,
|
|
86
88
|
lastModified: Date.now(),
|
|
87
89
|
//size: donnee.size,
|
|
88
90
|
});
|
|
91
|
+
|
|
92
|
+
donnee.md5 = md5;
|
|
93
|
+
donnee.data = data;
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
brancheA[ cle ] = donnee;
|
package/types/icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TIcones = "
|
|
1
|
+
export type TIcones = "long-arrow-right"|"times"|"solid/spinner-third"|"check-circle"|"coins"|"building"|"at"|"phone"|"bolt"|"brands/linkedin"|"rocket"|"chart-bar"|"user-circle"|"crosshairs"|"plane-departure"|"plus-circle"|"comments-alt"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"user-plus"|"paper-plane"|"magnet"|"sack-dollar"|"info-circle"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"user"|"sun"|"brands/whatsapp"|"play"|"trash"|"plus"|"check"|"clock"|"cog"|"ellipsis-h"|"angle-up"|"angle-down"|"binoculars"|"regular/shield-check"|"calendar-alt"|"search"|"lightbulb"|"solid/crown"|"eye"|"pen"|"file"|"envelope"|"download"|"exclamation-circle"|"times-circle"|"meh-rolling-eyes"|"arrow-left"|"users"|"bug"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"key"|"power-off"|"bars"|"broom"|"solid/check-circle"|"solid/exclamation-triangle"|"solid/times-circle"|"hourglass"|"question-circle"|"wind"|"minus-circle"|"external-link"|"brands/google"|"coin"|"angle-left"|"angle-right"|"briefcase"|"map-marker-alt"|"graduation-cap"|"plug"|"minus"|"arrow-to-bottom"|"map-marker"|"fire"|"solid/magic"|"globe"|"magic"|"industry"|"calendar"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"unlink"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"
|