Skip to content

Commit 00741ff

Browse files
deps(dev): bump aegir from 39.0.13 to 40.0.8 (#241)
* deps(dev): bump aegir from 39.0.13 to 40.0.8 Bumps [aegir](https://github.com/ipfs/aegir) from 39.0.13 to 40.0.8. - [Release notes](https://github.com/ipfs/aegir/releases) - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md) - [Commits](ipfs/aegir@v39.0.13...v40.0.8) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * chore: fix linting * chore: fix tests --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain <[email protected]>
1 parent d089988 commit 00741ff

File tree

23 files changed

+41
-44
lines changed

23 files changed

+41
-44
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"release": "npm run docs:no-publish && aegir run release && npm run docs"
3636
},
3737
"devDependencies": {
38-
"aegir": "^39.0.9"
38+
"aegir": "^40.0.8"
3939
},
4040
"workspaces": [
4141
"packages/*"

packages/blockstore-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
"uint8arrays": "^4.0.2"
192192
},
193193
"devDependencies": {
194-
"aegir": "^39.0.9",
194+
"aegir": "^40.0.8",
195195
"interface-blockstore-tests": "^6.0.0"
196196
},
197197
"typedoc": {

packages/blockstore-fs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
"multiformats": "^12.0.1"
174174
},
175175
"devDependencies": {
176-
"aegir": "^39.0.9",
176+
"aegir": "^40.0.8",
177177
"interface-blockstore-tests": "^6.0.0"
178178
},
179179
"typedoc": {

packages/blockstore-idb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
"multiformats": "^12.0.1"
150150
},
151151
"devDependencies": {
152-
"aegir": "^39.0.9",
152+
"aegir": "^40.0.8",
153153
"interface-blockstore-tests": "^6.0.0"
154154
},
155155
"typedoc": {

packages/blockstore-level/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"multiformats": "^12.0.1"
153153
},
154154
"devDependencies": {
155-
"aegir": "^39.0.9",
155+
"aegir": "^40.0.8",
156156
"interface-blockstore-tests": "^6.0.0",
157157
"ipfs-utils": "^9.0.4",
158158
"memory-level": "^1.0.0"

packages/blockstore-s3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
},
153153
"devDependencies": {
154154
"@types/sinon": "^10.0.15",
155-
"aegir": "^39.0.9",
155+
"aegir": "^40.0.8",
156156
"interface-blockstore-tests": "^6.0.0",
157157
"p-defer": "^4.0.0",
158158
"sinon": "^15.0.2"

packages/blockstore-s3/test/index.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('S3Blockstore', () => {
4747
const store = new S3Blockstore(s3, 'test')
4848

4949
sinon.replace(s3, 'send', (command: any) => {
50-
if (command.constructor.name === 'PutObjectCommand') {
50+
if (command.constructor.name.includes('PutObjectCommand') === true) {
5151
return s3Reject(new Error('bad things happened'))
5252
}
5353

@@ -65,7 +65,7 @@ describe('S3Blockstore', () => {
6565
const store = new S3Blockstore(s3, 'test')
6666

6767
sinon.replace(s3, 'send', (command: any) => {
68-
if (command.constructor.name === 'GetObjectCommand') {
68+
if (command.constructor.name.includes('GetObjectCommand') === true) {
6969
return s3Reject(new S3Error('NotFound', 404))
7070
}
7171

@@ -83,7 +83,7 @@ describe('S3Blockstore', () => {
8383
const store = new S3Blockstore(s3, 'test')
8484

8585
sinon.replace(s3, 'send', (command: any) => {
86-
if (command.constructor.name === 'DeleteObjectCommand') {
86+
if (command.constructor.name.includes('DeleteObjectCommand') === true) {
8787
return s3Reject(new Error('bad things'))
8888
}
8989

@@ -108,12 +108,12 @@ describe('S3Blockstore', () => {
108108
const bucketCreated = defer<CreateBucketCommand>()
109109

110110
sinon.replace(s3, 'send', (command: any) => {
111-
if (command.constructor.name === 'HeadObjectCommand') {
111+
if (command.constructor.name.includes('HeadObjectCommand') === true) {
112112
bucketTested.resolve(command)
113113
return s3Reject(new S3Error('NoSuchBucket'))
114114
}
115115

116-
if (command.constructor.name === 'CreateBucketCommand') {
116+
if (command.constructor.name.includes('CreateBucketCommand') === true) {
117117
bucketCreated.resolve(command)
118118
return s3Resolve(null)
119119
}
@@ -137,7 +137,7 @@ describe('S3Blockstore', () => {
137137
const bucketTested = defer<HeadObjectCommand>()
138138

139139
sinon.replace(s3, 'send', (command: any) => {
140-
if (command.constructor.name === 'HeadObjectCommand') {
140+
if (command.constructor.name.includes('HeadObjectCommand') === true) {
141141
bucketTested.resolve(command)
142142
return s3Reject(new S3Error('NoSuchBucket'))
143143
}
@@ -157,7 +157,7 @@ describe('S3Blockstore', () => {
157157
const store = new S3Blockstore(s3, 'test')
158158

159159
sinon.replace(s3, 'send', (command: any) => {
160-
if (command.constructor.name === 'HeadObjectCommand') {
160+
if (command.constructor.name.includes('HeadObjectCommand') === true) {
161161
return s3Reject(new Error('bad things'))
162162
}
163163

packages/blockstore-s3/test/utils/s3-mock.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ export function s3Mock (s3: S3): S3 {
3636
const commandName = command.constructor.name
3737
const input: any = command.input
3838

39-
if (commandName === 'PutObjectCommand') {
39+
if (commandName.includes('PutObjectCommand') === true) {
4040
storage.set(input.Key, input.Body)
4141
return s3Resolve({})
4242
}
4343

44-
if (commandName === 'HeadObjectCommand') {
44+
if (commandName.includes('HeadObjectCommand') === true) {
4545
if (storage.has(input.Key)) {
4646
return s3Resolve({})
4747
}
4848

4949
return s3Reject(new S3Error('NotFound', 404))
5050
}
5151

52-
if (commandName === 'GetObjectCommand') {
52+
if (commandName.includes('GetObjectCommand') === true) {
5353
if (!storage.has(input.Key)) {
5454
return s3Reject(new S3Error('NotFound', 404))
5555
}
@@ -59,12 +59,12 @@ export function s3Mock (s3: S3): S3 {
5959
})
6060
}
6161

62-
if (commandName === 'DeleteObjectCommand') {
62+
if (commandName.includes('DeleteObjectCommand') === true) {
6363
storage.delete(input.Key)
6464
return s3Resolve({})
6565
}
6666

67-
if (commandName === 'ListObjectsV2Command') {
67+
if (commandName.includes('ListObjectsV2Command') === true) {
6868
const results: { Contents: Array<{ Key: string }> } = {
6969
Contents: []
7070
}

packages/datastore-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
"uint8arrays": "^4.0.2"
214214
},
215215
"devDependencies": {
216-
"aegir": "^39.0.9",
216+
"aegir": "^40.0.8",
217217
"interface-datastore": "^8.0.0",
218218
"interface-datastore-tests": "^5.0.0"
219219
},

packages/datastore-core/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import * as Errors from './errors.js'
32
import * as shard from './shard.js'
43
import type { Key } from 'interface-datastore'

0 commit comments

Comments
 (0)