-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
5,053 additions
and
4,845 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
module.exports = function (api) { | ||
|
||
module.exports = function(api) { | ||
// TODO: Should cache on api.caller and api.env for faster build times. | ||
api.cache.invalidate(() => true); | ||
|
||
const isTestEnv = api.env("test"); | ||
const isDevEnv = api.env("development"); | ||
const isTestEnv = api.env('test'); | ||
const isDevEnv = api.env('development'); | ||
|
||
// Babel config for web browser lib dist with wide-spread browser support. | ||
let opts = { | ||
presets: [ | ||
["@babel/preset-env", { | ||
"targets": { | ||
"esmodules": true | ||
} | ||
}] | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
esmodules: true, | ||
}, | ||
}, | ||
], | ||
], | ||
plugins: [ | ||
"@babel/proposal-class-properties", | ||
"@babel/proposal-object-rest-spread" | ||
] | ||
plugins: ['@babel/proposal-class-properties', '@babel/proposal-object-rest-spread'], | ||
}; | ||
|
||
// Use full source maps in development env. | ||
if (!opts.sourceMaps && isDevEnv) { | ||
opts.sourceMaps = "both"; | ||
opts.sourceMaps = 'both'; | ||
} | ||
|
||
return opts; | ||
} | ||
}; |
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
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,22 +1,20 @@ | ||
export { AppConfig } from './appConfig'; | ||
export { makeAuthRequest, makeAuthResponse } from './messages'; | ||
export { getAuthRequestFromURL, fetchAppManifest } from './provider'; | ||
export { | ||
AppConfig | ||
} from './appConfig' | ||
export { | ||
makeAuthRequest, makeAuthResponse | ||
} from './messages' | ||
export { | ||
getAuthRequestFromURL, fetchAppManifest | ||
} from './provider' | ||
export { | ||
verifyAuthRequest, verifyAuthResponse, | ||
isExpirationDateValid, isIssuanceDateValid, doPublicKeysMatchUsername, | ||
doPublicKeysMatchIssuer, doSignaturesMatchPublicKeys, | ||
isManifestUriValid, isRedirectUriValid, verifyAuthRequestAndLoadManifest | ||
} from './verification' | ||
export * from './dids' | ||
export { | ||
UserSession | ||
} from './userSession' | ||
export * from './constants' | ||
export * from './profile' | ||
export * from './userData' | ||
verifyAuthRequest, | ||
verifyAuthResponse, | ||
isExpirationDateValid, | ||
isIssuanceDateValid, | ||
doPublicKeysMatchUsername, | ||
doPublicKeysMatchIssuer, | ||
doSignaturesMatchPublicKeys, | ||
isManifestUriValid, | ||
isRedirectUriValid, | ||
verifyAuthRequestAndLoadManifest, | ||
} from './verification'; | ||
export * from './dids'; | ||
export { UserSession } from './userSession'; | ||
export * from './constants'; | ||
export * from './profile'; | ||
export * from './userData'; |
Oops, something went wrong.