Skip to content

Commit da77c47

Browse files
committed
Package got updated!
1 parent 8797204 commit da77c47

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

index.cjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
'use strict'
1+
'use strict';
22
function randomString(length) {
3-
if (!length) length = Math.ceil(Math.random() * 10 * 2)
3+
if (!length) length = Math.ceil(Math.random() * 10 * 2);
44
var string = '',
55
allowedCharacters =
6-
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*'
7-
const allowedCharactersLength = allowedCharacters.length
6+
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*';
7+
var allowedCharactersLength = allowedCharacters.length;
88
for (var i = 0; i < length; i++)
99
string += allowedCharacters.charAt(
1010
Math.floor(Math.random() * allowedCharactersLength)
11-
)
12-
return string
11+
);
12+
return string;
1313
}
1414

15-
module.exports = randomString
15+
module.exports = randomString;

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@smakss/random-string",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Generates random dummy string.",
55
"type": "module",
66
"main": "index.cjs",
@@ -13,14 +13,14 @@
1313
"url": "git+https://github.com/SMAKSS/random-string.git"
1414
},
1515
"keywords": [
16-
"ES5",
17-
"ES6",
1816
"npm",
1917
"yarn",
2018
"dummy",
2119
"string",
2220
"SMAKSS",
2321
"random",
22+
"CommonJS",
23+
"EcmaScript",
2424
"random-string"
2525
],
2626
"author": "SMAKSS",

0 commit comments

Comments
 (0)