Update package to 0.12.0

This commit is contained in:
Yarmo Mackenbach 2021-04-23 10:25:25 +02:00
parent f781458a2f
commit c199554c4c
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
3 changed files with 19 additions and 12 deletions

15
dist/doip.js vendored
View file

@ -7515,7 +7515,7 @@ module.exports.default = exports.default;
},{"./util/assertString":"/home/yarmo/dev/doip/doipjs/node_modules/validator/lib/util/assertString.js"}],"/home/yarmo/dev/doip/doipjs/package.json":[function(require,module,exports){ },{"./util/assertString":"/home/yarmo/dev/doip/doipjs/node_modules/validator/lib/util/assertString.js"}],"/home/yarmo/dev/doip/doipjs/package.json":[function(require,module,exports){
module.exports={ module.exports={
"name": "doipjs", "name": "doipjs",
"version": "0.11.2", "version": "0.12.0",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js", "description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "src/index.js", "main": "src/index.js",
"dependencies": { "dependencies": {
@ -9739,6 +9739,7 @@ exports.irc = require('./irc')
exports.matrix = require('./matrix') exports.matrix = require('./matrix')
exports.twitter = require('./twitter') exports.twitter = require('./twitter')
exports.xmpp = require('./xmpp') exports.xmpp = require('./xmpp')
},{"./dns":"/home/yarmo/dev/doip/doipjs/src/fetcher/dns.js","./gitlab":"/home/yarmo/dev/doip/doipjs/src/fetcher/gitlab.js","./http":"/home/yarmo/dev/doip/doipjs/src/fetcher/http.js","./irc":"/home/yarmo/dev/doip/doipjs/src/fetcher/irc.js","./matrix":"/home/yarmo/dev/doip/doipjs/src/fetcher/matrix.js","./twitter":"/home/yarmo/dev/doip/doipjs/src/fetcher/twitter.js","./xmpp":"/home/yarmo/dev/doip/doipjs/src/fetcher/xmpp.js"}],"/home/yarmo/dev/doip/doipjs/src/fetcher/irc.js":[function(require,module,exports){ },{"./dns":"/home/yarmo/dev/doip/doipjs/src/fetcher/dns.js","./gitlab":"/home/yarmo/dev/doip/doipjs/src/fetcher/gitlab.js","./http":"/home/yarmo/dev/doip/doipjs/src/fetcher/http.js","./irc":"/home/yarmo/dev/doip/doipjs/src/fetcher/irc.js","./matrix":"/home/yarmo/dev/doip/doipjs/src/fetcher/matrix.js","./twitter":"/home/yarmo/dev/doip/doipjs/src/fetcher/twitter.js","./xmpp":"/home/yarmo/dev/doip/doipjs/src/fetcher/xmpp.js"}],"/home/yarmo/dev/doip/doipjs/src/fetcher/irc.js":[function(require,module,exports){
/* /*
Copyright 2021 Yarmo Mackenbach Copyright 2021 Yarmo Mackenbach
@ -10204,7 +10205,7 @@ const Claim = require('./claim')
* const key1 = doip.keys.fetchHKP('alice@domain.tld'); * const key1 = doip.keys.fetchHKP('alice@domain.tld');
* const key2 = doip.keys.fetchHKP('123abc123abc'); * const key2 = doip.keys.fetchHKP('123abc123abc');
*/ */
exports.fetchHKP = (identifier, keyserverDomain) => { exports.fetchHKP = (identifier, keyserverDomain) => {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
const keyserverBaseUrl = keyserverDomain const keyserverBaseUrl = keyserverDomain
? `https://${keyserverDomain}` ? `https://${keyserverDomain}`
@ -10357,14 +10358,19 @@ exports.fetchURI = (uri) => {
switch (match[1]) { switch (match[1]) {
case 'hkp': case 'hkp':
resolve( resolve(
exports.fetchHKP(match[3] ? match[3] : match[2], match[3] ? match[2] : null) exports.fetchHKP(
match[3] ? match[3] : match[2],
match[3] ? match[2] : null
)
) )
break break
case 'wkd': case 'wkd':
resolve(exports.fetchWKD(match[2])) resolve(exports.fetchWKD(match[2]))
break break
case 'kb': case 'kb':
resolve(exports.fetchKeybase(match[2], match.length >= 4 ? match[3] : null)) resolve(
exports.fetchKeybase(match[2], match.length >= 4 ? match[3] : null)
)
break break
default: default:
reject('Invalid URI protocol') reject('Invalid URI protocol')
@ -10433,6 +10439,7 @@ exports.process = (publicKey) => {
}) })
}) })
} }
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./claim":"/home/yarmo/dev/doip/doipjs/src/claim.js","bent":"/home/yarmo/dev/doip/doipjs/node_modules/bent/src/browser.js","valid-url":"/home/yarmo/dev/doip/doipjs/node_modules/valid-url/index.js"}],"/home/yarmo/dev/doip/doipjs/src/proofs.js":[function(require,module,exports){ },{"./claim":"/home/yarmo/dev/doip/doipjs/src/claim.js","bent":"/home/yarmo/dev/doip/doipjs/node_modules/bent/src/browser.js","valid-url":"/home/yarmo/dev/doip/doipjs/node_modules/valid-url/index.js"}],"/home/yarmo/dev/doip/doipjs/src/proofs.js":[function(require,module,exports){
/* /*

2
dist/doip.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "doipjs", "name": "doipjs",
"version": "0.11.2", "version": "0.12.0",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js", "description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "src/index.js", "main": "src/index.js",
"dependencies": { "dependencies": {