pouchdb-quick-search
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,3 +5,2 @@ #!/usr/bin/env node | ||
var PouchDB = require('pouchdb'); | ||
var COUCH_HOST = process.env.COUCH_HOST || 'http://127.0.0.1:5984'; | ||
@@ -18,3 +17,9 @@ var HTTP_PORT = 8001; | ||
var watchify = require("watchify"); | ||
var w = watchify(indexfile); | ||
var browserify = require('browserify'); | ||
var w = watchify(browserify(indexfile, { | ||
cache: {}, | ||
packageCache: {}, | ||
fullPaths: true, | ||
debug: true | ||
})); | ||
@@ -21,0 +26,0 @@ w.on('update', bundle); |
{ | ||
"name": "pouchdb-quick-search", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "PouchDB Quick Search - persisted full-text search for PouchDB", | ||
"main": "index.js", | ||
"main": "lib/index.js", | ||
"repository": { | ||
@@ -26,5 +26,5 @@ "type": "git", | ||
"test-browser": "./bin/test-browser.js", | ||
"jshint": "jshint -c .jshintrc *.js test/test.js", | ||
"jshint": "jshint -c .jshintrc lib/*.js test/test.js", | ||
"test": "npm run jshint && ./bin/run-test.sh", | ||
"build": "mkdir -p dist && browserify index.js -o dist/pouchdb.quick-search.js && npm run min", | ||
"build": "mkdir -p dist && browserify . -t es3ify -o dist/pouchdb.quick-search.js && npm run min", | ||
"min": "uglifyjs dist/pouchdb.quick-search.js -mc > dist/pouchdb.quick-search.min.js", | ||
@@ -44,2 +44,3 @@ "dev": "browserify test/test.js > test/test-bundle.js && npm run dev-server", | ||
"pouchdb-mapreduce-no-ddocs": "^2.3.1", | ||
"pouchdb-promise": "5.4.4", | ||
"uniq": "^1.0.1" | ||
@@ -49,26 +50,19 @@ }, | ||
"bluebird": "^1.0.7", | ||
"browserify": "~2.36.0", | ||
"chai": "~1.8.1", | ||
"chai-as-promised": "~4.1.0", | ||
"browserify": "^12.0.2", | ||
"chai": "^3.5.0", | ||
"chai-as-promised": "^5.3.0", | ||
"http-server": "~0.5.5", | ||
"istanbul": "^0.2.7", | ||
"jshint": "~2.3.0", | ||
"mocha": "~1.18", | ||
"phantomjs": "^1.9.7-5", | ||
"pouchdb": "pouchdb/pouchdb", | ||
"jshint": "~2.8.0", | ||
"mocha": "^2.4.5", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"pouchdb": "^5.4.0", | ||
"request": "^2.36.0", | ||
"sauce-connect-launcher": "^0.4.2", | ||
"selenium-standalone": "^3.0.2", | ||
"sauce-connect-launcher": "^0.14.0", | ||
"selenium-standalone": "^5.1.0", | ||
"uglify-js": "^2.4.13", | ||
"watchify": "~0.4.1", | ||
"watchify": "^3.1.0", | ||
"wd": "^0.2.21" | ||
}, | ||
"browser": { | ||
"crypto": false | ||
}, | ||
"browserify": { | ||
"transform": [ | ||
"es3ify" | ||
] | ||
} | ||
"lib": ["lib", "dist"] | ||
} |
@@ -51,3 +51,3 @@ PouchDB Quick Search | ||
#### In Node.js | ||
#### In Node.js/Browserify/Webpack | ||
@@ -54,0 +54,0 @@ Just npm install it: |
@@ -52,11 +52,12 @@ /*jshint expr:true */ | ||
beforeEach(function () { | ||
db = new Pouch(dbName); | ||
return db; | ||
}); | ||
afterEach(function () { | ||
return db.destroy(); | ||
}); | ||
describe(dbType + ': search test suite', function () { | ||
this.timeout(30000); | ||
beforeEach(function () { | ||
db = new Pouch(dbName); | ||
return db; | ||
}); | ||
afterEach(function () { | ||
return db.destroy(); | ||
}); | ||
@@ -63,0 +64,0 @@ it('basic search', function () { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2194585
49755
10
41
14
+ Addedpouchdb-promise@5.4.4