File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 45
45
"@azure/functions" : " ^4.0.0" ,
46
46
"axios" : " ^1.6.1" ,
47
47
"debug" : " ~2.6.9" ,
48
- "lodash" : " ^4.17.15" ,
49
48
"moment" : " ^2.29.2" ,
50
49
"uuid" : " ^9.0.1" ,
51
50
"validator" : " ~13.7.0"
71
70
"eslint" : " ^7.32.0" ,
72
71
"eslint-config-prettier" : " ^6.15.0" ,
73
72
"eslint-plugin-prettier" : " ^3.4.1" ,
73
+ "lodash" : " ^4.17.15" ,
74
74
"mocha" : " ^9.1.3" ,
75
75
"nock" : " ^10.0.6" ,
76
76
"prettier" : " ^2.0.5" ,
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { DurableClientInput } from "durable-functions";
3
3
import { DurableClient } from "./DurableClient" ;
4
4
import { OrchestrationClientInputData } from "./OrchestrationClientInputData" ;
5
5
/** @hidden */
6
- import cloneDeep = require( "lodash/cloneDeep" ) ;
7
- /** @hidden */
8
6
import url = require( "url" ) ;
9
7
import { HttpCreationPayload } from "../http/HttpCreationPayload" ;
10
8
import { HttpManagementPayload } from "../http/HttpManagementPayload" ;
@@ -53,7 +51,7 @@ function getClientData(
53
51
54
52
/** @hidden */
55
53
function correctClientData ( clientData : OrchestrationClientInputData ) : OrchestrationClientInputData {
56
- const returnValue = cloneDeep ( clientData ) ;
54
+ const returnValue = structuredClone ( clientData ) ;
57
55
58
56
returnValue . creationUrls = correctUrls ( clientData . creationUrls ) as HttpCreationPayload ;
59
57
returnValue . managementUrls = correctUrls ( clientData . managementUrls ) as HttpManagementPayload ;
@@ -62,7 +60,7 @@ function correctClientData(clientData: OrchestrationClientInputData): Orchestrat
62
60
}
63
61
64
62
function correctUrls ( obj : { [ key : string ] : string } ) : { [ key : string ] : string } {
65
- const returnValue = cloneDeep ( obj ) ;
63
+ const returnValue = structuredClone ( obj ) ;
66
64
67
65
const keys = Object . getOwnPropertyNames ( obj ) ;
68
66
keys . forEach ( ( key ) => {
You can’t perform that action at this time.
0 commit comments