Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@boost/common

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/common - npm Package Compare versions

Comparing version 3.2.1 to 4.0.0-alpha.1

cjs/_virtual/_rollupPluginBabelHelpers.cjs

6

dts/serializers/yaml.d.ts

@@ -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 @@ }

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