Skip to content

Commit

Permalink
deps: unique-filename@2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Aug 25, 2022
1 parent d7e9a8e commit 1286f03
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 31 deletions.
4 changes: 2 additions & 2 deletions node_modules/unique-filename/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unique-filename",
"version": "2.0.0",
"version": "2.0.1",
"description": "Generate a unique filename for use in temporary directories or caches.",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"tap": "^16.3.0"
},
"dependencies": {
"unique-slug": "^2.0.2"
"unique-slug": "^3.0.0"
},
"files": [
"bin/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var MurmurHash3 = require('imurmurhash')
module.exports = function (uniq) {
if (uniq) {
var hash = new MurmurHash3(uniq)
return ('00000000' + hash.result().toString(16)).substr(-8)
return ('00000000' + hash.result().toString(16)).slice(-8)
} else {
return (Math.random().toString(16) + '0000000').substr(2, 8)
return (Math.random().toString(16) + '0000000').slice(2, 10)
}
}
35 changes: 28 additions & 7 deletions node_modules/unique-slug/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
{
"name": "unique-slug",
"version": "2.0.2",
"version": "3.0.0",
"description": "Generate a unique character string suitible for use in files and URLs.",
"main": "index.js",
"main": "lib/index.js",
"scripts": {
"test": "standard && tap --coverage test"
"test": "tap",
"lint": "eslint \"**/*.js\"",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"snap": "tap",
"posttest": "npm run lint"
},
"keywords": [],
"author": "Rebecca Turner <me@re-becca.org> (http://re-becca.org)",
"author": "GitHub Inc.",
"license": "ISC",
"devDependencies": {
"standard": "^12.0.1",
"tap": "^12.7.0"
"@npmcli/eslint-config": "^3.1.0",
"@npmcli/template-oss": "3.5.0",
"tap": "^16.3.0"
},
"repository": {
"type": "git",
"url": "git://github.com/iarna/unique-slug.git"
"url": "https://github.com/npm/unique-slug.git"
},
"dependencies": {
"imurmurhash": "^0.1.4"
},
"files": [
"bin/",
"lib/"
],
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "3.5.0"
}
}
13 changes: 0 additions & 13 deletions node_modules/unique-slug/test/index.js

This file was deleted.

17 changes: 10 additions & 7 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -9916,24 +9916,27 @@
}
},
"node_modules/unique-filename": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.0.tgz",
"integrity": "sha512-tpzoz2RpZ//6Zt4GPpOFTyrnfZuSvjIfe8lvx6Thp4yTQwJtAFwPlssEBE62VhGA2We5/COyNpcIu+OABu3/Yg==",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz",
"integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==",
"inBundle": true,
"dependencies": {
"unique-slug": "^2.0.2"
"unique-slug": "^3.0.0"
},
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
}
},
"node_modules/unique-slug": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz",
"integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz",
"integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==",
"inBundle": true,
"dependencies": {
"imurmurhash": "^0.1.4"
},
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
}
},
"node_modules/unist-builder": {
Expand Down

0 comments on commit 1286f03

Please sign in to comment.