From a3c11d6c80f855b8adfb11c688bac7c0ccde121a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 16 Apr 2021 12:59:44 +0200 Subject: [PATCH] Add defaults module --- src/defaults.js | 40 ++++++++++++++++++++++++++++++++++++++++ src/index.js | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 src/defaults.js diff --git a/src/defaults.js b/src/defaults.js new file mode 100644 index 0000000..444c6b8 --- /dev/null +++ b/src/defaults.js @@ -0,0 +1,40 @@ +/* +Copyright 2021 Yarmo Mackenbach + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +const opts = { + proxy: { + hostname: null, + policy: E.ProxyPolicy.NEVER + }, + claims: { + irc: { + nick: null + }, + matrix: { + instance: null, + accessToken: null + }, + xmpp: { + service: null, + username: null, + password: null + }, + twitter: { + bearerToken: null + }, + } +} + +exports.opts = opts \ No newline at end of file diff --git a/src/index.js b/src/index.js index f61b055..4198b77 100644 --- a/src/index.js +++ b/src/index.js @@ -18,10 +18,12 @@ const keys = require('./keys') const signatures = require('./signatures') const serviceproviders = require('./serviceproviders') const enums = require('./enums') +const defaults = require('./defaults') const utils = require('./utils') exports.proofs = proofs exports.keys = keys exports.signatures = signatures exports.enums = enums +exports.defaults = defaults exports.utils = utils