Browse Source

Remove use stricts

pull/1111/head
Julian Simioni 7 years ago
parent
commit
02aac0c13e
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      controller/place.js
  2. 2
      controller/search.js
  3. 1
      helper/debug.js
  4. 2
      helper/fieldValue.js
  5. 2
      helper/geojsonify_place_details.js
  6. 2
      helper/stackTraceLine.js
  7. 2
      middleware/access_log.js
  8. 2
      middleware/confidenceScoreFallback.js
  9. 2
      middleware/normalizeParentIds.js
  10. 2
      middleware/renamePlacenames.js
  11. 2
      query/autocomplete.js
  12. 2
      query/reverse.js
  13. 1
      query/search.js
  14. 1
      query/search_original.js
  15. 1
      sanitizer/sanitizeAll.js
  16. 1
      schema.js
  17. 1
      service/configurations/Interpolation.js
  18. 1
      service/configurations/Language.js
  19. 1
      service/configurations/Libpostal.js
  20. 1
      service/configurations/PlaceHolder.js
  21. 1
      service/configurations/PointInPolygon.js
  22. 1
      test/unit/app.js
  23. 1
      test/unit/controller/coarse_reverse.js
  24. 1
      test/unit/controller/libpostal.js
  25. 1
      test/unit/controller/place.js
  26. 1
      test/unit/controller/placeholder.js
  27. 1
      test/unit/controller/predicates/has_parsed_text_properties.js
  28. 1
      test/unit/controller/predicates/has_request_errors.js
  29. 1
      test/unit/controller/predicates/has_request_parameter.js
  30. 1
      test/unit/controller/predicates/has_response_data.js
  31. 1
      test/unit/controller/predicates/has_results_at_layers.js
  32. 1
      test/unit/controller/predicates/is_addressit_parse.js
  33. 1
      test/unit/controller/predicates/is_admin_only_analysis.js
  34. 1
      test/unit/controller/predicates/is_coarse_reverse.js
  35. 1
      test/unit/controller/predicates/is_only_non_admin_layers.js
  36. 1
      test/unit/controller/predicates/is_request_sources_only_whosonfirst.js
  37. 1
      test/unit/controller/search.js
  38. 1
      test/unit/controller/search_with_ids.js
  39. 1
      test/unit/controller/structured_libpostal.js
  40. 1
      test/unit/middleware/changeLanguage.js
  41. 1
      test/unit/middleware/interpolate.js
  42. 1
      test/unit/query/MockQuery.js
  43. 1
      test/unit/sanitizer/_geo_reverse.js
  44. 1
      test/unit/schema.js

2
controller/place.js

@ -1,5 +1,3 @@
'use strict';
const _ = require('lodash');
const retry = require('retry');

2
controller/search.js

@ -1,5 +1,3 @@
'use strict';
const _ = require('lodash');
const searchService = require('../service/search');

