Comparing version 1.0.0 to 1.1.0
/// <reference types="node" /> | ||
import { DumpOptions } from 'js-yaml'; | ||
import { LoadOptions } from 'js-yaml'; | ||
declare const _default: { | ||
parseYml: typeof parseYml; | ||
stringifyYml: typeof stringifyYml; | ||
loadYml: typeof loadYml; | ||
@@ -40,6 +44,16 @@ loadYmlSync: typeof loadYmlSync; | ||
* @param data - file path | ||
* @param options - load options: LoadOptions | ||
* @returns - result | ||
*/ | ||
export declare function parseYml(data: string): unknown | null; | ||
export declare function parseYml(data: string, options?: LoadOptions): unknown | null; | ||
/** | ||
* stringify yaml data | ||
* | ||
* @param data - file path | ||
* @param options - dump options: DumpOptions | ||
* @returns - result | ||
*/ | ||
export declare function stringifyYml<T>(data: T, options?: DumpOptions): string | null; | ||
export { } |
{ | ||
"name": "load-yml", | ||
"description": "Read and parse a .yaml or .yml file", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"packageManager": "pnpm@7.26.1", | ||
@@ -46,3 +46,2 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@types/js-yaml": "^4.0.5", | ||
"core-js": "^3.27.2", | ||
@@ -64,4 +63,6 @@ "js-yaml": "^4.1.0", | ||
"@types/jest": "^29.4.0", | ||
"@types/js-yaml": "^4.0.5", | ||
"@types/node": "^18.11.18", | ||
"chalk": "^5.2.0", | ||
"coveralls": "^3.1.1", | ||
"cross-env": "^7.0.3", | ||
@@ -68,0 +69,0 @@ "eslint": "^8.33.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
19362
4
497
32
- Removed@types/js-yaml@^4.0.5
- Removed@types/js-yaml@4.0.9(transitive)