Skip to content

Commit

Permalink
refactor: remove EventEmitter dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 17, 2023
1 parent 100def0 commit 72dc885
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ const {
DeleteObjectCommand
} = require('@aws-sdk/client-s3')

const EventEmitter = require('events')
const pReflect = require('p-reflect')

class KeyvS3 extends EventEmitter {
class KeyvS3 {
constructor ({ namespace, hostname, ttl, gotOpts, s3client, got, ...opts }) {
super()
this.Bucket = namespace
this.ttl = ttl
this.hostname = hostname ?? namespace
Expand Down

0 comments on commit 72dc885

Please sign in to comment.