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

asl-validator

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asl-validator - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

.npmignore

13

bin/asl-validator.js
#!/usr/bin/env node
/* eslint-disable no-console */
/* eslint-disable no-console, strict, prefer-destructuring */
'use strict';
const fs = require('fs');
const program = require('commander');
const { version } = require('../package.json');
const version = require('../package.json').version;
const validator = require('../src/validator');

@@ -52,7 +55,7 @@

try {
const { isValid, errors } = validator(definition);
if (isValid) {
const result = validator(definition);
if (result.isValid) {
doneValid();
} else {
doneInvalid(errors);
doneInvalid(result.errors);
}

@@ -59,0 +62,0 @@ } catch (e) {

{
"name": "asl-validator",
"version": "1.0.4",
"version": "1.0.5",
"description": "Amazon States Language validator",

@@ -5,0 +5,0 @@ "main": "./src/validator.js",

@@ -13,6 +13,2 @@ const Ajv = require('ajv');

// TODO
// - validate JSON path
// - add invalid definitions in tests
function validator(definition) {

@@ -19,0 +15,0 @@ const ajv = new Ajv({

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