Skip to content

Commit 74fac83

Browse files
committed
fix: remove @hello.nrfcloud.com/proto as dependency
Closes #8
1 parent 4dfdb6c commit 74fac83

File tree

4 files changed

+11
-69
lines changed

4 files changed

+11
-69
lines changed

package-lock.json

Lines changed: 4 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"peerDependencies": {
9090
"@aws-sdk/client-dynamodb": "^3.556.0",
9191
"@bifravst/http-api-mock": "^1.4.0",
92-
"@hello.nrfcloud.com/proto": "^6.6.3",
9392
"@nordicsemiconductor/bdd-markdown": "^8.1.1",
9493
"@sinclair/typebox": "^0.32.22",
9594
"jsonata": "^2.0.4",

renovate.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
{
66
"matchPackagePatterns": [
77
"@sinclair/typebox",
8-
"@nordicsemiconductor/bdd-markdown",
9-
"@hello.nrfcloud.com/proto"
8+
"@nordicsemiconductor/bdd-markdown"
109
],
1110
"groupName": "typebox"
1211
}

src/random.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import {
33
type StepRunner,
44
} from '@nordicsemiconductor/bdd-markdown'
55
import { Type } from '@sinclair/typebox'
6-
import { generateCode } from '@hello.nrfcloud.com/proto/fingerprint'
6+
import { randomBytes } from 'crypto'
7+
8+
const randomString = () => randomBytes(Math.ceil(8 * 0.5)).toString('hex')
79

810
const random = (
911
id: string,
@@ -25,7 +27,7 @@ const random = (
2527
)
2628

2729
export const UUIDv4 = (): string => crypto.randomUUID()
28-
export const email = (): string => `${generateCode()}@example.com`
30+
export const email = (): string => `${randomString()}@example.com`
2931
export const IMEI = (): string =>
3032
(350006660000000 + Math.floor(Math.random() * 10000000)).toString()
3133

@@ -38,3 +40,5 @@ export const steps: (
3840
IMEI,
3941
},
4042
) => Object.entries(generators).map(([id, generator]) => random(id, generator))
43+
44+
console.log(randomString())

0 commit comments

Comments
 (0)