yaml-validator
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"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 | ||
} | ||
} |
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
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
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
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
107636
2701
247
2
8
1
Updatedjs-yaml@^3.13.1