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

indicative-parser

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indicative-parser - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

build/src/main.js

@@ -5,2 +5,5 @@ "use strict";

const ArrayPresenter = require("haye/dist/haye-array-presenter");
function toCamelCase(ruleName) {
return ruleName.replace(/_(\w)/g, (_match, group) => group.toUpperCase());
}
function setLiteral(source, key, rules) {

@@ -66,3 +69,5 @@ const item = (source[key] || { type: 'literal' });

if (typeof (rules) === 'string') {
parsedRules = new Pipe(rules, new ArrayPresenter());
parsedRules = new Pipe(rules, new ArrayPresenter()).map((rule) => {
return { name: toCamelCase(rule.name), args: rule.args };
});
}

@@ -83,3 +88,3 @@ else {

const tokens = field.split('.');
const rule = tokens.pop();
const rule = toCamelCase(tokens.pop());
if (!tokens.length) {

@@ -86,0 +91,0 @@ result.rules = { [rule]: message };

{
"name": "indicative-parser",
"version": "1.0.0",
"version": "1.0.1",
"description": "Schema parser for Indicative",
"main": "build/index.js",
"files": [
"build/src",
"build/index.d.ts",
"build/index.js"
],
"scripts": {

@@ -34,3 +40,3 @@ "mrm": "mrm --preset=@adonisjs/mrm-preset",

"@adonisjs/mrm-preset": "^2.0.3",
"@types/node": "^12.0.4",
"@types/node": "^12.0.12",
"commitizen": "^3.1.1",

@@ -40,12 +46,12 @@ "cz-conventional-changelog": "^2.1.0",

"doctoc": "^1.4.0",
"husky": "^2.3.0",
"husky": "^3.0.0",
"japa": "^2.0.10",
"mrm": "^1.2.2",
"np": "^5.0.2",
"ts-node": "^8.2.0",
"tslint": "^5.17.0",
"np": "^5.0.3",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"tslint-eslint-rules": "^5.4.0",
"typedoc": "^0.14.2",
"typedoc-plugin-external-module-name": "^2.1.0",
"typescript": "^3.5.1"
"typescript": "^3.5.2"
},

@@ -60,8 +66,2 @@ "nyc": {

},
"main": "build/index.js",
"files": [
"build/src",
"build/index.d.ts",
"build/index.js"
],
"husky": {

@@ -84,3 +84,3 @@ "hooks": {

"access": "public",
"tag": "alpha"
"tag": "latest"
},

@@ -87,0 +87,0 @@ "dependencies": {

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