Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

es-mapping-to-schema

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-mapping-to-schema - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

.eslintrc.yml

7

index.js

@@ -16,5 +16,2 @@ const _ = require('lodash');

// This is a Lucene limitation
const MAX_STRING_SIZE = 32766;
const RecurseMappingToSchema = (mapping, schema, schemaType, options, localOptions) => {

@@ -77,4 +74,4 @@

const determineType = (mapping, schema, schemaType, options, localOptions) => {
let mappingType = mapping.properties ? 'object' : mapping.type;
let type = convertEsTypeToSchemaType(mappingType, options.isArray);
const mappingType = mapping.properties ? 'object' : mapping.type;
const type = convertEsTypeToSchemaType(mappingType, options.isArray);

@@ -81,0 +78,0 @@ if (schemaType === SANITIZATION_SCHEMA) {

{
"name": "es-mapping-to-schema",
"version": "3.0.3",
"version": "3.0.4",
"description": "Convert Elasticsearch mappings to Schema Inspector schemas",

@@ -37,4 +37,13 @@ "main": "index.js",

"chai": "^3.5.0",
"mocha": "^2.4.5"
"coveralls": "^2.11.11",
"gulp": "^3.9.1",
"gulp-coveralls": "^0.1.4",
"gulp-eslint": "^2.0.0",
"gulp-istanbul": "^0.10.4",
"gulp-mocha": "^2.2.0",
"istanbul": "^0.4.3",
"mocha-lcov-reporter": "^1.2.0",
"supertest": "^1.2.0",
"supertest-as-promised": "^3.1.0"
}
}

@@ -0,1 +1,3 @@

[![Coverage Status](https://coveralls.io/repos/github/groupby/es-mapping-to-schema/badge.svg?branch=master)](https://coveralls.io/github/groupby/es-mapping-to-schema?branch=master) [![CircleCI](https://circleci.com/gh/groupby/es-mapping-to-schema.svg?style=svg)](https://circleci.com/gh/groupby/es-mapping-to-schema)
## Elasticsearch Mapping to Schema Inspector schema

@@ -2,0 +4,0 @@

const chai = require('chai');
const expect = chai.expect;
const _ = require('lodash');

@@ -5,0 +4,0 @@ const MappingToSchema = require('./index');

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