Skip to content

Commit 3c51929

Browse files
committed
replace uuid with Node.js based function
1 parent ecda9ea commit 3c51929

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

dist/aws-sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13637,7 +13637,7 @@ var util = {
1363713637

1363813638
uuid: {
1363913639
v4: function uuidV4() {
13640-
return require('uuid').v4();
13640+
return require('crypto').randomUUID();
1364113641
}
1364213642
},
1364313643

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ var util = {
984984
*/
985985
uuid: {
986986
v4: function uuidV4() {
987-
return require('uuid').v4();
987+
return require('crypto').randomUUID();
988988
}
989989
},
990990

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"jmespath": "^0.16.0",
3232
"url": "^0.11.3",
3333
"util": "^0.12.5",
34-
"uuid": "^8.3.2",
3534
"xml2js": "^0.6.2",
3635
"xmlbuilder": "^10.1.1"
3736
},
@@ -52,7 +51,7 @@
5251
"types": "index.d.ts",
5352
"typings": "index.d.ts",
5453
"engines": {
55-
"node": ">= 10.0.0"
54+
"node": ">= 14.17.0"
5655
},
5756
"repository": {
5857
"type": "git",

0 commit comments

Comments
 (0)