Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/kiota-serialization-text

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/kiota-serialization-text - npm Package Compare versions

Comparing version 1.0.0-preview.14 to 1.0.0-preview.15

4

dist/cjs/src/textParseNode.d.ts

@@ -21,4 +21,4 @@ import { DateOnly, Duration, Parsable, ParsableFactory, ParseNode, TimeOnly } from "@microsoft/kiota-abstractions";

getCollectionOfPrimitiveValues: <T>() => T[] | undefined;
getCollectionOfObjectValues: <T extends Parsable>(type: ParsableFactory<T>) => T[] | undefined;
getObjectValue: <T extends Parsable>(type: ParsableFactory<T>) => T;
getCollectionOfObjectValues<T extends Parsable>(parsableFactory: ParsableFactory<T>): T[] | undefined;
getObjectValue<T extends Parsable>(parsableFactory: ParsableFactory<T>): T;
getEnumValues: <T>(type: any) => T[];

@@ -25,0 +25,0 @@ getEnumValue: <T>(type: any) => T | undefined;

@@ -36,12 +36,3 @@ "use strict";

};
this.getCollectionOfObjectValues = (
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type) => {
throw new Error(TextParseNode.noStructuredDataMessage);
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
this.getObjectValue = (type) => {
throw new Error(TextParseNode.noStructuredDataMessage);
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
this.getEnumValues = (type) => {

@@ -60,4 +51,12 @@ throw new Error(TextParseNode.noStructuredDataMessage);

}
/* eslint-disable @typescript-eslint/no-unused-vars */
getCollectionOfObjectValues(parsableFactory) {
throw new Error(TextParseNode.noStructuredDataMessage);
}
/* eslint-disable @typescript-eslint/no-unused-vars */
getObjectValue(parsableFactory) {
throw new Error(TextParseNode.noStructuredDataMessage);
}
}
exports.TextParseNode = TextParseNode;
TextParseNode.noStructuredDataMessage = "text does not support structured data";

@@ -1,2 +0,2 @@

import { DateOnly, Duration, Parsable, SerializationWriter, TimeOnly } from "@microsoft/kiota-abstractions";
import { DateOnly, Duration, ModelSerializerFunction, Parsable, SerializationWriter, TimeOnly } from "@microsoft/kiota-abstractions";
export declare class TextSerializationWriter implements SerializationWriter {

@@ -18,9 +18,9 @@ private static noStructuredDataMessage;

writeCollectionOfPrimitiveValues: <T>(key?: string, values?: T[] | undefined) => void;
writeCollectionOfObjectValues: <T extends Parsable>(key?: string, values?: T[] | undefined) => void;
writeObjectValue: <T extends Parsable>(key?: string, value?: T | undefined) => void;
writeCollectionOfObjectValues: <T extends Parsable>(key?: string, values?: T[] | undefined, serializerMethod?: ModelSerializerFunction<T> | undefined) => void;
writeObjectValue: <T extends Parsable>(key?: string, value?: T | undefined, serializerMethod?: ModelSerializerFunction<T> | undefined) => void;
writeEnumValue: <T>(key?: string | undefined, ...values: (T | undefined)[]) => void;
getSerializedContent: () => ArrayBuffer;
private convertStringToArrayBuffer;
writeAdditionalData: (value: Record<string, unknown>) => void;
writeAdditionalData: (value: Record<string, unknown> | undefined) => void;
}
//# sourceMappingURL=textSerializationWriter.d.ts.map

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

// eslint-disable-next-line @typescript-eslint/no-unused-vars
values) => {
values, serializerMethod) => {
throw new Error(TextSerializationWriter.noStructuredDataMessage);

@@ -77,3 +77,3 @@ };

// eslint-disable-next-line @typescript-eslint/no-unused-vars
value) => {
value, serializerMethod) => {
throw new Error(TextSerializationWriter.noStructuredDataMessage);

@@ -80,0 +80,0 @@ };

@@ -21,4 +21,4 @@ import { DateOnly, Duration, Parsable, ParsableFactory, ParseNode, TimeOnly } from "@microsoft/kiota-abstractions";

