5htp-core 0.6.2-2 → 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-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",
@@ -339,7 +339,7 @@ export default class Console {
339
339
  }
340
340
 
341
341
  // Genertae unique error hash
342
- const hash = md5( stacktraces.join('\n') );
342
+ const hash = md5( stacktraces[0] );
343
343
 
344
344
  // Don't send the same error twice in a row (avoid email spamming)
345
345
  const lastReport = this.reported[hash];
@@ -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 result ? this.transformResult(result, stats, withStats) : null;
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 = "solid/spinner-third"|"long-arrow-right"|"times-circle"|"brands/whatsapp"|"times"|"search"|"user"|"rocket"|"globe"|"bullhorn"|"briefcase"|"chart-line"|"handshake"|"ellipsis-h"|"brands/google"|"brands/reddit-alien"|"brands/linkedin-in"|"brands/github"|"robot"|"comments"|"user-friends"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"angle-down"|"info-circle"|"check-circle"|"exclamation-circle"|"bars"|"font"|"tag"|"compress"|"bolt"|"puzzle-piece"|"planet-ringed"|"heart"|"lock"|"eye"|"credit-card"|"at"|"brands/linkedin"|"key"|"chart-bar"|"power-off"|"database"|"solid/fire"|"usd-circle"|"lightbulb"|"solid/dollar-sign"|"download"|"code"|"solid/clock"|"seedling"|"palette"|"car"|"plane"|"university"|"hard-hat"|"graduation-cap"|"cogs"|"film"|"leaf"|"tshirt"|"utensils"|"map-marked-alt"|"dumbbell"|"stethoscope"|"concierge-bell"|"book"|"shield-alt"|"gavel"|"industry"|"square-root-alt"|"newspaper"|"pills"|"medal"|"capsules"|"balance-scale"|"home"|"praying-hands"|"shopping-cart"|"flask"|"futbol"|"microchip"|"satellite-dish"|"shipping-fast"|"passport"|"tools"|"plus-circle"|"exclamation"|"solid/download"|"user-circle"|"brands/twitter"|"brands/facebook"|"comment-alt"|"check"|"paper-plane"|"long-arrow-left"|"angle-left"|"angle-right"|"trash"|"meh-rolling-eyes"|"arrow-left"|"arrow-right"|"bold"|"italic"|"underline"|"link"|"strikethrough"|"subscript"|"superscript"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"file"|"unlink"|"pen"|"plus"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"
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"