Skip to content

Commit 4ac99f6

Browse files
build(deps-dev): bump typescript from 5.5.4 to 5.7.3 (#1942)
* build(deps-dev): bump typescript from 5.5.4 to 5.7.3 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 5.7.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](microsoft/TypeScript@v5.5.4...v5.7.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix: removing unnecessary Buffer.from in generateNonce --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Madhavi Losetty <[email protected]>
1 parent 1f6dd43 commit 4ac99f6

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

jest.config.ts jest.config.cjs

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import type { JestConfigWithTsJest } from 'ts-jest'
2-
3-
const config: JestConfigWithTsJest = {
4-
preset: 'ts-jest/presets/default-esm', // or other ESM presets
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest/presets/default-esm',
54
extensionsToTreatAsEsm: ['.ts'],
65
moduleNameMapper: {
76
'^(\\.{1,2}/.*)\\.js$': '$1'
@@ -28,6 +27,4 @@ const config: JestConfigWithTsJest = {
2827
reporters: ['default', 'jest-junit'],
2928
testEnvironment: 'node',
3029
moduleDirectories: ['node_modules', 'src']
31-
}
32-
33-
export default config
30+
}

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"ts-jest": "^29.2.5",
9595
"ts-jest-mock-import-meta": "^1.2.1",
9696
"ts-node": "^10.9.2",
97-
"typescript": "^5.5.4",
97+
"typescript": "^5.7.3",
9898
"typescript-eslint": "8.19.1"
9999
},
100100
"optionalDependencies": {

src/utils/PasswordHelper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const PasswordHelper = {
1212
* @returns {buffer} Returns console nonce used to verify RCS server to AMT
1313
*/
1414
generateNonce: (): Buffer => {
15-
const nonce = Buffer.from(crypto.randomBytes(20), 0, 20)
15+
const nonce = crypto.randomBytes(20)
1616
return nonce
1717
},
1818

0 commit comments

Comments
 (0)