Socket
Socket
Sign inDemoInstall

@types/js-yaml

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/js-yaml - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

58

js-yaml/index.d.ts

@@ -40,9 +40,9 @@ // Type definitions for js-yaml 4.0

/** string to be used as a file path in error/warning messages. */
filename?: string;
filename?: string | undefined;
/** function to call on warning messages. */
onWarning?(this: null, e: YAMLException): void;
/** specifies a schema to use. */
schema?: Schema;
schema?: Schema | undefined;
/** compatibility with JSON.parse behaviour. */
json?: boolean;
json?: boolean | undefined;
/** listener for parse events */

@@ -74,21 +74,21 @@ listener?(this: State, eventType: EventType, state: State): void;

/** indentation width to use (in spaces). */
indent?: number;
indent?: number | undefined;
/** when true, will not add an indentation level to array elements */
noArrayIndent?: boolean;
noArrayIndent?: boolean | undefined;
/** do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. */
skipInvalid?: boolean;
skipInvalid?: boolean | undefined;
/** specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere */
flowLevel?: number;
flowLevel?: number | undefined;
/** Each tag may have own set of styles. - "tag" => "style" map. */
styles?: { [x: string]: any };
styles?: { [x: string]: any } | undefined;
/** specifies a schema to use. */
schema?: Schema;
schema?: Schema | undefined;
/** if true, sort keys when dumping YAML. If a function, use the function to sort the keys. (default: false) */
sortKeys?: boolean | ((a: any, b: any) => number);
sortKeys?: boolean | ((a: any, b: any) => number) | undefined;
/** set max line width. (default: 80) */
lineWidth?: number;
lineWidth?: number | undefined;
/** if true, don't convert duplicate objects into references (default: false) */
noRefs?: boolean;
noRefs?: boolean | undefined;
/** if true don't try to be compatible with older yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 (default: false) */
noCompatMode?: boolean;
noCompatMode?: boolean | undefined;
/**

@@ -98,27 +98,27 @@ * if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`.

*/
condenseFlow?: boolean;
condenseFlow?: boolean | undefined;
/** strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters. (default: `'`) */
quotingType?: "'" | '"';
quotingType?: "'" | '"' | undefined;
/** if true, all non-key strings will be quoted even if they normally don't need to. (default: false) */
forceQuotes?: boolean;
forceQuotes?: boolean | undefined;
/** callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`). */
replacer?: (key: string, value: any) => any;
replacer?: ((key: string, value: any) => any) | undefined;
}
export interface TypeConstructorOptions {
kind?: 'sequence' | 'scalar' | 'mapping';
resolve?: (data: any) => boolean;
construct?: (data: any, type?: string) => any;
instanceOf?: object;
predicate?: (data: object) => boolean;
represent?: ((data: object) => any) | { [x: string]: (data: object) => any };
representName?: (data: object) => any;
defaultStyle?: string;
multi?: boolean;
styleAliases?: { [x: string]: any };
kind?: 'sequence' | 'scalar' | 'mapping' | undefined;
resolve?: ((data: any) => boolean) | undefined;
construct?: ((data: any, type?: string) => any) | undefined;
instanceOf?: object | undefined;
predicate?: ((data: object) => boolean) | undefined;
represent?: ((data: object) => any) | { [x: string]: (data: object) => any } | undefined;
representName?: ((data: object) => any) | undefined;
defaultStyle?: string | undefined;
multi?: boolean | undefined;
styleAliases?: { [x: string]: any } | undefined;
}
export interface SchemaDefinition {
implicit?: Type[];
explicit?: Type[];
implicit?: Type[] | undefined;
explicit?: Type[] | undefined;
}

@@ -125,0 +125,0 @@

{
"name": "@types/js-yaml",
"version": "4.0.1",
"version": "4.0.2",
"description": "TypeScript definitions for js-yaml",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-yaml",
"license": "MIT",

@@ -37,4 +38,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "c9a5d60a69a3fcd07ae13772b8f8666fc0dd8b8d853edc2d372f1c3ac7685e37",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "55c56e63e342ca6b4a25e6158d96f41624c3dfba6336c245136c69a9c66984e9",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 23 Apr 2021 14:31:27 GMT
* Last updated: Tue, 06 Jul 2021 21:33:45 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `jsyaml`

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