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

indicative-compiler

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indicative-compiler - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

7

build/src/Sanitizer/ArrayWrapper.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const getValue = require("lodash.get");
const lodash_get_1 = __importDefault(require("lodash.get"));
class ArrayWrapper {

@@ -13,3 +16,3 @@ constructor(_field, _index, _childSanitizations, _dotPath) {

_getDataCopy(data) {
const value = getValue(data.tip, this._pointer);
const value = lodash_get_1.default(data.tip, this._pointer);
if (!Array.isArray(value)) {

@@ -16,0 +19,0 @@ return null;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const indicative_parser_1 = require("indicative-parser");
const TreeWalker_1 = require("../TreeWalker");
const ArrayWrapper_1 = require("./ArrayWrapper");
const SanitizationsRunner_1 = require("./SanitizationsRunner");
const TreeWalker_1 = require("../TreeWalker");
class Compiler {

@@ -8,0 +8,0 @@ constructor(schema, _sanitizations) {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const getValue = require("lodash.get");
const isObject = require("isobject");
const lodash_get_1 = __importDefault(require("lodash.get"));
const isobject_1 = __importDefault(require("isobject"));
class SanitizationsRunner {

@@ -28,3 +31,3 @@ constructor(_field, _dotPath, rules, sanitizations) {

_getDataCopy(data) {
const tip = this._dotPath.length ? getValue(data.tip, this._dotPath) : data.tip;
const tip = this._dotPath.length ? lodash_get_1.default(data.tip, this._dotPath) : data.tip;
return Object.assign({}, data, {

@@ -36,3 +39,3 @@ tip: this._field === '::tip::' ? { [this._field]: tip } : tip,

const dataCopy = this._getDataCopy(data);
if (!isObject(dataCopy.tip)) {
if (!isobject_1.default(dataCopy.tip)) {
return true;

@@ -39,0 +42,0 @@ }

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const getValue = require("lodash.get");
const lodash_get_1 = __importDefault(require("lodash.get"));
class ArrayWrapper {

@@ -14,3 +17,3 @@ constructor(_field, _index, _childValidators, _dotPath) {

_getDataCopy(data) {
const value = getValue(data.tip, this._pointer);
const value = lodash_get_1.default(data.tip, this._pointer);
if (!Array.isArray(value)) {

@@ -17,0 +20,0 @@ return null;

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const setValue = require("lodash.set");
const lodash_set_1 = __importDefault(require("lodash.set"));
class Collector {

@@ -16,3 +19,3 @@ constructor(formatter, _generateTree) {

pointer = pointer.replace('.::tip::', '');
setValue(this.tree, pointer, value);
lodash_set_1.default(this.tree, pointer, value);
}

@@ -19,0 +22,0 @@ getData() {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const getValue = require("lodash.get");
const isObject = require("isobject");
const lodash_get_1 = __importDefault(require("lodash.get"));
const isobject_1 = __importDefault(require("isobject"));
class ValidationsRunner {

@@ -36,3 +39,3 @@ constructor(_field, _type, _dotPath, rules, validations, _fieldMessages, _genericMessages) {

_getDataCopy(data) {
const tip = this._dotPath.length ? getValue(data.tip, this._dotPath) : data.tip;
const tip = this._dotPath.length ? lodash_get_1.default(data.tip, this._dotPath) : data.tip;
const pointer = data.arrayPointer ?

@@ -58,3 +61,3 @@ `${data.arrayPointer}.${data.currentIndex}.${this._pointer}`

const dataCopy = this._getDataCopy(data);
if (!isObject(dataCopy.tip)) {
if (!isobject_1.default(dataCopy.tip)) {
return true;

@@ -86,3 +89,3 @@ }

const dataCopy = this._getDataCopy(data);
if (!isObject(dataCopy.tip)) {
if (!isobject_1.default(dataCopy.tip)) {
return true;

@@ -89,0 +92,0 @@ }

{
"name": "indicative-compiler",
"version": "7.0.2",
"version": "7.0.3",
"description": "Indicative compiler to compile parsed schema into highly optimized functions",

@@ -39,12 +39,12 @@ "main": "build/index.js",

"devDependencies": {
"@adonisjs/mrm-preset": "^2.0.3",
"@types/node": "^12.6.1",
"@adonisjs/mrm-preset": "^2.1.0",
"@types/node": "^12.7.3",
"clone-deep": "^4.0.1",
"commitizen": "^3.1.1",
"cz-conventional-changelog": "^2.1.0",
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.0.2",
"del-cli": "^2.0.0",
"doctoc": "^1.4.0",
"husky": "^3.0.0",
"husky": "^3.0.5",
"indicative-utils": "^7.0.1",
"japa": "^2.0.10",
"japa": "^3.0.0",
"mrm": "^1.2.2",

@@ -54,8 +54,8 @@ "np": "^5.0.3",

"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"tslint": "^5.19.0",
"tslint-eslint-rules": "^5.4.0",
"typedoc": "^0.14.2",
"typedoc": "^0.15.0",
"typedoc-plugin-external-module-name": "^2.1.0",
"typedoc-plugin-markdown": "^2.0.8",
"typescript": "^3.5.3"
"typedoc-plugin-markdown": "^2.1.7",
"typescript": "^3.6.2"
},

@@ -86,3 +86,3 @@ "nyc": {

"dependencies": {
"indicative-parser": "^7.0.1",
"indicative-parser": "^7.0.2",
"isobject": "^4.0.0",

@@ -89,0 +89,0 @@ "lodash.get": "^4.4.2",

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