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

minisearch

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minisearch - npm Package Compare versions

Comparing version 2.1.4 to 2.2.0

dist/es/index.js

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## v2.2.0
- [fix] Fix documentation of `SearchableMap.prototype.atPrefix` (by
[@graphman65](https://github.com/graphman65))
- Switch to Rollup for bundling (by [stalniy](https://github.com/stalniy)),
reducing size of build and providing ES6 and ES5 module versions too.
## v2.1.4

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

29

package.json
{
"name": "minisearch",
"version": "2.1.4",
"version": "2.2.0",
"description": "Tiny but powerful full-text search engine for browser and Node",
"main": "dist/minisearch.js",
"main": "dist/umd/index.js",
"module": "dist/es5m/index.js",
"es2015": "dist/es/index.js",
"author": "Luca Ongaro",

@@ -31,4 +33,3 @@ "homepage": "https://lucaong.github.io/minisearch/",

"babel-core": "^7.0.0-0",
"babel-jest": "^24.0.0",
"babel-loader": "^8.0.4",
"babel-jest": "^25.1.0",
"benchmark": "^2.1.4",

@@ -41,13 +42,15 @@ "core-js": "^3.1.4",

"fast-check": "^1.5.0",
"jest": "^24.0.0",
"jest": "^25.1.0",
"regenerator-runtime": "^0.13.1",
"rollup": "^2.2.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^5.3.0",
"snazzy": "^8.0.0",
"standard": "^14.1.0",
"typescript": "^3.5.3",
"webpack": "^4.16.5",
"webpack-cli": "^3.1.0",
"webpack-merge": "^4.2.1"
"typescript": "^3.5.3"
},
"files": [
"/dist/minisearch.js",
"/dist/umd/index.js",
"/dist/es/index.js",
"/dist/es5m/index.js",
"/src/**/*"

@@ -65,5 +68,5 @@ ],

"coverage": "jest --coverage",
"benchmark": "NODE_ENV=production babel-node --expose-gc benchmarks/index.js",
"build": "webpack --mode=production",
"build-minified": "webpack --mode=production --config=webpack.minified.js",
"benchmark": "NODE_ENV=production BABEL_OUTPUT=commonjs babel-node --expose-gc benchmarks/index.js",
"build": "NODE_ENV=production rollup -c",
"build-minified": "MINIFY=true yarn build",
"build-docs": "esdoc",

@@ -70,0 +73,0 @@ "lint": "standard --verbose 'app/**/*.js' | snazzy",

@@ -71,3 +71,3 @@ # [![MiniSearch](https://lucaong.github.io/minisearch/MiniSearch.svg)](https://lucaong.github.io/minisearch/) MiniSearch

```html
<script src="https://cdn.jsdelivr.net/npm/minisearch@2.1.1/dist/minisearch.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/minisearch@2.2.0/dist/umd/index.min.js"></script>
```

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

`yarn build` (or `yarn build-minified` for a minified version + source maps).
The compiled source will be created in the `dist` folder.
The compiled source will be created in the `dist` folder (UMD, ES6 and ES2015
module versions are provided).

@@ -80,0 +81,0 @@

@@ -180,3 +180,3 @@ /* eslint-env jest */

{ id: 2, title: 'I Promessi Sposi', tags: 'renzo,lucia', author: { name: 'Alessandro Manzoni' } },
{ id: 3, title: 'Vita Nova', tags: 'dante', author: { name: 'Dante Alighieri' } }
{ id: 3, title: 'Vita Nova', author: { name: 'Dante Alighieri' } }
]

@@ -183,0 +183,0 @@

@@ -39,5 +39,5 @@ import { TreeIterator, ENTRIES, KEYS, VALUES, LEAF } from './TreeIterator.js'

* let univer = map.atPrefix("univer")
* uni.get("unique") // => undefined
* uni.get("universe") // => 2
* uni.get("university") // => 3
* univer.get("unique") // => undefined
* univer.get("universe") // => 2
* univer.get("university") // => 3
*

@@ -44,0 +44,0 @@ * @param {string} prefix - The prefix

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