es-mapping-to-schema
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113576
21
1171
146
11
1