@types/js-yaml
Advanced tools
Comparing version 3.11.3 to 3.11.4
@@ -42,9 +42,9 @@ // Type definitions for js-yaml 3.11 | ||
export interface LoadOptions { | ||
// string to be used as a file path in error/warning messages. | ||
/** string to be used as a file path in error/warning messages. */ | ||
filename?: string; | ||
// function to call on warning messages. | ||
/** function to call on warning messages. */ | ||
onWarning?(this: null, e: YAMLException): void; | ||
// specifies a schema to use. | ||
/** specifies a schema to use. */ | ||
schema?: SchemaDefinition; | ||
// compatibility with JSON.parse behaviour. | ||
/** compatibility with JSON.parse behaviour. */ | ||
json?: boolean; | ||
@@ -54,22 +54,24 @@ } | ||
export interface DumpOptions { | ||
// indentation width to use (in spaces). | ||
/** indentation width to use (in spaces). */ | ||
indent?: number; | ||
// do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. | ||
/** do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. */ | ||
skipInvalid?: boolean; | ||
// specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere | ||
/** specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere */ | ||
flowLevel?: number; | ||
// Each tag may have own set of styles. - "tag" => "style" map. | ||
/** Each tag may have own set of styles. - "tag" => "style" map. */ | ||
styles?: { [x: string]: any; }; | ||
// specifies a schema to use. | ||
/** specifies a schema to use. */ | ||
schema?: SchemaDefinition; | ||
// if true, sort keys when dumping YAML. If a function, use the function to sort the keys. (default: false) | ||
/** 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); | ||
// set max line width. (default: 80) | ||
/** set max line width. (default: 80) */ | ||
lineWidth?: number; | ||
// if true, don't convert duplicate objects into references (default: false) | ||
/** if true, don't convert duplicate objects into references (default: false) */ | ||
noRefs?: boolean; | ||
// 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) | ||
/** 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; | ||
// if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`. | ||
// Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false). | ||
/** | ||
* if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`. | ||
* Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false). | ||
*/ | ||
condenseFlow?: boolean; | ||
@@ -95,11 +97,11 @@ } | ||
// only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 | ||
/** only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 */ | ||
export let FAILSAFE_SCHEMA: Schema; | ||
// only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 | ||
/** only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 */ | ||
export let JSON_SCHEMA: Schema; | ||
// same as JSON_SCHEMA: http://www.yaml.org/spec/1.2/spec.html#id2804923 | ||
/** same as JSON_SCHEMA: http://www.yaml.org/spec/1.2/spec.html#id2804923 */ | ||
export let CORE_SCHEMA: Schema; | ||
// all supported YAML types, without unsafe ones (!!js/undefined, !!js/regexp and !!js/function): http://yaml.org/type/ | ||
/** all supported YAML types, without unsafe ones (!!js/undefined, !!js/regexp and !!js/function): http://yaml.org/type/ */ | ||
export let DEFAULT_SAFE_SCHEMA: Schema; | ||
// all supported YAML types. | ||
/** all supported YAML types. */ | ||
export let DEFAULT_FULL_SCHEMA: Schema; | ||
@@ -106,0 +108,0 @@ export let MINIMAL_SCHEMA: Schema; |
{ | ||
"name": "@types/js-yaml", | ||
"version": "3.11.3", | ||
"version": "3.11.4", | ||
"description": "TypeScript definitions for js-yaml", | ||
@@ -26,4 +26,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7b6575630d022ff0e8a62b22ef7e2363908dc8a4d06b5cc34024a30fb29ecab7", | ||
"typesPublisherContentHash": "a6687140ff7697636a427a8fbc5c341de692087985dc820bde0d6c5d6c507a1d", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 19 Dec 2018 18:28:51 GMT | ||
* Last updated: Thu, 20 Dec 2018 16:25:50 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: jsyaml |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7067
97