-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: apply linters automatic fixes (#1429)
Signed-off-by: Hyperledger Bot <[email protected]> Co-authored-by: Hyperledger Bot <[email protected]>
- Loading branch information
1 parent
0781e3b
commit df7b03f
Showing
8 changed files
with
190,425 additions
and
186,448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
376,786 changes: 190,383 additions & 186,403 deletions
376,786
tests/didcomm-tests/dist/suite.spec.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
db.createUser({ | ||
user: "admin", | ||
pwd: "admin", | ||
roles: [ | ||
{ role: "readWrite", db: "mediator" } | ||
] | ||
}); | ||
user: 'admin', | ||
pwd: 'admin', | ||
roles: [ | ||
{ role: 'readWrite', db: 'mediator' } | ||
] | ||
}) | ||
|
||
const database = 'mediator'; | ||
const collectionDidAccount = 'user.account'; | ||
const collectionMessages = 'messages'; | ||
const collectionMessagesSend = 'messages.outbound'; | ||
const database = 'mediator' | ||
const collectionDidAccount = 'user.account' | ||
const collectionMessages = 'messages' | ||
const collectionMessagesSend = 'messages.outbound' | ||
|
||
// The current database to use. | ||
use(database); | ||
use(database) | ||
|
||
// Create collections. | ||
db.createCollection(collectionDidAccount); | ||
db.createCollection(collectionMessages); | ||
db.createCollection(collectionMessagesSend); | ||
db.createCollection(collectionDidAccount) | ||
db.createCollection(collectionMessages) | ||
db.createCollection(collectionMessagesSend) | ||
|
||
//create index | ||
db.getCollection(collectionDidAccount).createIndex({ 'did': 1 }, { unique: true }); | ||
// create index | ||
db.getCollection(collectionDidAccount).createIndex({ did: 1 }, { unique: true }) | ||
// Only enforce uniqueness on non-empty arrays | ||
db.getCollection(collectionDidAccount).createIndex({ 'alias': 1 }, { unique: true, partialFilterExpression: { "alias.0": { $exists: true } } }); | ||
db.getCollection(collectionDidAccount).createIndex({ "messagesRef.hash": 1, "messagesRef.recipient": 1 }); | ||
db.getCollection(collectionDidAccount).createIndex({ alias: 1 }, { unique: true, partialFilterExpression: { 'alias.0': { $exists: true } } }) | ||
db.getCollection(collectionDidAccount).createIndex({ 'messagesRef.hash': 1, 'messagesRef.recipient': 1 }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
const { build } = require("esbuild"); | ||
const { build } = require('esbuild') | ||
|
||
build({ | ||
entryPoints: ["test-suite.ts"], | ||
bundle: true, | ||
minify: false, | ||
platform: 'node', | ||
target: ['esnext'], | ||
format: 'cjs', | ||
outfile: "dist/suite.spec.js", | ||
entryPoints: ['test-suite.ts'], | ||
bundle: true, | ||
minify: false, | ||
platform: 'node', | ||
target: ['esnext'], | ||
format: 'cjs', | ||
outfile: 'dist/suite.spec.js' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters