File tree 12 files changed +26
-22
lines changed
12 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-abstractions" ,
3
- "version" : " 1.0.0-preview.47 " ,
3
+ "version" : " 1.0.0-preview.48 " ,
4
4
"description" : " Core abstractions for kiota generated libraries in TypeScript and JavaScript" ,
5
5
"main" : " dist/cjs/src/index.js" ,
6
6
"module" : " dist/es/src/index.js" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ export interface UntypedBoolean extends UntypedNode {
5
5
}
6
6
7
7
export function isUntypedBoolean ( node : UntypedNode ) : node is UntypedBoolean {
8
- return typeof ( node as UntypedBoolean ) ?. value === "boolean" ;
8
+ const proposedNode = node as UntypedBoolean ;
9
+ return proposedNode && typeof proposedNode . value === "boolean" ;
9
10
}
10
11
11
12
export function createUntypedBoolean ( value : boolean ) : UntypedBoolean {
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ export interface UntypedNumber extends UntypedNode {
5
5
}
6
6
7
7
export function isUntypedNumber ( node : UntypedNode ) : node is UntypedNumber {
8
- return typeof ( node as UntypedNumber ) ?. value === "number" ;
8
+ const proposedNode = node as UntypedNumber ;
9
+ return proposedNode && typeof proposedNode . value === "number" ;
9
10
}
10
11
11
12
export function createUntypedNumber ( value : number ) : UntypedNumber {
Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ export interface UntypedObject extends UntypedNode {
5
5
}
6
6
7
7
export function isUntypedObject ( node : UntypedNode ) : node is UntypedObject {
8
- const value = ( node as UntypedObject ) ?. value ;
8
+ const proposedNode = node as UntypedObject ;
9
9
return (
10
- value instanceof Object &&
11
- value instanceof Array === false &&
12
- Object . values ( value ) . every ( ( item ) => isUntypedNode ( item ) )
10
+ proposedNode &&
11
+ proposedNode . value instanceof Object &&
12
+ proposedNode . value instanceof Array === false &&
13
+ Object . values ( proposedNode . value ) . every ( ( item ) => isUntypedNode ( item ) )
13
14
) ;
14
15
}
15
16
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ export interface UntypedString extends UntypedNode {
5
5
}
6
6
7
7
export function isUntypedString ( node : UntypedNode ) : node is UntypedString {
8
- return typeof ( node as UntypedString ) ?. value === "string" ;
8
+ const proposedNode = node as UntypedString ;
9
+ return proposedNode && typeof proposedNode . value === "string" ;
9
10
}
10
11
11
12
export function createUntypedString ( value : string ) : UntypedString {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-authentication-azure" ,
3
- "version" : " 1.0.0-preview.42 " ,
3
+ "version" : " 1.0.0-preview.43 " ,
4
4
"description" : " Authentication provider for Kiota using Azure Identity" ,
5
5
"main" : " dist/cjs/src/index.js" ,
6
6
"module" : " dist/es/src/index.js" ,
30
30
"homepage" : " https://github.com/microsoft/kiota-typescript#readme" ,
31
31
"dependencies" : {
32
32
"@azure/core-auth" : " ^1.5.0" ,
33
- "@microsoft/kiota-abstractions" : " ^1.0.0-preview.47 " ,
33
+ "@microsoft/kiota-abstractions" : " ^1.0.0-preview.48 " ,
34
34
"@opentelemetry/api" : " ^1.7.0" ,
35
35
"tslib" : " ^2.6.2"
36
36
},
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-authentication-spfx" ,
3
- "version" : " 1.0.0-preview.37 " ,
3
+ "version" : " 1.0.0-preview.38 " ,
4
4
"description" : " Authentication provider for using Kiota in SPFx solutions" ,
5
5
"main" : " dist/cjs/src/index.js" ,
6
6
"module" : " dist/es/src/index.js" ,
39
39
},
40
40
"homepage" : " https://github.com/microsoft/kiota-typescript#readme" ,
41
41
"dependencies" : {
42
- "@microsoft/kiota-abstractions" : " ^1.0.0-preview.47 " ,
42
+ "@microsoft/kiota-abstractions" : " ^1.0.0-preview.48 " ,
43
43
"@microsoft/sp-http" : " ^1.15.2" ,
44
44
"@opentelemetry/api" : " ^1.7.0" ,
45
45
"tslib" : " ^2.6.2"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-http-fetchlibrary" ,
3
- "version" : " 1.0.0-preview.46 " ,
3
+ "version" : " 1.0.0-preview.47 " ,
4
4
"description" : " Kiota request adapter implementation with fetch" ,
5
5
"keywords" : [
6
6
" Kiota" ,
38
38
"test:cjs" : " mocha 'dist/cjs/test/common/**/*.js' && mocha 'dist/cjs/test/node/**/*.js'"
39
39
},
40
40
"dependencies" : {
41
- "@microsoft/kiota-abstractions" : " ^1.0.0-preview.47 " ,
41
+ "@microsoft/kiota-abstractions" : " ^1.0.0-preview.48 " ,
42
42
"@opentelemetry/api" : " ^1.7.0" ,
43
43
"guid-typescript" : " ^1.0.9" ,
44
44
"tslib" : " ^2.6.2"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-serialization-form" ,
3
- "version" : " 1.0.0-preview.36 " ,
3
+ "version" : " 1.0.0-preview.37 " ,
4
4
"description" : " Implementation of Kiota Serialization interfaces for URI from encoded" ,
5
5
"main" : " dist/cjs/src/index.js" ,
6
6
"browser" : {
39
39
},
40
40
"homepage" : " https://github.com/microsoft/kiota-typescript#readme" ,
41
41
"dependencies" : {
42
- "@microsoft/kiota-abstractions" : " ^1.0.0-preview.47 " ,
42
+ "@microsoft/kiota-abstractions" : " ^1.0.0-preview.48 " ,
43
43
"guid-typescript" : " ^1.0.9" ,
44
44
"tslib" : " ^2.6.2"
45
45
},
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-serialization-json" ,
3
- "version" : " 1.0.0-preview.47 " ,
3
+ "version" : " 1.0.0-preview.48 " ,
4
4
"description" : " Implementation of Kiota Serialization interfaces for JSON" ,
5
5
"main" : " dist/cjs/src/index.js" ,
6
6
"browser" : {
39
39
},
40
40
"homepage" : " https://github.com/microsoft/kiota-typescript#readme" ,
41
41
"dependencies" : {
42
- "@microsoft/kiota-abstractions" : " ^1.0.0-preview.47 " ,
42
+ "@microsoft/kiota-abstractions" : " ^1.0.0-preview.48 " ,
43
43
"guid-typescript" : " ^1.0.9" ,
44
44
"tslib" : " ^2.6.2"
45
45
},
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-serialization-multipart" ,
3
- "version" : " 1.0.0-preview.26 " ,
3
+ "version" : " 1.0.0-preview.27 " ,
4
4
"description" : " Implementation of Kiota Serialization interfaces for multipart form data" ,
5
5
"main" : " dist/cjs/src/index.js" ,
6
6
"module" : " dist/es/src/index.js" ,
40
40
"tslib" : " ^2.6.2"
41
41
},
42
42
"devDependencies" : {
43
- "@microsoft/kiota-serialization-json" : " ^1.0.0-preview.47 "
43
+ "@microsoft/kiota-serialization-json" : " ^1.0.0-preview.48 "
44
44
},
45
45
"publishConfig" : {
46
46
"access" : " public"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @microsoft/kiota-serialization-text" ,
3
- "version" : " 1.0.0-preview.44 " ,
3
+ "version" : " 1.0.0-preview.45 " ,
4
4
"description" : " Implementation of Kiota Serialization interfaces for text" ,
5
5
"main" : " dist/cjs/src/index.js" ,
6
6
"browser" : {
39
39
},
40
40
"homepage" : " https://github.com/microsoft/kiota-typescript#readme" ,
41
41
"dependencies" : {
42
- "@microsoft/kiota-abstractions" : " ^1.0.0-preview.47 " ,
42
+ "@microsoft/kiota-abstractions" : " ^1.0.0-preview.48 " ,
43
43
"guid-typescript" : " ^1.0.9" ,
44
44
"tslib" : " ^2.6.2"
45
45
},
You can’t perform that action at this time.
0 commit comments