Merge branch 'main' into support-activitypub

This commit is contained in:
Yarmo Mackenbach 2022-10-14 13:06:00 +02:00
commit 38242bd1e6
6 changed files with 19 additions and 5 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.16.4] - 2022-10-07
### Fixed
- superuser.com not being detected
## [0.16.3] - 2022-09-30
### Changed
- Updated dependencies

9
dist/doip.js vendored
View file

@ -12371,7 +12371,7 @@ module.exports.default = exports.default;
},{"./util/assertString":140}],146:[function(require,module,exports){
module.exports={
"name": "doipjs",
"version": "0.16.2",
"version": "0.16.4",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "./src/index.js",
"dependencies": {
@ -12623,6 +12623,11 @@ class Claim {
}
const candidate = def.processURI(this._uri)
// If the candidate could not be processed, continue matching
if (!candidate) {
return true
}
if (candidate.match.isAmbiguous) {
// Add to the possible candidates
this._matches.push(candidate)
@ -14103,7 +14108,7 @@ limitations under the License.
*/
const E = require('../enums')
const reURI = /^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow)|.+\.stackexchange)\.com\/users\/(\d+)/
const reURI = /^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow|superuser)|.+\.stackexchange)\.com\/users\/(\d+)/
const reStackExchange = /\.stackexchange$/
const processURI = (uri) => {

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",
"version": "0.16.3",
"version": "0.16.4",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "./src/index.js",
"dependencies": {

View file

@ -169,6 +169,11 @@ class Claim {
}
const candidate = def.processURI(this._uri)
// If the candidate could not be processed, continue matching
if (!candidate) {
return true
}
if (candidate.match.isAmbiguous) {
// Add to the possible candidates
this._matches.push(candidate)

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
const E = require('../enums')
const reURI = /^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow)|.+\.stackexchange)\.com\/users\/(\d+)/
const reURI = /^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow|superuser)|.+\.stackexchange)\.com\/users\/(\d+)/
const reStackExchange = /\.stackexchange$/
const processURI = (uri) => {