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 3.12.6 to 3.12.7

50

js-yaml v3.12/index.d.ts

@@ -44,9 +44,9 @@ // Type definitions for js-yaml 3.12

/** 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?: SchemaDefinition;
schema?: SchemaDefinition | undefined;
/** compatibility with JSON.parse behaviour. */
json?: boolean;
json?: boolean | undefined;
/** listener for parse events */

@@ -78,21 +78,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?: SchemaDefinition;
schema?: SchemaDefinition | 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;
/**

@@ -102,20 +102,20 @@ * 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;
}
export interface TypeConstructorOptions {
kind?: 'sequence' | 'scalar' | 'mapping';
resolve?: (data: any) => boolean;
construct?: (data: any) => any;
instanceOf?: object;
predicate?: (data: object) => boolean;
represent?: ((data: object) => any) | { [x: string]: (data: object) => any };
defaultStyle?: string;
styleAliases?: { [x: string]: any };
kind?: 'sequence' | 'scalar' | 'mapping' | undefined;
resolve?: ((data: any) => boolean) | undefined;
construct?: ((data: any) => any) | undefined;
instanceOf?: object | undefined;
predicate?: ((data: object) => boolean) | undefined;
represent?: ((data: object) => any) | { [x: string]: (data: object) => any } | undefined;
defaultStyle?: string | undefined;
styleAliases?: { [x: string]: any } | undefined;
}
export interface SchemaDefinition {
implicit?: any[];
explicit?: Type[];
include?: Schema[];
implicit?: any[] | undefined;
explicit?: Type[] | undefined;
include?: Schema[] | undefined;
}

@@ -122,0 +122,0 @@

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

@@ -32,4 +33,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "a48c02f4d357d44c342529a32c599a09649d7bbd763fc4ce7060817c07697b7d",
"typeScriptVersion": "3.3"
"typesPublisherContentHash": "4021efa046b16f92392744105b4463dc85e3258b04f0c63019d6f17025f81e32",
"typeScriptVersion": "3.6"
}

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

### Additional Details
* Last updated: Tue, 05 Jan 2021 23:19:35 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