File tree Expand file tree Collapse file tree 5 files changed +42
-31
lines changed Expand file tree Collapse file tree 5 files changed +42
-31
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " unique-filename" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " Generate a unique filename for use in temporary directories or caches." ,
55 "main" : " lib/index.js" ,
66 "scripts" : {
3232 "tap" : " ^16.3.0"
3333 },
3434 "dependencies" : {
35- "unique-slug" : " ^2 .0.2 "
35+ "unique-slug" : " ^3 .0.0 "
3636 },
3737 "files" : [
3838 " bin/" ,
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ var MurmurHash3 = require('imurmurhash')
44module . exports = function ( uniq ) {
55 if ( uniq ) {
66 var hash = new MurmurHash3 ( uniq )
7- return ( '00000000' + hash . result ( ) . toString ( 16 ) ) . substr ( - 8 )
7+ return ( '00000000' + hash . result ( ) . toString ( 16 ) ) . slice ( - 8 )
88 } else {
9- return ( Math . random ( ) . toString ( 16 ) + '0000000' ) . substr ( 2 , 8 )
9+ return ( Math . random ( ) . toString ( 16 ) + '0000000' ) . slice ( 2 , 10 )
1010 }
1111}
Original file line number Diff line number Diff line change 11{
22 "name" : " unique-slug" ,
3- "version" : " 2 .0.2 " ,
3+ "version" : " 3 .0.0 " ,
44 "description" : " Generate a unique character string suitible for use in files and URLs." ,
5- "main" : " index.js" ,
5+ "main" : " lib/ index.js" ,
66 "scripts" : {
7- "test" : " standard && tap --coverage test"
7+ "test" : " tap" ,
8+ "lint" : " eslint \" **/*.js\" " ,
9+ "postlint" : " template-oss-check" ,
10+ "template-oss-apply" : " template-oss-apply --force" ,
11+ "lintfix" : " npm run lint -- --fix" ,
12+ "preversion" : " npm test" ,
13+ "postversion" : " npm publish" ,
14+ "prepublishOnly" : " git push origin --follow-tags" ,
15+ "snap" : " tap" ,
16+ "posttest" : " npm run lint"
817 },
918 "keywords" : [],
10- "author" :
" Rebecca Turner <[email protected] > (http://re-becca.org) " ,
19+ "author" : " GitHub Inc. " ,
1120 "license" : " ISC" ,
1221 "devDependencies" : {
13- "standard" : " ^12.0.1" ,
14- "tap" : " ^12.7.0"
22+ "@npmcli/eslint-config" : " ^3.1.0" ,
23+ "@npmcli/template-oss" : " 3.5.0" ,
24+ "tap" : " ^16.3.0"
1525 },
1626 "repository" : {
1727 "type" : " git" ,
18- "url" : " git ://github.com/iarna /unique-slug.git"
28+ "url" : " https ://github.com/npm /unique-slug.git"
1929 },
2030 "dependencies" : {
2131 "imurmurhash" : " ^0.1.4"
32+ },
33+ "files" : [
34+ " bin/" ,
35+ " lib/"
36+ ],
37+ "engines" : {
38+ "node" : " ^12.13.0 || ^14.15.0 || >=16.0.0"
39+ },
40+ "templateOSS" : {
41+ "//@npmcli/template-oss" : " This file is partially managed by @npmcli/template-oss. Edits may be overwritten." ,
42+ "version" : " 3.5.0"
2243 }
2344}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99169916 }
99179917 },
99189918 "node_modules/unique-filename" : {
9919- "version" : " 2.0.0 " ,
9920- "resolved" : " https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.0 .tgz" ,
9921- "integrity" : " sha512-tpzoz2RpZ//6Zt4GPpOFTyrnfZuSvjIfe8lvx6Thp4yTQwJtAFwPlssEBE62VhGA2We5/COyNpcIu+OABu3/Yg ==" ,
9919+ "version" : " 2.0.1 " ,
9920+ "resolved" : " https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1 .tgz" ,
9921+ "integrity" : " sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A ==" ,
99229922 "inBundle" : true ,
99239923 "dependencies" : {
9924- "unique-slug" : " ^2 .0.2 "
9924+ "unique-slug" : " ^3 .0.0 "
99259925 },
99269926 "engines" : {
99279927 "node" : " ^12.13.0 || ^14.15.0 || >=16.0.0"
99289928 }
99299929 },
99309930 "node_modules/unique-slug" : {
9931- "version" : " 2 .0.2 " ,
9932- "resolved" : " https://registry.npmjs.org/unique-slug/-/unique-slug-2 .0.2 .tgz" ,
9933- "integrity" : " sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w ==" ,
9931+ "version" : " 3 .0.0 " ,
9932+ "resolved" : " https://registry.npmjs.org/unique-slug/-/unique-slug-3 .0.0 .tgz" ,
9933+ "integrity" : " sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w ==" ,
99349934 "inBundle" : true ,
99359935 "dependencies" : {
99369936 "imurmurhash" : " ^0.1.4"
9937+ },
9938+ "engines" : {
9939+ "node" : " ^12.13.0 || ^14.15.0 || >=16.0.0"
99379940 }
99389941 },
99399942 "node_modules/unist-builder" : {
You can’t perform that action at this time.
0 commit comments