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

abstract-leveldown

Package Overview
Dependencies
Maintainers
4
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-leveldown - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

4

abstract/close-test.js

@@ -9,3 +9,3 @@ module.exports.close = function (leveldown, test, testCommon) {

t.throws(
db.close.bind(db)
db.close.bind(db)
, { name: 'Error', message: 'close() requires a callback argument' }

@@ -15,3 +15,3 @@ , 'no-arg close() throws'

t.throws(
db.close.bind(db, 'foo')
db.close.bind(db, 'foo')
, { name: 'Error', message: 'close() requires a callback argument' }

@@ -18,0 +18,0 @@ , 'non-callback close() throws'

@@ -19,3 +19,3 @@ var db

t.throws(
db.del.bind(db)
db.del.bind(db)
, { name: 'Error', message: 'del() requires a callback argument' }

@@ -29,3 +29,3 @@ , 'no-arg del() throws'

t.throws(
db.del.bind(db, 'foo')
db.del.bind(db, 'foo')
, { name: 'Error', message: 'del() requires a callback argument' }

@@ -39,3 +39,3 @@ , 'callback-less, 1-arg del() throws'

t.throws(
db.del.bind(db, 'foo', {})
db.del.bind(db, 'foo', {})
, { name: 'Error', message: 'del() requires a callback argument' }

@@ -42,0 +42,0 @@ , 'callback-less, 2-arg del() throws'

@@ -20,3 +20,3 @@ var db

t.throws(
db.get.bind(db)
db.get.bind(db)
, { name: 'Error', message: 'get() requires a callback argument' }

@@ -30,3 +30,3 @@ , 'no-arg get() throws'

t.throws(
db.get.bind(db, 'foo')
db.get.bind(db, 'foo')
, { name: 'Error', message: 'get() requires a callback argument' }

@@ -40,3 +40,3 @@ , 'callback-less, 1-arg get() throws'

t.throws(
db.get.bind(db, 'foo', {})
db.get.bind(db, 'foo', {})
, { name: 'Error', message: 'get() requires a callback argument' }

@@ -43,0 +43,0 @@ , 'callback-less, 2-arg get() throws'

@@ -15,3 +15,3 @@ var db

t.throws(
iterator.next.bind(iterator)
iterator.next.bind(iterator)
, { name: 'Error', message: 'next() requires a callback argument' }

@@ -27,3 +27,3 @@ , 'no-arg iterator#next() throws'

t.throws(
iterator.end.bind(iterator)
iterator.end.bind(iterator)
, { name: 'Error', message: 'end() requires a callback argument' }

@@ -39,3 +39,3 @@ , 'no-arg iterator#end() throws'

t.throws(
iterator.end.bind(iterator)
iterator.end.bind(iterator)
, { name: 'Error', message: 'end() requires a callback argument' }

@@ -42,0 +42,0 @@ , 'no-arg iterator#end() throws'

module.exports.args = function (leveldown, test) {
test('test database creation no-arg throws', function (t) {
t.throws(
leveldown
leveldown
, { name: 'Error', message: 'constructor requires at least a location argument' }

@@ -12,5 +12,5 @@ , 'no-arg leveldown() throws'

t.throws(
function () {
leveldown({})
}
function () {
leveldown({})
}
, { name: 'Error', message: 'constructor requires a location string argument' }

@@ -17,0 +17,0 @@ , 'non-string location leveldown() throws'

@@ -9,3 +9,3 @@ module.exports.setUp = function (test, testCommon) {

t.throws(
db.open.bind(db)
db.open.bind(db)
, { name: 'Error', message: 'open() requires a callback argument' }

@@ -20,3 +20,3 @@ , 'no-arg open() throws'

t.throws(
db.open.bind(db, {})
db.open.bind(db, {})
, { name: 'Error', message: 'open() requires a callback argument' }

@@ -23,0 +23,0 @@ , 'callback-less, 1-arg open() throws'

@@ -118,3 +118,3 @@ 'use strict'

makePutGetDelSuccessfulTest(
test
test
, 'long String key'

@@ -152,3 +152,3 @@ , 'some long string that I\'m using as a key for this unit test, cross your fingers dude, we\'re going in!'

makePutGetDelSuccessfulTest(
test
test
, 'long String value'

@@ -155,0 +155,0 @@ , 'foo'

@@ -19,3 +19,3 @@ var db

t.throws(
db.put.bind(db)
db.put.bind(db)
, { name: 'Error', message: 'put() requires a callback argument' }

@@ -29,3 +29,3 @@ , 'no-arg put() throws'

t.throws(
db.put.bind(db, 'foo')
db.put.bind(db, 'foo')
, { name: 'Error', message: 'put() requires a callback argument' }

@@ -39,3 +39,3 @@ , 'callback-less, 1-arg put() throws'

t.throws(
db.put.bind(db, 'foo', 'bar')
db.put.bind(db, 'foo', 'bar')
, { name: 'Error', message: 'put() requires a callback argument' }

@@ -49,3 +49,3 @@ , 'callback-less, 2-arg put() throws'

t.throws(
db.put.bind(db, 'foo', 'bar', {})
db.put.bind(db, 'foo', 'bar', {})
, { name: 'Error', message: 'put() requires a callback argument' }

@@ -52,0 +52,0 @@ , 'callback-less, 3-arg put() throws'

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

## [4.0.3] - 2018-02-21
### Changed
* Update `ts-node` to `^5.0.0` (@zixia)
* Update `standard` to `^11.0.0` (@ralphtheninja)
### Fixed
* Remove invalid TypeScript from `Batch` (@Tapppi)
* Add JSDoc to incorrectly inferred TypeScript types (@Tapppi)
## [4.0.2] - 2018-02-09

@@ -537,3 +547,4 @@

[Unreleased]: https://github.com/level/abstract-leveldown/compare/v4.0.2...HEAD
[Unreleased]: https://github.com/level/abstract-leveldown/compare/v4.0.3...HEAD
[4.0.3]: https://github.com/level/abstract-leveldown/compare/v4.0.2...v4.0.3
[4.0.2]: https://github.com/level/abstract-leveldown/compare/v4.0.1...v4.0.2

@@ -540,0 +551,0 @@ [4.0.1]: https://github.com/level/abstract-leveldown/compare/v4.0.0...v4.0.1

@@ -43,3 +43,3 @@ interface AbstractLevelDOWN<K=any, V=any, O=any, PO=any, GO=any, DO=any, IO=any, BO=any> {

export type Batch<K=any, V?=any> = PutBatch<K, V> | DelBatch<K>
export type Batch<K=any, V=any> = PutBatch<K, V> | DelBatch<K>

@@ -46,0 +46,0 @@ export interface PutBatch<K=any, V=any> {

{
"name": "abstract-leveldown",
"description": "An abstract prototype matching the LevelDOWN API",
"version": "4.0.2",
"version": "4.0.3",
"contributors": [

@@ -41,5 +41,5 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)",

"sinon": "^4.0.0",
"standard": "^10.0.3",
"standard": "^11.0.0",
"tape": "^4.7.0",
"ts-node": "^4.1.0",
"ts-node": "^5.0.0",
"typescript": "^2.6.2"

@@ -46,0 +46,0 @@ },

@@ -233,2 +233,3 @@ 'use strict'

var expectedOptions = { options: 1 }
/** @type {Array<{ type: 'put', key, value } | { type: 'del', key }>} */
var expectedArray = [

@@ -680,2 +681,3 @@ { type: 'put', key: '1', value: '1' },

/** @type { { type: 'put', key, value } } */
var op = { type: 'put', key: 'no', value: 'nope' }

@@ -682,0 +684,0 @@ test.batch([op], function () {})

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