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

pelias-schema

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pelias-schema - npm Package Compare versions

Comparing version 6.7.0 to 6.8.0

test/elastictest/Suite.js

6

integration/address_matching.js
// validate analyzer is behaving as expected
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -12,3 +12,3 @@ const getTotalHits = require('./_hits_total_helper');

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -221,3 +221,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -224,0 +224,0 @@

@@ -1,2 +0,2 @@

const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -15,3 +15,3 @@ const getTotalHits = require('./_hits_total_helper');

var suite = new elastictest.Suite(common.clientOpts, common.create);
var suite = new Suite(common.clientOpts, common.create);
suite.action(done => setTimeout(done, 500)); // wait for es to bring some shards up

@@ -144,3 +144,3 @@

var suite = new elastictest.Suite(common.clientOpts, common.create);
var suite = new Suite(common.clientOpts, common.create);
suite.action(done => setTimeout(done, 500)); // wait for es to bring some shards up

@@ -273,3 +273,3 @@

var suite = new elastictest.Suite(common.clientOpts, common.create);
var suite = new Suite(common.clientOpts, common.create);
suite.action(done => setTimeout(done, 500)); // wait for es to bring some shards up

@@ -276,0 +276,0 @@

// validate analyzer is behaving as expected
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -12,3 +12,3 @@ const getTotalHits = require('./_hits_total_helper');

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -15,0 +15,0 @@

// validate analyzer is behaving as expected
var tape = require('tape'),
elastictest = require('elastictest'),
Suite = require('../test/elastictest/Suite'),
punctuation = require('../punctuation');

@@ -12,3 +12,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasAdmin' );

@@ -37,3 +37,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasAdmin' );

@@ -76,3 +76,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasAdmin' );

@@ -104,3 +104,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasAdmin' );

@@ -133,3 +133,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasAdmin' );

@@ -136,0 +136,0 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

// validate analyzer is behaving as expected
var tape = require('tape'),
elastictest = require('elastictest'),
Suite = require('../test/elastictest/Suite'),
punctuation = require('../punctuation');

@@ -12,3 +12,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasHousenumber' );

@@ -27,3 +27,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasHousenumber' );

@@ -30,0 +30,0 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

// validate analyzer is behaving as expected
var tape = require('tape'),
elastictest = require('elastictest'),
Suite = require('../test/elastictest/Suite'),
punctuation = require('../punctuation');

@@ -12,3 +12,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasIndexOneEdgeGram' );

@@ -99,3 +99,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasIndexOneEdgeGram' );

@@ -130,3 +130,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasIndexOneEdgeGram' );

@@ -152,3 +152,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasIndexOneEdgeGram' );

@@ -179,3 +179,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasIndexOneEdgeGram' );

@@ -194,3 +194,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasIndexOneEdgeGram' );

@@ -227,3 +227,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasIndexOneEdgeGram' );

@@ -230,0 +230,0 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

// validate analyzer is behaving as expected
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const punctuation = require('../punctuation');

@@ -13,3 +13,3 @@ const config = require('pelias-config').generate();

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasPhrase' );

@@ -66,3 +66,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasPhrase' );

@@ -114,3 +114,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasPhrase' );

@@ -141,3 +141,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasPhrase' );

@@ -160,3 +160,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasPhrase' );

@@ -257,3 +257,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -302,3 +302,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasPhrase' );

@@ -305,0 +305,0 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

// validate analyzer is behaving as expected
var tape = require('tape'),
elastictest = require('elastictest'),
Suite = require('../test/elastictest/Suite'),
punctuation = require('../punctuation');

@@ -12,3 +12,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasQuery' );

@@ -45,3 +45,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasQuery' );

@@ -61,3 +61,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasQuery' );

@@ -86,3 +86,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasQuery' );

@@ -89,0 +89,0 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

// validate analyzer is behaving as expected
const elastictest = require('elastictest')
const Suite = require('../test/elastictest/Suite')

@@ -9,3 +9,3 @@ module.exports.tests = {};

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasStreet' );

@@ -33,3 +33,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasStreet' );

@@ -51,3 +51,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasStreet' );

