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

@secretlint/config-validator

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@secretlint/config-validator - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

1

lib/create-validation.js

@@ -25,3 +25,2 @@ "use strict";

format: "fast",
nullable: false,
unicode: true,

@@ -28,0 +27,0 @@ uniqueItems: true,

7

lib/index.js

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.validateConfig = exports.validateRawConfig = void 0;
var SecretLintConfigDescriptor_validation_1 = __importDefault(require("./SecretLintConfigDescriptor-validation"));

@@ -14,3 +15,3 @@ var SecretLintConfigDescriptorRule_validation_1 = __importDefault(require("./SecretLintConfigDescriptorRule-validation"));

*/
exports.validateRawConfig = function (value) {
var validateRawConfig = function (value) {
try {

@@ -68,2 +69,3 @@ if (!Array.isArray(value.rules)) {

};
exports.validateRawConfig = validateRawConfig;
/**

@@ -74,3 +76,3 @@ * valid config. it is additional check

*/
exports.validateConfig = function (value) {
var validateConfig = function (value) {
try {

@@ -107,2 +109,3 @@ var _loop_1 = function (ruleOrPreset) {

};
exports.validateConfig = validateConfig;
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSecretLintConfigDescriptor = exports.SecretLintConfigDescriptorSchema = exports.ajv = void 0;
/* tslint:disable */

@@ -7,3 +8,3 @@ // generated by typescript-json-validator

var Ajv = require("ajv");
exports.ajv = new Ajv({ "allErrors": true, "coerceTypes": "array", "format": "fast", "nullable": false, "unicode": true, "uniqueItems": true, "useDefaults": true });
exports.ajv = new Ajv({ "allErrors": true, "coerceTypes": "array", "format": "fast", "unicode": true, "uniqueItems": true, "useDefaults": true });
exports.ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));

@@ -10,0 +11,0 @@ exports.SecretLintConfigDescriptorSchema = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSecretLintConfigDescriptorRule = exports.SecretLintConfigDescriptorRuleSchema = exports.ajv = void 0;
/* tslint:disable */

@@ -7,3 +8,3 @@ // generated by typescript-json-validator

var Ajv = require("ajv");
exports.ajv = new Ajv({ "allErrors": true, "coerceTypes": "array", "format": "fast", "nullable": false, "unicode": true, "uniqueItems": true, "useDefaults": true });
exports.ajv = new Ajv({ "allErrors": true, "coerceTypes": "array", "format": "fast", "unicode": true, "uniqueItems": true, "useDefaults": true });
exports.ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));

@@ -10,0 +11,0 @@ exports.SecretLintConfigDescriptorRuleSchema = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSecretLintConfigDescriptorRulePreset = exports.SecretLintConfigDescriptorRulePresetSchema = exports.ajv = void 0;
/* tslint:disable */

@@ -7,3 +8,3 @@ // generated by typescript-json-validator

var Ajv = require("ajv");
exports.ajv = new Ajv({ "allErrors": true, "coerceTypes": "array", "format": "fast", "nullable": false, "unicode": true, "uniqueItems": true, "useDefaults": true });
exports.ajv = new Ajv({ "allErrors": true, "coerceTypes": "array", "format": "fast", "unicode": true, "uniqueItems": true, "useDefaults": true });
exports.ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));

@@ -10,0 +11,0 @@ exports.SecretLintConfigDescriptorRulePresetSchema = {

{
"name": "@secretlint/config-validator",
"version": "2.1.1",
"version": "2.2.0",
"description": ".secretlintrc config validation library",

@@ -48,3 +48,3 @@ "keywords": [

"dependencies": {
"@secretlint/types": "^2.1.1",
"@secretlint/types": "^2.2.0",
"ajv": "^6.11.0"

@@ -54,11 +54,11 @@ },

"@deps/traverse": "^1.0.2",
"@types/mocha": "^7.0.1",
"@types/node": "^13.9.3",
"cross-env": "^7.0.0",
"mocha": "^7.1.1",
"prettier": "^2.0.2",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.41",
"cross-env": "^7.0.3",
"mocha": "^8.3.2",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"ts-node": "^8.8.1",
"ts-node-test-register": "^8.0.1",
"typescript": "^3.8.2",
"ts-node": "^9.1.1",
"ts-node-test-register": "^9.0.1",
"typescript": "^4.2.4",
"typescript-json-validator": "^2.4.1"

@@ -69,3 +69,3 @@ },

},
"gitHead": "ee794cdf7b9aa5f2ec756e361d269b24b6e40070"
"gitHead": "64bf33d6ee6e31a8416bf2bde6ee27a700955fb1"
}

@@ -22,3 +22,2 @@ import fs from "fs";

format: "fast",
nullable: false,
unicode: true,

@@ -25,0 +24,0 @@ uniqueItems: true,

@@ -6,3 +6,3 @@ /* tslint:disable */

import {SecretLintConfigDescriptor} from '@secretlint/types';
export const ajv = new Ajv({"allErrors":true,"coerceTypes":"array","format":"fast","nullable":false,"unicode":true,"uniqueItems":true,"useDefaults":true});
export const ajv = new Ajv({"allErrors":true,"coerceTypes":"array","format":"fast","unicode":true,"uniqueItems":true,"useDefaults":true});

@@ -9,0 +9,0 @@ ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));

@@ -6,3 +6,3 @@ /* tslint:disable */

import {SecretLintConfigDescriptorRule} from '@secretlint/types';
export const ajv = new Ajv({"allErrors":true,"coerceTypes":"array","format":"fast","nullable":false,"unicode":true,"uniqueItems":true,"useDefaults":true});
export const ajv = new Ajv({"allErrors":true,"coerceTypes":"array","format":"fast","unicode":true,"uniqueItems":true,"useDefaults":true});

@@ -9,0 +9,0 @@ ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));

@@ -6,3 +6,3 @@ /* tslint:disable */

import {SecretLintConfigDescriptorRulePreset} from '@secretlint/types';
export const ajv = new Ajv({"allErrors":true,"coerceTypes":"array","format":"fast","nullable":false,"unicode":true,"uniqueItems":true,"useDefaults":true});
export const ajv = new Ajv({"allErrors":true,"coerceTypes":"array","format":"fast","unicode":true,"uniqueItems":true,"useDefaults":true});

@@ -9,0 +9,0 @@ ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));

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

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