mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-10 14:39:28 -07:00
Add defaults module
This commit is contained in:
parent
f3e0744c60
commit
a3c11d6c80
2 changed files with 42 additions and 0 deletions
40
src/defaults.js
Normal file
40
src/defaults.js
Normal file
|
@ -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
|
|
@ -18,10 +18,12 @@ const keys = require('./keys')
|
||||||
const signatures = require('./signatures')
|
const signatures = require('./signatures')
|
||||||
const serviceproviders = require('./serviceproviders')
|
const serviceproviders = require('./serviceproviders')
|
||||||
const enums = require('./enums')
|
const enums = require('./enums')
|
||||||
|
const defaults = require('./defaults')
|
||||||
const utils = require('./utils')
|
const utils = require('./utils')
|
||||||
|
|
||||||
exports.proofs = proofs
|
exports.proofs = proofs
|
||||||
exports.keys = keys
|
exports.keys = keys
|
||||||
exports.signatures = signatures
|
exports.signatures = signatures
|
||||||
exports.enums = enums
|
exports.enums = enums
|
||||||
|
exports.defaults = defaults
|
||||||
exports.utils = utils
|
exports.utils = utils
|
||||||
|
|
Loading…
Reference in a new issue