Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Default constructors #55

Merged
merged 5 commits into from
Dec 29, 2020
Merged

Conversation

ilanolkies
Copy link
Contributor

Breaking change: constructor now uses encryption manager and auth manager instances instead of options

Will add docs once PR is approved :)

@ilanolkies ilanolkies added the refactor Refactor label Dec 28, 2020
@ilanolkies ilanolkies added this to the v0.1 milestone Dec 28, 2020
@codecov-io
Copy link

Codecov Report

Merging #55 (64183ee) into refactor-encryption-manager (0d2cf68) will decrease coverage by 0.61%.
The diff coverage is 95.83%.

Impacted file tree graph

@@                       Coverage Diff                       @@
##           refactor-encryption-manager      #55      +/-   ##
===============================================================
- Coverage                        84.96%   84.35%   -0.62%     
===============================================================
  Files                               18       18              
  Lines                              379      377       -2     
  Branches                            53       49       -4     
===============================================================
- Hits                               322      318       -4     
- Misses                              57       59       +2     
Impacted Files Coverage Δ
.../ipfs-cpinner-client/src/auth-manager/constants.ts 100.00% <ø> (ø)
...ules/ipfs-cpinner-client/src/auth-manager/store.ts 33.33% <33.33%> (ø)
...ules/ipfs-cpinner-client/src/auth-manager/index.ts 100.00% <100.00%> (ø)
...pfs-cpinner-client/src/encryption-manager/index.ts 100.00% <100.00%> (ø)
modules/ipfs-cpinner-client/src/index.ts 78.43% <100.00%> (-0.82%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d2cf68...64183ee. Read the comment docs.

getEncryptionPublicKey: getEncryptionPublicKeyTestFn,
decrypt: decryptTestFn
})
const message = 'Hello my name is Javi'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄 (?)

@@ -110,33 +114,41 @@ export const customStorageFactory = (): ClientKeyValueStorage => {
}
}

export const setupDataVaultClient = async (serviceUrl: string, serviceDid: string): Promise<{ dataVaultClient: DataVaultWebClient, did: string }> => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove it if we are not going to use it, then we can add it back

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #56

@javiesses javiesses merged commit 565b093 into refactor-encryption-manager Dec 29, 2020
@delete-merged-branch delete-merged-branch bot deleted the default-constructors branch December 29, 2020 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants