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

yaml-validator

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaml-validator - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

npm-shrinkwrap.json

26

package.json
{
"name": "yaml-validator",
"version": "2.0.0",
"version": "2.1.0",
"description": "Validate Yaml files and enforce a given structure",

@@ -27,16 +27,24 @@ "main": "index.js",

},
"files": [
"bin",
"typings",
"index.js",
"LICENSE",
"npm-shrinkwrap.json",
"package.json"
],
"dependencies": {
"check-type": "^0.4.11",
"js-yaml": "^3.12.1",
"js-yaml": "^3.13.1",
"optionator": "^0.8.2"
},
"devDependencies": {
"@types/node": "^10.12.18",
"codecov": "^3.1.0",
"eslint": "^5.12.0",
"eslint-config-paazmaya": "^5.1.0",
"nyc": "^13.1.0",
"tape": "^4.9.2",
"typescript": "^3.2.2"
"@types/node": "10.14.6",
"codecov": "3.3.0",
"eslint": "5.16.0",
"eslint-config-paazmaya": "5.2.0",
"nyc": "14.0.0",
"tape": "4.10.1",
"typescript": "3.4.5"
}
}

@@ -210,2 +210,5 @@ # yaml-validator

* `v2.1.0` (2019-04-27)
- Use [`npm-shrinkwrap.json`](https://docs.npmjs.com/files/shrinkwrap.json) for locking the working set of 3rd party dependencies
- Define `files` property in `package.json` to minify files in the published package
* `v2.0.0` (2019-01-17)

@@ -212,0 +215,0 @@ - Minimum supported and tested Node.js version is now `v8.11.1`

@@ -11,21 +11,21 @@ /**

declare class YamlValidator {
logs: string[]
nonValidPaths: string[]
inValidFilesCount: number
logs: string[]
nonValidPaths: string[]
inValidFilesCount: number
constructor(options?: YamlValidator.IYamlValidatorOptions)
constructor(options?: YamlValidator.IYamlValidatorOptions)
validate(files: string[]): void
report(): number
validate(files: string[]): void
report(): number
}
declare namespace YamlValidator {
export type WarningCallback = (error: Error, filePath: string) => void
export type WarningCallback = (error: Error, filePath: string) => void
export interface IYamlValidatorOptions {
log?: string | false
structure?: object | false
onWarning?: WarningCallback
writeJson?: boolean
}
export interface IYamlValidatorOptions {
log?: string | false
structure?: object | false
onWarning?: WarningCallback
writeJson?: boolean
}
}
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