@@ -70,3 +70,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasStreet' );

@@ -145,3 +145,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasStreet' );

@@ -171,3 +171,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasStreet' );

@@ -203,3 +203,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite(common.clientOpts, common.create );
var suite = new Suite(common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind(null, suite, t, 'peliasStreet');

@@ -206,0 +206,0 @@ suite.action(function (done) { setTimeout(done, 500); }); // wait for es to bring some shards up

// validate analyzer is behaving as expected
var tape = require('tape'),
elastictest = require('elastictest'),
Suite = require('../test/elastictest/Suite'),
punctuation = require('../punctuation');

@@ -12,3 +12,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasZip' );

@@ -28,3 +28,3 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
var assertAnalysis = common.analyze.bind( null, suite, t, 'peliasZip' );

@@ -31,0 +31,0 @@ suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -7,3 +7,3 @@ // Tests to ensure no regressions in the way the autocomplete analyzers handle

const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -18,3 +18,3 @@ const getTotalHits = require('./_hits_total_helper');

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -60,3 +60,3 @@

// var suite = new elastictest.Suite( common.clientOpts, common.create );
// var suite = new Suite( common.clientOpts, common.create );
// suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -63,0 +63,0 @@

@@ -7,3 +7,3 @@ // Tests to ensure no regressions in the way the autocomplete analyzers handle

const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -18,3 +18,3 @@ const getTotalHits = require('./_hits_total_helper');

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -76,3 +76,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -116,3 +116,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -174,3 +174,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -177,0 +177,0 @@

@@ -7,3 +7,3 @@ // Tests to ensure no regressions in the way the autocomplete analyzers handle

const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -19,3 +19,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -77,3 +77,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -117,3 +117,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -175,3 +175,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -178,0 +178,0 @@

// validate bounding box behaves as expected
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -11,3 +11,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -14,0 +14,0 @@

// http://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#_dynamic_templates
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -34,3 +34,3 @@

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
const _type = config.schema.typeName;

@@ -74,3 +74,3 @@

const suite = new elastictest.Suite( common.clientOpts, common.create );
const suite = new Suite( common.clientOpts, common.create );
const _type = config.schema.typeName;

@@ -114,3 +114,3 @@

const suite = new elastictest.Suite( common.clientOpts, common.create );
const suite = new Suite( common.clientOpts, common.create );
const _type = config.schema.typeName;

@@ -117,0 +117,0 @@

// validate analyzer is behaving as expected
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -13,3 +13,3 @@

var suite = new elastictest.Suite(common.clientOpts, common.create);
var suite = new Suite(common.clientOpts, common.create);
suite.action(function (done) { setTimeout(done, 500); }); // wait for es to bring some shards up

@@ -16,0 +16,0 @@

// validate analyzer is behaving as expected
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');
const config = require('pelias-config').generate();

@@ -12,3 +12,3 @@ const getTotalHits = require('./_hits_total_helper');

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );
suite.action( function( done ){ setTimeout( done, 500 ); }); // wait for es to bring some shards up

@@ -15,0 +15,0 @@

// simply validate that the schema doesn't error when inserted in to
// your local elasticsearch server, useful to sanity check version upgrades.
const elastictest = require('elastictest');
const Suite = require('../test/elastictest/Suite');

@@ -11,3 +11,3 @@ module.exports.tests = {};

var suite = new elastictest.Suite( common.clientOpts, common.create );
var suite = new Suite( common.clientOpts, common.create );

@@ -14,0 +14,0 @@ suite.assert( done => {

{
"name": "pelias-schema",
"version": "6.7.0",
"version": "6.8.0",
"author": "pelias",

@@ -42,6 +42,7 @@ "description": "Elasticsearch schema files and tooling for Pelias",

"devDependencies": {
"async": "^3.2.5",
"difflet": "^1.0.1",
"elastictest": "^3.0.0",
"iso3166-1": "^0.5.1",
"proxyquire": "^2.0.0",
"randomstring": "^1.3.0",
"tap-spec": "^5.0.0",

@@ -48,0 +49,0 @@ "tape": "^5.0.0"

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