1
helper/debug.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
class Debug {

2
helper/fieldValue.js

@ -1,5 +1,3 @@
'use strict';
const _ = require('lodash');
function getStringValue(property) {

2
helper/geojsonify_place_details.js

@ -1,5 +1,3 @@
'use strict';
const _ = require('lodash');
const field = require('./fieldValue');

2
helper/stackTraceLine.js

@ -1,5 +1,3 @@
'use strict';
module.exports = () => {
const stack = new Error().stack.split('\n');
let targetLine;

2
middleware/access_log.js

@ -2,8 +2,6 @@
* Create a middleware that prints access logs via pelias-logger.
*/
'use strict';
var url = require( 'url' );
var _ = require( 'lodash' );

2
middleware/confidenceScoreFallback.js

@ -1,5 +1,3 @@
'use strict';
/**
*
* Basic confidence score should be computed and returned for each item in the results.

2
middleware/normalizeParentIds.js

@ -1,5 +1,3 @@
'use strict';
const logger = require('pelias-logger').get('api');
const Document = require('pelias-model').Document;
const placeTypes = require('../helper/placeTypes');

2
middleware/renamePlacenames.js

@ -1,5 +1,3 @@
'use strict';
const _ = require('lodash');
const PARENT_PROPS = require('../helper/placeTypes');

2
query/autocomplete.js

@ -1,5 +1,3 @@
'use strict';
const peliasQuery = require('pelias-query');
const defaults = require('./autocomplete_defaults');
const textParser = require('./text_parser_addressit');

2
query/reverse.js

@ -1,5 +1,3 @@
'use strict';
const peliasQuery = require('pelias-query');
const defaults = require('./reverse_defaults');
const check = require('check-types');

1
query/search.js

@ -1,4 +1,3 @@
'use strict';
const peliasQuery = require('pelias-query');
const defaults = require('./search_defaults');

1
query/search_original.js

@ -1,4 +1,3 @@
'use strict';
const peliasQuery = require('pelias-query');
const defaults = require('./search_defaults');

1
sanitizer/sanitizeAll.js

@ -1,4 +1,3 @@
'use strict';
function sanitize( req, sanitizers ){
// init an object to store clean (sanitized) input parameters if not initialized
req.clean = req.clean || {};

1
schema.js

@ -1,4 +1,3 @@
'use strict';
const Joi = require('joi');

1
service/configurations/Interpolation.js

@ -1,4 +1,3 @@
'use strict';
const url = require('url');

1
service/configurations/Language.js

@ -1,4 +1,3 @@
'use strict';
const url = require('url');

1
service/configurations/Libpostal.js

@ -1,4 +1,3 @@
'use strict';
const url = require('url');

1
service/configurations/PlaceHolder.js

@ -1,4 +1,3 @@
'use strict';
const url = require('url');

1
service/configurations/PointInPolygon.js

@ -1,4 +1,3 @@
'use strict';
const url = require('url');

1
test/unit/app.js

@ -1,4 +1,3 @@
'use strict';
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/coarse_reverse.js

@ -1,4 +1,3 @@
'use strict';
const setup = require('../../../controller/coarse_reverse');
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/libpostal.js

@ -1,4 +1,3 @@
'use strict';
const proxyquire = require('proxyquire').noCallThru();
const libpostal = require('../../../controller/libpostal');

1
test/unit/controller/place.js

@ -1,4 +1,3 @@
'use strict';
const setup = require('../../../controller/place');
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/placeholder.js

@ -1,4 +1,3 @@
'use strict';
const placeholder = require('../../../controller/placeholder');
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/predicates/has_parsed_text_properties.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const has_parsed_text_properties = require('../../../../controller/predicates/has_parsed_text_properties');

1
test/unit/controller/predicates/has_request_errors.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const has_request_errors = require('../../../../controller/predicates/has_request_errors');

1
test/unit/controller/predicates/has_request_parameter.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const has_request_parameter = require('../../../../controller/predicates/has_request_parameter');

1
test/unit/controller/predicates/has_response_data.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const has_response_data = require('../../../../controller/predicates/has_response_data');

1
test/unit/controller/predicates/has_results_at_layers.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const has_results_at_layers = require('../../../../controller/predicates/has_results_at_layers');

1
test/unit/controller/predicates/is_addressit_parse.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const is_addressit_parse = require('../../../../controller/predicates/is_addressit_parse');

1
test/unit/controller/predicates/is_admin_only_analysis.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const is_admin_only_analysis = require('../../../../controller/predicates/is_admin_only_analysis');

1
test/unit/controller/predicates/is_coarse_reverse.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const is_coarse_reverse = require('../../../../controller/predicates/is_coarse_reverse');

1
test/unit/controller/predicates/is_only_non_admin_layers.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const is_only_non_admin_layers = require('../../../../controller/predicates/is_only_non_admin_layers');

1
test/unit/controller/predicates/is_request_sources_only_whosonfirst.js

@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const is_request_sources_only_whosonfirst = require('../../../../controller/predicates/is_request_sources_only_whosonfirst');

1
test/unit/controller/search.js

@ -1,4 +1,3 @@
'use strict';
const setup = require('../../../controller/search');
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/search_with_ids.js

@ -1,4 +1,3 @@
'use strict';
const setup = require('../../../controller/search_with_ids');
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/structured_libpostal.js

@ -1,4 +1,3 @@
'use strict';
const proxyquire = require('proxyquire').noCallThru();
const libpostal = require('../../../controller/structured_libpostal');

1
test/unit/middleware/changeLanguage.js

@ -1,4 +1,3 @@
'use strict';
const setup = require('../../../middleware/changeLanguage');
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/middleware/interpolate.js

@ -1,4 +1,3 @@
'use strict';
const setup = require('../../../middleware/interpolate');
const proxyquire = require('proxyquire').noCallThru();

1
test/unit/query/MockQuery.js

@ -1,4 +1,3 @@
'use strict';
module.exports = class MockQuery {
constructor() {

1
test/unit/sanitizer/_geo_reverse.js

@ -1,4 +1,3 @@
'use strict';
const sanitizer = require('../../../sanitizer/_geo_reverse')();
const defaults = require('../../../query/reverse_defaults');

1
test/unit/schema.js

@ -1,4 +1,3 @@
'use strict';
const Joi = require('joi');
const schema = require('../../schema');

Loading…
Cancel
Save