Socket
Socket
Sign inDemoInstall

@microsoft/kiota-abstractions

Package Overview
Dependencies
6
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-preview.39 to 1.0.0-preview.40

4

dist/cjs/src/multipartBody.d.ts

@@ -53,6 +53,6 @@ import type { RequestAdapter } from "./requestAdapter";

}
export declare function serializeMultipartBody(writer: SerializationWriter, multipartBody: MultipartBody | undefined): void;
export declare function deserializeIntoMultipartBody(_?: MultipartBody | undefined): Record<string, (node: ParseNode) => void>;
export declare function serializeMultipartBody(writer: SerializationWriter, multipartBody?: Partial<MultipartBody>): void;
export declare function deserializeIntoMultipartBody(_?: Partial<MultipartBody> | undefined): Record<string, (node: ParseNode) => void>;
export declare function createMessageFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoMultipartBody;
export {};
//# sourceMappingURL=multipartBody.d.ts.map

@@ -87,3 +87,3 @@ "use strict";

exports.MultipartBody = MultipartBody;
function serializeMultipartBody(writer, multipartBody) {
function serializeMultipartBody(writer, multipartBody = new MultipartBody()) {
if (!writer) {

@@ -95,2 +95,8 @@ throw new Error("writer cannot be undefined");

}
if (!multipartBody.listParts) {
throw new Error("multipartBody.listParts cannot be undefined");
}
if (!multipartBody.getBoundary) {
throw new Error("multipartBody.getBoundary cannot be undefined");
}
const parts = multipartBody.listParts();

@@ -97,0 +103,0 @@ if (Object.keys(parts).length === 0) {

import type { Parsable } from "./parsable";
import type { ParseNode } from "./parseNode";
import type { SerializationWriter } from "./serializationWriter";
export type ModelSerializerFunction<T extends Parsable> = (writer: SerializationWriter, value?: T | undefined) => void;
export type DeserializeIntoModelFunction<T extends Parsable> = (value?: T | undefined) => Record<string, (node: ParseNode) => void>;
export type ModelSerializerFunction<T extends Parsable> = (writer: SerializationWriter, value?: Partial<T> | undefined) => void;
export type DeserializeIntoModelFunction<T extends Parsable> = (value?: Partial<T> | undefined) => Record<string, (node: ParseNode) => void>;
//# sourceMappingURL=serializationFunctionTypes.d.ts.map

@@ -53,6 +53,6 @@ import type { RequestAdapter } from "./requestAdapter";

}
export declare function serializeMultipartBody(writer: SerializationWriter, multipartBody: MultipartBody | undefined): void;
export declare function deserializeIntoMultipartBody(_?: MultipartBody | undefined): Record<string, (node: ParseNode) => void>;
export declare function serializeMultipartBody(writer: SerializationWriter, multipartBody?: Partial<MultipartBody>): void;
export declare function deserializeIntoMultipartBody(_?: Partial<MultipartBody> | undefined): Record<string, (node: ParseNode) => void>;
export declare function createMessageFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoMultipartBody;
export {};
//# sourceMappingURL=multipartBody.d.ts.map

@@ -83,3 +83,3 @@ import { Guid } from "guid-typescript";

}
export function serializeMultipartBody(writer, multipartBody) {
export function serializeMultipartBody(writer, multipartBody = new MultipartBody()) {
if (!writer) {

@@ -91,2 +91,8 @@ throw new Error("writer cannot be undefined");

}
if (!multipartBody.listParts) {
throw new Error("multipartBody.listParts cannot be undefined");
}
if (!multipartBody.getBoundary) {
throw new Error("multipartBody.getBoundary cannot be undefined");
}
const parts = multipartBody.listParts();

@@ -93,0 +99,0 @@ if (Object.keys(parts).length === 0) {

import type { Parsable } from "./parsable";
import type { ParseNode } from "./parseNode";
import type { SerializationWriter } from "./serializationWriter";
export type ModelSerializerFunction<T extends Parsable> = (writer: SerializationWriter, value?: T | undefined) => void;
export type DeserializeIntoModelFunction<T extends Parsable> = (value?: T | undefined) => Record<string, (node: ParseNode) => void>;
export type ModelSerializerFunction<T extends Parsable> = (writer: SerializationWriter, value?: Partial<T> | undefined) => void;
export type DeserializeIntoModelFunction<T extends Parsable> = (value?: Partial<T> | undefined) => Record<string, (node: ParseNode) => void>;
//# sourceMappingURL=serializationFunctionTypes.d.ts.map
{
"name": "@microsoft/kiota-abstractions",
"version": "1.0.0-preview.39",
"version": "1.0.0-preview.40",
"description": "Core abstractions for kiota generated libraries in TypeScript and JavaScript",

@@ -33,12 +33,12 @@ "main": "dist/cjs/src/index.js",

"devDependencies": {
"@types/node": "^20.1.1",
"@types/uuid": "^9.0.0"
"@types/node": "^20.11.15",
"@types/uuid": "^9.0.8"
},
"dependencies": {
"@opentelemetry/api": "^1.2.0",
"@opentelemetry/api": "^1.7.0",
"@std-uritemplate/std-uritemplate": "^0.0.50",
"guid-typescript": "^1.0.9",
"tinyduration": "^3.2.2",
"tslib": "^2.3.1",
"uuid": "^9.0.0"
"tinyduration": "^3.3.0",
"tslib": "^2.6.2",
"uuid": "^9.0.1"
},

@@ -48,3 +48,3 @@ "publishConfig": {

},
"gitHead": "43e1482f5584ffa69bf27c52284eab10dd9b7cd0"
"gitHead": "11c05298333f7b08cec81379eff602f84fd332a3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc