🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

confbox

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confbox - npm Package Compare versions

Comparing version

to
0.1.1

4

dist/index.d.ts
export { JSON5ParseOptions, JSON5StringifyOptions, parseJSON5 } from './json5.js';
export { JSONCParseError, JSONCParseOptions, parseJSONC } from './jsonc.js';
export { ParseYamlOptions, StringifyYamlOptions, parseYaml, stringifyYaml } from './yaml.js';
export { parseToml } from './toml.js';
export { parseYAML, parseYAMLOptions, stringifyYAML, stringifyYAMLOptions } from './yaml.js';
export { parseTOML } from './toml.js';

@@ -9,4 +9,4 @@ /**

*/
declare function parseToml<T = unknown>(text: string): T;
declare function parseTOML<T = unknown>(text: string): T;
export { parseToml };
export { parseTOML };

@@ -16,3 +16,3 @@ /**

*/
declare function parseYaml<T = unknown>(text: string, options?: ParseYamlOptions): T;
declare function parseYAML<T = unknown>(text: string, options?: parseYAMLOptions): T;
/**

@@ -25,4 +25,4 @@ * Converts a JavaScript value to a [YAML](https://yaml.org/) string.

*/
declare function stringifyYaml(value: any, options?: StringifyYamlOptions): string;
interface ParseYamlOptions {
declare function stringifyYAML(value: any, options?: stringifyYAMLOptions): string;
interface parseYAMLOptions {
/** string to be used as a file path in error/warning messages. */

@@ -39,3 +39,3 @@ filename?: string | undefined;

}
interface StringifyYamlOptions {
interface stringifyYAMLOptions {
/** indentation width to use (in spaces). */

@@ -92,2 +92,2 @@ indent?: number | undefined;

export { type ParseYamlOptions, type StringifyYamlOptions, parseYaml, stringifyYaml };
export { parseYAML, type parseYAMLOptions, stringifyYAML, type stringifyYAMLOptions };
{
"name": "confbox",
"version": "0.1.0",
"version": "0.1.1",
"description": "Compact and high quality YAML, TOML, JSONC and JSON5 parsers",

@@ -84,2 +84,2 @@ "keywords": [

"packageManager": "pnpm@8.12.1"
}
}

@@ -63,10 +63,10 @@ # confbox

parseJSONC,
parseToml,
parseYaml,
stringifyYaml,
parseTOML,
parseYAML,
stringifyYAML,
} from "confbox";
// Using individual builds
import { parseYaml, stringifyYaml } from "confbox/yaml";
import { parseToml } from "confbox/toml";
import { parseYAML, stringifyYAML } from "confbox/yaml";
import { parseTOML } from "confbox/toml";
import { parseJSON5 } from "confbox/json5";

@@ -79,5 +79,5 @@ import { parseJSONC } from "confbox/jsonc";

parseJSONC,
parseToml,
parseYaml,
stringifyYaml,
parseTOML,
parseYAML,
stringifyYAML,
} = require("confbox");

@@ -96,11 +96,11 @@ ```

### `parseToml(text)`
### `parseTOML(text)`
Converts a [TOML](https://toml.io/) string into an object.
### `parseYaml(text, options?)`
### `parseYAML(text, options?)`
Converts a [YAML](https://yaml.org/) string into an object.
### `stringifyYaml(value, options?)`
### `stringifyYAML(value, options?)`

@@ -107,0 +107,0 @@ Converts a JavaScript value to a [YAML](https://yaml.org/) string.

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

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