File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 33'use strict'
44
55const { AbstractLevel } = require ( 'abstract-level' )
6- const ModuleError = require ( 'module-error' )
76const { Iterator } = require ( './iterator' )
87const deserialize = require ( './util/deserialize' )
98const clear = require ( './util/clear' )
@@ -20,14 +19,7 @@ const kStore = Symbol('store')
2019const kOnComplete = Symbol ( 'onComplete' )
2120
2221class BrowserLevel extends AbstractLevel {
23- constructor ( location , options , _ ) {
24- // To help migrating to abstract-level
25- if ( typeof options === 'function' || typeof _ === 'function' ) {
26- throw new ModuleError ( 'The levelup-style callback argument has been removed' , {
27- code : 'LEVEL_LEGACY'
28- } )
29- }
30-
22+ constructor ( location , options ) {
3123 const { prefix, version, ...forward } = options || { }
3224
3325 super ( {
Original file line number Diff line number Diff line change 1919 " UPGRADING.md"
2020 ],
2121 "dependencies" : {
22- "abstract-level" : " ^2.0.1" ,
23- "module-error" : " ^1.0.2"
22+ "abstract-level" : " ^2.0.1"
2423 },
2524 "devDependencies" : {
2625 "@voxpelli/tsconfig" : " ^4.0.0" ,
You can’t perform that action at this time.
0 commit comments