sip-nonce 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ function randomString(length) {
8
8
  let res = '';
9
9
  const offset = randomInt(2, 11);
10
10
  let charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz12345679';
11
- var randChars = shuffleString(charset + charset + charset);
11
+ var randChars = shuffleString(`${charset}${charset}${charset}`);
12
12
  for (let i = 0; i < length + offset + 1; i++) {
13
13
  res += randChars.charAt(Math.floor(Math.random() * randChars.length));
14
14
  }
@@ -6,7 +6,7 @@ function randomString(length) {
6
6
  let res = '';
7
7
  const offset = randomInt(2, 11);
8
8
  let charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz12345679';
9
- var randChars = shuffleString(charset + charset + charset);
9
+ var randChars = shuffleString(`${charset}${charset}${charset}`);
10
10
  for (let i = 0; i < length + offset + 1; i++) {
11
11
  res += randChars.charAt(Math.floor(Math.random() * randChars.length));
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sip-nonce",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Small library for generating random SIP nonce values",
5
5
  "keywords": [
6
6
  "sip-nonce",
@@ -16,12 +16,12 @@
16
16
  "url": "git+https://github.com/phonecloud-com/sip-nonce.git"
17
17
  },
18
18
  "license": "ISC",
19
- "author": "Matt MacAdams",
19
+ "author": "PhoneCloud",
20
20
  "type": "module",
21
- "types": "./dist/index.d.ts",
21
+ "types": "./dist/esm/index.d.ts",
22
22
  "scripts": {
23
23
  "build:esm": "tsc",
24
- "build:cjs": "tsc -p tsconfig.cjs.json && mv dist-cjs/index.js dist/index.cjs; rm -fr dist-cjs/",
24
+ "build:cjs": "tsc -p tsconfig.cjs.json",
25
25
  "build": "rm -rf dist && npm run build:esm && npm run build:cjs"
26
26
  },
27
27
  "exports": {
File without changes