diff options
Diffstat (limited to 'node_modules/locutus/php/strings/sha1_file.js.map')
-rw-r--r-- | node_modules/locutus/php/strings/sha1_file.js.map | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/strings/sha1_file.js.map b/node_modules/locutus/php/strings/sha1_file.js.map deleted file mode 100644 index cf5bcb8..0000000 --- a/node_modules/locutus/php/strings/sha1_file.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/php/strings/sha1_file.js"],"names":["module","exports","sha1_file","str_filename","fileGetContents","require","sha1","buf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,YAApB,EAAkC;AAAE;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,kBAAkBC,QAAQ,iCAAR,CAAtB;AACA,MAAIC,OAAOD,QAAQ,iBAAR,CAAX;AACA,MAAIE,MAAMH,gBAAgBD,YAAhB,CAAV;;AAEA,MAAII,QAAQ,KAAZ,EAAmB;AACjB,WAAO,KAAP;AACD;;AAED,SAAOD,KAAKC,GAAL,CAAP;AACD,CAnBD","file":"sha1_file.js","sourcesContent":["module.exports = function sha1_file (str_filename) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/sha1_file/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // note 1: Relies on file_get_contents which does not work in the browser, so Node only.\n // note 2: Keep in mind that in accordance with PHP, the whole file is buffered and then\n // note 2: hashed. We'd recommend Node's native crypto modules for faster and more\n // note 2: efficient hashing\n // example 1: sha1_file('test/never-change.txt')\n // returns 1: '0ea65a1f4b4d69712affc58240932f3eb8a2af66'\n\n var fileGetContents = require('../filesystem/file_get_contents')\n var sha1 = require('../strings/sha1')\n var buf = fileGetContents(str_filename)\n\n if (buf === false) {\n return false\n }\n\n return sha1(buf)\n}\n"]}
\ No newline at end of file |