@boost/common
Advanced tools
Comparing version 3.2.1 to 4.0.0-alpha.1
@@ -1,6 +0,6 @@ | ||
import YAML from 'yaml'; | ||
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions, ToStringOptions } from 'yaml'; | ||
import { PortablePath } from '../types'; | ||
export declare function parse<T = object>(content: string, options?: YAML.Options): T; | ||
export declare function stringify(content: unknown, options?: YAML.Options): string; | ||
export declare function parse<T = object>(content: string, options?: DocumentOptions & ParseOptions & SchemaOptions & ToJSOptions): T; | ||
export declare function stringify(content: unknown, options?: CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions): string; | ||
export declare function load<T>(path: PortablePath): T; | ||
//# sourceMappingURL=yaml.d.ts.map |
{ | ||
"name": "@boost/common", | ||
"version": "3.2.1", | ||
"release": "1594765247526", | ||
"version": "4.0.0-alpha.1", | ||
"type": "commonjs", | ||
"release": "1651512176767", | ||
"description": "A collection of common utilities, classes, and helpers.", | ||
@@ -12,16 +13,12 @@ "keywords": [ | ||
], | ||
"main": "./lib/index.js", | ||
"main": "./cjs/index.cjs", | ||
"types": "./dts/index.d.ts", | ||
"files": [ | ||
"cjs/**/*.{cjs,mjs,map}", | ||
"dts/**/*.d.ts", | ||
"lib/**/*.{js,map}", | ||
"optimal.d.ts", | ||
"optimal.js", | ||
"src/**/*.{ts,tsx,json}", | ||
"test.d.ts", | ||
"test.js" | ||
"src/**/*.{ts,tsx,json}" | ||
], | ||
"engines": { | ||
"node": ">=12.17.0", | ||
"npm": ">=6.13.0" | ||
"node": ">=14.15.0", | ||
"npm": ">=6.14.0" | ||
}, | ||
@@ -39,14 +36,14 @@ "repository": { | ||
"dependencies": { | ||
"@boost/decorators": "^3.0.0", | ||
"@boost/internal": "^3.0.1", | ||
"@boost/decorators": "^4.0.0-alpha.1", | ||
"@boost/internal": "^4.0.0-alpha.1", | ||
"fast-glob": "^3.2.11", | ||
"json5": "^2.2.0", | ||
"json5": "^2.2.1", | ||
"optimal": "^5.1.1", | ||
"pretty-ms": "^7.0.1", | ||
"resolve": "^1.22.0", | ||
"yaml": "^1.10.2" | ||
"yaml": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@boost/test-utils": "^3.0.0", | ||
"@types/resolve": "^1.20.1" | ||
"@boost/test-utils": "^4.0.0-alpha.1", | ||
"@types/resolve": "^1.20.2" | ||
}, | ||
@@ -66,6 +63,36 @@ "peerDependencies": { | ||
"packemon": { | ||
"format": "lib", | ||
"api": "private", | ||
"inputs": { | ||
"index": "src/index.ts", | ||
"optimal": "src/optimal.ts", | ||
"test": "src/test.ts" | ||
}, | ||
"format": "cjs", | ||
"platform": "node" | ||
}, | ||
"gitHead": "5eb62e61451a0b461482ff9ed47f5ee405d44dc3" | ||
"exports": { | ||
"./package.json": "./package.json", | ||
"./optimal": { | ||
"types": "./dts/optimal.d.ts", | ||
"node": { | ||
"import": "./cjs/optimal-wrapper.mjs", | ||
"require": "./cjs/optimal.cjs" | ||
} | ||
}, | ||
"./test": { | ||
"types": "./dts/test.d.ts", | ||
"node": { | ||
"import": "./cjs/test-wrapper.mjs", | ||
"require": "./cjs/test.cjs" | ||
} | ||
}, | ||
".": { | ||
"types": "./dts/index.d.ts", | ||
"node": { | ||
"import": "./cjs/index-wrapper.mjs", | ||
"require": "./cjs/index.cjs" | ||
} | ||
} | ||
}, | ||
"gitHead": "0d0595fe3d95951cc0d3936b7d811aed26306d20" | ||
} |
import fs from 'fs'; | ||
import YAML from 'yaml'; | ||
import YAML, { | ||
CreateNodeOptions, | ||
DocumentOptions, | ||
ParseOptions, | ||
SchemaOptions, | ||
ToJSOptions, | ||
ToStringOptions, | ||
} from 'yaml'; | ||
import { PortablePath } from '../types'; | ||
export function parse<T = object>(content: string, options?: YAML.Options): T { | ||
export function parse<T = object>( | ||
content: string, | ||
options?: DocumentOptions & ParseOptions & SchemaOptions & ToJSOptions, | ||
): T { | ||
return YAML.parse(content, options) as T; | ||
} | ||
export function stringify(content: unknown, options?: YAML.Options): string { | ||
export function stringify( | ||
content: unknown, | ||
options?: CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions, | ||
): string { | ||
return YAML.stringify(content, options); | ||
@@ -11,0 +24,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
223074
5289
120
2
1
+ Added@boost/decorators@4.0.0(transitive)
+ Added@boost/internal@4.0.1(transitive)
+ Addedyaml@2.6.1(transitive)
- Removed@boost/decorators@3.0.0(transitive)
- Removed@boost/internal@3.0.1(transitive)
- Removedyaml@1.10.2(transitive)
Updatedjson5@^2.2.1
Updatedyaml@^2.0.1