Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps(dev): bump aegir from 39.0.13 to 40.0.8 #241

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"release": "npm run docs:no-publish && aegir run release && npm run docs"
},
"devDependencies": {
"aegir": "^39.0.9"
"aegir": "^40.0.8"
},
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/blockstore-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-blockstore-tests": "^6.0.0"
},
"typedoc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/blockstore-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"multiformats": "^11.0.2"
},
"devDependencies": {
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-blockstore-tests": "^6.0.0"
},
"typedoc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/blockstore-idb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"multiformats": "^11.0.2"
},
"devDependencies": {
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-blockstore-tests": "^6.0.0"
},
"typedoc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/blockstore-level/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"multiformats": "^11.0.2"
},
"devDependencies": {
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-blockstore-tests": "^6.0.0",
"ipfs-utils": "^9.0.4",
"memory-level": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/blockstore-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
},
"devDependencies": {
"@types/sinon": "^10.0.15",
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-blockstore-tests": "^6.0.0",
"p-defer": "^4.0.0",
"sinon": "^15.0.2"
Expand Down
14 changes: 7 additions & 7 deletions packages/blockstore-s3/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('S3Blockstore', () => {
const store = new S3Blockstore(s3, 'test')

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

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

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

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

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

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

sinon.replace(s3, 'send', (command: any) => {
if (command.constructor.name === 'HeadObjectCommand') {
if (command.constructor.name.includes('HeadObjectCommand') === true) {
bucketTested.resolve(command)
return s3Reject(new S3Error('NoSuchBucket'))
}

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

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

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

Expand Down
10 changes: 5 additions & 5 deletions packages/blockstore-s3/test/utils/s3-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ export function s3Mock (s3: S3): S3 {
const commandName = command.constructor.name
const input: any = command.input

if (commandName === 'PutObjectCommand') {
if (commandName.includes('PutObjectCommand') === true) {
storage.set(input.Key, input.Body)
return s3Resolve({})
}

if (commandName === 'HeadObjectCommand') {
if (commandName.includes('HeadObjectCommand') === true) {
if (storage.has(input.Key)) {
return s3Resolve({})
}

return s3Reject(new S3Error('NotFound', 404))
}

if (commandName === 'GetObjectCommand') {
if (commandName.includes('GetObjectCommand') === true) {
if (!storage.has(input.Key)) {
return s3Reject(new S3Error('NotFound', 404))
}
Expand All @@ -59,12 +59,12 @@ export function s3Mock (s3: S3): S3 {
})
}

if (commandName === 'DeleteObjectCommand') {
if (commandName.includes('DeleteObjectCommand') === true) {
storage.delete(input.Key)
return s3Resolve({})
}

if (commandName === 'ListObjectsV2Command') {
if (commandName.includes('ListObjectsV2Command') === true) {
const results: { Contents: Array<{ Key: string }> } = {
Contents: []
}
Expand Down
2 changes: 1 addition & 1 deletion packages/datastore-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-datastore": "^8.0.0",
"interface-datastore-tests": "^5.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/datastore-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import * as Errors from './errors.js'
import * as shard from './shard.js'
import type { Key } from 'interface-datastore'
Expand Down
1 change: 0 additions & 1 deletion packages/datastore-core/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export const replaceStartWith = (s: string, r: string): string => {
const matcher = new RegExp('^' + r)
return s.replace(matcher, '')
Expand Down
2 changes: 1 addition & 1 deletion packages/datastore-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
},
"devDependencies": {
"@types/mkdirp": "^2.0.0",
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-datastore-tests": "^5.0.0",
"ipfs-utils": "^9.0.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/datastore-idb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"it-sort": "^3.0.1"
},
"devDependencies": {
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"datastore-core": "^9.0.0",
"interface-datastore-tests": "^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/datastore-level/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"level": "^8.0.0"
},
"devDependencies": {
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-datastore-tests": "^5.0.0",
"ipfs-utils": "^9.0.4",
"memory-level": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/datastore-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
},
"devDependencies": {
"@types/sinon": "^10.0.15",
"aegir": "^39.0.9",
"aegir": "^40.0.8",
"interface-datastore-tests": "^5.0.0",
"p-defer": "^4.0.0",
"sinon": "^15.0.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/datastore-s3/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('S3Datastore', () => {
const store = new S3Datastore(s3, 'test')

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

Expand All @@ -87,7 +87,7 @@ describe('S3Datastore', () => {
const deferred = defer<GetObjectCommand>()

sinon.replace(s3, 'send', (command: any) => {
if (command.constructor.name === 'GetObjectCommand') {
if (command.constructor.name.includes('GetObjectCommand') === true) {
deferred.resolve(command)
return s3Resolve({ Body: buf })
}
Expand All @@ -108,7 +108,7 @@ describe('S3Datastore', () => {
const store = new S3Datastore(s3, 'test')

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

Expand All @@ -126,7 +126,7 @@ describe('S3Datastore', () => {
const store = new S3Datastore(s3, 'test')

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

Expand All @@ -151,12 +151,12 @@ describe('S3Datastore', () => {
const bucketCreated = defer<CreateBucketCommand>()

sinon.replace(s3, 'send', (command: any) => {
if (command.constructor.name === 'HeadObjectCommand') {
if (command.constructor.name.includes('HeadObjectCommand') === true) {
bucketTested.resolve(command)
return s3Reject(new S3Error('NoSuchBucket'))
}

if (command.constructor.name === 'CreateBucketCommand') {
if (command.constructor.name.includes('CreateBucketCommand') === true) {
bucketCreated.resolve(command)
return s3Resolve(null)
}
Expand All @@ -180,7 +180,7 @@ describe('S3Datastore', () => {
const bucketTested = defer<HeadObjectCommand>()

sinon.replace(s3, 'send', (command: any) => {
if (command.constructor.name === 'HeadObjectCommand') {
if (command.constructor.name.includes('HeadObjectCommand') === true) {
bucketTested.resolve(command)
return s3Reject(new S3Error('NoSuchBucket'))
}
Expand All @@ -200,7 +200,7 @@ describe('S3Datastore', () => {
const store = new S3Datastore(s3, 'test')

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

Expand Down
10 changes: 5 additions & 5 deletions packages/datastore-s3/test/utils/s3-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ export function s3Mock (s3: S3): S3 {
const commandName = command.constructor.name
const input: any = command.input

if (commandName === 'PutObjectCommand') {
if (commandName.includes('PutObjectCommand') === true) {
storage.set(input.Key, input.Body)
return s3Resolve({})
}

if (commandName === 'HeadObjectCommand') {
if (commandName.includes('HeadObjectCommand') === true) {
if (storage.has(input.Key)) {
return s3Resolve({})
}

return s3Reject(new S3Error('NotFound', 404))
}

if (commandName === 'GetObjectCommand') {
if (commandName.includes('GetObjectCommand') === true) {
if (!storage.has(input.Key)) {
return s3Reject(new S3Error('NotFound', 404))
}
Expand All @@ -59,12 +59,12 @@ export function s3Mock (s3: S3): S3 {
})
}

if (commandName === 'DeleteObjectCommand') {
if (commandName.includes('DeleteObjectCommand') === true) {
storage.delete(input.Key)
return s3Resolve({})
}

if (commandName === 'ListObjectsV2Command') {
if (commandName.includes('ListObjectsV2Command') === true) {
const results: { Contents: Array<{ Key: string }> } = {
Contents: []
}
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-blockstore-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^39.0.9"
"aegir": "^40.0.8"
},
"typedoc": {
"entryPoint": "./src/index.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-blockstore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"multiformats": "^11.0.2"
},
"devDependencies": {
"aegir": "^39.0.9"
"aegir": "^40.0.8"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-datastore-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^39.0.9"
"aegir": "^40.0.8"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^39.0.9"
"aegir": "^40.0.8"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
1 change: 0 additions & 1 deletion packages/interface-datastore/src/key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { nanoid } from 'nanoid'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { type SupportedEncodings, toString as uint8ArrayToString } from 'uint8arrays/to-string'
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"release": "aegir release"
},
"devDependencies": {
"aegir": "^39.0.9"
"aegir": "^40.0.8"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down