File tree 1 file changed +3
-4
lines changed
packages/@css-blocks/core/src/BlockParser/utils
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import * as process from "process";
5
5
const DEBUG = debugGenerator ( "css-blocks:caching" ) ;
6
6
7
7
/**
8
- * Generates a unique identifier from a given input identifier. This
9
- * generated identifier hash will remain consistent for the tuple of (machine,
10
- * user, css blocks installation location ).
8
+ * Generates a unique identifier from a given input identifier.
9
+ * This generated identifier hash will remain consistent for the tuple
10
+ * (identifier, machine, user ).
11
11
*
12
12
* @param identifier Input Block identifier.
13
13
* @param significantChars Number of characters from the start of the hash to use.
@@ -17,7 +17,6 @@ const DEBUG = debugGenerator("css-blocks:caching");
17
17
export function gen_guid ( identifier : string , signifcantChars : number ) : string {
18
18
let hash = crypto . createHash ( "md5" )
19
19
. update ( process . getuid ( ) . toString ( ) )
20
- . update ( __filename )
21
20
. update ( identifier )
22
21
. digest ( "hex" )
23
22
. slice ( 0 , signifcantChars ) ;
You can’t perform that action at this time.
0 commit comments