getCollectionOfPrimitiveValues: <T>() => T[] | undefined;
getCollectionOfObjectValues: <T extends Parsable>(type: ParsableFactory<T>) => T[] | undefined;
getObjectValue: <T extends Parsable>(type: ParsableFactory<T>) => T;
getCollectionOfObjectValues<T extends Parsable>(parsableFactory: ParsableFactory<T>): T[] | undefined;
getObjectValue<T extends Parsable>(parsableFactory: ParsableFactory<T>): T;
getEnumValues: <T>(type: any) => T[];

@@ -25,0 +25,0 @@ getEnumValue: <T>(type: any) => T | undefined;

@@ -33,12 +33,3 @@ import { DateOnly, Duration, TimeOnly, toFirstCharacterUpper, } from "@microsoft/kiota-abstractions";

};
this.getCollectionOfObjectValues = (
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type) => {
throw new Error(TextParseNode.noStructuredDataMessage);
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
this.getObjectValue = (type) => {
throw new Error(TextParseNode.noStructuredDataMessage);
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
this.getEnumValues = (type) => {

@@ -57,3 +48,11 @@ throw new Error(TextParseNode.noStructuredDataMessage);

}
/* eslint-disable @typescript-eslint/no-unused-vars */
getCollectionOfObjectValues(parsableFactory) {
throw new Error(TextParseNode.noStructuredDataMessage);
}
/* eslint-disable @typescript-eslint/no-unused-vars */
getObjectValue(parsableFactory) {
throw new Error(TextParseNode.noStructuredDataMessage);
}
}
TextParseNode.noStructuredDataMessage = "text does not support structured data";

@@ -1,2 +0,2 @@

import { DateOnly, Duration, Parsable, SerializationWriter, TimeOnly } from "@microsoft/kiota-abstractions";
import { DateOnly, Duration, ModelSerializerFunction, Parsable, SerializationWriter, TimeOnly } from "@microsoft/kiota-abstractions";
export declare class TextSerializationWriter implements SerializationWriter {

@@ -18,9 +18,9 @@ private static noStructuredDataMessage;

writeCollectionOfPrimitiveValues: <T>(key?: string, values?: T[] | undefined) => void;
writeCollectionOfObjectValues: <T extends Parsable>(key?: string, values?: T[] | undefined) => void;
writeObjectValue: <T extends Parsable>(key?: string, value?: T | undefined) => void;
writeCollectionOfObjectValues: <T extends Parsable>(key?: string, values?: T[] | undefined, serializerMethod?: ModelSerializerFunction<T> | undefined) => void;
writeObjectValue: <T extends Parsable>(key?: string, value?: T | undefined, serializerMethod?: ModelSerializerFunction<T> | undefined) => void;
writeEnumValue: <T>(key?: string | undefined, ...values: (T | undefined)[]) => void;
getSerializedContent: () => ArrayBuffer;
private convertStringToArrayBuffer;
writeAdditionalData: (value: Record<string, unknown>) => void;
writeAdditionalData: (value: Record<string, unknown> | undefined) => void;
}
//# sourceMappingURL=textSerializationWriter.d.ts.map

@@ -66,3 +66,3 @@ export class TextSerializationWriter {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
values) => {
values, serializerMethod) => {
throw new Error(TextSerializationWriter.noStructuredDataMessage);

@@ -74,3 +74,3 @@ };

// eslint-disable-next-line @typescript-eslint/no-unused-vars
value) => {
value, serializerMethod) => {
throw new Error(TextSerializationWriter.noStructuredDataMessage);

@@ -77,0 +77,0 @@ };

{
"name": "@microsoft/kiota-serialization-text",
"version": "1.0.0-preview.14",
"version": "1.0.0-preview.15",
"description": "Implementation of Kiota Serialization interfaces for text",

@@ -42,3 +42,3 @@ "main": "dist/cjs/src/index.js",

"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.14",
"@microsoft/kiota-abstractions": "1.0.0-preview.18",
"tslib": "^2.3.1"

@@ -49,3 +49,3 @@ },

},
"gitHead": "636d98b782a61f219f049bf06ac2334d37e4dfa8"
"gitHead": "c3c635a01523a75a2815bf09f84fc5495d1a62dd"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc