New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ajv-cmd

Package Overview
Dependencies
Maintainers
1
Versions
44
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.7.3 to 0.7.4

4

package.json
{
"name": "ajv-cmd",
"version": "0.7.3",
"version": "0.7.4",
"description": "Deref, Validate, Transpile, and Test JSON-Schema (.json) files using ajv",

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

"esbuild": "^0.24.0",
"sast-json-schema": "0.0.0-alpha.0"
"sast-json-schema": "^0.0.0-alpha.0"
},

@@ -118,0 +118,0 @@ "funding": {

@@ -0,12 +1,5 @@

import { createRequire } from 'node:module'
import Ajv from 'ajv/dist/2020.js'
//import sastSchema from 'sast-json-schema/index.json' with { type: 'json' }
// const sastSchema = await import('sast-json-schema/index.json', {
// assert: {
// type: 'json'
// }
// })
import { readFileSync } from 'node:fs'
const __dirname = import.meta.dirname
const defaultOptions = {

@@ -17,4 +10,4 @@ strictTypes: false,

const sastSchema = JSON.parse(
readFileSync(__dirname + '/node_modules/sast-json-schema/index.json')
const sastSchema = createRequire(import.meta.url)(
'./node_modules/sast-json-schema/index.json'
)

@@ -21,0 +14,0 @@ export const sast = (schema, options = {}) => {

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