feathers-solr
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -1,2 +0,1 @@ | ||
const { Client } = require('undici'); | ||
const qs = require('qs'); | ||
@@ -55,5 +54,9 @@ const debug = require('debug')('feathers-solr-client-undici'); | ||
debug('Response:', statusCode); | ||
body.on('data', d => { | ||
return resolve(JSON.parse(d.toString())); | ||
const bufs = []; | ||
body.on('data', buf => { | ||
bufs.push(buf); | ||
}); | ||
body.on('end', () => { | ||
return resolve(JSON.parse(Buffer.concat(bufs).toString('utf8'))); | ||
}); | ||
} else { | ||
@@ -63,2 +66,3 @@ reject(statusCode); | ||
} catch (error) { | ||
// throw new FeathersError(res.status, res.statusText); | ||
reject(statusCode, error); | ||
@@ -65,0 +69,0 @@ } |
{ | ||
"name": "feathers-solr", | ||
"description": "A service plugin for Solr", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"homepage": "https://github.com/sajov/feathers-solr", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
# feathers-solr | ||
[![Build Status](https://travis-ci.org/sajov/feathers-solr.png?branch=feature/refactor)](https://travis-ci.org/sajov/feathers-solr) | ||
[![Coverage Status](https://coveralls.io/repos/github/sajov/feathers-solr/badge.svg?branch=feature/refactor)](https://coveralls.io/github/sajov/feathers-solr?branch=feature/refactor) | ||
[![Build Status](https://travis-ci.org/sajov/feathers-solr.png?branch=master)](https://travis-ci.org/sajov/feathers-solr) | ||
[![Coverage Status](https://coveralls.io/repos/github/sajov/feathers-solr/badge.svg?branch=master)](https://coveralls.io/github/sajov/feathers-solr?branch=master) | ||
[![dependencies Status](https://david-dm.org/sajov/feathers-solr/status.svg)](https://david-dm.org/sajov/feathers-solr) | ||
@@ -17,3 +17,3 @@ [![Known Vulnerabilities](https://snyk.io/test/npm/feathers-solr/badge.svg)](https://snyk.io/test/npm/feathers-solr) | ||
Install a supported HTTP Client [Fetch](https://github.com/bitinn/node-fetch), [Undici](https://github.com/mcollina/undici) or [use a different HTTP Client](https://github.com/sajov/feathers-solr/tree/feature/refactor#use-a-different-http-client). | ||
Install a supported HTTP Client [Fetch](https://github.com/bitinn/node-fetch), [Undici](https://github.com/mcollina/undici) or [use a different HTTP Client](https://github.com/sajov/feathers-solr/tree/master#use-a-different-http-client). | ||
@@ -42,4 +42,2 @@ ``` | ||
- `commitStrategy` - (_optional_, default: `{ softCommit: true, commitWithin: 10000, overwrite: true }`) - Define how Index changes are stored [Solr Commits](https://lucene.apache.org/solr/guide/7_7/updatehandlers-in-solrconfig.html#UpdateHandlersinSolrConfig-commitandsoftCommit). | ||
- `schema` (_optional_) - . | ||
- `migrate` (_optional_) - . | ||
- `id` (_optional_, default: `'id'`) - The name of the id field property. | ||
@@ -374,5 +372,10 @@ - `events` (_optional_) - A list of [custom service events](https://docs.feathersjs.com/api/events.html#custom-events) sent by this service | ||
- Validation Hook | ||
- Spellcheck | ||
- Suggester | ||
- MoreLikeThis | ||
## Changelog | ||
**2.3.0** | ||
**2.2.0** | ||
@@ -379,0 +382,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
75390
1768
388
2