Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

ajv-cmd

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv-cmd - npm Package Compare versions

Comparing version
0.9.0
to
0.10.0
+2
-2
package.json
{
"name": "ajv-cmd",
"version": "0.9.0",
"version": "0.10.0",
"description": "Deref, Validate, Transpile, and Test JSON-Schema (.json) files using ajv",

@@ -146,3 +146,3 @@ "type": "module",

"ajv-formats": "3.0.1",
"ajv-ftl-i18n": "0.1.1",
"ajv-ftl-i18n": "0.2.1",
"ajv-i18n": "4.2.0",

@@ -149,0 +149,0 @@ "ajv-keywords": "5.1.0",

@@ -45,3 +45,3 @@ "use strict";

);
const sast = (schema, options = {}) => {
const sast = (_schema, options = {}) => {
options = { ...defaultOptions, ...options };

@@ -48,0 +48,0 @@ const ajv = new import__.default(options);

@@ -16,3 +16,3 @@ // Copyright 2026 will Farrell, and ajv-cmd contributors.

);
export const sast = (schema, options = {}) => {
export const sast = (_schema, options = {}) => {
options = { ...defaultOptions, ...options };

@@ -19,0 +19,0 @@

@@ -56,3 +56,3 @@ "use strict";

let js = (0, import_standalone.default)(ajv, validate);
const file = (0, import_node_path.join)(__dirname, (0, import_node_crypto.randomBytes)(16).toString("hex") + ".js");
const file = (0, import_node_path.join)(__dirname, `${(0, import_node_crypto.randomBytes)(16).toString("hex")}.js`);
await (0, import_promises.writeFile)(file, js, "utf8");

@@ -59,0 +59,0 @@ await (0, import_esbuild.build)({

@@ -28,3 +28,3 @@ // Copyright 2026 will Farrell, and ajv-cmd contributors.

const file = join(__dirname, randomBytes(16).toString("hex") + ".js");
const file = join(__dirname, `${randomBytes(16).toString("hex")}.js`);
await writeFile(file, js, "utf8");

@@ -31,0 +31,0 @@

@@ -41,3 +41,3 @@ "use strict";

for (const data of options?.testData ?? []) {
valid = validate(data);
valid = validate(structuredClone(data));
if (!valid) {

@@ -44,0 +44,0 @@ console.error(validate.errors);

@@ -36,3 +36,3 @@ // Copyright 2026 will Farrell, and ajv-cmd contributors.

for (const data of options?.testData ?? []) {
valid = validate(data);
valid = validate(structuredClone(data));
if (!valid) {

@@ -39,0 +39,0 @@ console.error(validate.errors);

Sorry, the diff of this file is too big to display