Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into andrueastman/untypedN…
Browse files Browse the repository at this point in the history
…odesAlternative
  • Loading branch information
Andrew Omondi committed Mar 19, 2024
2 parents 58623f6 + cd45905 commit 6300255
Show file tree
Hide file tree
Showing 11 changed files with 126 additions and 107 deletions.
189 changes: 102 additions & 87 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/abstractions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-abstractions",
"version": "1.0.0-preview.45",
"version": "1.0.0-preview.47",
"description": "Core abstractions for kiota generated libraries in TypeScript and JavaScript",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"@opentelemetry/api": "^1.7.0",
"@std-uritemplate/std-uritemplate": "^0.0.54",
"@std-uritemplate/std-uritemplate": "^0.0.55",
"guid-typescript": "^1.0.9",
"tinyduration": "^3.3.0",
"tslib": "^2.6.2",
Expand Down
2 changes: 0 additions & 2 deletions packages/abstractions/src/store/backedModelProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export function createBackedModelProxyHandler<T extends {}>(): ProxyHandler<T> {
*/
const handler: ProxyHandler<T> = {
get(target, prop, receiver) {
console.debug(`BackingStore - Getting property '${prop.toString()}' from backing store`);
if (prop === 'backingStore') {
return backingStore;
}
Expand All @@ -24,7 +23,6 @@ export function createBackedModelProxyHandler<T extends {}>(): ProxyHandler<T> {
}
// set the value on the target object as well to allow it to have keys needed for serialization/deserialization
Reflect.set(target, prop, value, receiver);
console.debug(`BackingStore - Setting property '${prop.toString()}'`);
backingStore.set(prop.toString(), value);
return true;
},
Expand Down
4 changes: 2 additions & 2 deletions packages/authentication/azure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-authentication-azure",
"version": "1.0.0-preview.40",
"version": "1.0.0-preview.42",
"description": "Authentication provider for Kiota using Azure Identity",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down Expand Up @@ -30,7 +30,7 @@
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@azure/core-auth": "^1.5.0",
"@microsoft/kiota-abstractions": "^1.0.0-preview.45",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@opentelemetry/api": "^1.7.0",
"tslib": "^2.6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/authentication/spfx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-authentication-spfx",
"version": "1.0.0-preview.35",
"version": "1.0.0-preview.37",
"description": "Authentication provider for using Kiota in SPFx solutions",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.45",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@microsoft/sp-http": "^1.15.2",
"@opentelemetry/api": "^1.7.0",
"tslib": "^2.6.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/http/fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-http-fetchlibrary",
"version": "1.0.0-preview.44",
"version": "1.0.0-preview.46",
"description": "Kiota request adapter implementation with fetch",
"keywords": [
"Kiota",
Expand Down Expand Up @@ -38,7 +38,7 @@
"test:cjs": "mocha 'dist/cjs/test/common/**/*.js' && mocha 'dist/cjs/test/node/**/*.js'"
},
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.45",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@opentelemetry/api": "^1.7.0",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/serialization/form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-form",
"version": "1.0.0-preview.34",
"version": "1.0.0-preview.36",
"description": "Implementation of Kiota Serialization interfaces for URI from encoded",
"main": "dist/cjs/src/index.js",
"browser": {
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.45",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/serialization/json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-json",
"version": "1.0.0-preview.45",
"version": "1.0.0-preview.47",
"description": "Implementation of Kiota Serialization interfaces for JSON",
"main": "dist/cjs/src/index.js",
"browser": {
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.45",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
},
Expand Down
8 changes: 7 additions & 1 deletion packages/serialization/json/src/jsonParseNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ export class JsonParseNode implements ParseNode {
public onAfterAssignFieldValues: ((value: Parsable) => void) | undefined;
public getStringValue = () => this._jsonNode as string;
public getChildNode = (identifier: string): ParseNode | undefined =>
new JsonParseNode((this._jsonNode as any)[identifier]);
this._jsonNode &&
typeof this._jsonNode === "object" &&
(this._jsonNode as { [key: string]: any })[identifier] !== undefined
? new JsonParseNode(
(this._jsonNode as { [key: string]: any })[identifier],
)
: undefined;
public getBooleanValue = () => this._jsonNode as boolean;
public getNumberValue = () => this._jsonNode as number;
public getGuidValue = () => parseGuidString(this.getStringValue());
Expand Down
6 changes: 3 additions & 3 deletions packages/serialization/multipart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-multipart",
"version": "1.0.0-preview.24",
"version": "1.0.0-preview.26",
"description": "Implementation of Kiota Serialization interfaces for multipart form data",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down Expand Up @@ -35,12 +35,12 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.45",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
},
"devDependencies": {
"@microsoft/kiota-serialization-json": "^1.0.0-preview.44"
"@microsoft/kiota-serialization-json": "^1.0.0-preview.47"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/serialization/text/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-text",
"version": "1.0.0-preview.42",
"version": "1.0.0-preview.44",
"description": "Implementation of Kiota Serialization interfaces for text",
"main": "dist/cjs/src/index.js",
"browser": {
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.45",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
},
Expand Down

0 comments on commit 6300255

Please sign in to comment.