Comparing version 6.0.0 to 6.0.1
@@ -0,1 +1,11 @@ | ||
<a name="6.0.1"></a> | ||
## [6.0.1](https://github.com/whyrusleeping/js-mafmt/compare/v6.0.0...v6.0.1) (2018-08-28) | ||
### Features | ||
* adds HTTPS validation and HTTP(s) tests ([87c4202](https://github.com/whyrusleeping/js-mafmt/commit/87c4202)) | ||
<a name="6.0.0"></a> | ||
@@ -2,0 +12,0 @@ # [6.0.0](https://github.com/whyrusleeping/js-mafmt/compare/v4.0.0...v6.0.0) (2018-04-05) |
{ | ||
"name": "mafmt", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "A multiaddr validator", | ||
"leadMaintainer": "Vasco Santos <vasco.santos@moxy.studio>", | ||
"main": "src/index.js", | ||
@@ -18,3 +19,3 @@ "scripts": { | ||
}, | ||
"pre-commit": [ | ||
"pre-push": [ | ||
"lint", | ||
@@ -30,3 +31,2 @@ "test" | ||
], | ||
"author": "whyrusleeping", | ||
"license": "MIT", | ||
@@ -38,8 +38,7 @@ "bugs": { | ||
"devDependencies": { | ||
"aegir": "^13.0.6", | ||
"chai": "^4.1.2", | ||
"pre-commit": "^1.2.2" | ||
"aegir": "^14.0.0", | ||
"chai": "^4.1.2" | ||
}, | ||
"dependencies": { | ||
"multiaddr": "^4.0.0" | ||
"multiaddr": "^5.0.0" | ||
}, | ||
@@ -52,5 +51,7 @@ "contributors": [ | ||
"Maciej Krüger <mkg20001@gmail.com>", | ||
"Vasco Santos <vasco.santos@ua.pt>", | ||
"dignifiedquire <dignifiedquire@gmail.com>", | ||
"dmitriy ryajov <dryajov@dmitriys-MBP.HomeNET>" | ||
"dmitriy ryajov <dryajov@dmitriys-MBP.HomeNET>", | ||
"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>" | ||
] | ||
} |
@@ -14,2 +14,6 @@ js-mafmt | ||
## Lead Maintainer | ||
[Vasco Santos](https://github.com/vasco-santos). | ||
## Install | ||
@@ -46,10 +50,10 @@ | ||
| `WebSocketsSecure` | a "wss" over `TCP` or "wss" over `DNS` format multiaddr | `/ip6/::/tcp/0/wss` <br> `/dnsaddr/ipfs.io/wss` | | ||
| `HTTP` | a "http" over `TCP` or `DNS` or "http" over `DNS` format multiaddr | `/ip4/127.0.0.1/tcp/90/http/baz.jpg` <br> `/dnsaddr/ipfs.io/http/baz.jpg` | | ||
| `HTTP` | a "http" over `TCP` or `DNS` or "http" over `DNS` format multiaddr | `/ip4/127.0.0.1/tcp/90/http` <br> `/dnsaddr/ipfs.io/http` | | ||
| `HTTPS` | a "https" over `TCP` or `DNS` or "https" over `DNS` format multiaddr | `/ip4/127.0.0.1/tcp/90/https` <br> `/dnsaddr/ipfs.io/https` | | ||
| `WebRTCStar` | an "ipfs" over "p2p-webrtc-star" over `Websockets` or "ipfs" over "p2p-webrtc-star" over `WebSocketsSecure` format multiaddr | `/dnsaddr/ipfs.io/wss/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4` | | ||
| `WebSocketStar` | an "ipfs" over "p2p-websocket-star" over `Websockets` or "ipfs" over "p2p-websocket-star" over `WebSocketsSecure` or "p2p-websocket-star" over `Websockets` or "p2p-websocket-star" over `WebSocketsSecure` format multiaddr | `/ip4/1.2.3.4/tcp/3456/ws/p2p-websocket-star` <br> `/dnsaddr/localhost/ws/p2p-websocket-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4` | | ||
| `WebRTCDirect` | a "p2p-webrtc-direct" over `HTTP` format multiaddr | `/ip4/1.2.3.4/tcp/3456/http/p2p-webrtc-direct` | | ||
| `Reliable` | a `WebSockets` or `WebSocketsSecure` or `HTTP` or `WebRTCStar` or `WebRTCDirect` or `TCP` or `UTP` format multiaddr | `/dnsaddr/ipfs.io/wss` | | ||
| `WebRTCDirect` | a "p2p-webrtc-direct" over `HTTP` or "p2p-webrtc-direct" over `HTTPS` format multiaddr | `/ip4/1.2.3.4/tcp/3456/http/p2p-webrtc-direct` | | ||
| `Reliable` | a `WebSockets` or `WebSocketsSecure` or `HTTP` or `HTTPS` or `WebRTCStar` or `WebRTCDirect` or `TCP` or `UTP` format multiaddr | `/dnsaddr/ipfs.io/wss` | | ||
| `Circuit` | | `/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4/p2p-circuit/ipfs/QmUjNmr8TgJCn1Ao7DvMy4cjoZU15b9bwSCBLE3vwXiwgj` | | ||
| `IPFS` | "ipfs" over `Reliable` or `WebRTCStar` or "ipfs" format multiaddr | `/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4` <br> `/ip4/127.0.0.1/tcp/20008/ws/ipfs/QmUjNmr8TgJCn1Ao7DvMy4cjoZU15b9bwSCBLE3vwXiwgj` | | ||
| | | | | ||
@@ -56,0 +60,0 @@ Where `multiaddr` may be: |
@@ -38,6 +38,13 @@ 'use strict' | ||
and(TCP, base('http')), | ||
and(DNS), | ||
and(DNS, base('http')) | ||
and(IP, base('http')), | ||
and(DNS, base('http')), | ||
and(DNS) | ||
) | ||
const HTTPS = or( | ||
and(TCP, base('https')), | ||
and(IP, base('https')), | ||
and(DNS, base('https')) | ||
) | ||
const WebRTCStar = or( | ||
@@ -55,3 +62,6 @@ and(WebSockets, base('p2p-webrtc-star'), base('ipfs')), | ||
const WebRTCDirect = and(HTTP, base('p2p-webrtc-direct')) | ||
const WebRTCDirect = or( | ||
and(HTTP, base('p2p-webrtc-direct')), | ||
and(HTTPS, base('p2p-webrtc-direct')) | ||
) | ||
@@ -62,2 +72,3 @@ const Reliable = or( | ||
HTTP, | ||
HTTPS, | ||
WebRTCStar, | ||
@@ -107,2 +118,3 @@ WebRTCDirect, | ||
exports.HTTP = HTTP | ||
exports.HTTPS = HTTPS | ||
exports.WebSockets = WebSockets | ||
@@ -153,2 +165,3 @@ exports.WebSocketsSecure = WebSocketsSecure | ||
return { | ||
toString: function () { return '{ ' + args.join(' ') + ' }' }, | ||
input: args, | ||
@@ -155,0 +168,0 @@ matches: matches, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1238094
2
16242
65
1
+ Addedmultiaddr@5.0.2(transitive)
- Removedmultiaddr@4.0.0(transitive)
Updatedmultiaddr@^5.0.0